{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"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":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"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":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"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":"VPhoneCustomFirmwareInstaller.applyGuestPatches (cyclomatic 309): VPhoneCustomFirmwareInstaller.applyGuestPatches has cyclomatic complexity 309 (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. This shape REPEATS in the file: one other method here (VPhoneCustomFirmwareInstaller.applyGuestPatches::on) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"752b435bf0ee93594158678951d25a85b835b58db29729b23225afc58eef3673"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.run (cyclomatic 148): VPhoneCustomFirmwareInstaller.run has cyclomatic complexity 148 (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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd698c42b287b98459ae4822eac6a8c387bdc9a4bfb910e4f48878bb77e1036"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.revealCSSCHandler (cyclomatic 105): KernelCustomFirmwarePatcher.revealCSSCHandler has cyclomatic complexity 105 (threshold 15). Of this number, 91 points are the body\u0027s own statements and 14 belong to 4 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchCSSC.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd229b067e992f3038146c11356648d589ce65b819608b5ac4c313d8347513b"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestAPI.executeCore (cyclomatic 104): GuestAPI.executeCore has cyclomatic complexity 104 (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":"VPhoneDaemon/Daemon/GuestAPI.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"119c1c4187469f75dcb61700a8201bc9edd72993b2e3e5b566abc5a362c2dd15"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKRecovery.synthesizeSymbols (cyclomatic 96): KDKRecovery.synthesizeSymbols has cyclomatic complexity 96 (threshold 15). Of this number, 78 points are the body\u0027s own statements and 18 belong to 6 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKLinkSymbols.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d48566513a0571d7f7ad62219b8c9d897fd7150d87db5a1ff0f2ef8c79757b"}},{"ruleId":"D1","level":"warning","message":{"text":"TXMDevPatcher.patchExecutableRemap (cyclomatic 93): TXMDevPatcher.patchExecutableRemap has cyclomatic complexity 93 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e47ddf1c5f61b310218a08727e613e81d6538c51722fcef703ba85dab645f38"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareParavirtGPUCompilerCache.resolve (cyclomatic 85): CustomFirmwareParavirtGPUCompilerCache.resolve has cyclomatic complexity 85 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"389897089671324ca4b67bf9e2f1514ae9d9d722441b0620d68b9b3c587c3f69"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheGLESDepthClipPatcher.findSite (cyclomatic 84): DyldSharedCacheGLESDepthClipPatcher.findSite 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESDepthClipPatcher.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5687b9aab42fe5fa249e523afc845eb58206dd2ad22d18e2810a00bd3e98cb"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareArm64eX1.authenticatedDispatch (cyclomatic 79): CustomFirmwareArm64eX1.authenticatedDispatch has cyclomatic complexity 79 (threshold 15). Of this number, 70 points are the body\u0027s own statements and 9 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdc2a0c230abe0981b4b2031ab5a4816fe2e91b1fa7e3cd002543583b649cd4"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheSettingsRowsPatcher.discover (cyclomatic 76): DyldSharedCacheSettingsRowsPatcher.discover has cyclomatic complexity 76 (threshold 15). Of this number, 72 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheSettingsRowsPatcher.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"74339dfe6eee09974d63bf0171dedad3bfc8b8f2862c611d3953ceb8f1037897"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.pvIdentityHelpers (cyclomatic 72): KernelCustomFirmwarePatcher.pvIdentityHelpers has cyclomatic complexity 72 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85e2da591a77817f9e1e7d4cc830be0c46e4125111f9b1afb98335fad7fe50d"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheGLESPrimitiveRestartPatcher.stateFields (cyclomatic 72): DyldSharedCacheGLESPrimitiveRestartPatcher.stateFields has cyclomatic complexity 72 (threshold 15). Of this number, 64 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6a9b114a972d5c9429c2e2bf1ba72c15e96a4cdd764a1e149f40e4727029d1"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareTVTPRO.discover (cyclomatic 65): CustomFirmwareTVTPRO.discover has cyclomatic complexity 65 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Dyld/CustomFirmwareTVTPRO.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6320a6c3fe7f36967810be120ef6b2c840b9049dd1cccf84960c08af29664ad"}},{"ruleId":"D1","level":"warning","message":{"text":"FirmwarePipeline.buildComponentList (cyclomatic 64): FirmwarePipeline.buildComponentList has cyclomatic complexity 64 (threshold 15). Of this number, 61 points are the body\u0027s own statements and 3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineComponents.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb7b86b06055cca8d3a2326dccd940fbbc00bcf718b9f5e805a857633261261"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareArm64eX1.planCode (cyclomatic 60): CustomFirmwareArm64eX1.planCode has cyclomatic complexity 60 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2eb9876cdaf52c20804d7b313c6955853d696ac9f97b1028faa7d7ddcdc067c"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheMetalCacheReusePatcher.findSite (cyclomatic 60): DyldSharedCacheMetalCacheReusePatcher.findSite has cyclomatic complexity 60 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"28183737dc1756cb8ccdf5b215ae6683c33a24bfc9086247d7848e7ad6679454"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestAPI.executeDevice (cyclomatic 59): GuestAPI.executeDevice has cyclomatic complexity 59 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a8dd44215bb262598f9c94e58c5f4efe30be19eaa06abbb3b237ec3b1f585f"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviewedProviderPatch.swift.top-level code (cyclomatic 58): ReviewedProviderPatch.swift.top-level code has cyclomatic complexity 58 (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":"Research/Guest/SettingsRows/ReviewedProviderPatch.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"67044342ce00fddcc5126ed9e47d4314b92111830170958e1a46f572eff2542c"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneVirtualMachineAppDelegate.startVirtualMachine (cyclomatic 56): VPhoneVirtualMachineAppDelegate.startVirtualMachine has cyclomatic complexity 56 (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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3783ee86867f5e9d18a26d05c7f091b6d18b1c4983a9ff020e84f6511efb37"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneHostAutomationServer.respond (cyclomatic 54): VPhoneHostAutomationServer.respond has cyclomatic complexity 54 (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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneHostAutomationServer.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1812618c0c239b6871816e3cd1cfa5ed5d9003332dea66f233b1ceaa864e88"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.patchPreboot (cyclomatic 54): VPhoneCustomFirmwareInstaller.patchPreboot has cyclomatic complexity 54 (threshold 15). Of this number, 52 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":4085}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b6f0c3d9ef130967585c0fe321cc03a8a523a102a96e125eef57aa7b9c35b3"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneFirmwarePreparer.prepare (cyclomatic 54): VPhoneFirmwarePreparer.prepare has cyclomatic complexity 54 (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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwarePreparer.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"847c902c386cb7d91ea10de738f43db981794d1005a76a59ad85dabc43b2a035"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKImageExport.adjustReferences (cyclomatic 54): KDKImageExport.adjustReferences has cyclomatic complexity 54 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportReferences.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb88f1d2bd28e1e7df6590615af8fc9364a2e02947148c3a8dd71d85cd716af"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestAPI.setDevicePose (cyclomatic 52): GuestAPI.setDevicePose has cyclomatic complexity 52 (threshold 15). Of this number, 44 points are the body\u0027s own statements and 8 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":"VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a8b9c8932ef7e0d0b23dd0a9c8e2a3a2d7ec3aaf687f7a69ba6f632226b40f"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKImageExport.layout (cyclomatic 52): KDKImageExport.layout has cyclomatic complexity 52 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKImageExport.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f788213064c6b895c47c0ca17ec13d12fdc9cce6772c80cea409b01c866ef363"}},{"ruleId":"D1","level":"warning","message":{"text":"GameCenterStandalonePatch.swift.top-level code (cyclomatic 51): GameCenterStandalonePatch.swift.top-level code has cyclomatic complexity 51 (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":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"381e0b28e109654536af487fc609efb2241e5adea822ca79cc6e8b0e0c5362b6"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareArm64eX1.switchTable (cyclomatic 49): CustomFirmwareArm64eX1.switchTable has cyclomatic complexity 49 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f8afdf89142e9d97f16368f8a34087b48d936ae32931fffaa67ebc44f19994"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareSettingsRows.gameCenterEdits (cyclomatic 49): CustomFirmwareSettingsRows.gameCenterEdits has cyclomatic complexity 49 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"c390b291d58775f1b1d9e480aa3c7e04f519fadc54f7d177084c83f7000d7d66"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneLaunchpadCreationPipeline.perform (cyclomatic 48): VPhoneLaunchpadCreationPipeline.perform has cyclomatic complexity 48 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadCreationPipeline.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fae647f7b7ceebe28d5fb14606ce17ad316ae5d391c0dca057a81cd9abe413e"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.paravirtTaskIdentity (cyclomatic 48): KernelCustomFirmwarePatcher.paravirtTaskIdentity has cyclomatic complexity 48 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"142814d3b43d3ca1d282deb6925ad2271788f56567c7562e116ad16ec836a692"}},{"ruleId":"D1","level":"warning","message":{"text":"TXMDevPatcher.patchPrecheckForcePass (cyclomatic 48): TXMDevPatcher.patchPrecheckForcePass has cyclomatic complexity 48 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ad80cd68ced7da4570679d3a732b977f37901c458dc946dc4e5a663dd4d5be"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheHomeViewEnvironmentPatcher.findSites (cyclomatic 48): DyldSharedCacheHomeViewEnvironmentPatcher.findSites has cyclomatic complexity 48 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41360642cf72a0de15c1f36ecaa9407226edf00f61b8f020590d544fa54b569"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findCsBypassGate (cyclomatic 47): KernelCustomFirmwarePatcher.findCsBypassGate has cyclomatic complexity 47 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2a58f288e97d11f1862302f470851d3081e7971a24ba9fe812384cfa20448e"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheTextRecognitionANEPatcher.findSite (cyclomatic 47): DyldSharedCacheTextRecognitionANEPatcher.findSite has cyclomatic complexity 47 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheTextRecognitionANEPatcher.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e08489c79a258aeacef01a2a01d6ac7447a8c2594105fff5e596de0fed2f0f"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestAPI.updateOTASystemApps (cyclomatic 45): GuestAPI.updateOTASystemApps has cyclomatic complexity 45 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 5 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":"VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"40810bc6b06d923ece99136156b7c99db1d757acfd445d3cf6a87b9523b074ca"}},{"ruleId":"D1","level":"warning","message":{"text":"TXMDevPatcher.remapLibraryCompatibility (cyclomatic 45): TXMDevPatcher.remapLibraryCompatibility has cyclomatic complexity 45 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"956a30d6c5c9ec319a23e0e819cf2c4aaada64734fafdf7e63d00d29966309bd"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheMetalCacheReusePatcher.verifyFlagLiveness (cyclomatic 45): DyldSharedCacheMetalCacheReusePatcher.verifyFlagLiveness has cyclomatic complexity 45 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 15 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"227897bfe9ba4527da4271b335867711cbc4d2e654ba3f8e3c73250907743181"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareSettingsRows.providerEdits (cyclomatic 45): CustomFirmwareSettingsRows.providerEdits has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed46c8e7308e051a9d76ebe4d58b919a0a51421c9b924f075dcdde1c7dd5b0b"}},{"ruleId":"D1","level":"warning","message":{"text":"TXMDevPatcher.remapMissingProfileCompatibility (cyclomatic 43): TXMDevPatcher.remapMissingProfileCompatibility has cyclomatic complexity 43 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMMissingProfile.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a53b0445b4ca7b454b3e48e1be35c661c37fea45f3bf699f5bd6279a98afe99"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVisionOSFramePacing.locate (cyclomatic 43): CustomFirmwareVisionOSFramePacing.locate has cyclomatic complexity 43 (threshold 15). Of this number, 39 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareVisionOSFramePacing.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2bc8a2b2a3cc37a1f5d093fca5d255b4f5f82ee496fe58016d97a1b9f6003f"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestIrisinInstaller.performInstall (cyclomatic 42): GuestIrisinInstaller.performInstall has cyclomatic complexity 42 (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":"VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c590e076db2aa6b41f40abc3d816e866c0b163cac82f71fb96d3b23486c1f0b3"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.scanRange (cyclomatic 42): KernelCustomFirmwarePatcher.scanRange has cyclomatic complexity 42 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e7a0d5a72c449efdc2f7ca53f6c68f0acdc633a886e57491894cfa1e7ca5f5"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheArm64eX1BootstrapPatcher.planImage (cyclomatic 40): DyldSharedCacheArm64eX1BootstrapPatcher.planImage has cyclomatic complexity 40 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc60f31c1197b054de3f1541c174edb5f5d60f1f93a31ffa55d9abed1da964f"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchArm64eX1Admission (cyclomatic 39): KernelCustomFirmwarePatcher.patchArm64eX1Admission has cyclomatic complexity 39 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchArm64eX1.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"06278e2e948de473fd751ee1a0355bb78f26862512342af64db05eead3ee55d0"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneLaunchpadControlRequest.parse (cyclomatic 38): VPhoneLaunchpadControlRequest.parse 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":"VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadControl.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbe005588579a099ab549feacb78e3f16ce08109a69abf034ca88fac94165d4"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.x1ExecPACGate (cyclomatic 38): KernelCustomFirmwarePatcher.x1ExecPACGate has cyclomatic complexity 38 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchArm64eX1.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb68e4f6ae0783c445bd83933b203043e13b2e646f47d2ba9da0badcdcdda62"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareArm64eX1.exceptionEntries (cyclomatic 38): CustomFirmwareArm64eX1.exceptionEntries has cyclomatic complexity 38 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d2bb0fdc5b0ef87c9f852b5455139dd18b069c5c59445eaaa9ac4876dab4ac"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.containsDraw (cyclomatic 38): DyldSharedCacheGLESPointDrawPatcher.containsDraw has cyclomatic complexity 38 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a81d946a05ccde99161348ad962e47ca6bce4bf658435d22d1c485073baa89"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheIOS16SurfaceAdapter.prepare (cyclomatic 38): DyldSharedCacheIOS16SurfaceAdapter.prepare has cyclomatic complexity 38 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOS16SurfaceAdapter.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1d9ec210b2627d8992ca1ef0330b8f91e1abd9e878eec2dbfd34ad7b40e9f3"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.pvOwnerOffset (cyclomatic 37): KernelCustomFirmwarePatcher.pvOwnerOffset has cyclomatic complexity 37 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fabf011b2f297bdd89454dc20bdf3ee593fea45dfb2d05ca55a4abd690eba5"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareRemotePairing.rejectsLocalConnection (cyclomatic 37): CustomFirmwareRemotePairing.rejectsLocalConnection has cyclomatic complexity 37 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/RemotePairing/CustomFirmwareRemotePairing.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8d229467418fb0f3db50142ea7e0d17e607b2d5b8fcfd91cb39b61944b1f65"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.sites (cyclomatic 36): DyldSharedCacheGLESPointDrawPatcher.sites has cyclomatic complexity 36 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4d3d109e4ff6e27f6c8b593e9388bd5fbc136ce2f7b97c59fcd3fd124116dc"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.tproGuardFlagVA (cyclomatic 35): KernelCustomFirmwarePatcher.tproGuardFlagVA has cyclomatic complexity 35 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchTproOff.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ae8b45156219ea9efb7c52889bdfcb6453343c604e09f8ca6efcb5cdb605a8"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findForkEntryLink (cyclomatic 34): KernelCustomFirmwarePatcher.findForkEntryLink has cyclomatic complexity 34 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"555ef09e9527fcc08dc559869edb3e0a20fb3a3d4c0def058b8833223aaf73e7"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.x1ExecSharedRegionGate (cyclomatic 34): KernelCustomFirmwarePatcher.x1ExecSharedRegionGate has cyclomatic complexity 34 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchArm64eX1.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c696c3ac1a2282f3b904507dcbb8e229041301d9ad5deceb830934fabf028b"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelPatcher.patchExcGuardBehavior (cyclomatic 34): KernelPatcher.patchExcGuardBehavior has cyclomatic complexity 34 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchExcGuard.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f887c7d6073c470b0e89a8ecacd8263277b77ae9c0eed6066ae7ecbacf74c3"}},{"ruleId":"D1","level":"warning","message":{"text":"TXMDevPatcher.patchSelector24ForcePass (cyclomatic 34): TXMDevPatcher.patchSelector24ForcePass has cyclomatic complexity 34 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"810b168c2591f53b9a7f4223d32e0def7174938e9ba267286b0b12d6b3f38d50"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheMachPortsPatcher.prepare (cyclomatic 34): DyldSharedCacheMachPortsPatcher.prepare has cyclomatic complexity 34 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMachPortsPatcher.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dd158cbec967ce28bab9fb7bedf560eba677d5dd5d39b2ff1090ab51e760d9"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKRecovery.track (cyclomatic 34): KDKRecovery.track has cyclomatic complexity 34 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryFlow.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb73c673d93ed64b098921e191d1ceb3d3049fbee30cd51f19bd8e349639ca1"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findWriteDowngradeGate (cyclomatic 32): KernelCustomFirmwarePatcher.findWriteDowngradeGate has cyclomatic complexity 32 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fd08f8d1d2d46560452e5a3fa8f9eb128b0a514d48a8bfdb17ba1bc1317fb1"}},{"ruleId":"D1","level":"warning","message":{"text":"SEPResearchBoardPatcher.dispatchTable (cyclomatic 32): SEPResearchBoardPatcher.dispatchTable has cyclomatic complexity 32 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/SEP/SEPResearchBoardPatcher.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cae32f5c34d8a41c4415cf8a6b6198d0f30eb54a331a76e03e7ea743e7bc470"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareRemotePairing.locate (cyclomatic 32): CustomFirmwareRemotePairing.locate has cyclomatic complexity 32 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/RemotePairing/CustomFirmwareRemotePairing.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9141338ae4a3a376128ac9354a9ba30db0418a2b10a2505cdea4d514f01fbdc"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.epilogueEntry (cyclomatic 32): CustomFirmwareVirtualAudio.epilogueEntry has cyclomatic complexity 32 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2606}}}],"partialFingerprints":{"codehealthFindingId/v1":"c160b700aff304973135a53a3d40d9d7c34b73eb2387ad0ed56e4272f42eb767"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.applyDyldPatches (cyclomatic 31): VPhoneCustomFirmwareInstaller.applyDyldPatches has cyclomatic complexity 31 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 10 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ff0964b603a796675ec8b0dfb272a394fd9e638b251c5513ac7c2715cd2513"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareArm64eX1.entryPoints (cyclomatic 31): CustomFirmwareArm64eX1.entryPoints 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"43faddcbcb22c5e4d05c83d2dcb4fec8289006996e48f53e92c7835ee24d3d3a"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheArm64eX1BootstrapPatcher.lower (cyclomatic 31): DyldSharedCacheArm64eX1BootstrapPatcher.lower 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf688b09387bcb89636fae8ffb833741aebc71964c76c401130fe28014b45c0c"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneNetworking.merge (cyclomatic 30): VPhoneNetworking.merge 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":"VPhoneKit/VPhoneCoreKit/Support/VPhoneNetworking.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb1928203ec3b236850e6e8306cd9c2d89208eb03c8734928db909617cd86c2"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneLaunchpadControlCommands.startCreation (cyclomatic 30): VPhoneLaunchpadControlCommands.startCreation has cyclomatic complexity 30 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 3 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":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cf6279b188139de8c87da26d929bba3b4f25e56123d47a6014bf422df62c9e"}},{"ruleId":"D1","level":"warning","message":{"text":"MachOSymbolTargets.init (cyclomatic 30): MachOSymbolTargets.init 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Binary/MachOSymbolTargets.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b5d512ddb4b68b7b9e1449dc55cafd59354aaffd1b70e5349513bb11db04d2"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.matchUpstreamTaskForPidGate (cyclomatic 30): KernelCustomFirmwarePatcher.matchUpstreamTaskForPidGate has cyclomatic complexity 30 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2522a3c698d1e04c46f331e05742e1e0a10dfb058167b37862a8568f703baea"}},{"ruleId":"D1","level":"warning","message":{"text":"SPTMSecondaryCPUPatcher.tunableBranches (cyclomatic 30): SPTMSecondaryCPUPatcher.tunableBranches has cyclomatic complexity 30 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/SPTM/SPTMSecondaryCPUPatcher.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"7509d1b43049e6bf4c46ddb66df671307e896d06923835c0dfe74271e48143d3"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhonePatchCatalogReport.text (cyclomatic 30): VPhonePatchCatalogReport.text 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchCatalogReport.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7b619bd5a231b46b769be17860dd1e4496aedb1a34b199794038a0328d788d"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneVirtualMachineCreateCommand.validate (cyclomatic 30): VPhoneVirtualMachineCreateCommand.validate 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateCommand.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a0a2802284e8bd20bb28c7d67d037209c98641b37c75cf3775bd16f2d40c1c"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneVirtualMachine.init (cyclomatic 30): VPhoneVirtualMachine.init has cyclomatic complexity 30 (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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2f9386acfdc0f7f46008c94f3f3065aff3cc7a571d0fedc3834b7746573ed2"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKImageExport.importOrder (cyclomatic 30): KDKImageExport.importOrder 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportFixups.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2913c8943f4427f3e67ae3241f7309bac73d1726681fc6a04d2bf4c642b369b4"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKInstruction.writes (cyclomatic 30): KDKInstruction.writes has cyclomatic complexity 30 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKInstruction.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0a2d54ef5a0b469186b9bb76b8a4c25584d60e303bf53307d980df49a4d78f"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestHyperTextHandler.channelRead (cyclomatic 29): GuestHyperTextHandler.channelRead has cyclomatic complexity 29 (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. This is NOT this file\u0027s highest cyclomatic complexity: GuestHyperTextHandler.route (cyclomatic 44) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestHyperTextHandler.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea6288e6fa9a4a1428b5dfbae366618e63bd821cb0931744091ffe86b40f590"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneOTAArchive.validatePayloadPaths (cyclomatic 29): VPhoneOTAArchive.validatePayloadPaths has cyclomatic complexity 29 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 5 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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"98cbe141f2fd28ff7f2ffb61b0c0993958981f2b7f0bcd343fc1a7c483f49c04"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.buildForkInheritCave (cyclomatic 29): KernelCustomFirmwarePatcher.buildForkInheritCave has cyclomatic complexity 29 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c9b5c6f2ecb9395f6d2188c924da6e5d84e52c468b4b0570cb4f2aaefd8739"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneArm64eX1Lowering.replacement (cyclomatic 29): VPhoneArm64eX1Lowering.replacement has cyclomatic complexity 29 (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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/VPhoneArm64eX1Lowering.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d90abaf282e3e7c55665745ff034eae594f37772d05caa14f54908e1e88f4e"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneGuestControl.probe (cyclomatic 29): VPhoneGuestControl.probe has cyclomatic complexity 29 (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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf96580ee5cf92abfb76d22db310a2894d7e6df7ce88f54a5c7f8e6ee70dbea"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareArm64eX1Installation.update (cyclomatic 29): CustomFirmwareArm64eX1Installation.update has cyclomatic complexity 29 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1Installation.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1a99a0fa8b4e5e0f3d3b238fbfa7633b57bedbb51bf2d124f5560e58b4472a"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKRecovery.followJumpTable (cyclomatic 29): KDKRecovery.followJumpTable has cyclomatic complexity 29 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryFlow.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fbe04f6d15e26708237229649ca029144c9b60306a7e018608a40dda39cc73"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.gatedDeviceStateSite (cyclomatic 29): CustomFirmwareVirtualAudio.gatedDeviceStateSite has cyclomatic complexity 29 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"78694d217cd1322e42b89b9f455fdc694fafcc1e6302d3b664ce816a73bb5533"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.terminateSite (cyclomatic 29): CustomFirmwareVirtualAudio.terminateSite has cyclomatic complexity 29 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3cfba71b3eed9d1af5d584e4a13c3b83d2a610837dad3b1d9d4e22501036d2"}},{"ruleId":"D1","level":"warning","message":{"text":"IBootPatcher.patchBootxPrecondition (cyclomatic 28): IBootPatcher.patchBootxPrecondition has cyclomatic complexity 28 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"89413516f41f0b306495b7d6294f895e328a72db21ba9e0ab3213f23cc552e75"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchPostValidationAdditional (cyclomatic 28): KernelCustomFirmwarePatcher.patchPostValidationAdditional has cyclomatic complexity 28 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchPostValidation.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7299534bd11806e6a2cc9c2a344fec820456edb6788ea632c56e99d0dac6129"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.x1GradeTail (cyclomatic 28): KernelCustomFirmwarePatcher.x1GradeTail has cyclomatic complexity 28 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchArm64eX1.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e8ac0009de75231503216624f6c2335e31582aca491c384708071418f4d456"}},{"ruleId":"D1","level":"warning","message":{"text":"TXMDevPatcher.patchSelector42_29Shellcode (cyclomatic 28): TXMDevPatcher.patchSelector42_29Shellcode has cyclomatic complexity 28 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"33da4f294775e9454e702a5433d33e9420ecb5f2b76c0160245dcead74909098"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.runKernelUpdate (cyclomatic 28): VPhoneCustomFirmwareInstaller.runKernelUpdate has cyclomatic complexity 28 (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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"599944d765deee5c671df635a5bd18430e1987fa8b3fb6f9934196046f1f25f0"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.locateVolumeGate (cyclomatic 28): CustomFirmwareVirtualAudio.locateVolumeGate has cyclomatic complexity 28 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"906e28efd4c47c8966fb73856ba423de59b140b32b625447f9e24cb73ba492f8"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneOTAArchive.readZIPMembers (cyclomatic 27): VPhoneOTAArchive.readZIPMembers has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d93917473db80bfd0f1c52e009c6222ecfc0f2d97bb812a37c9907ff3d5e0a0"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneOTAArchive.stageUserland (cyclomatic 27): VPhoneOTAArchive.stageUserland has cyclomatic complexity 27 (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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39150a9b7fd25adc72bc3d05d96e3873cda846bee46b8694d280339403095ac"}},{"ruleId":"D1","level":"warning","message":{"text":"IBootCustomFirmwarePatcher.patchSkipGenerateNonce (cyclomatic 27): IBootCustomFirmwarePatcher.patchSkipGenerateNonce has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e600712657ee0725971368d556420470e5ec171643586306185b7631b39171"}},{"ruleId":"D1","level":"warning","message":{"text":"IBootPatcher.patchSizeVerifyByShape (cyclomatic 27): IBootPatcher.patchSizeVerifyByShape has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchRootfsBypass.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3494336007a6177b39b6c5749514122117236e5ada12037bf20f987a72f7c7b"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.tvTPROPagersDefault (cyclomatic 27): KernelCustomFirmwarePatcher.tvTPROPagersDefault has cyclomatic complexity 27 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchTVTPROPagers.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f6c3ae8d32ac231c9bc7cc7eee6cffe31f2bf2ef5005a055029e54e3794d07"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelPatcher.patchPostValidationCMP (cyclomatic 27): KernelPatcher.patchPostValidationCMP has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4467f12b9210e96406f21383f64b8a6c77c1cb14f2b1d395d886542c11fc47"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.applyGuestPatches::on (cyclomatic 27): VPhoneCustomFirmwareInstaller.applyGuestPatches::on has cyclomatic complexity 27 (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. This shape REPEATS in the file: one other method here (VPhoneCustomFirmwareInstaller.applyGuestPatches) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed59050161205ef711a4936066764db32bebe83ce94f2c99e94f8f8a1d776aa"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheGLESDepthClipPatcher.patch (cyclomatic 27): DyldSharedCacheGLESDepthClipPatcher.patch has cyclomatic complexity 27 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESDepthClipPatcher.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"52aa621033587073cfe06012e7405d36c5c582fcf362678ed693239bba048d2d"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.pipelineFields (cyclomatic 27): DyldSharedCacheGLESPointDrawPatcher.pipelineFields has cyclomatic complexity 27 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc747e533ff85245c32b84bfff51cbe7f02a342521d7e7249afe19196f6df45"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKImageExport.chainedFixups (cyclomatic 27): KDKImageExport.chainedFixups has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportFixups.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df7d07d3aa33ce6c80ba3f5a8257e42fd132f60f0223b6947dc7ae0341e827c"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareSeputil.references (cyclomatic 27): CustomFirmwareSeputil.references has cyclomatic complexity 27 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Sep/CustomFirmwareSeputil.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"521f9cc9730112e3703d60de16738adb6b3367fe5ec8b6728b687ff6b32d7b65"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.locateSPGate (cyclomatic 27): CustomFirmwareVirtualAudio.locateSPGate has cyclomatic complexity 27 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"8042732d848ae76b4baa575b7d99616f876550395eb67ab728f9f5eb6a46629a"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestIrisinInstaller.patchRootHideDaemon (cyclomatic 26): GuestIrisinInstaller.patchRootHideDaemon has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 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":"VPhoneDaemon/Daemon/Bootstrap/RootHide/GuestIrisinInstaller\u002BRootHideDaemons.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de220494b1cd6fe4314072bb02145a8d812f5c8d90f8640164944e5c832f0b8"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneTemplateSlimmingRequest.resolve (cyclomatic 26): VPhoneTemplateSlimmingRequest.resolve 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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSlimmingRequest.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b8518b14512eca0f59b7c3eb9a84551464f60290d58de31dfef5faef5bcd5e"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchThreadSetStateEntitlementFlag (cyclomatic 26): KernelCustomFirmwarePatcher.patchThreadSetStateEntitlementFlag has cyclomatic complexity 26 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchThreadSetState.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0682bc75fcee812ecf44955a68716b6c8ec087741114b236cacfdd2e9a85c2e"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.collectTaskConversionCandidates (cyclomatic 26): KernelCustomFirmwarePatcher.collectTaskConversionCandidates has cyclomatic complexity 26 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskConversion.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bb393352508e1096f2fdd6394c685f15b3ef4ea5fedfc6809873075c7e1967"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhonePCCGPURecovery.stageFromSystemDisk (cyclomatic 26): VPhonePCCGPURecovery.stageFromSystemDisk 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhonePCCGPURecovery.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"35504f13310b20c1ec0877e245288e63703b56cbc039664da71970f01de15edc"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneMachOImage.init (cyclomatic 26): VPhoneMachOImage.init 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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/MachO/VPhoneMachOImage.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"32dc981eb359c6e7636fcacec73768da241571c9dd2f26733cfa8d5a12d76047"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneGuestShellChannel.readFrames (cyclomatic 26): VPhoneGuestShellChannel.readFrames 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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestShellChannel.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1eb48a0b672eb4a06bdf20fa0973e60f9cd7c01adacabdf5ad243832cbd649"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareArm64eX1.sameDecode (cyclomatic 26): CustomFirmwareArm64eX1.sameDecode has cyclomatic complexity 26 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3dd4906fb8749d4d83efcee4bd554ebe0b6e9fbdd4f2d14b5be6b0086e37a9"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareArm64eX1.lower (cyclomatic 26): CustomFirmwareArm64eX1.lower has cyclomatic complexity 26 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d010ae00c6989945407120b158328aa1b5c4c11638f846247a462c40f6a4c83c"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKImageExport.finalReferences (cyclomatic 26): KDKImageExport.finalReferences has cyclomatic complexity 26 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportReferences.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd92c62ddc7e535efb3e87b9f71f649d86a416a9e85afbdd9a2cc1ec6069c34"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKRecovery.pointerReferences (cyclomatic 26): KDKRecovery.pointerReferences 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecovery.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"722b4571828d046976558271ec55df35bdc1bdcdc0f591c2e59d7bc2f3683830"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestPointGeometry.geometry (cyclomatic 25): GuestPointGeometry.geometry has cyclomatic complexity 25 (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":"VPhoneDaemon/Daemon/GuestPointGeometry.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"113c1c1a6c207addb4e859abde6c7d919043378680c8e616d896137442bc8721"}},{"ruleId":"D1","level":"warning","message":{"text":"RestoreRamDiskSealPatcher.copiedTemplateTarget (cyclomatic 25): RestoreRamDiskSealPatcher.copiedTemplateTarget has cyclomatic complexity 25 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Restore/RestoreRamDiskSealPatcher.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"556cbe8dd3e492dc8be74bfc5b5f37dc63627fb08b280018e3f907b2db805d14"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareDaemons.visionOSEnvironmentFeatures (cyclomatic 24): CustomFirmwareDaemons.visionOSEnvironmentFeatures has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemonsLaunchd.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd83434b35d3500ec52d93b11c315c88be7a1e8ef3a95432daea2a614daaa9a"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchCredLabelUpdateExecve (cyclomatic 24): KernelCustomFirmwarePatcher.patchCredLabelUpdateExecve has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7191f504a9977294cf396ea9d1769c05b86cf7229bdc999f766636d795a3dd7d"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchParavirtTask3Version (cyclomatic 24): KernelCustomFirmwarePatcher.patchParavirtTask3Version has cyclomatic complexity 24 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d18f6fb3be450ad6bce2983fd7fbc74f83d313b2a839494a03f03e6b78f0112"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.debugEntryBit (cyclomatic 24): KernelCustomFirmwarePatcher.debugEntryBit has cyclomatic complexity 24 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e911506763e43dbea598e4b7f2e1f840a9d5b95c9299f4fb5a405d318ebce81"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelPatcher.patchApfsVfsopMountCmp (cyclomatic 24): KernelPatcher.patchApfsVfsopMountCmp has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ff102b6d5b855f54b3ee6bba78ca6e81e639417ec262db9e2ea44d0bccc115"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneSignPKCS12.decrypt (cyclomatic 24): VPhoneSignPKCS12.decrypt has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneSign/Identity/VPhoneSignPKCS12.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ff255e14ff123ddfab9c65778570a910b679173679212921a93d7facbdd336"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareWatchAudioBudget.discover (cyclomatic 24): CustomFirmwareWatchAudioBudget.discover has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Dyld/CustomFirmwareWatchAudioBudget.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"077bac8b282c5a936b8c58d629afc94af686fb52ce6aa73218cf6d2f0849836c"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestAPI.executeFileTool (cyclomatic 23): GuestAPI.executeFileTool has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI\u002BFileTool.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7de21d9b87df628743ce792414d534c4696e24b778d995189d2a0cc991aa32"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestAPI.executeService (cyclomatic 23): GuestAPI.executeService has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI\u002BService.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc89737f405776882a93e276988c91f5ee88e282bc7f66ba6be50880e885202e"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneLaunchpadMachineSettingsView.save (cyclomatic 23): VPhoneLaunchpadMachineSettingsView.save 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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineSheets.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3e70ce7f596a86a58d93bfc4a135c9ab47a4e1fbcf4568f2ecf2c1b6764c02"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareTextRecognitionModels.plan (cyclomatic 23): CustomFirmwareTextRecognitionModels.plan 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareTextRecognitionModels.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc7941b777087ded76729bbbed50b3b296739612d8580d261f39f61883ccd6e"}},{"ruleId":"D1","level":"warning","message":{"text":"DeviceTreePatcher.applyPatches (cyclomatic 23): DeviceTreePatcher.applyPatches 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ea3769bda791a61d37b290db70923cfd0e1edb11e115c856d6aed83dde89aa"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.isBitstrTest (cyclomatic 23): KernelCustomFirmwarePatcher.isBitstrTest has cyclomatic complexity 23 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchSyscallFilterOff.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d2ce158935fc4118f67c68d7bd0eaef2718e348a158a9dd888c6f047acc345"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.matchRegionBlock (cyclomatic 23): KernelCustomFirmwarePatcher.matchRegionBlock has cyclomatic complexity 23 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchSharedRegionSize.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15b9aa545f18e40d2d6af9e0bacb32f3fad44d7e8e52f9630243519d975758b"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.matchPersonaHelper (cyclomatic 23): KernelCustomFirmwarePatcher.matchPersonaHelper 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSpawnPersona.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58bd9fd5229ecd88e4a2f539c55fe08ba3cde60b9d977092a27308cde47dff2"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelPatcher.patchHandleGetDevByRoleEntitlement (cyclomatic 23): KernelPatcher.patchHandleGetDevByRoleEntitlement 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd94fa6977893270990408db9dfbc85558c124c596b38bda4e2ca2e3fb4f738"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCacheKDK.mix (cyclomatic 23): KernelCacheKDK.mix has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCacheKDK.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25a3080c16daa5a9b1150864a76179fc22c4f794316dc28aed6ee296d4d370b"}},{"ruleId":"D1","level":"warning","message":{"text":"TXMDevPatcher.patchDeveloperModeBypass (cyclomatic 23): TXMDevPatcher.patchDeveloperModeBypass 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeb5935a8144788f12cc826f00ce47aa616b59143a0668949fe18769940c004"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneFirmwareOTACommand.complete (cyclomatic 23): VPhoneFirmwareOTACommand.complete 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareOTACommand.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a8ca68e0325302a9e374a22c77561f0add78ee48f65640dd9d00cb75e0e939"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhonePatchPlan.resolve (cyclomatic 23): VPhonePatchPlan.resolve has cyclomatic complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPlan.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8eaf60daac37e373d9ee85aec1a85a81dd22d2fc981d97f7feeebdbe5e928d6"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.isCAExceptionThrowBlock (cyclomatic 23): CustomFirmwareVirtualAudio.isCAExceptionThrowBlock 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2070}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c33a842b92c83f94e1c61a2ccbdd294e2929e16ef5f3d0c0fad9750cc0ab5e"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareWatchDog.locateSites (cyclomatic 23): CustomFirmwareWatchDog.locateSites 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDogDiscovery.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cbcdb3ad98f9be8b5dd4c516de2efe72409f2b00f72021d2eb3dbfed7d9190"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCrashReportContent.reindent (cyclomatic 23): VPhoneCrashReportContent.reindent has cyclomatic complexity 23 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 3 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/CrashLogs/VPhoneCrashReportContent.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43c0bcda5d6a0ae18a3308ae0acf4db84e466de1387d6a78c4a1e77de6bc25b"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneArchiveWriter.pack (cyclomatic 22): VPhoneArchiveWriter.pack has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveWriter.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee47d82d5ea0c58ab76c43141fa6203bd21249546fc48a524e7f03b2c06afea"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneBootCommand.validate (cyclomatic 22): VPhoneBootCommand.validate has cyclomatic complexity 22 (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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootCommand.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bc7e1bfedfcef900a8022a4de35c025848b1fbc39d6080aa73b04bd92709e5"}},{"ruleId":"D1","level":"warning","message":{"text":"DeviceTreePatcher.guestEdits (cyclomatic 22): DeviceTreePatcher.guestEdits has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1f9084108b39152121c4d5095033ac6bbda9fea6994bf37711372bfd1e99fc"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findFilterChecks (cyclomatic 22): KernelCustomFirmwarePatcher.findFilterChecks has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchSyscallFilterOff.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0ad5b30941bc22a4b0d5f8d0f840f0d9ad825bb6d334247a42f01dd819803b"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findProcPidinfoGuards (cyclomatic 22): KernelCustomFirmwarePatcher.findProcPidinfoGuards has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchProcPidinfo.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a41dacf98f90602056c0af0382ed88e214dfce0e3860727ea9d4a0334db53b9"}},{"ruleId":"D1","level":"warning","message":{"text":"RestoreRamDiskSealPatcher.findADRPADDReferences (cyclomatic 22): RestoreRamDiskSealPatcher.findADRPADDReferences has cyclomatic complexity 22 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Restore/RestoreRamDiskSealPatcher.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba20590503fe395e8e75978cdcf6be7e6188adbb55fb269d7a943d4c15ec945"}},{"ruleId":"D1","level":"warning","message":{"text":"TXMDevPatcher.remapCategory (cyclomatic 22): TXMDevPatcher.remapCategory has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb4206a2f4c9f1acbe70f155d2a0a3da0a48fb6afa4bce449ef2d85ee5aeaaf"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneFirmwareOTACommand.capture (cyclomatic 22): VPhoneFirmwareOTACommand.capture has cyclomatic complexity 22 (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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareOTACommand.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"515e04a0197030087459e66f9fb10a56c1fe13ac5848af5a09d334800be0b2b1"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareArm64eX1Audit.containsX1 (cyclomatic 22): CustomFirmwareArm64eX1Audit.containsX1 has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1Audit.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08e93f5af52be5b588c761cd969a8011147eb4714678b2734f116ddd0027fb8"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKRecovery.foreignMayReturn (cyclomatic 22): KDKRecovery.foreignMayReturn has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryFlow.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"118c03129ed3c5bec9c9b454ac9590c25f24c87a3723f7872b2ee1a659a64436"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareWatchAudioBudget.flagStore (cyclomatic 22): CustomFirmwareWatchAudioBudget.flagStore has cyclomatic complexity 22 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Dyld/CustomFirmwareWatchAudioBudget.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74e05702d02e0c35ec7aadbe39287c541019e8d20babc94e22540bddecf5755"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.locateMuteSet (cyclomatic 22): CustomFirmwareVirtualAudio.locateMuteSet has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8f50cc3533cbb13c1a6d46db8a8684b400529c6c6a30f99b5edf6f178b56b9"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareWatchDog.matchSite (cyclomatic 22): CustomFirmwareWatchDog.matchSite has cyclomatic complexity 22 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDogDiscovery.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad526589c5635aff896e247e5cd01133f713411d8c91b5ba78c5a731b7dd7925"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestAPI.executeVisionOSImmersion (cyclomatic 21): GuestAPI.executeVisionOSImmersion 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":"VPhoneDaemon/Daemon/GuestAPI\u002BVisionOSImmersion.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a008e263afda2fa159ad9dc939d6ca3fe3b97059e58aa1162c7d96a233b91ab1"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestStaticNames.set (cyclomatic 21): GuestStaticNames.set has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestStaticNames.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78c19248ddfd8f8b6a4cae92f5aab45ae9983cea7b69f0f7b13e6ba81fcad51"}},{"ruleId":"D1","level":"warning","message":{"text":"Image.init (cyclomatic 21): Image.init has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2499fefaa866743e049f2ff6c2fe1e6e68c40a94ce46fe6cd2ce062128867b78"}},{"ruleId":"D1","level":"warning","message":{"text":"Image.init (cyclomatic 21): Image.init has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/Guest/SettingsRows/ReviewedProviderPatch.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f5fc3f7b82ba68981a17dfbb45cfa1a0c0127487070f994cd424a8f9073edb"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneLaunchpadControlCommands.slimming (cyclomatic 21): VPhoneLaunchpadControlCommands.slimming has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 3 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. This is NOT this file\u0027s highest cyclomatic complexity: VPhoneLaunchpadControlCommands.perform (cyclomatic 29) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2e61fe266e56d18d5412d8c3278e197dbbfd78a31f9d35ac706d25a967a59a"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.paravirtGPUPersonality (cyclomatic 21): KernelCustomFirmwarePatcher.paravirtGPUPersonality 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtGLES.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f9d6a6297f9cf8b40bf786ab6fb78226356401c5c879235381f0a7f2fcde76"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneVirtualMachineLeasesCommand.run (cyclomatic 21): VPhoneVirtualMachineLeasesCommand.run has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineLeasesCommand.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e819c9c27c6333667120c8bef556a1016b4e84484c4a4d2d4c118c7ccb75d4"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneHTTPTransaction.run (cyclomatic 21): VPhoneHTTPTransaction.run has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: VPhoneGuestControl.sendRequest (cyclomatic 26) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"94abe5a5e3b87d86b7dd2fa25a7b4223998370127a319f8b86887cef33e75f19"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneVirtualMachineWindowController.showWindow (cyclomatic 21): VPhoneVirtualMachineWindowController.showWindow has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbad1d3b34e20a8d9343385c81a1c663a4406eb43400c3e8e3143cb74cf9f3b"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareArm64eX1.lowerUniversal (cyclomatic 21): CustomFirmwareArm64eX1.lowerUniversal has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18b6f3c4de77ebe5331b4ddca1bd5eb971bcfb00a0b2969c4fb15118a66560f"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKImageExport.rebuildLinkedit (cyclomatic 21): KDKImageExport.rebuildLinkedit has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportLinkedit.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"53296b4d00db7174c1862755c7581899a64df63cbdfe8ddc046913b501c8d1ef"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKRecovery.ehFrameReferences (cyclomatic 21): KDKRecovery.ehFrameReferences has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryMetadata.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d857fd43b552b09148ecdd415e45b9feb5b043be792ea4a5bfcfec1af82aad8f"}},{"ruleId":"D1","level":"warning","message":{"text":"Image.init (cyclomatic 21): Image.init has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb99ded3656e1db3b318c64324b50a569edad88b6b85551b903d9132c982916"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.patch (cyclomatic 21): CustomFirmwareVirtualAudio.patch has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"d789150f85cdc46abe0ff6128205454bddbc738a52893bacc25a42712850453f"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.top-level code (cyclomatic 21): main.swift.top-level code has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpadCLI/main.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b2bad1006a906836d62ced5e6d7917766bb49ccade33ba2ca6310dd32c1ff8"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestAPI.executeInput (cyclomatic 20): GuestAPI.executeInput has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI\u002BInput.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3a5596b2e4feec8c935b234b3c791a7ce095dacfd8ab741c3d1e080db6353f"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneAPFSSnapshot.rename (cyclomatic 20): VPhoneAPFSSnapshot.rename 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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneAPFSSnapshot.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4ef0e4fdbd8fc6400369e6013d57fb07087fc1efc704c2ec63098bd07128ea"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneLaunchpadLogTail.follow (cyclomatic 20): VPhoneLaunchpadLogTail.follow 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":"VPhoneLaunchpad/VPhoneLaunchpad/Application/VPhoneLaunchpadTerminal.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc0b843294d2ddaf212a9a3f9fbcc943d4532a5c287e0738e021ad97fc201c8"}},{"ruleId":"D1","level":"warning","message":{"text":"AVPBooterPatcher.patchDGSTBypass (cyclomatic 20): AVPBooterPatcher.patchDGSTBypass 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf23880233a66208be2d06ea875c0a1d5141c9a18f0b54f7f81d13e32952e3ed"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheCodeSignature.reattest (cyclomatic 20): DyldSharedCacheCodeSignature.reattest 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheCodeSignature.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc724e9103ae1baaa7b06c9ad7567112a00b42b9ccccaf59ab73cd4d161ed457"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findUnixSyscallCheckCalls (cyclomatic 20): KernelCustomFirmwarePatcher.findUnixSyscallCheckCalls has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchSyscallFilterOff.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7acbcfc9a96a81e15fb48c5751c771400dbae8ae199c732d5e5803faaabb45b"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findUpstreamCleanupCall (cyclomatic 20): KernelCustomFirmwarePatcher.findUpstreamCleanupCall 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDounmount.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2d218ae1baaa6ab2da6e665845720a59374d15ad2895f6682b6e82234d5be1"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcherBase.findProcSecurityPolicy (cyclomatic 20): KernelCustomFirmwarePatcherBase.findProcSecurityPolicy 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a34c3e38d542520c74bbcc7f68d39ff4b62e4994e3419d5f1739abcdc1bdf2"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelPatcherBase.findPanic (cyclomatic 20): KernelPatcherBase.findPanic 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"4331545f5cd2369a02b7217fabeaadd1750e1ecf809ed9cedc27b8943797c232"}},{"ruleId":"D1","level":"warning","message":{"text":"FirmwarePipeline.patchComponents (cyclomatic 20): FirmwarePipeline.patchComponents 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipeline.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a201a9cb4d84100c24163a7f2ec4b8fb5fd296689ff469513793c09f4d5a283"}},{"ruleId":"D1","level":"warning","message":{"text":"TXMDevPatcher.debuggerGateFlagStore (cyclomatic 20): TXMDevPatcher.debuggerGateFlagStore 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1906ad49ba4b24261c6260e99fbcb8bd58c8e053b1a3b727ca74fd2fca579cf"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneFirmwareOTACommand.run (cyclomatic 20): VPhoneFirmwareOTACommand.run has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareOTACommand.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a64d81e903e438fd28b19e03dd49055d8563d6fa4581a3f2fed7c725f74c747"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneVirtualMachineConfigCommand.networkEdit (cyclomatic 20): VPhoneVirtualMachineConfigCommand.networkEdit has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCommand.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"7655696622ff76aafd054aacbd4c5e9ae57e25a71e414b8db7c6f22755347b39"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCodeSignature.identifier (cyclomatic 20): VPhoneCodeSignature.identifier 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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/MachO/VPhoneCodeSignature.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"84bb7456ed036d4d40d3616013719b4ebb7f6bbe6a7a2b45e5a960162736c3dd"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.patch (cyclomatic 20): DyldSharedCacheGLESPointDrawPatcher.patch has cyclomatic complexity 20 (threshold 15). Of this number, 13 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed663b0cf7f8bbb7227bcc66ed47f99f5bd7dde054ed8f203288486d83d8030"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.materializedAddress (cyclomatic 20): DyldSharedCacheGLESPointDrawPatcher.materializedAddress 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b22cc2e3e75af859a1c6af19df3da0727a61a13980f9524a92a67767b9cf617"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheHomeViewEnvironmentPatcher.materializedAddress (cyclomatic 20): DyldSharedCacheHomeViewEnvironmentPatcher.materializedAddress 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9896ab1b7669d7fd7712166abed8baf9cd37f8a9fe9dddf62c38d6a524a02fed"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheMISTrustAuthPatcher.findLiteralReference (cyclomatic 20): DyldSharedCacheMISTrustAuthPatcher.findLiteralReference 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4589d409aa6683852dad80af07a53020821e1a8ca5eb0fbe6ab8cdd465f27b2"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheMISTrustAuthPatcher.findSeededError (cyclomatic 20): DyldSharedCacheMISTrustAuthPatcher.findSeededError 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c385c6f9204b83647f7e7a3cf40223e0c7a39296604843f14441769675d194"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheMaxSlidePatcher.patch (cyclomatic 20): DyldSharedCacheMaxSlidePatcher.patch has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMaxSlidePatcher.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5aed5ae9474c22c9f0342bcd8e2f7a461514c7bd6c068063a70cbdf7f61e1e"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKExtraction.extract (cyclomatic 20): KDKExtraction.extract 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExtraction.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f197f668e5d3217c14ef11f3bb4f9b90eab8c0b601f1679dc388a54a81ff0a1"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestAPI.installEnvironment (cyclomatic 19): GuestAPI.installEnvironment 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":"VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a472a83fcf9069ee25c4350c6834831cf2fb109194d662d5285e16f7356cb58e"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneTreeFingerprint.capture (cyclomatic 19): VPhoneTreeFingerprint.capture has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneTreeFingerprint.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2315e3b892f43087a2bb57870ef140492174db8f8dc4a188052550d05ee1df5"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneOTAArchive.resolve (cyclomatic 19): VPhoneOTAArchive.resolve 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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af67c399675ba19529eb59aa14e86e2d13c326f6a3fc7efeec53622c9edb933"}},{"ruleId":"D1","level":"warning","message":{"text":"Head.init (cyclomatic 19): Head.init 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":"VPhoneKit/VPhoneCoreKit/Support/VPhoneAPIRequestGate.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d396042dc26f0eafe35b192bb6d675f676f8f747fe6fa56969ed721f3ab7dec"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneLaunchpadDiskMeter.measure (cyclomatic 19): VPhoneLaunchpadDiskMeter.measure 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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskUsage.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6d571693c4d5b8bb44054b15fc95796e3890e572464f238c7386dea5135193"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneLaunchpadMachineInspector.patchesPage (cyclomatic 19): VPhoneLaunchpadMachineInspector.patchesPage 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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineInspector.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"814e064ad3e7d6ca7959aa03a1ccef6c37fa47c6f19ae89ba87c3a3dd965d081"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudioMicrophoneChains.patch (cyclomatic 19): CustomFirmwareVirtualAudioMicrophoneChains.patch has cyclomatic complexity 19 (threshold 15). Of this number, 17 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioMicrophoneChains.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8726a857ab4055a7093625056cf1ad271cea2c330243e69c7753125f07c2efee"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheCodeSignature.readCodeDirectory (cyclomatic 19): DyldSharedCacheCodeSignature.readCodeDirectory has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheCodeSignature.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2907686f41ce921f963ae73574a2baa9397d3b140852dabe6bf5a050c27844"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchAmfiExecveKillPath (cyclomatic 19): KernelCustomFirmwarePatcher.patchAmfiExecveKillPath 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiExecve.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9857a64e4e8873d7502281a551c2e6fa78805977d9cbc390314c41888a22eaca"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.isSyscallMaskMiss (cyclomatic 19): KernelCustomFirmwarePatcher.isSyscallMaskMiss has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchSyscallFilterOff.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3df06513b6823757ada3756c899b3175d5eb5fe2eb0bedfcbf74ac86829d879"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelPatcherBase.kextTextRange (cyclomatic 19): KernelPatcherBase.kextTextRange 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c955041de749326728120249fe23060158ac8d3b34be74613f6dae0e4364298"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.patchedKernelcacheForUpdate (cyclomatic 19): VPhoneCustomFirmwareInstaller.patchedKernelcacheForUpdate 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b9cf12c2026ebc40db4620e3530be6687d08aadf8fc7b73655b5c6b63c9696"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneApplication.takeKeyEvent (cyclomatic 19): VPhoneApplication.takeKeyEvent has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneApplication.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ec00868d5f325ade0c99fffed4301a25b06e40ac81a31deb2b1be6b3d323d7"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheHypervisorVirtualMachinePatcher.patch (cyclomatic 19): DyldSharedCacheHypervisorVirtualMachinePatcher.patch 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b9067da32684066152b45a30f5d173d265bb2225c3d0ce2c3789c07585ae79"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheXPCLWCRPatcher.apply (cyclomatic 19): DyldSharedCacheXPCLWCRPatcher.apply 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0e1bf0d688f36681a07d104a333de031eeab2c7d63179090c9dddee4e584cc"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKRecovery.mayReturn (cyclomatic 19): KDKRecovery.mayReturn 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryFlow.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2721342f83aad554de41d23e41568361c2e10e04bcb9be9c3c2990aebadbf4"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.isThrowBlock (cyclomatic 19): CustomFirmwareVirtualAudio.isThrowBlock 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2382}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6942622293edd5b27c5aec40e64730731db2f5e54a0b3e8f59f976df773a05"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneHomePodUserDefault.validated (cyclomatic 19): VPhoneHomePodUserDefault.validated 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneHomePodDefaultsModel.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"37cbfe0c2e511bff991e9dfed16213ec5ac0a0e3400350d2f922d7ced5c88e70"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneArchiveExtractor.unpack (cyclomatic 18): VPhoneArchiveExtractor.unpack 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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveExtractor.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6d58497dcd4c9d0ff7f6ad3e490d048d7d83233932bf6e22f8ee26731ce277"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneTCPForwarder.handle (cyclomatic 18): VPhoneTCPForwarder.handle 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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"523705088fbb42352b232139eaf4ce9de469b10b5641ff6361740aadb244a54c"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneNetworking.resolve (cyclomatic 18): VPhoneNetworking.resolve has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: VPhoneNetworkingError.description (cyclomatic 24) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Support/VPhoneNetworking.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"8249c0a5e5bffb8db827c31bad497ec57791dbcd7024f28303cb92cabac1948d"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneLaunchpadDiskExtents.map (cyclomatic 18): VPhoneLaunchpadDiskExtents.map 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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskExtents.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3a29204b904a96a9e4ad65a88ca2660c8731d76148c89b90b6d9d2a9343ee6"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneLaunchpadMachinesView.body (cyclomatic 18): VPhoneLaunchpadMachinesView.body has cyclomatic complexity 18 (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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachinesView.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec03cc4b69db5e7d8ce45cfb66faf590db96b5fa917aa235565d698fbd31e37"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudioGraphConfigurations.patch (cyclomatic 18): CustomFirmwareVirtualAudioGraphConfigurations.patch 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioGraphConfigurations.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15f5281869ebdeed67dc31e5a705ba0fbd53a5466916a130ce2e0ae6a75026c"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudioGraphConfigurations.useRawSpeakerChain (cyclomatic 18): CustomFirmwareVirtualAudioGraphConfigurations.useRawSpeakerChain 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioGraphConfigurations.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d36d55b668493a4d9409238959628ef394a027efa38c17535b8ba1d352a2b6a"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.requestStore (cyclomatic 18): KernelCustomFirmwarePatcher.requestStore has cyclomatic complexity 18 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d897a9c7b2e4d9b3f743f417d72f6c2adc1f6701c368fd8c5f2c273b984c8f7"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.updateHomePodSoundBoard (cyclomatic 18): VPhoneCustomFirmwareInstaller.updateHomePodSoundBoard has cyclomatic complexity 18 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 9 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":3664}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80e9e77ef0e473ead14197926337fb01fac3c6e2945b2afea3ad07a1d2bb6bf"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneFirmwarePrepareCommand.run (cyclomatic 18): VPhoneFirmwarePrepareCommand.run has cyclomatic complexity 18 (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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50c1b852cd55cc867c29bc22d9d72196e2b48473731dd2da03b53034c176f4b"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneSignEntitlements.write (cyclomatic 18): VPhoneSignEntitlements.write has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/Entitlements/VPhoneSignEntitlements.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f75ca6fb62912c313c3cd90373bc1c9239e577c244d6e898582a23455a8f875"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneMachOFile.init (cyclomatic 18): VPhoneMachOFile.init 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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/MachO/VPhoneMachOImage.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22571d9aae90d00b3592e3a4e5aa4703e9ed5688085b29fa308c8be242d5ff8"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.indexedDrawFields (cyclomatic 18): DyldSharedCacheGLESPointDrawPatcher.indexedDrawFields has cyclomatic complexity 18 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f1e9cc58cb2d1c4e9209953ee0ff8256f11f872b1a21fb5b809080f90a97b3"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.isOrientationTest (cyclomatic 18): DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.isOrientationTest has cyclomatic complexity 18 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"87cf01791cf0a1d39ff7960de0a4e4c3ce3dc20d72ed42892d90816ebff96832"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheXPCLWCRPatcher.findConsistencyCheck (cyclomatic 18): DyldSharedCacheXPCLWCRPatcher.findConsistencyCheck 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfc083058af6f97ce9c1ea80ef9669aad501e3e63490d0e7153d0cc67d4861a"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareJetsamPatcher.findReturnGate (cyclomatic 18): CustomFirmwareJetsamPatcher.findReturnGate 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Jetsam/CustomFirmwareJetsamDiscovery.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3f79c4b2a6a01cf124ff78caa180ef15ea869f1131087f20fe273164e17ffc"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareParavirtGPUCompilerCache.addressPair (cyclomatic 18): CustomFirmwareParavirtGPUCompilerCache.addressPair has cyclomatic complexity 18 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb848ad4fce7bad672b168b7e9ea40f59bf2d7775d7002e01eb80d4cd94274b1"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneAttitudeLinearScale.body (cyclomatic 18): VPhoneAttitudeLinearScale.body 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneAttitudeDial.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18e3d3a6e51facfeec1d015e7e2ca44363e2070022c9c512f61794b6c2ab41d"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestHyperTextHandler.handle (cyclomatic 17): GuestHyperTextHandler.handle 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. This is NOT this file\u0027s highest cyclomatic complexity: GuestHyperTextHandler.route (cyclomatic 44) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestHyperTextHandler.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2640fd5808d1ac69b91ecf6011bd0374064db7d050ab5fdeda3a363f6471b971"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneTreeFingerprint.differences (cyclomatic 17): VPhoneTreeFingerprint.differences 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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneTreeFingerprint.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb02b602fcf1af88e5642c36d0ddbd82abf6eafc34a5083dfc150a967a74b95"}},{"ruleId":"D1","level":"warning","message":{"text":"Walk.compare (cyclomatic 17): Walk.compare has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff81b46557c68c84bc428fd94c687f7dbef81a6032a7c132cefabde6273df9d0"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneFirmwareIndex.releases (cyclomatic 17): VPhoneFirmwareIndex.releases 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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareIndex.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2281c008b8bffd31db8f942dae4ed452e1b00da5c280bf2d4015ae1eeb3341ff"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneHostFilePermissions.walkChild (cyclomatic 17): VPhoneHostFilePermissions.walkChild 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":"VPhoneKit/VPhoneCoreKit/Process/VPhoneHostFilePermissions.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b19c9d29f4891d84a18d06775fbb112ea7c8b6ce9966fb6a8a9b1f2ec10bd96"}},{"ruleId":"D1","level":"warning","message":{"text":"CryptexFilesystemPatcher.mergeFilesystems (cyclomatic 17): CryptexFilesystemPatcher.mergeFilesystems 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcher.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9612116df2427558c766258929f298bdf5a92ebb779bd0bf89be0706626f6c04"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareDaemons.visionOSLegacyUXMFeatures (cyclomatic 17): CustomFirmwareDaemons.visionOSLegacyUXMFeatures has cyclomatic complexity 17 (threshold 15). Of this number, 10 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemonsLaunchd.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f4e2177a74576491c346b3b92bad49bb12afdcdbbacf3938649b00163dd480"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudioMicrophoneChains.neutralizeGain (cyclomatic 17): CustomFirmwareVirtualAudioMicrophoneChains.neutralizeGain 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioMicrophoneChains.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d2b89dfcb8e3dce9090d49c2a3aba85efa811c4b5f87575d66294f77370b28"}},{"ruleId":"D1","level":"warning","message":{"text":"DeviceTreePatcher.applyGuestEdits (cyclomatic 17): DeviceTreePatcher.applyGuestEdits 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e15ca1bc90e44f9c76b55990bab81abdecb0dbe9200528f32313a93a1ddbc50"}},{"ruleId":"D1","level":"warning","message":{"text":"IBootPatcher.patchImage4Callback (cyclomatic 17): IBootPatcher.patchImage4Callback 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchImage4Callback.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"21405f0664d7892bdc0e787bdf7e3e7b6d4599f591c47faf1bdbdadf36e0773a"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.pvGlobalLoad (cyclomatic 17): KernelCustomFirmwarePatcher.pvGlobalLoad 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b690fb64922adb6493deb6d6778127ec0def03a35cfd4f4d106369b7994c14a"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findCsAssociateCall (cyclomatic 17): KernelCustomFirmwarePatcher.findCsAssociateCall 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d2540d8325b00e70f045635bf95494225fd1f04faba8f3d173f636912705e6"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchVmMapDeleteImmutableCode (cyclomatic 17): KernelCustomFirmwarePatcher.patchVmMapDeleteImmutableCode has cyclomatic complexity 17 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchVmMapDelete.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b751d3e4a1cf5610fcbdea22c3a7f80378981efc75e9c7ea59ea7cea1f2091"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findSysentTable (cyclomatic 17): KernelCustomFirmwarePatcher.findSysentTable has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchKcall10.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f17867e0b5e470546972b5eaeb1c2249f848cd17d623ece26aa486d41a17cd"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchThidShouldCrash (cyclomatic 17): KernelCustomFirmwarePatcher.patchThidShouldCrash 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchThidCrash.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1faf524f5a6ce37f466c1f43772e8c14bc38be94abb374f7c09a454a7c233e"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelPatcher.patchPostValidationNOP (cyclomatic 17): KernelPatcher.patchPostValidationNOP 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bdbef4fa2455d4bdcb785ff501dc833ad835209befbfe3981a3aa5aa1d8fea"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelPatcher.discoverSandboxTextRange (cyclomatic 17): KernelPatcher.discoverSandboxTextRange 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8892f15a92626263bc14e9beabbe1bdd73df6b02425e6d6b3d7f3f5dff882a"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCollectionStubCalls.directCalls (cyclomatic 17): KernelCollectionStubCalls.directCalls 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCollectionStubCalls.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb79fdda853b47b2b988b5f4982865704be49870e4f87f20e232bb10935d9942"}},{"ruleId":"D1","level":"warning","message":{"text":"FirmwareGuestPatchResolution.glesUpdatePolicy (cyclomatic 17): FirmwareGuestPatchResolution.glesUpdatePolicy 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareGuestPatchResolution.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9252cb503fab8e24f19522500a8007628c1099811f9213027993616a895ec6e5"}},{"ruleId":"D1","level":"warning","message":{"text":"TXMDevPatcher.findDebuggerGateFuncStart (cyclomatic 17): TXMDevPatcher.findDebuggerGateFuncStart 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1e18ebd5ed26860aa0aa4dd6753845acc2dd3a40a2b306686826a30e62afe8"}},{"ruleId":"D1","level":"warning","message":{"text":"TXMDevPatcher.patchDebuggerEntitlementForceTrue (cyclomatic 17): TXMDevPatcher.patchDebuggerEntitlementForceTrue 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"6239e9422bd4dce11be99ad5dfaa4d8f7a0cf9dd7c1d29e5017a9b8beaf516c0"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneVirtualMachineCreateBulkCommand.run (cyclomatic 17): VPhoneVirtualMachineCreateBulkCommand.run 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateBulkCommand.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbb9fb15a400b6bcabcdec198d7abbab8aca65f7456a06e65053e4c12850280"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneVirtualMachineView.scrollNatively (cyclomatic 17): VPhoneVirtualMachineView.scrollNatively 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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a497f7abce43073ce8cdd0266ef588bd853074444da2d097db81698034e0f4"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareArm64eX1Audit.scan::inspect (cyclomatic 17): CustomFirmwareArm64eX1Audit.scan::inspect 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1Audit.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"831b5abe051c2a64e8e17d3bb332f81c70a7c5d6e521895e804d19b4eb38d488"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheGLESPrimitiveRestartPatcher.trampoline (cyclomatic 17): DyldSharedCacheGLESPrimitiveRestartPatcher.trampoline 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"128843b4dff27a45d6fdddbdf9675208ba6b300aea3b2464bb4b51d83ee7faa5"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheIOMFBForceKernPatcher.isConditionalDispatch (cyclomatic 17): DyldSharedCacheIOMFBForceKernPatcher.isConditionalDispatch 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"7312dc21a4ad27ae5699c7d493c2f796d2b1939b2cdc00135a6a7915a9f1afb4"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheMetalCacheReusePatcher.patch (cyclomatic 17): DyldSharedCacheMetalCacheReusePatcher.patch 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5390a3b356f397640b4b8f8266aa699ece6dbb935a68207c1642ecf74ae0b6f"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKImageExport.symbolTable (cyclomatic 17): KDKImageExport.symbolTable has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 6 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportLinkedit.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df82dd6090656d89a985da184a8d8b522e522b34b20ce6f9737bb3b7d71792b"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKMachO.loadCommands (cyclomatic 17): KDKMachO.loadCommands 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKMachO.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce827d47269743e20064e20682ef500f22b969bd0a1b872b75ae10ab6ae1f4e6"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKRecovery.metadataReferences (cyclomatic 17): KDKRecovery.metadataReferences has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryMetadata.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdd1af5d588253c7b636f1385bbc1d45ad9a3366095fc5552782387388cc1a9"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareParavirtGPUCompilerCache.loadPair (cyclomatic 17): CustomFirmwareParavirtGPUCompilerCache.loadPair 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9871cdec10f49471438f3e86e78a1b3ee434b64b761bbd45b0230b3467e4af"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareParavirtGPUCompilerCache.selectorSlots (cyclomatic 17): CustomFirmwareParavirtGPUCompilerCache.selectorSlots 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6573696caec69fc7f58c5853a93778ea94e631f0a15864acac39b7529715a58"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestAPI.jailbreakInfo (cyclomatic 16): GuestAPI.jailbreakInfo has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f849f6af10fae445d3b153fdee9292f933a17d9ad2fa3b2e8dc0b96edf2a14"}},{"ruleId":"D1","level":"warning","message":{"text":"GuestIrisinInstaller.prepareAppData (cyclomatic 16): GuestIrisinInstaller.prepareAppData 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":"VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller\u002BPayload.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a684e270e6aabbfcc94ba8dac4f22f2a5ca760d790bd05f01ac47c97e6fd5c07"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneConfinedDirectory.removeEntry (cyclomatic 16): VPhoneConfinedDirectory.removeEntry has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ea90939bfbdb3c2ac8ff2cdf3109fed3c561a88a6922e93b3750a4dd649a1f"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneHostScreenProtocol.parse (cyclomatic 16): VPhoneHostScreenProtocol.parse 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":"VPhoneKit/VPhoneCoreKit/Support/VPhoneHostScreenProtocol.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2e106d20deb76e87b146be2258d85e7b5bc2f5f3c78f89be3c397a90b8d0c6"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareDaemons.filesystemLayout (cyclomatic 16): CustomFirmwareDaemons.filesystemLayout 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"53af6aa44ee62b69d1378fc7bf9d394e998b2699adab318ff6b3f8a5fb7f78a1"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareMachOCodeSignature.reattest (cyclomatic 16): CustomFirmwareMachOCodeSignature.reattest 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachOCodeSignature.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a920d1ed4b99762a7e824cbd24c37df3f0e8684492346a7515156a6b8c90e52c"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheChunkSet.readInstallName (cyclomatic 16): DyldSharedCacheChunkSet.readInstallName 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheChunkSet.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18e4ed9d3d2837bd6d6ed030782f15c6e4bbbb69a96aa0ebbf30adf16483209"}},{"ruleId":"D1","level":"warning","message":{"text":"IBootPatcher.enumerateHashGetters (cyclomatic 16): IBootPatcher.enumerateHashGetters 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0df33802815f370bdd335fa19951791691bb31a9f642176679638328ebc97b"}},{"ruleId":"D1","level":"warning","message":{"text":"IBootPatcher.verificationGates (cyclomatic 16): IBootPatcher.verificationGates 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchRootfsBypass.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5781c5558c90db031cb10fca737ba0a3097fe3c45ef16e9fb2f6b7547af5cbb"}},{"ruleId":"D1","level":"warning","message":{"text":"IBootPatcher.patchSerialLabels (cyclomatic 16): IBootPatcher.patchSerialLabels 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchSerialLabels.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec883e265b571171efadcabf5e970167a4683de78f70b184aedf14e06365c14f"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchAmfiCdhashInTrustcache (cyclomatic 16): KernelCustomFirmwarePatcher.patchAmfiCdhashInTrustcache 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiTrustcache.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4e3e3613d8db15f32a312841d5cd1ae028cc9ef64914245f93f25dc9a681fc"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findSandboxOpsTable (cyclomatic 16): KernelCustomFirmwarePatcher.findSandboxOpsTable 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"950272cdb15dea59a5de1782351ca97e4210bf85305bddcf65e65772e7e623f5"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchParavirtDisplayRefreshRate (cyclomatic 16): KernelCustomFirmwarePatcher.patchParavirtDisplayRefreshRate 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchDisplayRefresh.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"591ee316e4270ca2a052b75f50221b305c19c5ecf12cc2debb41594454bf00a1"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findIOTaskHasEntitlement (cyclomatic 16): KernelCustomFirmwarePatcher.findIOTaskHasEntitlement 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"c950c366a125d1471628845eaf1b91dcbddaeb119c8a11a8ff866dd8857c1fcf"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchAksUnlockBagCount5 (cyclomatic 16): KernelCustomFirmwarePatcher.patchAksUnlockBagCount5 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Keystore/KernelCustomFirmwarePatchAksUnlockBag.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dafefc80b5538ee73c80a3a5b0e33873650f2b7c7598e201ef6a796f09fd7a7"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findUpstreamRootMountCmp (cyclomatic 16): KernelCustomFirmwarePatcher.findUpstreamRootMountCmp 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchSharedRegion.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d229a9281c4f4679ce2d708b5355047bc5dc0beae1b04b0b3fdc988ef215fb7"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.nopAbiVersionGate (cyclomatic 16): KernelCustomFirmwarePatcher.nopAbiVersionGate 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDiskImages2.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"2234942d352fd73115c732e45d2a0fa0c02875fd86e0896202e22427866b12ce"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelPatcher.patchApfsMountUpgradeChecks (cyclomatic 16): KernelPatcher.patchApfsMountUpgradeChecks 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"edeec037d1e3c7a3c78918843de4848d07b88d56ef8abd2598fd14a44eee3e83"}},{"ruleId":"D1","level":"warning","message":{"text":"KernelPatcher.findSandboxOpsTable (cyclomatic 16): KernelPatcher.findSandboxOpsTable 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c22931f706e8ccc53c0d6f302fc939374e4ebb99e099582e60bd40427d234c1"}},{"ruleId":"D1","level":"warning","message":{"text":"RestoreRamDiskSealPatcher.locateHashTypeField (cyclomatic 16): RestoreRamDiskSealPatcher.locateHashTypeField 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Restore/RestoreRamDiskSealPatcher.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9df02cf1bea90eb58eb74cc60889a5152df31e1f6b6d92c928aae0ae289b1b0"}},{"ruleId":"D1","level":"warning","message":{"text":"SEPResearchBoardPatcher.tableAddress (cyclomatic 16): SEPResearchBoardPatcher.tableAddress 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/SEP/SEPResearchBoardPatcher.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5c8c5cec174c5add91ce865da045dc8b5e704dd45b35837a6604bc8ce45c57"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.replaceHomePodUserland (cyclomatic 16): VPhoneCustomFirmwareInstaller.replaceHomePodUserland 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":3590}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd407d533bd4ee7168b020483d1902d7c0f47a9c7f0a24a04444436865f0cd9"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.updateTVDyld (cyclomatic 16): VPhoneCustomFirmwareInstaller.updateTVDyld 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":4682}}}],"partialFingerprints":{"codehealthFindingId/v1":"06360cafffe066fbecd7967193a5f13d0b95a86485640865eee3e1466fa77e6b"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneVirtualMachineCreateCommand.run (cyclomatic 16): VPhoneVirtualMachineCreateCommand.run 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateCommand.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec4692e05950750db5ac121db5725ec5d61040a70089b01ead0dd4a3f19474e"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneGuestShellChannel.handshake (cyclomatic 16): VPhoneGuestShellChannel.handshake has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestShellChannel.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e495013617681429f623062007449e4cfadf069f6a69ae99a23b2777d90e10"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneCameraServer.setSource (cyclomatic 16): VPhoneCameraServer.setSource 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":"VPhoneExecutable/VPhoneVirtualization/UI/HostDevices/VPhoneCameraServer.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d9859cb8ec8457e2c021e5d3d991b58f6d98ca67c9653d0328a82193756f17"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneExternalDisplayWindowController.connect (cyclomatic 16): VPhoneExternalDisplayWindowController.connect 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneExternalDisplayWindowController.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"a915ea4be65bdfcc8b7156398a04b6a5c0d2a65fd3253c4554a5739338dc5e4b"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheGLESPrimitiveRestartPatcher.findEntry (cyclomatic 16): DyldSharedCacheGLESPrimitiveRestartPatcher.findEntry 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a380936beacd3911812e66265500b7429d0e3c1f870f3e04262e9646ff98f3d"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheMetalCacheReusePatcher.plan (cyclomatic 16): DyldSharedCacheMetalCacheReusePatcher.plan 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"51742ce8102101f8a89920c45eb4a5faf05d0cc88fd83dbc91efa9272673b870"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheMetalVertexFormatPatcher.findFormatSite (cyclomatic 16): DyldSharedCacheMetalVertexFormatPatcher.findFormatSite 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ffc8f7b61a11f5b62a90f51d4d8d9fe319f455b1dc8f66b7fc5f4919b19dc7"}},{"ruleId":"D1","level":"warning","message":{"text":"DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.findSites (cyclomatic 16): DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.findSites 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"736b5909cbb42105a69027b9a069b53accb20a2c78f437f4a0dcd2bbec61a4c4"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKExtraction.pseudoExtensions (cyclomatic 16): KDKExtraction.pseudoExtensions 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExtraction.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff312a996a5b6bece4c052894c9dfe4bf7cdf6aa66982c28ca6c022bf9dc1049"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKRecovery.recover (cyclomatic 16): KDKRecovery.recover 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecovery.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9edf03870a3c1ff5d76d14b49cdbc0ce5baef2e1803f82916f87fc3ca78631"}},{"ruleId":"D1","level":"warning","message":{"text":"KDKRecovery.calleeWrites (cyclomatic 16): KDKRecovery.calleeWrites 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryFlow.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabec790e6783a90fbda96050232abb41569cc90bbf1e36348221303983141fb"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareCacheLoaderPatcher.findStringReference (cyclomatic 16): CustomFirmwareCacheLoaderPatcher.findStringReference 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader\u002BStringAnchor.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4f473f6d9e9115ba9f038c09072f2fb89e506f8b91678ec4e4b79bbb4f152e"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareTVTPRO.patchCache (cyclomatic 16): CustomFirmwareTVTPRO.patchCache has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Dyld/CustomFirmwareTVTPRO.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"316e05ad634e465f3aa119c6970d7a1a0c39db8c1bc45e719e08bad564af001c"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.patchSpeakerProtectionGate (cyclomatic 16): CustomFirmwareVirtualAudio.patchSpeakerProtectionGate has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (CustomFirmwareVirtualAudio.patchVolumeModePrecondition) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b81311d104e4e04d7b778d359da42d888946b533bc48def0ef6df562cd06471"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.patchVolumeModePrecondition (cyclomatic 16): CustomFirmwareVirtualAudio.patchVolumeModePrecondition has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (CustomFirmwareVirtualAudio.patchSpeakerProtectionGate) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"402c19819e38bbaf12fa01bae3d639fcf7eb475355e789de42dcaa635a12f56c"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.patchDeviceStateNullGate (cyclomatic 16): CustomFirmwareVirtualAudio.patchDeviceStateNullGate 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4823a7a5bc4ec8d318401daf031c95a4a75b9b7544a7a791497262d3620af9"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.locate (cyclomatic 16): CustomFirmwareVirtualAudio.locate has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"899e62196e4306bf982fbf35dc2e481db1c87df8d5f6f8f389258407d2d03477"}},{"ruleId":"D1","level":"warning","message":{"text":"VPhoneHomeViewDistanceModel.receive (cyclomatic 16): VPhoneHomeViewDistanceModel.receive 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneHomeViewDistanceModel.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9336b9e7ce2409cac68b45ce61a1dd814699a6fa7de41e6786974b111615d24"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.applyGuestPatches (cognitive 518): VPhoneCustomFirmwareInstaller.applyGuestPatches has cognitive complexity 518 (threshold 15). Drivers by points: if/else 250 (403 pts), boolean chains 80, loops 18 (31 pts), ternaries 14 (31 pts), error handling 6 (8 pts), match/switch 1 (3 pts) (nesting depth added 187). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (VPhoneCustomFirmwareInstaller.applyGuestPatches::on) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3e5472a948e3d793b6368ba42b73f3fb3685fabb19d8922e93b694bf0f0dbc"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKRecovery.synthesizeSymbols (cognitive 176): KDKRecovery.synthesizeSymbols has cognitive complexity 176 (threshold 15). Drivers by points: if/else 38 (86 pts), loops 27 (54 pts), boolean chains 32, ternaries 2 (4 pts) (nesting depth added 77). Of this number, 149 points are the body\u0027s own statements and 27 belong to 6 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKLinkSymbols.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f5600bd7859380883550abcd4a48c7e135c28bc83d850351cff383746c2472"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.run (cognitive 172): VPhoneCustomFirmwareInstaller.run has cognitive complexity 172 (threshold 15). Drivers by points: if/else 83 (104 pts), boolean chains 55, ternaries 6 (8 pts), error handling 2 (3 pts), match/switch 2 (nesting depth added 24). 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e7676206d1a97d1ca744a111fbed0ccf43965ddcc9f5cfcde4eed30bb76cb4"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheSettingsRowsPatcher.discover (cognitive 133): DyldSharedCacheSettingsRowsPatcher.discover has cognitive complexity 133 (threshold 15). Drivers by points: if/else 32 (81 pts), boolean chains 34, loops 9 (18 pts) (nesting depth added 58). Of this number, 129 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheSettingsRowsPatcher.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d244ecfa34510a0949bea8a78eef51865efc459f9e364e194c78ebec04d571"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewedProviderPatch.swift.top-level code (cognitive 127): ReviewedProviderPatch.swift.top-level code has cognitive complexity 127 (threshold 15). Drivers by points: if/else 20 (72 pts), boolean chains 29, loops 7 (25 pts), error handling 1 (nesting depth added 70). 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":"Research/Guest/SettingsRows/ReviewedProviderPatch.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1c11e409316842f9582e0a82d9f12b43df14a75104ea66d2c00e01c764ee0d"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareParavirtGPUCompilerCache.resolve (cognitive 124): CustomFirmwareParavirtGPUCompilerCache.resolve has cognitive complexity 124 (threshold 15). Drivers by points: if/else 23 (54 pts), boolean chains 53, loops 8 (17 pts) (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"931e60de714b9e328dd1f5063ad78954a0753bf008da214dc1a177f7e8561eec"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.executeCore (cognitive 113): GuestAPI.executeCore has cognitive complexity 113 (threshold 15). Drivers by points: if/else 32 (74 pts), boolean chains 18, ternaries 5 (13 pts), error handling 3 (7 pts), match/switch 1 (nesting depth added 54). 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":"VPhoneDaemon/Daemon/GuestAPI.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50c734c10a3f4c7e01ce792fd3bd5a44063e9023f17a6362a016f88de0fff09"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineAppDelegate.startVirtualMachine (cognitive 112): VPhoneVirtualMachineAppDelegate.startVirtualMachine has cognitive complexity 112 (threshold 15). Drivers by points: if/else 43 (90 pts), boolean chains 14, error handling 1 (5 pts), loops 1 (3 pts) (nesting depth added 53). 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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1181546f469d86cb8c91d5d3f4abe81d721584680ba7bf3b98d873fc14d21ee5"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1.planCode (cognitive 111): CustomFirmwareArm64eX1.planCode has cognitive complexity 111 (threshold 15). Drivers by points: if/else 19 (57 pts), boolean chains 31, loops 8 (16 pts), ternaries 1 (4 pts), match/switch 1 (3 pts) (nesting depth added 51). Of this number, 105 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbb487eacea8bc6a1b28473754fddd3fb566a5e0cf2216e851dfd6eee891908"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.revealCSSCHandler (cognitive 109): KernelCustomFirmwarePatcher.revealCSSCHandler has cognitive complexity 109 (threshold 15). Drivers by points: boolean chains 82, if/else 18 (23 pts), loops 4 (nesting depth added 5). Of this number, 95 points are the body\u0027s own statements and 14 belong to 4 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchCSSC.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6494e9cc279f54e6ab2c2e0a60b0686e45d909c291efab77a3d9e9c46a145b"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKImageExport.adjustReferences (cognitive 98): KDKImageExport.adjustReferences has cognitive complexity 98 (threshold 15). Drivers by points: if/else 25 (62 pts), boolean chains 18, loops 6 (11 pts), ternaries 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 46). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportReferences.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa07edb6db95bfc4b11c960c77244945bf0637c53dd6b4f2c3bb0fc68172c657"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.patchExecutableRemap (cognitive 97): TXMDevPatcher.patchExecutableRemap has cognitive complexity 97 (threshold 15). Drivers by points: boolean chains 75, if/else 11 (16 pts), loops 5, ternaries 1 (nesting depth added 5). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec423a5f377a0443f9b0bfb457fc5a4562afe866c90802e03d066973ecf35e72"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheArm64eX1BootstrapPatcher.planImage (cognitive 96): DyldSharedCacheArm64eX1BootstrapPatcher.planImage has cognitive complexity 96 (threshold 15). Drivers by points: if/else 26 (67 pts), loops 4 (17 pts), boolean chains 12 (nesting depth added 54). Of this number, 93 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a0e776fee2183129e81464e07d0210989010af85abc389a1a451a47eee6440"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKImageExport.layout (cognitive 96): KDKImageExport.layout has cognitive complexity 96 (threshold 15). Drivers by points: if/else 17 (46 pts), boolean chains 20, loops 6 (14 pts), ternaries 4 (13 pts), match/switch 1 (3 pts) (nesting depth added 48). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKImageExport.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"955324af7251cdfbae8b2a23fd9378f0c1586521c0c85df76257f72d9ffd0282"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneHostAutomationServer.respond (cognitive 90): VPhoneHostAutomationServer.respond has cognitive complexity 90 (threshold 15). Drivers by points: if/else 23 (64 pts), boolean chains 16, error handling 2 (4 pts), ternaries 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 46). 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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneHostAutomationServer.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed2bdfb7f36f04551bebc2b41c48a173293fccb7ba2e051622f6b1991192faf"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1.authenticatedDispatch (cognitive 90): CustomFirmwareArm64eX1.authenticatedDispatch has cognitive complexity 90 (threshold 15). Drivers by points: boolean chains 56, if/else 19 (31 pts), loops 3 (nesting depth added 12). Of this number, 81 points are the body\u0027s own statements and 9 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"527d3000655254dbc0f5ef7add0fbcf2608ebe5e629864e043d9ae07d9d0642f"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.updateOTASystemApps (cognitive 89): GuestAPI.updateOTASystemApps has cognitive complexity 89 (threshold 15). Drivers by points: if/else 23 (65 pts), boolean chains 18, loops 3 (6 pts) (nesting depth added 45). Of this number, 84 points are the body\u0027s own statements and 5 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":"VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6f234522b812893e88560bc9f60024dd9708155264f780d07fbd701c8f073c"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheGLESDepthClipPatcher.findSite (cognitive 87): DyldSharedCacheGLESDepthClipPatcher.findSite has cognitive complexity 87 (threshold 15). Drivers by points: boolean chains 70, if/else 11 (14 pts), ternaries 1 (2 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESDepthClipPatcher.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb13989984578ad7eeb3e4f61822f40666fdab7dd675120e6b31525912f836d"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.setDevicePose (cognitive 86): GuestAPI.setDevicePose has cognitive complexity 86 (threshold 15). Drivers by points: if/else 25 (45 pts), ternaries 12 (25 pts), boolean chains 14, match/switch 1 (2 pts) (nesting depth added 34). Of this number, 76 points are the body\u0027s own statements and 10 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":"VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59508fe9229c46fccb2b2061384a77518583d167417d3f56915c49ac58ca3e6"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareTVTPRO.discover (cognitive 84): CustomFirmwareTVTPRO.discover has cognitive complexity 84 (threshold 15). Drivers by points: boolean chains 49, if/else 9 (23 pts), loops 6 (12 pts) (nesting depth added 20). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Dyld/CustomFirmwareTVTPRO.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ac2072dc89ae61328f936813fbbdc6991f911751b05f7522196262c839ba15"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1.entryPoints (cognitive 83): CustomFirmwareArm64eX1.entryPoints has cognitive complexity 83 (threshold 15). Drivers by points: if/else 19 (61 pts), loops 4 (14 pts), boolean chains 8 (nesting depth added 52). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"edda7fa217f7d5bf189dcda140ad175a9a18f591fa04517be1abc581e5115329"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.patchPreboot (cognitive 81): VPhoneCustomFirmwareInstaller.patchPreboot has cognitive complexity 81 (threshold 15). Drivers by points: if/else 30 (55 pts), boolean chains 22, ternaries 1 (3 pts), loops 1 (nesting depth added 27). Of this number, 77 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":4085}}}],"partialFingerprints":{"codehealthFindingId/v1":"31810a8b54d16806e98081b6da39619d8a836081bb3ac344440dc44503647c5a"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKRecovery.pointerReferences (cognitive 81): KDKRecovery.pointerReferences has cognitive complexity 81 (threshold 15). Drivers by points: if/else 14 (51 pts), loops 5 (14 pts), ternaries 2 (12 pts), boolean chains 4 (nesting depth added 56). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecovery.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"76454ad53fbf09b1d54f0f42cd9982296107530cf5fdad5b00034d0afeee6767"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneFirmwarePreparer.prepare (cognitive 79): VPhoneFirmwarePreparer.prepare has cognitive complexity 79 (threshold 15). Drivers by points: if/else 34 (44 pts), boolean chains 18, error handling 4 (13 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwarePreparer.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1bc727e743c62223a880005721cedfd7c0ef7810eda42f73e5edad66a54ca6"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareSettingsRows.providerEdits (cognitive 76): CustomFirmwareSettingsRows.providerEdits has cognitive complexity 76 (threshold 15). Drivers by points: if/else 12 (38 pts), boolean chains 26, loops 6 (12 pts) (nesting depth added 32). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9220feca94236dd7279e8a7a63635c635c9012c92a177e2c1f42b6017cc5561"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.pvIdentityHelpers (cognitive 74): KernelCustomFirmwarePatcher.pvIdentityHelpers has cognitive complexity 74 (threshold 15). Drivers by points: boolean chains 60, if/else 8 (11 pts), loops 3 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aad93b375cdcd069ab615b267e3cce7a3e6eb79b05e3cd2cf8570122aadf047"}},{"ruleId":"D2","level":"warning","message":{"text":"FirmwarePipeline.buildComponentList (cognitive 74): FirmwarePipeline.buildComponentList has cognitive complexity 74 (threshold 15). Drivers by points: ternaries 19 (32 pts), boolean chains 26, if/else 11 (13 pts), match/switch 3 (nesting depth added 15). Of this number, 71 points are the body\u0027s own statements and 3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineComponents.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cd291b273ce884db1be92417ed0bfc244dbc1be6ebe1f49f496889cdb7bbaa"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.patchPrecheckForcePass (cognitive 73): TXMDevPatcher.patchPrecheckForcePass has cognitive complexity 73 (threshold 15). Drivers by points: if/else 12 (32 pts), boolean chains 30, loops 5 (11 pts) (nesting depth added 26). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4cdd474e22596263bc9dab59b0d76d0b7a53c3c2148b8c1f838dff3f21af79"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheGLESPrimitiveRestartPatcher.stateFields (cognitive 71): DyldSharedCacheGLESPrimitiveRestartPatcher.stateFields has cognitive complexity 71 (threshold 15). Drivers by points: boolean chains 62, ternaries 5, if/else 4. Of this number, 63 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa31c497e2eb2b391728f250bcefa9b07f86447e36f17cb75cfd8ea6d44e433b"}},{"ruleId":"D2","level":"warning","message":{"text":"GameCenterStandalonePatch.swift.top-level code (cognitive 71): GameCenterStandalonePatch.swift.top-level code has cognitive complexity 71 (threshold 15). Drivers by points: if/else 17 (35 pts), boolean chains 27, loops 6 (9 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3a3466a1c889e6046f7f3cf76d76a3221d86ab7109f4b9f46ea9835d590952"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareSettingsRows.gameCenterEdits (cognitive 69): CustomFirmwareSettingsRows.gameCenterEdits has cognitive complexity 69 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 27, loops 5 (8 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71dc71a395bf2743cd2b365f0d3bda8860da18c279cd02bc29437ac20ebb27b"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheArm64eX1BootstrapPatcher.lower (cognitive 66): DyldSharedCacheArm64eX1BootstrapPatcher.lower has cognitive complexity 66 (threshold 15). Drivers by points: if/else 18 (47 pts), loops 7 (12 pts), boolean chains 4, error handling 2 (3 pts) (nesting depth added 35). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3433cd6a9efa1e49d44532609a7203331978f230335e40541a6ad77864055a2"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneOTAArchive.readZIPMembers (cognitive 65): VPhoneOTAArchive.readZIPMembers has cognitive complexity 65 (threshold 15). Drivers by points: if/else 17 (52 pts), loops 3 (6 pts), boolean chains 4, match/switch 1 (3 pts) (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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3978ba97cb9bc6420a1098469c91a6f0956b38bd3177d60142263099973edde1"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchPostValidationAdditional (cognitive 65): KernelCustomFirmwarePatcher.patchPostValidationAdditional has cognitive complexity 65 (threshold 15). Drivers by points: if/else 16 (46 pts), loops 5 (12 pts), boolean chains 7 (nesting depth added 37). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchPostValidation.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1ea8572f3809c03520807f595365d0fb1f5039afe661f327c8babe5a7f3444"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.patchPostValidationCMP (cognitive 65): KernelPatcher.patchPostValidationCMP has cognitive complexity 65 (threshold 15). Drivers by points: if/else 15 (47 pts), loops 5 (12 pts), boolean chains 6 (nesting depth added 39). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5f6491664bd4c694a43d831896ec1aec5570e086cd09b242da46b614320937"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKRecovery.track (cognitive 65): KDKRecovery.track has cognitive complexity 65 (threshold 15). Drivers by points: if/else 21 (46 pts), loops 3 (10 pts), boolean chains 9 (nesting depth added 32). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryFlow.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5feefbcc50ebbf1efbc38551fe337cecf7119c284d344466db8d048b937def72"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadCreationPipeline.perform (cognitive 63): VPhoneLaunchpadCreationPipeline.perform has cognitive complexity 63 (threshold 15). Drivers by points: if/else 21 (43 pts), ternaries 3 (7 pts), loops 3 (6 pts), boolean chains 4, error handling 1 (2 pts), match/switch 1 (nesting depth added 30). Of this number, 62 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadCreationPipeline.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"154a35e3cca8647dfbc639fef5f76a796ccb1cd53e83e40e8d4cba0a151ddcf1"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheMetalCacheReusePatcher.findSite (cognitive 63): DyldSharedCacheMetalCacheReusePatcher.findSite has cognitive complexity 63 (threshold 15). Drivers by points: boolean chains 51, if/else 6 (9 pts), ternaries 1 (2 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eee06f047efaf4d99ea3f1a738fc90e697b895e9afa1648ab0c123e47c138dd"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestIrisinInstaller.performInstall (cognitive 62): GuestIrisinInstaller.performInstall has cognitive complexity 62 (threshold 15). Drivers by points: if/else 23 (37 pts), boolean chains 9, loops 4 (7 pts), ternaries 4 (6 pts), error handling 2 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a086982cb9ab16022bcf83b00948140598a74f0053da1eebd7c04523bc6552"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestHyperTextHandler.channelRead (cognitive 60): GuestHyperTextHandler.channelRead has cognitive complexity 60 (threshold 15). Drivers by points: if/else 16 (34 pts), error handling 3 (11 pts), ternaries 2 (8 pts), boolean chains 6, match/switch 1 (nesting depth added 32). 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":"VPhoneDaemon/Daemon/GuestHyperTextHandler.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c15e964e28ca6cb7112c6e62056e6a19369fc2ece61fd3b1ee29d7f881763df"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcherBase.findPanic (cognitive 60): KernelPatcherBase.findPanic has cognitive complexity 60 (threshold 15). Drivers by points: if/else 14 (52 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 41). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"38840d161e80c4e10d03e8799bd572d79ea0afb4e4d1b89a907614091fe71bb6"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1.exceptionEntries (cognitive 60): CustomFirmwareArm64eX1.exceptionEntries has cognitive complexity 60 (threshold 15). Drivers by points: if/else 18 (38 pts), boolean chains 14, loops 5 (8 pts) (nesting depth added 23). Of this number, 48 points are the body\u0027s own statements and 12 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"989e1dd5b735b590393e970491dde4b49bcb26b43c638f55881e2d2d94381ba9"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheHomeViewEnvironmentPatcher.findSites (cognitive 59): DyldSharedCacheHomeViewEnvironmentPatcher.findSites has cognitive complexity 59 (threshold 15). Drivers by points: boolean chains 35, if/else 11 (23 pts), loops 1 (nesting depth added 12). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"62efa4012f1541bb95fa5325a1a62e40a69d94176e57ed61ef91e2e45721092b"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadControlRequest.parse (cognitive 57): VPhoneLaunchpadControlRequest.parse has cognitive complexity 57 (threshold 15). Drivers by points: if/else 26 (43 pts), boolean chains 12, loops 1, ternaries 1 (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":"VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadControl.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ffc922e5f07b02006b83e68c87a623ab49ae69b3b99d00927f8ef6b9b96db7"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.patchExcGuardBehavior (cognitive 57): KernelPatcher.patchExcGuardBehavior has cognitive complexity 57 (threshold 15). Drivers by points: if/else 16 (38 pts), boolean chains 12, loops 4 (6 pts), ternaries 1 (nesting depth added 24). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchExcGuard.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8503d96f32a90f7c1d82be54543f3fa1e00660cdf37097e806bd37f8d7f1df92"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.patchSelector24ForcePass (cognitive 57): TXMDevPatcher.patchSelector24ForcePass has cognitive complexity 57 (threshold 15). Drivers by points: if/else 11 (29 pts), boolean chains 17, loops 5 (11 pts) (nesting depth added 24). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a6f7e41b2eeba5b0f49970e1d3eee4bc4517a5c90b814a50f1dc93e08df69c"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheMetalCacheReusePatcher.verifyFlagLiveness (cognitive 57): DyldSharedCacheMetalCacheReusePatcher.verifyFlagLiveness has cognitive complexity 57 (threshold 15). Drivers by points: boolean chains 29, if/else 13 (25 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 13). Of this number, 42 points are the body\u0027s own statements and 15 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd24dd7828d7450fe77cb6a7792df25fef19bf08d7c3acc1d6cac9c3cc334e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findCsBypassGate (cognitive 56): KernelCustomFirmwarePatcher.findCsBypassGate has cognitive complexity 56 (threshold 15). Drivers by points: boolean chains 33, if/else 9 (18 pts), loops 3 (4 pts), ternaries 1 (nesting depth added 10). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"06000acf17869855563593fc6d1fe3d3bbedd9adfe60316f9fef759c3d0ce29c"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheTextRecognitionANEPatcher.findSite (cognitive 56): DyldSharedCacheTextRecognitionANEPatcher.findSite has cognitive complexity 56 (threshold 15). Drivers by points: boolean chains 39, if/else 6 (15 pts), loops 1 (2 pts) (nesting depth added 10). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheTextRecognitionANEPatcher.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"127ec3e8546add7d1a24da9628f2d32b4653328a4c05797677a3bd5433f6b891"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKImageExport.chainedFixups (cognitive 55): KDKImageExport.chainedFixups has cognitive complexity 55 (threshold 15). Drivers by points: if/else 12 (34 pts), loops 7 (11 pts), boolean chains 6, ternaries 2 (4 pts) (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportFixups.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfb1c8a6f72ab5e95a589be8ff4a591c9c6665048218b84ffd66963423312cf"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneOTAArchive.validatePayloadPaths (cognitive 54): VPhoneOTAArchive.validatePayloadPaths has cognitive complexity 54 (threshold 15). Drivers by points: if/else 14 (36 pts), loops 8 (12 pts), boolean chains 6 (nesting depth added 26). Of this number, 49 points are the body\u0027s own statements and 5 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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"f408196e2da37131631ef5b03184972f14add3b4a4f8b20180346ba67362cb68"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchArm64eX1Admission (cognitive 53): KernelCustomFirmwarePatcher.patchArm64eX1Admission has cognitive complexity 53 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 19, loops 6 (8 pts) (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchArm64eX1.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e3a27eeeec88ebd6414f89ee31bc7b4b32bba3b6c8dd4fb738fab97f85a6b8"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneGuestControl.probe (cognitive 53): VPhoneGuestControl.probe has cognitive complexity 53 (threshold 15). Drivers by points: if/else 16 (39 pts), boolean chains 11, error handling 2 (3 pts) (nesting depth added 24). 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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a067a55efad27a1cfba68f866d9d60a38f4ca91042d75f15df3764fb3ee5502"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKRecovery.ehFrameReferences (cognitive 52): KDKRecovery.ehFrameReferences has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (41 pts), loops 2 (5 pts), match/switch 1 (5 pts), boolean chains 1 (nesting depth added 32). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryMetadata.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f51308ec22f795fe628b89f536280666270e6a5d54bc94039fabe3663876678"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.scanRange (cognitive 51): KernelCustomFirmwarePatcher.scanRange has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 30, if/else 10 (20 pts), loops 1 (nesting depth added 10). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee4355f4e0e5f744e5ffe75a2f7c457584c1d0faa070212175d801dcacf0bde"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.containsDraw (cognitive 50): DyldSharedCacheGLESPointDrawPatcher.containsDraw has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 25, if/else 10 (22 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 13). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f0d1647260aec854cc7931166a6b4cde1ae385d0aac59903d967a1555994b1"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1.switchTable (cognitive 49): CustomFirmwareArm64eX1.switchTable has cognitive complexity 49 (threshold 15). Drivers by points: boolean chains 42, if/else 5 (6 pts), loops 1 (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e762ff791ac80729f4793cc19b1869b5667eb808765429543ba444ac1d7f690"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.paravirtTaskIdentity (cognitive 48): KernelCustomFirmwarePatcher.paravirtTaskIdentity has cognitive complexity 48 (threshold 15). Drivers by points: boolean chains 42, if/else 4 (5 pts), loops 1 (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcfc807b1095f1ada346b5350d083e53d56510e74530cdf5e7b94daa8e629ad"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.applyDyldPatches (cognitive 48): VPhoneCustomFirmwareInstaller.applyDyldPatches has cognitive complexity 48 (threshold 15). Drivers by points: error handling 6 (19 pts), if/else 10 (14 pts), boolean chains 8, loops 2 (4 pts), match/switch 1 (2 pts), ternaries 1 (nesting depth added 20). Of this number, 38 points are the body\u0027s own statements and 10 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd780731571c99fcbd55b0d7930918036e0a132d5e6bc9ea43dbda2f9ad48cf"}},{"ruleId":"D2","level":"warning","message":{"text":"MachOSymbolTargets.init (cognitive 47): MachOSymbolTargets.init has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (29 pts), boolean chains 13, loops 2 (4 pts), ternaries 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Binary/MachOSymbolTargets.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4167d8c9e3a1a6335a1dc2637fb6a8da2a654e6d83bf530fe488cbd9c3d385"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootCustomFirmwarePatcher.patchSkipGenerateNonce (cognitive 47): IBootCustomFirmwarePatcher.patchSkipGenerateNonce has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (32 pts), boolean chains 9, loops 4 (6 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"260d7f7cbcad028e6808cd73f4f7ac3e6ed08c97f415f5d87b71ffe2ef179dbd"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootPatcher.patchBootxPrecondition (cognitive 47): IBootPatcher.patchBootxPrecondition has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 9, loops 3 (6 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b480934410ca5bf636a47334f5c8ae6e9809c32e9d44dd970f9ce18531d6d90c"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.remapLibraryCompatibility (cognitive 47): TXMDevPatcher.remapLibraryCompatibility has cognitive complexity 47 (threshold 15). Drivers by points: boolean chains 39, if/else 4 (7 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ab8fddaa0ba92e40e5d35d30b0718189b4e5504fb89296841b4f74bd2f0051"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.remapMissingProfileCompatibility (cognitive 47): TXMDevPatcher.remapMissingProfileCompatibility has cognitive complexity 47 (threshold 15). Drivers by points: boolean chains 35, if/else 6 (11 pts), loops 1 (nesting depth added 5). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMMissingProfile.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"164cc8ee046f27e628d7c3ded574e2a0166fd43049520a5e8227acd80d7d3740"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneGuestShellChannel.readFrames (cognitive 47): VPhoneGuestShellChannel.readFrames has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (35 pts), loops 3 (7 pts), match/switch 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 25). 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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestShellChannel.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"337c979665c6ce16a9226d3420eeed5a3177462ce7e7fd01fd422403a7020840"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1Installation.update (cognitive 47): CustomFirmwareArm64eX1Installation.update has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 8, error handling 3 (7 pts), loops 2 (4 pts) (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1Installation.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7339445b00aad3c953fcc86f0cfd2b57eb5a67ea618f111a30f3c8ae8e438669"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadMachineInspector.patchesPage (cognitive 46): VPhoneLaunchpadMachineInspector.patchesPage has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (30 pts), ternaries 3 (11 pts), boolean chains 5 (nesting depth added 25). 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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineInspector.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6fa6caed5c53cc5a4a9d47dd2cdfbc784ff0da8623cbeca9b593c214f7a0b3"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhonePatchCatalogReport.text (cognitive 46): VPhonePatchCatalogReport.text has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (22 pts), ternaries 6 (15 pts), loops 3 (4 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchCatalogReport.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fd9ac613716c5a580ada76bc6386c5641d5378e1ef7eae1bff38369017b70e"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.sites (cognitive 46): DyldSharedCacheGLESPointDrawPatcher.sites has cognitive complexity 46 (threshold 15). Drivers by points: boolean chains 26, if/else 9 (19 pts), loops 1 (nesting depth added 10). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"587b77b1f55245bc4bc968498db2505a89a2e79a5cb3441c2c46b137589d27c2"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadMachineSettingsView.save (cognitive 45): VPhoneLaunchpadMachineSettingsView.save has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 12 (26 pts), if/else 10 (18 pts), loops 1 (nesting depth added 22). 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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineSheets.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80e1366e19dd1c19bf2fbd1e0081e1f8ded4b9b0caf87777094c389ed23267e"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVisionOSFramePacing.locate (cognitive 44): CustomFirmwareVisionOSFramePacing.locate has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 33, if/else 8 (10 pts), loops 1 (nesting depth added 2). Of this number, 40 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareVisionOSFramePacing.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"edaa223f7bcef57580a12bd8c99f6ed4fd68c295746e69369cc948b4b80eac57"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKImageExport.finalReferences (cognitive 44): KDKImageExport.finalReferences has cognitive complexity 44 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 12, ternaries 1 (4 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 19). Of this number, 41 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportReferences.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"279c5a40cfd7ae6100051e27092068c8b9aa20a51251be31d36a221cb5b2526c"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareRemotePairing.locate (cognitive 44): CustomFirmwareRemotePairing.locate has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 15, loops 4 (8 pts) (nesting depth added 13). Of this number, 39 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/RemotePairing/CustomFirmwareRemotePairing.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a5eeffb2baf21c90f95915f518a87cb00be0adce35e3a81416ead4ea94d95c"}},{"ruleId":"D2","level":"warning","message":{"text":"FirmwarePipeline.patchComponents (cognitive 43): FirmwarePipeline.patchComponents has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (30 pts), ternaries 2 (6 pts), boolean chains 4, error handling 1 (2 pts), loops 1 (nesting depth added 22). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipeline.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aff964747f50bd79024b75d98278d1aa168bd9617e7c254b8acf9015b8ba1b3"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheCodeSignature.reattest (cognitive 42): DyldSharedCacheCodeSignature.reattest has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (6 pts), ternaries 3 (6 pts), error handling 2 (4 pts) (nesting depth added 22). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheCodeSignature.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bba31f83c773ded4aecdf71a8c929c9d1894b88827af483c873425b5583fef"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhonePatchPlan.resolve (cognitive 42): VPhonePatchPlan.resolve has cognitive complexity 42 (threshold 15). Drivers by points: loops 15 (22 pts), if/else 8 (20 pts) (nesting depth added 19). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPlan.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8f7a702665bd421e32b3a78303407e93047bf7f5a97e1d1b5e67491445271d"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheIOS16SurfaceAdapter.prepare (cognitive 42): DyldSharedCacheIOS16SurfaceAdapter.prepare has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 24, if/else 9 (14 pts), loops 2, ternaries 2 (nesting depth added 5). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOS16SurfaceAdapter.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f0c0b13f84a10d47d6ab3eae0d6e305b083e3f2c87209d7b0bf22a897f5d3c"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKImageExport.importOrder (cognitive 42): KDKImageExport.importOrder has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 14, loops 3 (4 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportFixups.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19e5582dad4184d34442603415515abce6883deefe08113caabb591caa94c96"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareTextRecognitionModels.plan (cognitive 41): CustomFirmwareTextRecognitionModels.plan has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 6 (13 pts), boolean chains 7 (nesting depth added 19). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareTextRecognitionModels.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a14faba3ec654a8f71839dc9ccee7491416cdbb01f9bc1214a5b7aa2c68c0a"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachine.init (cognitive 41): VPhoneVirtualMachine.init has cognitive complexity 41 (threshold 15). Drivers by points: if/else 24 (28 pts), boolean chains 5, error handling 2 (4 pts), ternaries 3 (4 pts) (nesting depth added 7). 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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1024c32c3aecd93e1bc91da4884d125cafaad2c3c39a5d9be1abf2f74cd5cb"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.pvOwnerOffset (cognitive 40): KernelCustomFirmwarePatcher.pvOwnerOffset has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 31, if/else 2 (5 pts), loops 2 (3 pts), ternaries 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d3501ff491084fd5e94b016e46018b52eef99e6fd4cca039fe703d0b4bca99"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.patchHandleGetDevByRoleEntitlement (cognitive 40): KernelPatcher.patchHandleGetDevByRoleEntitlement has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 9, loops 3 (6 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"363d1b2d8ca03ceed82ed6d7bdfa2575a45bc6094eb91858f7a4f9f38c410d8b"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.init (cognitive 39): Image.init has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 4 (9 pts), boolean chains 6 (nesting depth added 19). 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":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a656a84069bdbd3cd1d57be6541e85fc11e0db2a126cf5e331b8fe4c194d0c"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.init (cognitive 39): Image.init has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 4 (9 pts), boolean chains 6 (nesting depth added 19). 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":"Research/Guest/SettingsRows/ReviewedProviderPatch.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5520e5cf9800141e58709cbc1e5ef8743d23cc29b81817ea5939226ba5d993e1"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadControlCommands.startCreation (cognitive 39): VPhoneLaunchpadControlCommands.startCreation has cognitive complexity 39 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 10, ternaries 1 (3 pts) (nesting depth added 8). Of this number, 36 points are the body\u0027s own statements and 3 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":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"590379a139d06308c73747c291e1798df0f9b2f1b4f7106dc805b6e1a7998de1"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.patchApfsVfsopMountCmp (cognitive 39): KernelPatcher.patchApfsVfsopMountCmp has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 4 (8 pts), boolean chains 7 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"313eb500562fbc40f0ff5a61b1031305fb36134ccc6babfd100ca6f59aa5d297"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.init (cognitive 39): Image.init has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 4 (9 pts), boolean chains 6 (nesting depth added 19). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"41709111dd6346b8c4046798843e283939905fe78ddca5dd9fbcfa320e6c7f27"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findWriteDowngradeGate (cognitive 38): KernelCustomFirmwarePatcher.findWriteDowngradeGate has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 22, if/else 7 (14 pts), loops 1, ternaries 1 (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb2204ce4e302d2b485474039990ead82ad6f4425df2f12e9d51098ae436318"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKRecovery.foreignMayReturn (cognitive 38): KDKRecovery.foreignMayReturn has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 7, loops 2 (3 pts) (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryFlow.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"de33aef6f3755bdc3b423b2b65ede269360847b1f5b42c9df7d1b94eb93cef97"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.executeDevice (cognitive 37): GuestAPI.executeDevice has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (30 pts), match/switch 2 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 18). 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":"VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0598b15040ee392088bc93ea328889ff18c1ce310e7f15c07b7ed2585b1c66"}},{"ruleId":"D2","level":"warning","message":{"text":"Walk.compare (cognitive 37): Walk.compare has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 3 (6 pts), boolean chains 5 (nesting depth added 18). Of this number, 29 points are the body\u0027s own statements and 8 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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"77dfe4b263a612fd5532df46bc4f1b7f40013081ded808737f34899c7b207b95"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadLogTail.follow (cognitive 37): VPhoneLaunchpadLogTail.follow has cognitive complexity 37 (threshold 15). Drivers by points: if/else 6 (19 pts), boolean chains 10, loops 2 (4 pts), ternaries 1 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Application/VPhoneLaunchpadTerminal.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"143b0dc35fa6fdc5f7adfa4c1411153e73aca77613f80ff724d94023d0ab8e80"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findFilterChecks (cognitive 37): KernelCustomFirmwarePatcher.findFilterChecks has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (21 pts), boolean chains 12, loops 2 (3 pts), ternaries 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchSyscallFilterOff.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc45ef4591fc029b1d9fcde783345362224c366778b596c4f972402ab4d5b2f6"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.x1ExecPACGate (cognitive 37): KernelCustomFirmwarePatcher.x1ExecPACGate has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 35, if/else 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchArm64eX1.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"144084245091e67846a97d22bb148a4972b01e37ce30ea42ea8d37aaaa237971"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.collectTaskConversionCandidates (cognitive 37): KernelCustomFirmwarePatcher.collectTaskConversionCandidates has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 12, loops 1 (nesting depth added 12). Of this number, 34 points are the body\u0027s own statements and 3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskConversion.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72bce06fecab49c6bdd6916b80852f46351c52d22b2284abbde1b64ba11cd11"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.parseKextTextRange (cognitive 37): KernelPatcher.parseKextTextRange has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (31 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 24). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"991a4822d259f1769136a0a085c31b503b317033c4d496422f551009c3c97ab2"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineCreateCommand.validate (cognitive 37): VPhoneVirtualMachineCreateCommand.validate has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 12 (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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateCommand.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89b86174e59a663c9d406e3f78e1da57f990be15e7c4fa327057d724f493df3"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneMachOImage.init (cognitive 37): VPhoneMachOImage.init has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 6, ternaries 1 (3 pts), match/switch 1 (2 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/MachO/VPhoneMachOImage.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51192dd7483056c9d75d764c849a4014d4c8766d77413edc05d2ccd5ae7804b"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKRecovery.recover (cognitive 37): KDKRecovery.recover has cognitive complexity 37 (threshold 15). Drivers by points: if/else 6 (25 pts), boolean chains 6, loops 3 (6 pts) (nesting depth added 22). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecovery.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"00124279808634ffa8bb62db315b43e4759223d30f37e837ace412aaa394a593"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareRemotePairing.rejectsLocalConnection (cognitive 37): CustomFirmwareRemotePairing.rejectsLocalConnection has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 29, if/else 6 (7 pts), ternaries 1 (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/RemotePairing/CustomFirmwareRemotePairing.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa07f85290c5cb5df9283922c517c0938e460058f996ea463b28b2700ed3ee17"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootPatcher.patchSizeVerifyByShape (cognitive 36): IBootPatcher.patchSizeVerifyByShape has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 12, loops 3 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchRootfsBypass.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"581ea6b797ff13ec08aa530ad68804698ef465302d198d65baea62c7edb99dc0"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.patchSelector42_29Shellcode (cognitive 36): TXMDevPatcher.patchSelector42_29Shellcode has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 11, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"af63491e60bb202d6086a18d856a532db458d32a1b5dfbf10a1d903deeaa99cb"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKInstruction.writes (cognitive 36): KDKInstruction.writes has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 20, if/else 9 (16 pts) (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKInstruction.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5e63cb3e3a0f2cd9454b0192ce84c6a4b1c59a585e5bdaf1844d58dcc610a6"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadDiskExtents.map (cognitive 35): VPhoneLaunchpadDiskExtents.map has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 5, loops 2 (3 pts) (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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskExtents.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"12dbb22ba55ea3b09dcda373eef68c6fbd30adab1e8b0d8bc8d49a21d39fb1d8"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findForkEntryLink (cognitive 35): KernelCustomFirmwarePatcher.findForkEntryLink has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 24, if/else 7 (9 pts), loops 2 (nesting depth added 2). Of this number, 31 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d85ec79f48cbc5ddcb06429905127e532edbbeb53901b58ff14600c2772ab9a"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.x1ExecSharedRegionGate (cognitive 35): KernelCustomFirmwarePatcher.x1ExecSharedRegionGate has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 29, if/else 2 (4 pts), loops 1, ternaries 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchArm64eX1.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43d933a4e4b1f2d6d53bc010fdc66783093c37bac36140d70cde34ff8ec77d2"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineCreateBulkCommand.run (cognitive 35): VPhoneVirtualMachineCreateBulkCommand.run has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (5 pts), error handling 2 (4 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateBulkCommand.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b22b665c1325cebdd86eb0c26bca73dad1ff4673d494f6b0bdaa6e92747360"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.terminateSite (cognitive 35): CustomFirmwareVirtualAudio.terminateSite has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 14, loops 3, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2192}}}],"partialFingerprints":{"codehealthFindingId/v1":"09be1358e1aeee55fb4c9f81c8eb3f0b54f7be2113e00e22da52cbe42d19bfb2"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadDiskMeter.measure (cognitive 34): VPhoneLaunchpadDiskMeter.measure has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (20 pts), match/switch 2 (7 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 19). 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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskUsage.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ce3aa813be4d71017ea1252ef9b6a6dfa521f504f589a2d42a87cef3c9189c"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootPatcher.enumerateHashGetters (cognitive 34): IBootPatcher.enumerateHashGetters has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 19). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ec804085402e151ce6c98c566925b767937f417361593a5fd275241a2f20ab"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.tproGuardFlagVA (cognitive 34): KernelCustomFirmwarePatcher.tproGuardFlagVA has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 30, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchTproOff.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fc1053c15026097c3b28aecc33c771ef7bd5e081b1a5c4980dd6b64abe8362"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcherBase.parseKextTextExecRange (cognitive 34): KernelPatcherBase.parseKextTextExecRange has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (29 pts), loops 2 (5 pts) (nesting depth added 23). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2cda57ddde6d1b91ef2191172955369c14f8c81698560abab26ce8f7ab9ef3"}},{"ruleId":"D2","level":"warning","message":{"text":"FirmwarePipeline.findFile (cognitive 34): FirmwarePipeline.findFile has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 3 (9 pts), boolean chains 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineDiscovery.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb32b2c53011e7f970b6feacd83b32b2e867216c18c453efd632d1a16be5f8b"}},{"ruleId":"D2","level":"warning","message":{"text":"SPTMSecondaryCPUPatcher.tunableBranches (cognitive 34): SPTMSecondaryCPUPatcher.tunableBranches has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 22, if/else 6 (11 pts), loops 1 (nesting depth added 5). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/SPTM/SPTMSecondaryCPUPatcher.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ae9f711c3450137e5ac1e4a91cf77052d4cc5b35c7b091567c82d9f2eb9b90"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhonePCCGPURecovery.stageFromSystemDisk (cognitive 34): VPhonePCCGPURecovery.stageFromSystemDisk has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 6, error handling 3 (4 pts), ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhonePCCGPURecovery.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d243c829b6bc8d9e2b37698dc72aec65a62431164e3a256943e4f04357293da"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneMachOFile.init (cognitive 34): VPhoneMachOFile.init has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 4, loops 1 (2 pts), match/switch 1, ternaries 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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/MachO/VPhoneMachOImage.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b801a2a4e8f7a845efa0a3e9e1a0025c3474d207a562616893db44c1051392"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheMachPortsPatcher.prepare (cognitive 34): DyldSharedCacheMachPortsPatcher.prepare has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 18, if/else 8 (9 pts), loops 4, ternaries 3 (nesting depth added 1). Of this number, 32 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMachPortsPatcher.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe913568253b00e4e8846060e14016ac3f49ec8c47133262d8672d80b137abbe"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCrashReportContent.reindent (cognitive 34): VPhoneCrashReportContent.reindent has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 6, loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 14). Of this number, 31 points are the body\u0027s own statements and 3 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/CrashLogs/VPhoneCrashReportContent.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba07cb12c80c71720ebe92c6f86b4c843db2dfc79f2a4c5e7b51b6816e6aa0df"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneRemoteZip.parseCentralDirectory (cognitive 33): VPhoneRemoteZip.parseCentralDirectory has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (24 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 19). 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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneRemoteZip.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fb1d0ae4a13b603a3d30ebec1a5730938aaf2cd889f0fd0a1a969be7d24350"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchThreadSetStateEntitlementFlag (cognitive 33): KernelCustomFirmwarePatcher.patchThreadSetStateEntitlementFlag has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 15, if/else 7 (14 pts), loops 3 (4 pts) (nesting depth added 8). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchThreadSetState.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efe5d6a394c181b4734dd9a01e1e043f67cd08144a05fba99a8f71147e0e7a3"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCollectionStubCalls.directCalls (cognitive 33): KernelCollectionStubCalls.directCalls has cognitive complexity 33 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 5 (9 pts), boolean chains 5, ternaries 1 (5 pts) (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCollectionStubCalls.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef2b0c251b4eab0d28982e5e491708e7d2c0e77b469da6d2e0c26544d59025c"}},{"ruleId":"D2","level":"warning","message":{"text":"SEPResearchBoardPatcher.dispatchTable (cognitive 33): SEPResearchBoardPatcher.dispatchTable has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 27, if/else 3 (5 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/SEP/SEPResearchBoardPatcher.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"53492a471069c59fc72cf1479cf7aacf800ba6009f5c0bd927abfba9606101b9"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheGLESDepthClipPatcher.patch (cognitive 33): DyldSharedCacheGLESDepthClipPatcher.patch has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 10, loops 1 (2 pts), ternaries 2 (nesting depth added 6). Of this number, 28 points are the body\u0027s own statements and 5 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, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESDepthClipPatcher.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa996c9210af2a7df18c426d5895024e9318f6bc6b241cbd951fabe9adbeccc"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKRecovery.metadataReferences (cognitive 33): KDKRecovery.metadataReferences has cognitive complexity 33 (threshold 15). Drivers by points: loops 6 (16 pts), if/else 5 (9 pts), boolean chains 4, ternaries 1 (4 pts) (nesting depth added 17). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryMetadata.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfeb98258a8d53ae98d12401c0652946f7a3d273436069fa314df57a85a3673"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestIrisinInstaller.patchRootHideDaemon (cognitive 32): GuestIrisinInstaller.patchRootHideDaemon has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 7). Of this number, 28 points are the body\u0027s own statements and 4 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":"VPhoneDaemon/Daemon/Bootstrap/RootHide/GuestIrisinInstaller\u002BRootHideDaemons.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c7287d044fa2c2396bbc85069c23785945925c65aa1fa593f8649e815dd437"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneTemplateSlimmingRequest.resolve (cognitive 32): VPhoneTemplateSlimmingRequest.resolve has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 6, ternaries 5, error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSlimmingRequest.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"797d6081ed1227595d3cb18d2261587bfdbd1cdbf05639435cb64e962b34b3d7"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneNetworking.merge (cognitive 32): VPhoneNetworking.merge has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 6 (9 pts), boolean chains 4, loops 2, match/switch 2 (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":"VPhoneKit/VPhoneCoreKit/Support/VPhoneNetworking.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"945f3c21858d9de57ca0aa237e87aec844dd1af5975ad0441aa6a1e087fada73"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.matchPersonaHelper (cognitive 32): KernelCustomFirmwarePatcher.matchPersonaHelper has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 10, loops 1, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSpawnPersona.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"db04d787e154b3b4cd23f68acccd178bb57074fbe0f953755a819606413aa44b"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.matchUpstreamTaskForPidGate (cognitive 32): KernelCustomFirmwarePatcher.matchUpstreamTaskForPidGate has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 17, if/else 11 (14 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"494f743be2d2c0273ef4724b5f707438249ba23be04a800804b16e580457f7e1"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCacheKDK.mix (cognitive 32): KernelCacheKDK.mix has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 5 (8 pts), boolean chains 7, ternaries 1 (nesting depth added 9). Of this number, 31 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCacheKDK.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cc536a397e7a647969840b4d518cf8368fedfead6bf3b708c4cdd4c57fe72b"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.epilogueEntry (cognitive 32): CustomFirmwareVirtualAudio.epilogueEntry has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 25, if/else 5 (6 pts), loops 1 (nesting depth added 1). Of this number, 31 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2606}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f1056db54bd14aaea53e91a4e2cb1b8cd409db093cf97dbef4bb41a2ced5cb"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.top-level code (cognitive 32): main.swift.top-level code has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (2 pts), error handling 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":"VPhoneLaunchpad/VPhoneLaunchpadCLI/main.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5280936c515829b8277e65adbb0f6dc37765076c218efa5f6a928215324e741"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareDaemons.visionOSEnvironmentFeatures (cognitive 31): CustomFirmwareDaemons.visionOSEnvironmentFeatures has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 9, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemonsLaunchd.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6741285d86f62a932d4c20e84cfa68384cd5bf4b0d7d75ffec039cc810afe979"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchCredLabelUpdateExecve (cognitive 31): KernelCustomFirmwarePatcher.patchCredLabelUpdateExecve has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (22 pts), loops 3 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dc8657f00083f3249755eb63db29b01b9fabc5ff6635de5a71294aee66652a"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcherBase.findProcSecurityPolicy (cognitive 31): KernelCustomFirmwarePatcherBase.findProcSecurityPolicy has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 5 (10 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88305387647dc295f49c7a6a8f5c2a6afdb7feadcc3f5b03a9d396beb83fef9"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.patchDeveloperModeBypass (cognitive 31): TXMDevPatcher.patchDeveloperModeBypass has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 12, loops 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20fb4f75acc61102ff7c3a68e5bed0d70dd59e08d303ce7c6e57479b4595d93"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineWindowController.showWindow (cognitive 31): VPhoneVirtualMachineWindowController.showWindow has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 4, ternaries 3 (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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c84c39cba2a828be9b95d38fbdd07a4694cd57407176581884f4ff174d3b65"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKRecovery.mayReturn (cognitive 31): KDKRecovery.mayReturn has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 4, loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryFlow.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"952d57271ce73272e42130afba2e9ffc01864af0107e590a9b11fa98375fa310"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareSeputil.references (cognitive 31): CustomFirmwareSeputil.references has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 20, if/else 4 (8 pts), loops 2 (3 pts) (nesting depth added 5). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Sep/CustomFirmwareSeputil.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae37508e52d792ec85095bb181911587325ecbafee9610bad3cbd6de484c24e8"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.locateSPGate (cognitive 31): CustomFirmwareVirtualAudio.locateSPGate has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 18, if/else 7 (12 pts), loops 1 (nesting depth added 5). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"82979c068e7f78e4438b22c6fd270d9cb2918819a2438270d4d1a8d436665c6c"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.locateVolumeGate (cognitive 31): CustomFirmwareVirtualAudio.locateVolumeGate has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 19, if/else 7 (11 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1f79231e0ef79649013f61539e916a4573b7ed51ae23d49a3cab0df20f9d35"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneOTAArchive.stageUserland (cognitive 30): VPhoneOTAArchive.stageUserland has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24 (27 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"6857fff2ce6b80570ddfd06aced5828a318cdf64520c199d25ff1a53ce72032d"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootPatcher.patchImage4Callback (cognitive 30): IBootPatcher.patchImage4Callback has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 5, loops 2 (3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchImage4Callback.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f285ba4507ef76a556a3b0121003d114736a8729378e0aafef17a2b94de597"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.buildForkInheritCave (cognitive 30): KernelCustomFirmwarePatcher.buildForkInheritCave has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (10 pts), loops 6, ternaries 1 (nesting depth added 2). Of this number, 27 points are the body\u0027s own statements and 3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc979162a72473523ad1d21cc32ca914483596ec2676b7882306dfe32c386e83"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findProcPidinfoGuards (cognitive 30): KernelCustomFirmwarePatcher.findProcPidinfoGuards has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 11, loops 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchProcPidinfo.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f3679f25aa7ebb388ea021ffd455886f7e8ccb7120ab583b14a24a5571c98a"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.runKernelUpdate (cognitive 30): VPhoneCustomFirmwareInstaller.runKernelUpdate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 11, error handling 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7cd32a670733e2dadedc8a6a2916d872636563070206ae5d3233673a8f1b37"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKRecovery.followJumpTable (cognitive 30): KDKRecovery.followJumpTable has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 15, if/else 11 (13 pts), loops 1, ternaries 1 (nesting depth added 2). Of this number, 28 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryFlow.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb733672fe27761eacd5c935d35e3a3c02caf532277bbdd07f92eb251db8ab96"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareWatchAudioBudget.discover (cognitive 30): CustomFirmwareWatchAudioBudget.discover has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 14, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Dyld/CustomFirmwareWatchAudioBudget.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ed8aaf4f5d38032bd1f98d383a06d67725a45a78bfbc258646f3697098bdfd"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.isCAExceptionThrowBlock (cognitive 30): CustomFirmwareVirtualAudio.isCAExceptionThrowBlock has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 13, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2070}}}],"partialFingerprints":{"codehealthFindingId/v1":"9117eb094388ddc8472057544f347ef41b2cc9001b2da726be064598ef54b6df"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneArchiveExtractor.unpack (cognitive 29): VPhoneArchiveExtractor.unpack has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 4, loops 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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveExtractor.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e4f193446d0f13bec720cea30fd77b9feef1b0cb21001d1e75c292580ea82f"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneAPFSSnapshot.rename (cognitive 29): VPhoneAPFSSnapshot.rename has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 5 (9 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneAPFSSnapshot.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a1fbfe796be770cc3cfe8c3743039fe17ca0219c1c66838fda081887725b4a"}},{"ruleId":"D2","level":"warning","message":{"text":"CryptexFilesystemPatcher.mergeFilesystems (cognitive 29): CryptexFilesystemPatcher.mergeFilesystems has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (27 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcher.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51c6112ffd400771c137952dcf268b93f517f02386a6ffcc07e1b692aa72b80"}},{"ruleId":"D2","level":"warning","message":{"text":"DeviceTreePatcher.applyGuestEdits (cognitive 29): DeviceTreePatcher.applyGuestEdits has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 2 (4 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ac528402dd8f64b265f1e495c1c2ca354661edbcfa2cb44f84f6c205088c9b"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchAmfiExecveKillPath (cognitive 29): KernelCustomFirmwarePatcher.patchAmfiExecveKillPath has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 3, loops 2 (3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiExecve.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"3610a9ab5c375f1608730262d1ddb66672e2143c8c7e09b72f204d2f06c9fe6f"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.tvTPROPagersDefault (cognitive 29): KernelCustomFirmwarePatcher.tvTPROPagersDefault has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 16, if/else 7 (10 pts), ternaries 2, loops 1 (nesting depth added 3). Of this number, 24 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchTVTPROPagers.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3363c682b787016fa4860dcb9f9b738bc8c48e5b7638af3db1d5a7f175ba9d"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.patchBsdInitRootvp (cognitive 29): KernelPatcher.patchBsdInitRootvp has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 3 (5 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Startup/KernelPatchBsdInit.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29b498372878b0e117989ee53fe2e138dd4ae0a58838685592b5df587302693"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneFirmwareOTACommand.complete (cognitive 29): VPhoneFirmwareOTACommand.complete has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 4, loops 2 (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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareOTACommand.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cde89f921777083c0aba3789fbff38d3e53f54a78ea6cc3de2a5926ece539d4"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheHypervisorVirtualMachinePatcher.patch (cognitive 29): DyldSharedCacheHypervisorVirtualMachinePatcher.patch has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 3 (5 pts), error handling 1 (2 pts), loops 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa0ed57c1abd3cc232e5104f9346f620e6a09e682e8d9a75e77d8e875e28b17"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.findSites (cognitive 29): DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.findSites has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 6, loops 2 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8daefe5a016f72cfb5b79aa400fccd5f4cb52998fb4291b04e036d5a8cfd74"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareWatchDog.locateSites (cognitive 29): CustomFirmwareWatchDog.locateSites has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 9, loops 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDogDiscovery.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df1437ed00bf017a4b4a2c61b0e5d85f9f50d611896d96ffb5f58333e97b001"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneTreeFingerprint.capture (cognitive 28): VPhoneTreeFingerprint.capture has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 4 (8 pts), boolean chains 4, loops 4 (nesting depth added 10). Of this number, 23 points are the body\u0027s own statements and 5 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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneTreeFingerprint.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8158943499e1ff458d56b959c3364d151f084546ca7ae224b7fb4195f781f4ac"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneTreeFingerprint.differences (cognitive 28): VPhoneTreeFingerprint.differences has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 3, boolean chains 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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneTreeFingerprint.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"04320ea0995ea1dfb70a1e1e0fbf98650ab079aea34fe8fd3657f566361d5532"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudioGraphConfigurations.useRawSpeakerChain (cognitive 28): CustomFirmwareVirtualAudioGraphConfigurations.useRawSpeakerChain has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 11). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioGraphConfigurations.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5c92857262ef013173d9d20328534e5116cd0abe66cc372aea9dfa231d695f"}},{"ruleId":"D2","level":"warning","message":{"text":"DeviceTreePatcher.applyPatches (cognitive 28): DeviceTreePatcher.applyPatches has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4, match/switch 2 (4 pts), loops 2 (3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba8f5cefc78de7d7c45962f12eb20c1a3c2ddabd9f792374ba644b48863083d"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findUpstreamCleanupCall (cognitive 28): KernelCustomFirmwarePatcher.findUpstreamCleanupCall has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 7, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDounmount.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e69608e422b5bc7f23b81d62d5dd705a488d419094c2453e540e57dba003d9c"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.findSandboxOpsTable (cognitive 28): KernelPatcher.findSandboxOpsTable has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 4, loops 2 (3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"57363c2466fb3648c06bdda0d37af6eacd8fa7a4833bb82f89ad58364fc4c6e5"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.findUdfCave (cognitive 28): TXMDevPatcher.findUdfCave has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (16 pts), ternaries 2 (7 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 17). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dad5a69a1e2928c937bde7b654c6faf1d5f3d3e20156aaef29a1e24c98959cd"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneHTTPTransaction.run (cognitive 28): VPhoneHTTPTransaction.run has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 4 (6 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c713287039d6b976d4ef0cfc305584cb820136e653475ec929a0357fd0b5d35"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1.lowerUniversal (cognitive 28): CustomFirmwareArm64eX1.lowerUniversal has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 9, ternaries 3 (5 pts), loops 2 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"2335eee4b8f670a554babf6148b9a42e1d6b57913e30dcb968317a89d19a980a"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKExtraction.extract (cognitive 28): KDKExtraction.extract has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 7, loops 2 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExtraction.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3870a40768bfca89c7f86f73a059a2d20c3c49e8c5955bc87425f68dc7bddf"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.gatedDeviceStateSite (cognitive 28): CustomFirmwareVirtualAudio.gatedDeviceStateSite has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 23, if/else 5. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee11423a45c62aa74db0b23f21135fc585f495672a4e7530ce4fbc0332c665a9"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneHomePodDefaultsModel.change (cognitive 28): VPhoneHomePodDefaultsModel.change has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 5 (13 pts), if/else 4 (11 pts), loops 1 (2 pts), boolean chains 1, error handling 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneHomePodDefaultsModel.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"7908f0786972d16e589f7a02a4bc719f4cc35f4849e683f5ffa2b90b8c8e1a22"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneAttitudeLinearScale.body (cognitive 28): VPhoneAttitudeLinearScale.body has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 14 (22 pts), if/else 3 (5 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneAttitudeDial.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fae3ee5ebab69636eb73b9d73b7e664b411d1b8d75b57b3b98d978bf150bf4"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.executeAttitude (cognitive 27): GuestAPI.executeAttitude has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 4, ternaries 1 (4 pts), loops 1 (3 pts) (nesting depth added 15). 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":"VPhoneDaemon/Daemon/GuestAPI\u002BAttitude.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2423cfafc29e90529547e8463580514e4247260dc883f4d12ac7690604096f"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestIrisinInstaller.ensureRootHideMachOLinks (cognitive 27): GuestIrisinInstaller.ensureRootHideMachOLinks has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 2 (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":"VPhoneDaemon/Daemon/Bootstrap/RootHide/GuestIrisinInstaller\u002BRootHide.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"267547b56074d8ab0e1a201af069d9548b52bc922a073f3b84b228718e52f208"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneOTAArchive.resolve (cognitive 27): VPhoneOTAArchive.resolve has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 6, ternaries 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f69c233bb42e75369eaa984ea3e6468d1f0c69907eed742269621fcc4659910"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudioMicrophoneChains.patch (cognitive 27): CustomFirmwareVirtualAudioMicrophoneChains.patch has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (23 pts), loops 2 (3 pts), error handling 1 (nesting depth added 9). Of this number, 25 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioMicrophoneChains.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8826b4b0d2381c64e64df92bf929f1471634359439de7fe1b6e24b874cf811e4"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchAmfiCdhashInTrustcache (cognitive 27): KernelCustomFirmwarePatcher.patchAmfiCdhashInTrustcache has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 3 (5 pts), boolean chains 2 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiTrustcache.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca64ca4e07cb34aa74a4f86d77264987f993ddcc8e800b4de05202178e2f629"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findSandboxOpsTable (cognitive 27): KernelCustomFirmwarePatcher.findSandboxOpsTable has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd914ef07c0a36f1c02f8837422c8169dc88bca4376ccaf62d46b24ab0db8a6"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.x1GradeTail (cognitive 27): KernelCustomFirmwarePatcher.x1GradeTail has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 26, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchArm64eX1.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29afb79b08cb9fac9a033344e704a4378fc1af6bbfdf573d5061fb6afaff9b8"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.remapCategory (cognitive 27): TXMDevPatcher.remapCategory has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 11, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b841f40b99bc9ec6341352e3bc5bebca61a61b8071820812e0951509fc60f40f"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1Audit.containsX1 (cognitive 27): CustomFirmwareArm64eX1Audit.containsX1 has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 9, ternaries 3 (5 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1Audit.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"251127e9a16a155b6669ef8cb410b5dcd1715b01832ff6476c0e107604fdffc3"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.patch (cognitive 27): DyldSharedCacheGLESPointDrawPatcher.patch has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 7, ternaries 4 (7 pts), loops 3 (5 pts) (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 7 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"63deb5c2cb2fd0b4f63f3dbce50ffe7116bfee3e06d49202329c216e68b6e7eb"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.pipelineFields (cognitive 27): DyldSharedCacheGLESPointDrawPatcher.pipelineFields has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 23, if/else 2 (3 pts), loops 1 (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"00541cbb4790eb78890b2430956273b28de9973235a0398d6270717567344141"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestStaticNames.set (cognitive 26): GuestStaticNames.set has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (9 pts), loops 3 (4 pts), ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestStaticNames.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e42fe37adb93a7a5af9022e4adae9458aa65a88b90d0b0e658f8d646fc37b2f"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareDaemons.visionOSLegacyUXMFeatures (cognitive 26): CustomFirmwareDaemons.visionOSLegacyUXMFeatures has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 10). Of this number, 19 points are the body\u0027s own statements and 7 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemonsLaunchd.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba20dbe9d6f423ff0c71a490c0739f5441d0c8450b166c84fae1ed5d24916816"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudioMicrophoneChains.neutralizeGain (cognitive 26): CustomFirmwareVirtualAudioMicrophoneChains.neutralizeGain has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioMicrophoneChains.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"441feed6e16d0bb10d895537e0ea1d0e9e173d54c4bebee7bf70ee6e4cdb0571"}},{"ruleId":"D2","level":"warning","message":{"text":"DeviceTreePatcher.guestEdits (cognitive 26): DeviceTreePatcher.guestEdits has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 7, loops 4 (5 pts) (nesting depth added 4). Of this number, 24 points are the body\u0027s own statements and 2 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, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fc5a6c68c6f9ee0b178a0b27dfb403176aee001cf78bdf2f1ec542f3892dcd"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootPatcher.findBootArgsAdrp (cognitive 26): IBootPatcher.findBootArgsAdrp has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 3, loops 2 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootArgs.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ffc900dbdd883f8146ee1112f72fe2a6d3911cb9b9f8aec5d608e64b0065c3"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findUnixSyscallCheckCalls (cognitive 26): KernelCustomFirmwarePatcher.findUnixSyscallCheckCalls has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 14, if/else 2 (6 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 7). Of this number, 23 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchSyscallFilterOff.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"afebc1ac6835338052253285955d33eb17c254dbfb79d1700c4f5f9bccfb3d32"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findSysentTable (cognitive 26): KernelCustomFirmwarePatcher.findSysentTable has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (8 pts), boolean chains 6 (nesting depth added 9). Of this number, 20 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchKcall10.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9eb7b4d26eccad99c928772406b7069167510c1e627504475048a19999de96"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.patchPostValidationNOP (cognitive 26): KernelPatcher.patchPostValidationNOP has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 6, loops 4 (6 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b90194dff4f922d5e010509faaa43fd24a37ccf76fa31c2be20b3442a5b61b"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.applyGuestPatches::on (cognitive 26): VPhoneCustomFirmwareInstaller.applyGuestPatches::on has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 22, 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. This shape REPEATS in the file: one other method here (VPhoneCustomFirmwareInstaller.applyGuestPatches) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"690a01c6960062b1aac816cd2d5bd8de2a092e967d5b9ab4fe729372b5bb589e"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1.lower (cognitive 26): CustomFirmwareArm64eX1.lower has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 15, if/else 8 (9 pts), loops 2 (nesting depth added 1). Of this number, 20 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d140d9c27da9fb960ada3d49561f2c4d40928a937d5905d906048c9a9374a4"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheXPCLWCRPatcher.apply (cognitive 26): DyldSharedCacheXPCLWCRPatcher.apply has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 4 (5 pts), ternaries 2 (3 pts), boolean chains 2 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0f14004aeedbcc25da5b6a0d797adb0e0606e9249a8ea9340b26d2884438a8"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheXPCLWCRPatcher.findConsistencyCheck (cognitive 26): DyldSharedCacheXPCLWCRPatcher.findConsistencyCheck has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 9, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2392406803d1c2f049ff22cc7ba319e06bf37dbb3aa5fea4bbce02a871e869"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKImageExport.rebuildLinkedit (cognitive 26): KDKImageExport.rebuildLinkedit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 6 (7 pts), boolean chains 4 (nesting depth added 6). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportLinkedit.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"24cc159083dfa9c71bb8c634ced3d3ce3b9b66e8913c94bd14c26bee5059c05b"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.locateMuteSet (cognitive 26): CustomFirmwareVirtualAudio.locateMuteSet has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 9, loops 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa38eebe58b83af2978030a3eb583d80c943f39c3278134a4c1b8a0211614e18"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.restoreSystemApp (cognitive 25): GuestAPI.restoreSystemApp has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 1, error handling 1 (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":"VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"a664c3bb56f0b316f8bbe28fc6694de9b9d7d37c0bdaa4cbf52dbfc3e7cf9ece"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneArchiveWriter.pack (cognitive 25): VPhoneArchiveWriter.pack has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2, match/switch 2, 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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveWriter.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcf029556e3d62298f0f13e028a78a7dff3aca22eb0cc1bad97192024c9eaef"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneFirmwareIndex.releases (cognitive 25): VPhoneFirmwareIndex.releases has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 9, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareIndex.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6049c5f4500596209ccc546db399bdfa1735cb716f23fe02dcad712eb917fb53"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadControlCommands.slimming (cognitive 25): VPhoneLaunchpadControlCommands.slimming has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 4, match/switch 1 (nesting depth added 5). Of this number, 22 points are the body\u0027s own statements and 3 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":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5e5ce6c51de58e2727e0f87fab7f04d3ee93057d5657d29f2728076c1b7f67"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareMachOCodeSignature.reattest (cognitive 25): CustomFirmwareMachOCodeSignature.reattest has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachOCodeSignature.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"460aad090d390ee4af04fc1b928b3ec68abd169245dc8e9b591c8d5a2efd45b5"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.debugEntryBit (cognitive 25): KernelCustomFirmwarePatcher.debugEntryBit has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 18, if/else 3 (4 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"2207878a4f66052fc3f11e404ccae1c6083efcf26e1816a85621842a38741111"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchConvertPortToMap (cognitive 25): KernelCustomFirmwarePatcher.patchConvertPortToMap has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchPortToMap.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6d83f5325f8a15dc993c3d7e1bebc33b86d5d7ebbc212e7a9af89d7ec3a27f"}},{"ruleId":"D2","level":"warning","message":{"text":"RestoreRamDiskSealPatcher.copiedTemplateTarget (cognitive 25): RestoreRamDiskSealPatcher.copiedTemplateTarget has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 21, if/else 2 (3 pts), loops 1 (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Restore/RestoreRamDiskSealPatcher.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c457558ea421fb20e3af74562a6a96c1a5e91b4ed6aa7bfe0cbe9cf1d01a3cca"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1.sameDecode (cognitive 25): CustomFirmwareArm64eX1.sameDecode has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 23, if/else 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"95994a0bfc02eaf854f08bbb78514d4c930040bc99433da5658bbc958f9b0072"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.patch (cognitive 25): CustomFirmwareVirtualAudio.patch has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 8, ternaries 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9b939f811ff4cb9832dde314b826936fcf2658d5289a64e12560b8983fa4d6"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestHyperTextHandler.handle (cognitive 24): GuestHyperTextHandler.handle has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, loops 1 (3 pts), ternaries 1 (3 pts), match/switch 1 (2 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":"VPhoneDaemon/Daemon/GuestHyperTextHandler.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe62c6f6213b1edd56dcc84682d6bacd215c21e0a1cd9fbadc56089262bdbb1"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestPointGeometry.geometry (cognitive 24): GuestPointGeometry.geometry has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 20, if/else 3, error handling 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":"VPhoneDaemon/Daemon/GuestPointGeometry.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"48044770082058a5787eda7ab9421e98bb7a66ac855d1246741789fb2f9674d6"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudioGraphConfigurations.patch (cognitive 24): CustomFirmwareVirtualAudioGraphConfigurations.patch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioGraphConfigurations.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff2130c63bf453702821058ac7aba0362a5a96309595f8594826d24000b4ebd"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootPatcher.patchSerialLabels (cognitive 24): IBootPatcher.patchSerialLabels has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (7 pts), boolean chains 1, match/switch 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchSerialLabels.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbe836b8692a275da5ac4cc97a98258f1f5d8504ddec826e91e6fbb78ac8bfd"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchParavirtTask3Version (cognitive 24): KernelCustomFirmwarePatcher.patchParavirtTask3Version has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 16, if/else 6 (7 pts), loops 1 (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e1c52b0418e1457d428fad3ce08160086aa6dd4cc69934c701ab9508912ec7"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.patchApfsSealBroken (cognitive 24): KernelPatcher.patchApfsSealBroken has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (5 pts), boolean chains 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsSeal.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"514cd68d422acb08069873931e111d4d74e402654e040f623ac9c121d27a14d8"}},{"ruleId":"D2","level":"warning","message":{"text":"RestoreRamDiskSealPatcher.findADRPADDReferences (cognitive 24): RestoreRamDiskSealPatcher.findADRPADDReferences has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 15, if/else 5 (8 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Restore/RestoreRamDiskSealPatcher.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b104a9d64900788a9327fed4023802d32d0efaa2145fe28c997b629dc3406376"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.findDebuggerGateFuncStart (cognitive 24): TXMDevPatcher.findDebuggerGateFuncStart has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 10, loops 2 (3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4874276fdd559937a79609d599a2c4e334b17a95b6df2cd4da34e644562ab6"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.updateHomePodSoundBoard (cognitive 24): VPhoneCustomFirmwareInstaller.updateHomePodSoundBoard has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 5 (nesting depth added 4). Of this number, 13 points are the body\u0027s own statements and 11 belong to 2 function items inside it that branch. 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":3664}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e4b6576d7bc8971c3a2a969a9ac33eff80ad72e9b0ebf7a02d7109ca2c26f7"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneMachineList.options (cognitive 24): VPhoneMachineList.options has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (3 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateBulkCommand.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb0bc85b56665f0f9a1792f07298c78441dfecc376808bb8eb7a391e6691ac1"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneExternalDisplayWindowController.connect (cognitive 24): VPhoneExternalDisplayWindowController.connect has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 7, error handling 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneExternalDisplayWindowController.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9286f569e2e0622ac1dd1518bf0d80ffe1e2bf9d8e176b78f2f9769778cb114"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheMISTrustAuthPatcher.findLiteralReference (cognitive 24): DyldSharedCacheMISTrustAuthPatcher.findLiteralReference has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 13, if/else 4 (8 pts), loops 2 (3 pts) (nesting depth added 5). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"04839918f8d89a40c0cc75fa42c910b23c907541e8047faca2ef5e55f95e8536"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheMaxSlidePatcher.patch (cognitive 24): DyldSharedCacheMaxSlidePatcher.patch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (19 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 4). Of this number, 23 points are the body\u0027s own statements and 1 belongs 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, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMaxSlidePatcher.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"028db1c1f7c923afd7426ab108e492ffff0c6440b1b7965b04237db62167f1e3"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKExtraction.pseudoExtensions (cognitive 24): KDKExtraction.pseudoExtensions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 6, loops 3 (6 pts), ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExtraction.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e376469c273b57d5ffb2c7504126aae6861563609e6eb46ea5a761ae9b5e393"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKImageExport.remap (cognitive 24): KDKImageExport.remap has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 4 (11 pts), boolean chains 6, if/else 2 (4 pts), loops 2 (3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKImageExport.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"10132edc2e6c5b1c5a2ee958b5dd570597c58a322f96b8609c9232e105a119c2"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.isThrowBlock (cognitive 24): CustomFirmwareVirtualAudio.isThrowBlock has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (11 pts), loops 1 (nesting depth added 6). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2382}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3a6807a88615514ea3304fac2f83ae1898ed558268d002aa704ed6f14969ed"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.executeGyroscope (cognitive 23): GuestAPI.executeGyroscope has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 12). 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":"VPhoneDaemon/Daemon/GuestAPI\u002BGyroscope.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a53b7a815b214bca15e3577b09cadf152476fc8e8184f3cc2711c5d182e547"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.removeSystemApp (cognitive 23): GuestAPI.removeSystemApp has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 3 (5 pts), ternaries 1 (3 pts), boolean chains 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":"VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"572357aa33a46037b631d82d9a36c1c941a6ffe65c299418f3b5b2a2f5cae6ee"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.executeVisionOSImmersion (cognitive 23): GuestAPI.executeVisionOSImmersion has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 11 (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":"VPhoneDaemon/Daemon/GuestAPI\u002BVisionOSImmersion.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"498e00ef2b921d46a376b1f6e2543ed49a574cd54ffc025411c205d805e22bc8"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareDaemons.visionOSNonfatalServices (cognitive 23): CustomFirmwareDaemons.visionOSNonfatalServices has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (7 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemonsLaunchd.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5676ded3f4e18d8fe72166990345f7cd5cf9c80fa46d71668e1b2960f0efbc"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheChunkSet.readInstallName (cognitive 23): DyldSharedCacheChunkSet.readInstallName has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 6, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheChunkSet.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1a89f74e94472fac567777f4e0918552fbd4a6290f03326c3b74a80af4ea3f"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcherBase.findCodeCave (cognitive 23): KernelCustomFirmwarePatcherBase.findCodeCave has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58a31fe0c5248b474085bcb9d455673a67272b00bcfed2e38b0310ff345e0f5"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.findDebuggerByFullScan (cognitive 23): KernelPatcher.findDebuggerByFullScan has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchDebugger.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f006a35628b8889e3931ab7fcdc2707f6a90d68d88552373355781714886b97d"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcherBase.kextTextRange (cognitive 23): KernelPatcherBase.kextTextRange has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce744716830619681b16de4ffa554cdcfc21d6820b8dad3d0b801ed2943db88"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneFirmwareOTACommand.capture (cognitive 23): VPhoneFirmwareOTACommand.capture has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (9 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareOTACommand.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22685f2cff8de7cc67a4025eb36c6f2ef99baca507999283d0b843a5edbe1a6"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineInfoCommand.run (cognitive 23): VPhoneVirtualMachineInfoCommand.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 11). 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCommand.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77d0d787d878ea6cdbbeae53377d2322ee69dd7b88fb45cbcf4debe9f2ea0c7"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneArm64eX1Lowering.replacement (cognitive 23): VPhoneArm64eX1Lowering.replacement has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 4 (7 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 4). 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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/VPhoneArm64eX1Lowering.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"230fb94f9e5a2fd7b5221e5eb4e0a7671b1810c9b6425ce32531982c5fec91c8"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKImageExport.symbolTable (cognitive 23): KDKImageExport.symbolTable has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 5 (6 pts), ternaries 3 (4 pts), boolean chains 3 (nesting depth added 7). Of this number, 17 points are the body\u0027s own statements and 6 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportLinkedit.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5262b793b5cc0057b485f37eec16788636ff035ebb2b6a9b1e0199585ea437a2"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareWatchAudioBudget.flagStore (cognitive 23): CustomFirmwareWatchAudioBudget.flagStore has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 18, if/else 2 (4 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Dyld/CustomFirmwareWatchAudioBudget.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a93ad9fe1d346c459398c2e3cb403d2471dfe0536b66b78638fa02510f92ee"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareJetsamPatcher.findReturnGate (cognitive 23): CustomFirmwareJetsamPatcher.findReturnGate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, ternaries 1 (2 pts), loops 1, match/switch 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Jetsam/CustomFirmwareJetsamDiscovery.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea78ed1fdf59259021bc03eb36037018293918cf9b5b1bd562b082710960e0dc"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.installEnvironment (cognitive 22): GuestAPI.installEnvironment has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff585a592cad07b15cbceb78d27fe00642af03d3ef656c04760d591067280be"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestIrisinInstaller.prepareAppData (cognitive 22): GuestIrisinInstaller.prepareAppData has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, 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":"VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller\u002BPayload.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f719bc1f828c5e1bf1a212357014601e8b9e7dd768054a40ab96f7151e0755e"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneMachineTemplateKey.slimmingVariant (cognitive 22): VPhoneMachineTemplateKey.slimmingVariant has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 1 (6 pts), ternaries 1 (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplateKey.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90c4df5cddcf4d06cdcbb5802f6d45edbfd60517901847d2235b08d7af89da3"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneAPFSSnapshot.scan (cognitive 22): VPhoneAPFSSnapshot.scan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (3 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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneAPFSSnapshot.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"593914506906cd3a4b9c760c6a6aa9a1c1d1753a962b19f0c682644c9d85bc88"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneBootCommand.validate (cognitive 22): VPhoneBootCommand.validate has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 9 (10 pts) (nesting depth added 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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootCommand.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea66bd06a0f2f530fd365e3ef9cffbdf9083b62c859cb0b9b9f072ec7ce23ed"}},{"ruleId":"D2","level":"warning","message":{"text":"AVPBooterPatcher.patchDGSTBypass (cognitive 22): AVPBooterPatcher.patchDGSTBypass has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 8, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f41ed1f2532517c052a13c8c90f59ec9f1646b22b26eb9a527f76e5437c7b72"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootPatcher.patchPanicBypass (cognitive 22): IBootPatcher.patchPanicBypass has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 4, loops 2 (3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchPanicBypass.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff5fcdb847955b7a5fb84f90623f8007048bcff6c9a805cc0a3a7bfedcf4fd2"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.paravirtGPUPersonality (cognitive 22): KernelCustomFirmwarePatcher.paravirtGPUPersonality has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (7 pts), loops 3 (4 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtGLES.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f31d537d4c341b6a778b6cf4be8e86fb489b0c74387c2740148d86c560667c"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.isBitstrTest (cognitive 22): KernelCustomFirmwarePatcher.isBitstrTest has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 21, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchSyscallFilterOff.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b003b8c25b55a8dbf79bb1ec133ea5ce3c46a5cb936605ba86eae67da07cd6"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.matchRegionBlock (cognitive 22): KernelCustomFirmwarePatcher.matchRegionBlock has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 15, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchSharedRegionSize.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"4618767e7c48bfd51222efc38bc18e9b4232c55504f67e0d5dc4b84e288b4599"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1Audit.scan::inspect (cognitive 22): CustomFirmwareArm64eX1Audit.scan::inspect has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 3 (6 pts), boolean chains 3, error handling 1, loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (CustomFirmwareArm64eX1Audit.scan::visit) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1Audit.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ec154fa164c46508e9fe9f6430d6b869d6e00470920150e387b1c5bcda6d72"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheMISTrustAuthPatcher.findSeededError (cognitive 22): DyldSharedCacheMISTrustAuthPatcher.findSeededError has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 15, if/else 3 (6 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed86ddc257767fc364f75880ebcc8312477a7c1c9693ad112270b84473b5171"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheMetalCacheReusePatcher.plan (cognitive 22): DyldSharedCacheMetalCacheReusePatcher.plan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ed3accd06b610321fe1e24eb1d1d1b61c8775258ee33eaa2d32b836ffe7487"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.jailbreakInfo (cognitive 21): GuestAPI.jailbreakInfo has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 7 (nesting depth added 6). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dde0c2ddcea5969a2c8f1b63e8621f2b1c564bbc5f43012adcd0030c417f9aa"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneBundleTransfer.archivedLogicalSize (cognitive 21): VPhoneBundleTransfer.archivedLogicalSize has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 6, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneBundleTransfer.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"695af5d3137bec87256bbbed15bd24793b57db238e9a8dd1de641b18c747e7ad"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadNewMachineView.firmwareNote (cognitive 21): VPhoneLaunchpadNewMachineView.firmwareNote has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 4 (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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadNewMachineView.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a2d49f452889fac261a28b729b2dc38ad82d91533c30e64cfe431cc340b8f7"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareInjectDylib.scanLoadCommands (cognitive 21): CustomFirmwareInjectDylib.scanLoadCommands has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 11). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d562fd8d1fd0c0efc653d0789f63bffadf2505fbe55cac4d8db733ad2d105ec"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.requestStore (cognitive 21): KernelCustomFirmwarePatcher.requestStore has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 4 (8 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d7c4c04c0f6e8707cf58eb4f3735877b7818740f6fcd1788bd5ed755d4366e"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.isSyscallMaskMiss (cognitive 21): KernelCustomFirmwarePatcher.isSyscallMaskMiss has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 14, if/else 2 (4 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 3). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchSyscallFilterOff.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"a189bfbcebdecdb9a0701c8d628472abdc6e98b2aacb49b3446cfa68c031d206"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findWxMaskMov (cognitive 21): KernelCustomFirmwarePatcher.findWxMaskMov has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b480bded3eb79e6cdc589abae62ebd947df13d5b0b706811c6497fe302e42f"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchThidShouldCrash (cognitive 21): KernelCustomFirmwarePatcher.patchThidShouldCrash has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 7, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchThidCrash.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67b4b18ea5abbb869ae2b258efc79d672d7bb3597f27894f0eb4796f8f3fb1e"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcherBase.parseNlist (cognitive 21): KernelCustomFirmwarePatcherBase.parseNlist has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4857102377f81bd302eb7d406bb48abc07f46d37893812f413a130a925eacd"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.discoverSandboxTextRange (cognitive 21): KernelPatcher.discoverSandboxTextRange has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2f86d3e1852239044f5791f40681496fd5bd5ab5e5c95f688790e1abbae06f"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.debuggerGateFlagStore (cognitive 21): TXMDevPatcher.debuggerGateFlagStore has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, if/else 4 (6 pts), loops 1, match/switch 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"3328e28b4ad45c46b80832615f8e58bca6f13ae69ae27fe5b7cb65fdaea2b452"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.patchDebuggerEntitlementForceTrue (cognitive 21): TXMDevPatcher.patchDebuggerEntitlementForceTrue has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (8 pts), loops 2 (3 pts) (nesting depth added 5). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fb88de4f042dfabd9727228c7a1aee56a174c6dd3d9ff3f09c031bde420c14"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.patchedKernelcacheForUpdate (cognitive 21): VPhoneCustomFirmwareInstaller.patchedKernelcacheForUpdate has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (7 pts), ternaries 1 (2 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"319fc8125ef14e488c3b8f2570bff3fc72bd42de819581bd29a3a2524db7e554"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineCreateCommand.run (cognitive 21): VPhoneVirtualMachineCreateCommand.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6, ternaries 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateCommand.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2c57083b841f7e79198ddf546f82993f30c7eb3011406506be58e399c5e150"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineLeasesCommand.run (cognitive 21): VPhoneVirtualMachineLeasesCommand.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 3 (6 pts), match/switch 2 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineLeasesCommand.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"656473c2a92dc285b427ab48e5cd46a15a677b6e0b3014496812a0d38d0b5e7f"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCodeSignature.identifier (cognitive 21): VPhoneCodeSignature.identifier has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (15 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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/MachO/VPhoneCodeSignature.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8968bc10f3f664badc61f81f3ab9f3629d9696e0f1653232a167bc393e7f43"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneApplication.takeKeyEvent (cognitive 21): VPhoneApplication.takeKeyEvent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5 (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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneApplication.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6bf5ce148fa52722d4e982bbf6cdcc769fe7de1c9aa9796fe146130ba7aecc"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheHypervisorVirtualMachinePatcher.machOSections (cognitive 21): DyldSharedCacheHypervisorVirtualMachinePatcher.machOSections has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 11). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher\u002BMachOStringSites.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe8d9855d11d134437c4f492b474f7f3b58875559f30ba240ccea48a9a1cce9"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKImageExport.indirectTable (cognitive 21): KDKImageExport.indirectTable has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, loops 3 (nesting depth added 6). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to one function item inside it that branches (fallback). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportLinkedit.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81e27a7c13d6dba6c34fb2c4469ee4cdd57e613b6dee53eabc6d6adbbb8cc7f"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareCacheLoaderPatcher.findStringReference (cognitive 21): CustomFirmwareCacheLoaderPatcher.findStringReference has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (9 pts), match/switch 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader\u002BStringAnchor.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"52483c1a54123777416d08cea527f3a8d3275b64ac93835707b92415a1d6392d"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareWatchDog.matchSite (cognitive 21): CustomFirmwareWatchDog.matchSite has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, boolean chains 7, match/switch 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDogDiscovery.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3058bf3832c745e439ba6c92234ed7dd55c34ad4dd43f4c56c08d97997e38d"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneHomePodUserDefault.validated (cognitive 21): VPhoneHomePodUserDefault.validated has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneHomePodDefaultsModel.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e25c8a1d5585a35fd3eb0c18cb384776a2eff7bd57c9fac5fd9d9e36ebc6e14"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestScreenshotSizing.parse (cognitive 20): GuestScreenshotSizing.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 6). Of this number, 17 points are the body\u0027s own statements and 3 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":"VPhoneDaemon/Daemon/GuestScreenshotSizing.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b696d35e4a3313958f9e7cf6d46f5ff87ccd4c4216f2f1e115748758990a41"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestIrisinInstaller.removeBootstrap (cognitive 20): GuestIrisinInstaller.removeBootstrap has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 11). 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":"VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7835a3106059a8f3fe63c31bc9756a74076d7b4ef4a3a57b51df1f7c1f343ea"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneOTAUpdate.rollback (cognitive 20): VPhoneOTAUpdate.rollback has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2, loops 2 (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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneOTAUpdate.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5d8585c643c44c4042ad746afcb0dba4f90a170a34bf114869baaa37a38595"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneSystemTrimSpec.apply (cognitive 20): VPhoneSystemTrimSpec.apply has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (4 pts), error handling 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneSystemTrim.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6870aae6f786dd9970e4931d46a5ad9aef0a78b3b204c0979776dc05e18596"}},{"ruleId":"D2","level":"warning","message":{"text":"Head.init (cognitive 20): Head.init has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (7 pts), loops 1 (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":"VPhoneKit/VPhoneCoreKit/Support/VPhoneAPIRequestGate.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51a737071f97473f1a7411a7529f693c47bffb13bf60ee7d50946f29bc14031"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneNetworking.resolve (cognitive 20): VPhoneNetworking.resolve has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 4 (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":"VPhoneKit/VPhoneCoreKit/Support/VPhoneNetworking.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c128ac93b6afbfd5fd24d277405a9c17a10ac27d7463af4002f0449e865071"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadLocalBundle.prepare (cognitive 20): VPhoneLaunchpadLocalBundle.prepare has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 1, error handling 1 (nesting depth added 11). 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":"VPhoneLaunchpad/VPhoneLaunchpad/CoreBundle/VPhoneLaunchpadLocalBundle.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1763811027750981f7cf3ff2f2e053d2bc5f9c10bf779e29fdd52ef5a506e9"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadCreationPipeline.run (cognitive 20): VPhoneLaunchpadCreationPipeline.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 6, error handling 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadCreationPipeline.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"30775ab780666dbcafce4207a7986671741c8d452370de5d0dfcdd2de6d321a6"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadMachinesView.body (cognitive 20): VPhoneLaunchpadMachinesView.body has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 4, loops 1, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachinesView.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5b4068dc630ff1de8e5739b94476549d80d6ea76a31caf5d2e563ea335eabc"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheUndoLog.restore (cognitive 20): DyldSharedCacheUndoLog.restore has cognitive complexity 20 (threshold 15). Drivers by points: loops 7 (13 pts), if/else 2 (3 pts), boolean chains 2, ternaries 2 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheUndoLog.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"388c5990b46f680d2810ae076636baea7263bb703764c0099c883c58c78edea9"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findIOTaskHasEntitlement (cognitive 20): KernelCustomFirmwarePatcher.findIOTaskHasEntitlement has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf10a79b9551589ffbc1dbd02d915bce27acef4db6c48fb2686fa890e62430ae"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findUpstreamRootMountCmp (cognitive 20): KernelCustomFirmwarePatcher.findUpstreamRootMountCmp has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 8, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchSharedRegion.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bfb0e863b57b2c30948a176b20ad231ec38fc09d165b527fbe3f7cfeb36b2f"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.patchApfsRootSnapshot (cognitive 20): KernelPatcher.patchApfsRootSnapshot has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 5, loops 2 (3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsSnapshot.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e3791d482206c019d88eccac42225533478de6125c15df84ef34339df65532"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.findDebuggerByBLHistogram (cognitive 20): KernelPatcher.findDebuggerByBLHistogram has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 2, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchDebugger.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a61496e66fcc123bff55a32180a67b427c5a3b2fd6a34b62502daed095169f"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCacheKDK.makeVolume (cognitive 20): KernelCacheKDK.makeVolume has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCacheKDK.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c821522fffde1c3b36c33339f81903ead890d59e43289a0a688b0357615af6"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKRecovery.calleeWrites (cognitive 20): KDKRecovery.calleeWrites has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 9, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKRecoveryFlow.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63e076da60ec24df972033a67d6a7d99f3d37116e8c75e79d060cefc890fd34"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestDeviceHubControl.handle (cognitive 19): GuestDeviceHubControl.handle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 2 (4 pts), boolean chains 2, 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":"VPhoneDaemon/Daemon/GuestDeviceHubControl.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fe81d36f83fd5df6fffa10d32b7b806e2078cb0cd956af0c3f0c6549ae2f57"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestProcessOutput.drain (cognitive 19): GuestProcessOutput.drain has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 2 (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":"VPhoneDaemon/Daemon/GuestProcessOutput.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c51e66d58c8821468e2c7d576a28a80159117dedb21c293783b3550a7a6f9b5"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadLineSplitter.strippingEscapes (cognitive 19): VPhoneLaunchpadLineSplitter.strippingEscapes has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, loops 3 (7 pts), if/else 2 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadLineReader.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d931c43495e470fa34f36d3e78560ae47d2b062f4f6ca69366545467f3d4d6"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneFirmwareMatrix.testedBuilds (cognitive 19): VPhoneFirmwareMatrix.testedBuilds has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareMatrix.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bc9d47b81f5cfff45efa7af86f3a03b628047b9ef9f9689c6e899a59e1574f"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheCodeSignature.readCodeDirectory (cognitive 19): DyldSharedCacheCodeSignature.readCodeDirectory has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 5, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheCodeSignature.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f19fbac9e8e6c8ef76cc95a5045091bc89a713815d6efdf4165a34f9f39b40"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCachePatchTransaction.run (cognitive 19): DyldSharedCachePatchTransaction.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (8 pts), error handling 3 (7 pts), loops 2 (4 pts) (nesting depth added 11). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCachePatchTransaction.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d990f564dd7d7b3dd1dd3f8144a40f119ecae3d8be766426dfdc5ef9634806"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootPatcher.enumeratePanicBlocks (cognitive 19): IBootPatcher.enumeratePanicBlocks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 5, loops 2 (3 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"236e5ea9be5724f71781001f896ec37d2cbf6c86d2936e367d4416c9f155ef21"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findVfsContextCurrentByShape (cognitive 19): KernelCustomFirmwarePatcher.findVfsContextCurrentByShape has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, loops 2 (3 pts), 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eee5a9da353322f3befa65c3de75b5d17e4f8a1fd3fbfecab7444d9a2752852"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findVnodeGetattrViaString (cognitive 19): KernelCustomFirmwarePatcher.findVnodeGetattrViaString has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 11). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"d162b9ccd2117a01835ac8cc08f66f56424957c6ac5167bb97790803c19cb87c"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findCsAssociateCall (cognitive 19): KernelCustomFirmwarePatcher.findCsAssociateCall has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (8 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c03241ee16241000c6b847389261cf3bfadb315495e2c07aad3525688611415"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchVmMapDeleteImmutableCode (cognitive 19): KernelCustomFirmwarePatcher.patchVmMapDeleteImmutableCode has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (4 pts), ternaries 2 (4 pts), loops 3 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchVmMapDelete.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"52857c9634668da40277b9354aebc29d263d1742ee51f1c9f6fa8e19461056c0"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.extractW1ImmNearCall (cognitive 19): KernelCustomFirmwarePatcher.extractW1ImmNearCall has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 2, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSyscallmask.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"38dbf4801c9ac3193e83458412ef1d061393eefb415112c7e4b37e34e48ad53d"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.functionsReferencingString (cognitive 19): KernelCustomFirmwarePatcher.functionsReferencingString has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (8 pts), boolean chains 2 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchSecureRoot.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fbb50c6c72195774a6cae66127894d5774bd9c3681012c7491de5109ef6b35"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findSecureRootReturnSite (cognitive 19): KernelCustomFirmwarePatcher.findSecureRootReturnSite has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchSecureRoot.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4f46177459bec07a0b6d08b1dbe824fb52d9a3772ce4b485aa958cbc1e479a"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.patchApfsMountUpgradeChecks (cognitive 19): KernelPatcher.patchApfsMountUpgradeChecks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e07ef43243effab01de02e2716d06025f5151a9395f56e7ec1768cc255df4d2"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneFirmwarePrepareCommand.run (cognitive 19): VPhoneFirmwarePrepareCommand.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 8, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09eac99c3c6b919eeba460b28bddd011ecd9f6340b423338c29ef812efb6703"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineTemplateFindCommand.run (cognitive 19): VPhoneVirtualMachineTemplateFindCommand.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 3 (5 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineTemplateCommand.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f876a42dfff9b18088d54a23d0bccc6827f23c149712a736e250c74c127a8ae"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneSignEntitlements.write (cognitive 19): VPhoneSignEntitlements.write has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (7 pts), if/else 3 (5 pts), ternaries 2 (4 pts), match/switch 2 (3 pts) (nesting depth added 8). Of this number, 15 points are the body\u0027s own statements and 4 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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/Entitlements/VPhoneSignEntitlements.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e327e78c792373a610f2676bc8c329a4ad9f47d8fa0e30461da0e1e075b2c0db"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneSignPKCS12.init (cognitive 19): VPhoneSignPKCS12.init has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1, 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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/Identity/VPhoneSignPKCS12.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a01a8dcdcfae399fe0ed1f011bc4a836a2d5672aca74939ec5a2ab7906bb70"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineView.setMouseCaptured (cognitive 19): VPhoneVirtualMachineView.setMouseCaptured has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4 (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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f7e633867c19e6b6ded85b290a63b3c3089a673bcc29c8adf2ed61a0b16b17"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.materializedAddress (cognitive 19): DyldSharedCacheGLESPointDrawPatcher.materializedAddress has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 18, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"227dfccff76ed382078a250f9cd16c1e31cdf498919b7a612580b66aa0c488d3"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheHomeViewEnvironmentPatcher.materializedAddress (cognitive 19): DyldSharedCacheHomeViewEnvironmentPatcher.materializedAddress has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 18, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a68af0dd9eeda602de6f4f66f8a8d631edf0c2e7f03b0f9d5670fd03ad2d3c"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheMetalCacheReusePatcher.patch (cognitive 19): DyldSharedCacheMetalCacheReusePatcher.patch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, ternaries 4, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1767db061aeab5972176c6737b4279fa16c0134ebaca91e1b0065d8ecf017cc5"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheXPCLWCRPatcher.findPatchedShape (cognitive 19): DyldSharedCacheXPCLWCRPatcher.findPatchedShape has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"216b9964a1d6fe0af566bd627885e5990a001c6f003b293a5558af4d41568a66"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneMenuController.performBootstrapUninstall (cognitive 19): VPhoneMenuController.performBootstrapUninstall has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (5 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuBootstrap.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5e6cd424df1c838074985cdafd3799cd7ff351cede3dd0c945ae50ab4f34d1"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareTVTPRO.validateImageHeader (cognitive 19): CustomFirmwareTVTPRO.validateImageHeader has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 6, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Dyld/CustomFirmwareTVTPRO.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"8020e48991841525f08583ac6ac51c74f079addc57e6da9e9222c153c0a466d8"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneMotionModel.drain (cognitive 19): VPhoneMotionModel.drain has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (12 pts), boolean chains 4, error handling 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneMotionModel.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a70f4d1855f56811ab5bd52a2d6931eb462611f68ba1cd0ddaef8afdd01c23"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.top-level code (cognitive 19): main.swift.top-level code has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3, error handling 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":"VPhoneDaemon/Daemon/main.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86d55c41c3d6253eb75ac2293648bd4e353c3538f1b5a6df1767d9a6c28ee14"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestIrisinInstaller.ensureFirmwareRecord (cognitive 18): GuestIrisinInstaller.ensureFirmwareRecord has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller\u002BFirmware.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fe276aaa8eba5b097b23a8e100dc587087a5655793c5adae22c53adffb4dad"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneIPSWCache.downloadSegment (cognitive 18): VPhoneIPSWCache.downloadSegment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 3, match/switch 1 (3 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bf02b8e42cfd4b5a681295683fa12b6f37a7d0a1b68b832cb0174f16c37873"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneMachineSnapshots.create (cognitive 18): VPhoneMachineSnapshots.create has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (4 pts), ternaries 1 (2 pts), 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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineSnapshots.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a10e7a0e071011a6198d188fd24c317288a8273cc1cd8c8f7b97958cd2510e2"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneTCPForwarder.handle (cognitive 18): VPhoneTCPForwarder.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, match/switch 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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"89db07f031ecf3947936862b8f5c63856a1acd2c846e3f9dd6fa29ec40c7515e"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneHostFilePermissions.walkChild (cognitive 18): VPhoneHostFilePermissions.walkChild has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Process/VPhoneHostFilePermissions.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca21d8fa8b4d1067d1b02b1906920d29a13c8c695368b97d64f25b94ad03350"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadMachineLibrary.refresh (cognitive 18): VPhoneLaunchpadMachineLibrary.refresh has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 2 (5 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c6cd74a7d3c5cfa0023695ec8f91ff537f82ca4b7f34b8b21339f398bed254"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheUndoLog.validate (cognitive 18): DyldSharedCacheUndoLog.validate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 7, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheUndoLog.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64ad324a39104ae793a5fd87abe49ad00dd913363bf548339c4c27b1600b832"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcherBase.buildSymbolTable (cognitive 18): KernelCustomFirmwarePatcherBase.buildSymbolTable has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"721ca38d03407ef0aa9bac8f61d5bfc1d69807f282d03bacc9c6d0d2b75252ad"}},{"ruleId":"D2","level":"warning","message":{"text":"RestoreRamDiskSealPatcher.locateHashTypeField (cognitive 18): RestoreRamDiskSealPatcher.locateHashTypeField has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (8 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Restore/RestoreRamDiskSealPatcher.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af65cd772f7e76fb3cefab1e9111659bf2be0a275256ad49aee5b3c02d70ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.updateTVDyld (cognitive 18): VPhoneCustomFirmwareInstaller.updateTVDyld has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":4682}}}],"partialFingerprints":{"codehealthFindingId/v1":"7731286e59c84967627ec24319732df8dc9929fbba80177184b7f53d2b53ecc8"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneMachineTemplateTrimmer.withMountedSystemVolume (cognitive 18): VPhoneMachineTemplateTrimmer.withMountedSystemVolume has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneMachineTemplateTrimmer.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edfe14837f583bf165a3acb5b599fa6e927197678ae5b6849ee320b49d7c17c"}},{"ruleId":"D2","level":"warning","message":{"text":"MachOParser.findSymbol (cognitive 18): MachOParser.findSymbol has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/Binary/MachOParser.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"960e38fa53d21b6336d926dc8b9a9fe309555847b7da6244bcc7b2aa546e99fb"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineKeySender.typeString (cognitive 18): VPhoneVirtualMachineKeySender.typeString has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineKeySender.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"8babe6759d6cb2357fdd61feba4943729046845f6d7e263140778c5fb94d9382"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineView.scrollNatively (cognitive 18): VPhoneVirtualMachineView.scrollNatively has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6 (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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"5146cfaadb5c9f5ccb36b6e75b333cb993888bc324b45640d35b2bbb452dd620"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1Audit.scan::visit (cognitive 18): CustomFirmwareArm64eX1Audit.scan::visit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), error handling 2 (4 pts), match/switch 1 (4 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (CustomFirmwareArm64eX1Audit.scan::inspect) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1Audit.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fff21b425fb2a06928612b99d07678c34317c2dc6ac953f55a9354a2bb5fbbf"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheGLESPointDrawPatcher.indexedDrawFields (cognitive 18): DyldSharedCacheGLESPointDrawPatcher.indexedDrawFields has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, if/else 3 (4 pts), loops 1 (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"01079ad5d61fb4623a3321dc0a0849a29046a4f6625af2a164d84718cfb4690e"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareTVTPRO.definedSymbols (cognitive 18): CustomFirmwareTVTPRO.definedSymbols has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 8, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Dyld/CustomFirmwareTVTPRO.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"8326ffe89f96eb731fed9515907c81bd432fc6d1c4e1905d708a2983e9530515"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareParavirtGPUCompilerCache.selectorSlots (cognitive 18): CustomFirmwareParavirtGPUCompilerCache.selectorSlots has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (7 pts), loops 2 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd4eec8b24a8354320a8d92cd3e2ff38ee5c5b3093f8b433951d1d9dce96191"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.turn (cognitive 17): GuestAPI.turn has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, loops 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":"VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5898c2a70542fe47ff3006f53c5573bf6a63d8f965da669f6a697c79814e4b"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestFirstBootSettle.evaluate (cognitive 17): GuestFirstBootSettle.evaluate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 1, ternaries 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":"VPhoneDaemon/Daemon/GuestFirstBootSettle.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"808375650ff8405149c0b86dde8b43c0bc7cfe101daeec24c0e0d016829e813e"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.resolve (cognitive 17): Image.resolve has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 2 (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":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd38771345fb6cf5e7657031bce8b98644d5bfebac3c2de08a24f8583d786abc"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.resolve (cognitive 17): Image.resolve has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 2 (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":"Research/Guest/SettingsRows/ReviewedProviderPatch.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35a9f879d4fe363055aa4541f7905d949a4a0284420d57aa50b855809ff02c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageFile.dataRanges (cognitive 17): ImageFile.dataRanges has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 1 (4 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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cf621acd155c303b7364b73b32b7127246b69a006e0f01d5d20e8025bdbf61"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageFile.physicalRuns (cognitive 17): ImageFile.physicalRuns has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 3, loops 2 (3 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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"234f423df86e7e7d71bf3ec5e00acd6f188b8f484773611daed3aac275e8cc24"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneAEA.symmetricKey (cognitive 17): VPhoneAEA.symmetricKey has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), error handling 1 (2 pts), loops 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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneAEA.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"205ac87bdf74f74daec5836cace11fdaf8aba40a277ce349faf00dd52d7e8141"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneTCPForwarder.drainHost (cognitive 17): VPhoneTCPForwarder.drainHost has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7ac6c5b4f117045a3bfdcb6148fc62df952f8691cfc8722c65d9ce185b6f1a"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneConfinedDirectory.removeEntry (cognitive 17): VPhoneConfinedDirectory.removeEntry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"d303caf77e84fe3d240480a82241b9dcd94d777d2208f6e89d318b2941bc170f"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareDaemons.filesystemLayout (cognitive 17): CustomFirmwareDaemons.filesystemLayout has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (7 pts), loops 1, ternaries 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4020a2e512d10a7d28f23ade657e9efa0b1f7fe7f41a6635e3949cc3cedc929c"}},{"ruleId":"D2","level":"warning","message":{"text":"DeviceTreePatcher.presentPhoneProduct (cognitive 17): DeviceTreePatcher.presentPhoneProduct has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, loops 1 (nesting depth added 4). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (fill). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"d899c16b2d7f52bc48ef59035b6b542c6d836c2f56edf600c6911233327d17da"}},{"ruleId":"D2","level":"warning","message":{"text":"DeviceTreePatcher.applyResearchBoardConversion (cognitive 17): DeviceTreePatcher.applyResearchBoardConversion has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeResearchBoardConversion.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"987c81a783d4fc056c771638d16dc4eed7f8a9b91f5bf40c26ee2771cb4a2d87"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheSymbolResolver.objcMessageTarget (cognitive 17): DyldSharedCacheSymbolResolver.objcMessageTarget has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, loops 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheSymbolResolver.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7ad0971ba3ef28b1dd906a7441d82dad3c3670231e378cfef48973279b109c"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootCustomFirmwarePatcher.findRefsNear (cognitive 17): IBootCustomFirmwarePatcher.findRefsNear has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 3 (6 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"132fadc30c598edc216b41e299f2b1588a0b03b526325588f60719c2c6b8afed"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootPatcher.patchDisplayScale (cognitive 17): IBootPatcher.patchDisplayScale has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (7 pts), loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchDisplayScale.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0095a9faffde5bc6fd7d73cf4a518c253c6d5c4190aa6dea650e6e98899f95"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootPatcher.verificationGates (cognitive 17): IBootPatcher.verificationGates has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 12, if/else 2 (4 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchRootfsBypass.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acbf9437367542ae2b0c010dfdc89434552e13fcbb173c4a8cec952ac458e7f"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.versionArgument (cognitive 17): KernelCustomFirmwarePatcher.versionArgument has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (7 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0242c230b04300e9a38fe3a449fde7045b6d2587f238e64475b0761bffe730d"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.nopAbiVersionGate (cognitive 17): KernelCustomFirmwarePatcher.nopAbiVersionGate has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (7 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDiskImages2.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a0387f6e383de656e958c18edc3714076844f217b96508ad03dce3c8977c79"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcherBase.filesetEntryTextRange (cognitive 17): KernelCustomFirmwarePatcherBase.filesetEntryTextRange has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"271c8b33e1b16525b017145d03beb75cbf843c050dae394895582ba8b067c414"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelPatcher.patchDyldPolicy (cognitive 17): KernelPatcher.patchDyldPolicy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 2 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchDyldPolicy.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfd669d812e51b8fa7cf1e21a55625be8b4efe4eae2cdfeb73fa31a70c80885"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineConfigCommand.networkEdit (cognitive 17): VPhoneVirtualMachineConfigCommand.networkEdit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), match/switch 4, ternaries 2 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCommand.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"82907579ae301c65c5ad648d90f3d4b3097f0943c091ade89c808266e0399f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCreatedOutputs.finishBestEffort (cognitive 17): VPhoneCreatedOutputs.finishBestEffort has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (8 pts), error handling 2 (6 pts), if/else 2, boolean chains 1 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreator.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"a052819415cf01ebb5d9b5ee74f40a62f10d8c9b7bd4aecc29ef18f785f19b13"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneSignPKCS12.decrypt (cognitive 17): VPhoneSignPKCS12.decrypt has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 3, match/switch 2 (3 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/Identity/VPhoneSignPKCS12.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c54b50bae3836ba3e772d32f3f95ce830f44ea191a601beb4e94ff008b95932"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneMachOImage.signed (cognitive 17): VPhoneMachOImage.signed has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneSign/MachO/VPhoneMachOImage.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a9d28f13037d397c4773dd1168ffe941bf8af97bc1b2848fc54917493d1dd2"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneGuestShellChannel.handshake (cognitive 17): VPhoneGuestShellChannel.handshake has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestShellChannel.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6aabea0868d901dc0477aa2c6384d9abab98821591edf0c59b481563a71e5f5"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineWindowController.updateSubtitle (cognitive 17): VPhoneVirtualMachineWindowController.updateSubtitle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (6 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e02a030ec892efeb2305db0a43dbead43a523be4fabde5b32e0a9cb68a54425"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheMetalVertexFormatPatcher.findFormatSite (cognitive 17): DyldSharedCacheMetalVertexFormatPatcher.findFormatSite has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (6 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"68184040c86898940aa6295ca16a858147ac6484a055c5b2b70b1be86c237c53"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.isOrientationTest (cognitive 17): DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.isOrientationTest has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 15, if/else 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"12870121578cdea764e5fd5c0c0eed3d472528f630065f23248aeb1020653e89"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneMenuController.performBootstrapInstallation (cognitive 17): VPhoneMenuController.performBootstrapInstallation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 3, boolean chains 2, loops 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuBootstrap.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd50d1b43213f14c47dbf5d51e1eb2677deedcab2cf016a214be6510e147b7f4"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareParavirtGPUCompilerCache.addressPair (cognitive 17): CustomFirmwareParavirtGPUCompilerCache.addressPair has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 16, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"8573573b2e535adac1dbc293f4cbddef0beb6ee80840d22214e8475a677c8e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareParavirtGPUCompilerCache.methodImplementations (cognitive 17): CustomFirmwareParavirtGPUCompilerCache.methodImplementations has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"50134136d725e49fd1341166d80d8094fe3b3619b534917dbfc6181d76d92d68"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareParavirtGPUPrimitiveRestart.resolve (cognitive 17): CustomFirmwareParavirtGPUPrimitiveRestart.resolve has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUPrimitiveRestart.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85a87fb22efee763f90ad6d80322a4566fcbfaaa96ace1c38fbc97a58b04585"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.patchSpeakerProtectionGate (cognitive 17): CustomFirmwareVirtualAudio.patchSpeakerProtectionGate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7 (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. This shape REPEATS in the file: one other method here (CustomFirmwareVirtualAudio.patchVolumeModePrecondition) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"640b8e86fa5c68a8d42df9e0d4bc9aee94ed2ad17b792f4833893f9a011bfa2b"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.patchVolumeModePrecondition (cognitive 17): CustomFirmwareVirtualAudio.patchVolumeModePrecondition has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7 (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. This shape REPEATS in the file: one other method here (CustomFirmwareVirtualAudio.patchSpeakerProtectionGate) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01eecec3c4aa9ac26d07cc79767497849c35cbd40f2ae3406ee2b7b1035d836"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.patchDeviceStateNullGate (cognitive 17): CustomFirmwareVirtualAudio.patchDeviceStateNullGate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 2, ternaries 2, loops 1, match/switch 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6c43ee472d6381af094db2ccbd1ae8ec4661c9371e9a6b3128f758fbca099d"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareVirtualAudio.locate (cognitive 17): CustomFirmwareVirtualAudio.locate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8946c4e60482983f86cb572d097314c64a925e2263912fa439a4fba2e0ab73a"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.spawnProcess (cognitive 16): GuestAPI.spawnProcess has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 3, ternaries 1 (3 pts), error handling 1 (2 pts), 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":"VPhoneDaemon/Daemon/GuestAPI\u002BProcess.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"17eec8e4270d496a7eaa4e97fc366e5872e043abe0e5580b7e1a8871f8d34ea0"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestAPI.unregisterSystemApp (cognitive 16): GuestAPI.unregisterSystemApp has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (7 pts), loops 2 (3 pts), match/switch 1 (3 pts), error handling 1 (2 pts), boolean chains 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":"VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44f64f2bb5a9ef25782a6a1c7de2b55093e9fb4ed3b4ff1d674ddd969c5e83a"}},{"ruleId":"D2","level":"warning","message":{"text":"GuestScreenshotSizing.apply (cognitive 16): GuestScreenshotSizing.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 2 (4 pts), ternaries 1 (3 pts), boolean chains 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":"VPhoneDaemon/Daemon/GuestScreenshotSizing.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73762c6abc623bcef60b6041c05e65ecd000718d62968d159e268a32b8aa00f"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadLauncherProcess.run (cognitive 16): VPhoneLaunchpadLauncherProcess.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3, boolean chains 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":"VPhoneLaunchpad/VPhoneLaunchpadLauncher/VPhoneLaunchpadLauncherProcess.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d20f2f088907968a8852ba99fd40006c00acbc6795661925489634fe5776f91"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneDHCPLeaseList.init (cognitive 16): VPhoneDHCPLeaseList.init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (2 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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneDHCPLeases.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fef10bc9433e11b7ec32c1be27a8492318b9d2dd0ca8bfad5cc576f3005abe"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneNetworking.validatePortForwards (cognitive 16): VPhoneNetworking.validatePortForwards has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (6 pts), ternaries 1 (2 pts), loops 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":"VPhoneKit/VPhoneCoreKit/Support/VPhoneNetworking.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cce0e1169437c62ee6ff0b5f2d1273d4b0f30d6027fc3f401f38372d153e711"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachinePicker.resolve (cognitive 16): VPhoneVirtualMachinePicker.resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneVirtualMachinePicker.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"277b4d5f4a4d5f0407de9b0719bc7c509777ee2ecde562463e61f39ca8be44d1"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadDiskExtents.exclusiveBytes (cognitive 16): VPhoneLaunchpadDiskExtents.exclusiveBytes has cognitive complexity 16 (threshold 15). Drivers by points: loops 7 (13 pts), if/else 1 (3 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskExtents.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a5e53b0a1b7451d1d08e7d574b89fe8cd0e38a04d297c5f6a4d9495d8ba501"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneLaunchpadMachinesView.table (cognitive 16): VPhoneLaunchpadMachinesView.table has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 3 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachinesView.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"411b67c3a9027c764dd09ddd77e811c02c0f52fc0955766db44233893bcf2c50"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwarePostRestoreDeviceTree.rewrite (cognitive 16): CustomFirmwarePostRestoreDeviceTree.rewrite has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 1 (2 pts), ternaries 1 (2 pts), error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"6544fa85401a212741cbc1eea494fd0c03028e177260769e956bedf169f807a1"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCachePatchTransaction.snapshots (cognitive 16): DyldSharedCachePatchTransaction.snapshots has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), boolean chains 2 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCachePatchTransaction.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb791e48c80386247230368ffdd44a0b0ce5a70bce3934cae18e9dbc9284320"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootCustomFirmwarePatcher.findRefsToOffset (cognitive 16): IBootCustomFirmwarePatcher.findRefsToOffset has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (6 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae38deec1fc59ab4d3c19ba4c1393434018838bf2c1a8987e0f3d2b21ab658de"}},{"ruleId":"D2","level":"warning","message":{"text":"IBootPatcher.patchBootArgs (cognitive 16): IBootPatcher.patchBootArgs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootArgs.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec66ccdd3cede619ca5e94e866aa1c145e36522a4cf0e650a8e7e1014ad6111b"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findAll (cognitive 16): KernelCustomFirmwarePatcher.findAll has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcher.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9733da71d2e266472de14548a2026382505133a548c5c2138437285d2cbb6fa2"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.findBlCbzGate (cognitive 16): KernelCustomFirmwarePatcher.findBlCbzGate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchLoadDylinker.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e053d79628d416d947701e84d18aa386b9c864f70783f87db3358cea822552"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchParavirtDisplayRefreshRate (cognitive 16): KernelCustomFirmwarePatcher.patchParavirtDisplayRefreshRate has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), loops 1 (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchDisplayRefresh.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d552bdb06f9e815b78cfccf1678f9e3a4a317caa8f50a4c1020e5eeaf02f8239"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.readback (cognitive 16): KernelCustomFirmwarePatcher.readback has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (6 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3875fa25cdd58906f1546bc2cbffc13e5d37b4eb20696dc8c3c8e3c7b13885d4"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.pvGlobalLoad (cognitive 16): KernelCustomFirmwarePatcher.pvGlobalLoad has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, if/else 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02bfca3aa6ccdba6d7b976f5bd70a0fa2b3499d9f83e5155c3daad772fc7711"}},{"ruleId":"D2","level":"warning","message":{"text":"KernelCustomFirmwarePatcher.patchAksUnlockBagCount5 (cognitive 16): KernelCustomFirmwarePatcher.patchAksUnlockBagCount5 has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), loops 1 (nesting depth added 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Keystore/KernelCustomFirmwarePatchAksUnlockBag.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"a113661c76e78a54a66f01c7e28f0b80b0bda89cb77283e4c6fac6b0cbe1b76c"}},{"ruleId":"D2","level":"warning","message":{"text":"FirmwareGuestPatchResolution.glesUpdatePolicy (cognitive 16): FirmwareGuestPatchResolution.glesUpdatePolicy has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 3, ternaries 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareGuestPatchResolution.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd0a960b45bf0a10bd1653462839d777d1ccee7a76a18056e1c90bd9370b85a"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMDevPatcher.findRefsToOffset (cognitive 16): TXMDevPatcher.findRefsToOffset has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f52b058c6fba8bf970282794556d3eb0fd1093417ec49fb5be835b5b676f713"}},{"ruleId":"D2","level":"warning","message":{"text":"TXMPatcher.findSelector24HashFlagsCall (cognitive 16): TXMPatcher.findSelector24HashFlagsCall has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"72bf5726f2ffa302fe7e511a5553f012e030d48545b93ec57a93ad73b016f3ea"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneCustomFirmwareInstaller.buildDeviceTree (cognitive 16): VPhoneCustomFirmwareInstaller.buildDeviceTree has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (nesting depth added 3). 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":4284}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a6296184d35914b3c5d94105d1bb150c81be8625d015976971b0bf66a6fb70"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhonePatchPlan.order (cognitive 16): VPhonePatchPlan.order has cognitive complexity 16 (threshold 15). Drivers by points: loops 6 (10 pts), if/else 3 (6 pts) (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPlan.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f2246bcd163fce9b9cd54a99381601123738ea4a679db834f2762baf9429e8"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneVirtualMachineView.sendTouchEvent (cognitive 16): VPhoneVirtualMachineView.sendTouchEvent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6 (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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3280603edb2733f5b785a7f297df22fe779c312c5c3f5e0ad80e15817931f239"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareArm64eX1Audit.validateLoadCommands (cognitive 16): CustomFirmwareArm64eX1Audit.validateLoadCommands has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1Audit.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6fe6e8554a01c91422207e0170de5fe986af94c86d82abb5f600625fe57b25"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheGLESPrimitiveRestartPatcher.patch (cognitive 16): DyldSharedCacheGLESPrimitiveRestartPatcher.patch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 4 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"445b90b0dd0b4e1a71c7fb4f2317259ecc262738a2755f1efc51fe8fc56780c4"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheGLESPrimitiveRestartPatcher.trampoline (cognitive 16): DyldSharedCacheGLESPrimitiveRestartPatcher.trampoline has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 15, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d49ec8dc47c084cafaf446ea2f09078a864a672e27d80c752ba3fc6f6024ce"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheIOMFBForceKernPatcher.isConditionalDispatch (cognitive 16): DyldSharedCacheIOMFBForceKernPatcher.isConditionalDispatch has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 15, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ead1bafec4658d05b3dd2a31e0a9d629f2a3e68e8a4b7f6efcb96dbfd5f9d3"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheIOMFBSwapEndPatcher.patch (cognitive 16): DyldSharedCacheIOMFBSwapEndPatcher.patch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (5 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBSwapEndPatcher.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"6947a0fe36cb01c22592468f9cc6377b43a4f44839f3f05f6673b0fbe2f1f645"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheIOMFBSwapEndPatcher.findSizeInstruction (cognitive 16): DyldSharedCacheIOMFBSwapEndPatcher.findSizeInstruction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBSwapEndPatcher.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94d23b0759e990930f1cb0dfc724435030c5b97c5d1e2f8bf665dec303780c0"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheMISTrustAuthPatcher.findFailureDerivation (cognitive 16): DyldSharedCacheMISTrustAuthPatcher.findFailureDerivation has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (6 pts), loops 1 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1e7626585eb45f0060188466bbd0a4c7ac7d4f536c9107d96935af1d7d8eda"}},{"ruleId":"D2","level":"warning","message":{"text":"DyldSharedCacheMetalVertexFormatPatcher.patch (cognitive 16): DyldSharedCacheMetalVertexFormatPatcher.patch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 4 (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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"db262d80576b9ccce7dcdea3abb7a29a0cff7a36e06d7c5349d52d37f05b2106"}},{"ruleId":"D2","level":"warning","message":{"text":"KDKMachO.loadCommands (cognitive 16): KDKMachO.loadCommands has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKMachO.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f58c7abea18bb27f9825fb619f9331c05125038c65ba921bfe7ef16e99ae13"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareCacheLoaderPatcher.patch (cognitive 16): CustomFirmwareCacheLoaderPatcher.patch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 4). 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a7410b31f61e7a7600232c8f10c8624c5ba6eb900b7c19f600f4012ee08096"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareCacheLoaderPatcher.findGate (cognitive 16): CustomFirmwareCacheLoaderPatcher.findGate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, loops 2, ternaries 1 (nesting depth added 5). Of this number, 14 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94df498f40056858885f761197de68a371411788f7c19ff801825fc545ba9ee"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomFirmwareParavirtGPUCompilerCache.loadPair (cognitive 16): CustomFirmwareParavirtGPUCompilerCache.loadPair has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 15, 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca23b263dc31b4c37196dd28ca13553da4307b1bcae1f39e6fb5a687c53a9483"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneHomePodDebugModel.execute (cognitive 16): VPhoneHomePodDebugModel.execute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), error handling 2 (4 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneHomePodDebugModel.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf88393c01551fae6f9dc725f511a2ec6cb6bddccee39ac7a3a44df7a41cecc1"}},{"ruleId":"D2","level":"warning","message":{"text":"VPhoneTVRemoteInput.enqueue (cognitive 16): VPhoneTVRemoteInput.enqueue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, error handling 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/TVRemote/VPhoneTVRemoteInput.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fe7528d5e13ca0c24ca42a6b564619ebda31ed6d34b1d1b8eee408ce0c9399"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneCustomFirmwareInstaller.applyGuestPatches: MethodTooLong \u2014 applyGuestPatches runs 1124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1024 over it, 11.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b0b14ad6f85bb207df26c55c000e49694a8d2916aad205e85eeef4e845c90d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneCustomFirmwareInstaller: ClassTooLong \u2014 3241 significant lines (blank, comment-only and punctuation-only lines excluded), 84 methods. The bar is 400 significant lines; this is 2841 over it, 8.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f601254cc2f9eaf8171b89af66d858b57f2de56c1ca6f80f9eeb3c2f6a49846"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KernelCustomFirmwarePatcher: TooManyMethods \u2014 217 methods, declared across 46 files: Drivers/KernelCustomFirmwarePatchParavirtTask3.swift (19), CodeSigning/KernelCustomFirmwarePatchCredLabel.swift (13), Storage/KernelCustomFirmwarePatchDiskImages2.swift (12), Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift (10), \u002B42 more file(s). The bar is 30 methods; this is 187 over it, 7.23\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcher.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af4dfb938f39c034e875a8b3645d8b0d9c7ee5b4cf81c34216cec2f89ce8f2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Firmware/VPhoneCustomFirmwareInstaller.swift: FileTooLong \u2014 3263 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: VPhoneCustomFirmwareInstaller (25-5064). The bar is 500 significant lines; this is 2763 over it, 6.53\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5bb05ac86fb2677ec6f4a74b9467f935dce42656b0edc9fbbaa2e2fceb8fc5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VPhoneMenuController: TooManyMethods \u2014 143 methods, declared across 14 files: Menu/VPhoneMenuDevice.swift (39), Menu/VPhoneMenuBattery.swift (15), Menu/VPhoneMenuBootstrap.swift (15), Menu/VPhoneMenuApps.swift (13), \u002B10 more file(s). The bar is 30 methods; this is 113 over it, 4.77\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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuController.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ae830a213f3c8e6a054955ba9edf7796f3ccbc879e8dbb8e520cbcce3e5798"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VPhoneGuestControl: TooManyMethods \u2014 117 methods, declared across 11 files: GuestCommunication/VPhoneGuestControl.swift (73), GuestCommunication/VPhoneGuestControlApps.swift (10), GuestCommunication/VPhoneGuestControlSystem.swift (9), GuestCommunication/VPhoneGuestControlKeychain.swift (6), \u002B7 more file(s). The bar is 30 methods; this is 87 over it, 3.90\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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd4079e68a95d8ee7c036841c6f0b713a65c0ff167d4c7699733bdd6dc3c9ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneCustomFirmwareInstaller.run: MethodTooLong \u2014 run runs 379 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 279 over it, 3.79\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"34740aa628483fbcb3835188e64c96f2613d925ac54bdf8602a2b00766fdd286"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CustomFirmwareVirtualAudio: ClassTooLong \u2014 1488 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 1088 over it, 3.72\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9088a7a22749e62bf471d9bd127e8bf7b7c6ed03bd73523c6f1355987a018374"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreMethod.spec: MethodTooLong \u2014 spec runs 330 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 230 over it, 3.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":"VPhoneDaemon/Daemon/GuestAPICoreMethods.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1effc76a889afa0ce788a87cc9c545c755eeed0c1a904925e3d7eeefdad61c7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FirmwarePipeline.buildComponentList: MethodTooLong \u2014 buildComponentList runs 315 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 215 over it, 3.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineComponents.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"785a759c88ab4b66d82eb52c370522e8f9131b5de9fba8a3a693de3e6de9d296"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: VirtualAudio/CustomFirmwareVirtualAudio.swift: FileTooLong \u2014 1492 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: CustomFirmwareVirtualAudio (188-2700). The bar is 500 significant lines; this is 992 over it, 2.98\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d36ac0bf4af8e66490355a9cc14768a9e146626c7fb3f13e63c6070f969487b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneVirtualMachineAppDelegate.startVirtualMachine: MethodTooLong \u2014 startVirtualMachine runs 286 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 186 over it, 2.86\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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b08fc055b83a43830e2b16c553e23537fdc61c7a2e0c0735c5bfea4ea8d5df"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FirmwareGuestSystemPatchSet: ClassTooLong \u2014 1139 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 739 over it, 2.85\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareGuestSystemPatchSet.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d310c618d2613eb036634c33c88d8df14c3ce3e6d0621c737bf1a1b3db5d6add"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VPhoneCustomFirmwareInstaller: TooManyMethods \u2014 84 methods. The bar is 30 methods; this is 54 over it, 2.80\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1102ce8f6d381d670d41c9a1a0df7e031b60350f25a7458ea650b3af95ab2e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VPhoneLaunchpadMachineLibrary: TooManyMethods \u2014 83 methods, declared across 2 files: Machines/VPhoneLaunchpadMachineLibrary.swift (77), Machines/VPhoneLaunchpadMachineActions.swift (6). The bar is 30 methods; this is 53 over it, 2.77\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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3b8514e9bc7ec9048140dfb912bca5af689f47e7e7186bbe2929f3ddb0e459"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GuestAPI.executeCore: MethodTooLong \u2014 executeCore runs 275 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 175 over it, 2.75\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":"VPhoneDaemon/Daemon/GuestAPI.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75e92a2e7dc839fae510d14f902b8ac0d11f60e1fe444b7e4a92bdeef49bde4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CryptexFilesystemPatcher: TooManyMethods \u2014 73 methods, declared across 9 files: CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift (17), CryptexFilesystem/CryptexFilesystemPatcherDiskImage.swift (12), CryptexFilesystem/CryptexFilesystemPatcherManifest.swift (12), CryptexFilesystem/CryptexFilesystemPatcherSealing.swift (11), \u002B5 more file(s). The bar is 30 methods; this is 43 over it, 2.43\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcher.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5034bc75f07eb5fd40767719b0d48237535584a43d4167b30977246b6bd3f704"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PatchSets/FirmwareGuestSystemPatchSet.swift: FileTooLong \u2014 1141 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: FirmwareGuestSystemPatchSet (15-1417). The bar is 500 significant lines; this is 641 over it, 2.28\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareGuestSystemPatchSet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9412ee60da833b7622e3c0dfd31d2542b683a294161fc0919771911438d21cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VPhoneVirtualMachineView: TooManyMethods \u2014 64 methods. The bar is 30 methods; this is 34 over it, 2.13\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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aef64dff6a7bdcb4f0b46a98629d2e4f9820c19d3680ac7940462aafc72ed47"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DeviceMethod.spec: MethodTooLong \u2014 spec runs 213 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 113 over it, 2.13\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":"VPhoneDaemon/Daemon/GuestAPIDeviceMethods.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f803655d4ae46de42fb34ceffd1266fc2c9abeae13591634b5ec73b5805367"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneLaunchpadMachineLibrary: ClassTooLong \u2014 831 significant lines (blank, comment-only and punctuation-only lines excluded), 83 methods. The bar is 400 significant lines; this is 431 over it, 2.08\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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6e124cf01cf05312fb85b6515eb6c0f175006d769389bbc4f43691afc1ac8c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneFirmwarePreparer.prepare: MethodTooLong \u2014 prepare runs 204 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 104 over it, 2.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwarePreparer.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8facd1baa3a244011b891947d268e5d93171bbcc26ad461b77b187c605c526"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: GuestCommunication/VPhoneGuestControl.swift: FileTooLong \u2014 942 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: VPhoneGuestControl (10-1244). The bar is 500 significant lines; this is 442 over it, 1.88\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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a582f7c65c84361f471140c4ee602614bd03612bc455f17e79167f9e10c526a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneGuestControl: ClassTooLong \u2014 745 significant lines (blank, comment-only and punctuation-only lines excluded), 117 methods. The bar is 400 significant lines; this is 345 over it, 1.86\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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5ce640c3a6ccc94498417dac94d9c6db060dd882e73b8b30676f9826222200"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneLaunchpadControlCommands: ClassTooLong \u2014 733 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 333 over it, 1.83\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":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b38ddb2f753595dbf1268f260c5bf9d9210d81620a1b1ee8c6712f2386c8bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneVirtualMachine.init: MethodTooLong \u2014 init runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b11bf324a5a30a1568a0bf366a2524df591e70d72d893bba4a09ebfce0a9180"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneVirtualMachineView: ClassTooLong \u2014 715 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods. The bar is 400 significant lines; this is 315 over it, 1.79\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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"7416304fd1c86a2969a0d65b43b068a31d7c2c3f64824faced5b14568ab62cae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Machines/VPhoneLaunchpadMachineLibrary.swift: FileTooLong \u2014 874 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: VPhoneLaunchpadMachineLibrary (13-1470). The bar is 500 significant lines; this is 374 over it, 1.75\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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac661d28812b48ac6a08b258ab5e103e88355f20af7bf4c80a44a324b67efc9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DeviceTreePatcher: TooManyMethods \u2014 51 methods, declared across 4 files: DeviceTree/DeviceTreeGuestDevicePatches.swift (26), DeviceTree/DeviceTreePatcher.swift (18), DeviceTree/DeviceTreeResearchBoardConversion.swift (5), DeviceTree/DeviceTreeVirtualUSBDriverKit.swift (2). The bar is 30 methods; this is 21 over it, 1.70\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cd6a47f9f0e275e7ed1fb8f2edf022dcb4f533467c6fccc7d21806efe12e59"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VPhoneLaunchpadControlCommands: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"706834d68be06a1dcb9f5386a4186589d887c5a71a6a81127eec71cd92c30629"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KDKRecovery.synthesizeSymbols: MethodTooLong \u2014 synthesizeSymbols runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKLinkSymbols.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e488d8f263c11ba88645898ef10e068949a8e27c9b91b212d9f004d8bd99b02"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Control/VPhoneLaunchpadControlCommands.swift: FileTooLong \u2014 796 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: VPhoneLaunchpadControlCommands (8-1115). The bar is 500 significant lines; this is 296 over it, 1.59\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":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da836902b00ca3556da276f4e80d2af24a8fa8eb415c05f30678f376c06eb59"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Machines/VPhoneLaunchpadNewMachineView.swift: FileTooLong \u2014 782 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: VPhoneLaunchpadNewMachineView (10-950). The bar is 500 significant lines; this is 282 over it, 1.56\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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadNewMachineView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38749dc01cd6f35acfe36b5426860939fab968584c11cd19b01f25e9c71d6233"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DyldSharedCacheArm64eX1BootstrapPatcher.lower: MethodTooLong \u2014 lower runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dbc8b5bb5cd1f6240795a0bcf2a03ed7f32cbbba6bca8589280e0c8d737cec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneMenuController.buildDeviceMenu: MethodTooLong \u2014 buildDeviceMenu runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuDevice.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1d960d6878eb79121f243866da0b60e43e86dbfcf887c5db258afd2b6f491f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneLaunchpadNewMachineView: ClassTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 208 over it, 1.52\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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadNewMachineView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b9836fef1cbc8982cc42afde0c9e6731e2021dfa17b1a088a7c942940ed141"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneOTAArchive: ClassTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 196 over it, 1.49\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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d6640bf45b0fb66e18c354e3ad785e7d34aba3f6da5fa14c7875604dd905ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: VirtualMachine/VPhoneVirtualMachineView.swift: FileTooLong \u2014 739 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: VPhoneVirtualMachineView (7-1339). The bar is 500 significant lines; this is 239 over it, 1.48\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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c9a8ab23353ac5b20f05709a43c7acdd9e6566b96cb0d135a1efcd03610145"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GuestAPI.executeDevice: MethodTooLong \u2014 executeDevice runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\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":"VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2036e600e672989c9891fc07e05722dbb630898ae01c6141d3e46ad5cd431003"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneLaunchpadPreview.run: MethodTooLong \u2014 run runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\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":"VPhoneLaunchpad/VPhoneLaunchpad/Application/VPhoneLaunchpadPreview.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3e22466649347ee1886014145be5f24a3d07e554adc0540d0b8f2bd9ba18f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Bundle/VPhoneTemplateSetupBoot.swift: FileTooLong \u2014 721 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: VPhoneTemplateSetupBoot (353-1210). The bar is 500 significant lines; this is 221 over it, 1.44\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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSetupBoot.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"377cb2eb6803cac382430be9e7b5a1d6e76bf065e326041244b11a6d115c5adc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift: FileTooLong \u2014 702 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 202 over it, 1.40\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6a3a3743792a66d1bc77baa67a44d11afa28c97f117af33123aa884b9e0f38"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KernelPatcher: TooManyMethods \u2014 41 methods, declared across 12 files: Security/KernelPatchDebugger.swift (8), APFS/KernelPatchApfsMount.swift (7), Security/KernelPatchSandbox.swift (7), Security/KernelPatchPostValidation.swift (4), \u002B8 more file(s). The bar is 30 methods; this is 11 over it, 1.37\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcher.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cdf3bd5fdc44a63568bfabd7787cb218ae14e50808546438a50e3a667e4434"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VPhoneConfinedDirectory: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8415290d870e51ab676e8ff11e771d8755d5590c3962da4ae8635835b78e8e78"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneTemplateSetupBoot: ClassTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 137 over it, 1.34\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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSetupBoot.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"c192fdd9d13d03fc7b3529cea1a5484f610b682f0f730419d7d5a69ae1eb3e97"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GuestIrisinInstaller.performInstall: MethodTooLong \u2014 performInstall runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e64346daac3417cd3c347d217bb3af3a9d04f05769a26291fe832b78aca97a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneVirtualMachineAppDelegate: ClassTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 129 over it, 1.32\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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"09971c2106f5cad3aa742f024a89f89686b99009235748f84ae6f019835ff37a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DyldSharedCacheSettingsRowsPatcher.discover: MethodTooLong \u2014 discover runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheSettingsRowsPatcher.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"09183ec290aaf617a25ebb3e2e97bddb140d14b5fccd837c65d2220f1265f455"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Machines/VPhoneLaunchpadCreationPipeline.swift: FileTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 159 over it, 1.32\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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadCreationPipeline.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7ea6f0aaaf02c0ecd991913ec0dc6e198c5f789991a2db0c53eb908c66d292"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CustomFirmwareArm64eX1: ClassTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 127 over it, 1.32\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3599a60407b98dadfdc8674a62589512cd9a5073928f207fedc8da50f22269"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Bundle/VPhoneMachineTemplates.swift: FileTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 157 over it, 1.31\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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplates.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb3b79b0ffc18d2b98dba60d1156d54284dfa4a8fc7e388c2bccd26da6b2e8e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneVirtualMachineWindowController.showWindow: MethodTooLong \u2014 showWindow runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"581f66b950a9e06c5b6e25a190c31c9627f758ca120846203f9ac9dca95c8680"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DyldSharedCacheArm64eX1BootstrapPatcher.planImage: MethodTooLong \u2014 planImage runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce9b756dd8a799e1beb5de06dad1ffade8a9266807d691da09b5c0b998f44d1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IBootPatcher: TooManyMethods \u2014 38 methods, declared across 8 files: BasePatches/IBootPatchRootfsBypass.swift (11), IBoot/IBootPatcher.swift (9), BasePatches/IBootPatchDisplayScale.swift (7), BasePatches/IBootPatchBootArgs.swift (4), \u002B4 more file(s). The bar is 30 methods; this is 8 over it, 1.27\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootPatcher.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1f0426f6a2b2845f5a2343178166fcef5da6d0bcf80779afd5c6c495784b47"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneCustomFirmwareInstaller.patchPreboot: MethodTooLong \u2014 patchPreboot 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":4085}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e170ccd753baa65b463480fbfebd48e48468a997437e73b14f82b4ee0069f18"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Firmware/VPhoneFirmwareCatalog.swift: FileTooLong \u2014 626 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 126 over it, 1.25\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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareCatalog.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f86a47cecfa03b5e56356fc63cb73bb4f531077a17ae24ce6e3a816fd3b8eab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: CustomFirmwarePostRestoreDeviceTree (37-844). The bar is 500 significant lines; this is 125 over it, 1.25\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61fbac4e530b513d80893bce01c0831c9f488ea8ae7bd854b55dd83a433dbcc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ExecutablePatches/CustomFirmwareArm64eX1.swift: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: CustomFirmwareArm64eX1 (8-713). The bar is 500 significant lines; this is 122 over it, 1.24\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareArm64eX1.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b932d90bafe2e1b8a85d826bc8ee3bf0b60584161dc58fa410245aa7ebdab4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DyldSharedCacheHypervisorVirtualMachinePatcher.patch: MethodTooLong \u2014 patch 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"d417bc6e441d4550305572c96bc9a6031abec876a4da8e49bfcc532efbba6a71"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CustomFirmwarePostRestoreDeviceTree: ClassTooLong \u2014 489 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 89 over it, 1.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f7f63ecdfd02936dbb0fe961e2470f17b7d1166b6ed6f82c5a79250fe1cf2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Transfer/VPhoneOTAArchive.swift: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: VPhoneOTAArchive (25-876). The bar is 500 significant lines; this is 106 over it, 1.21\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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d4605820d1b98842b6e7449e0cef1e328f0be837a5236f7cb0a105b971e946"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneVirtualMachineWindowController: ClassTooLong \u2014 477 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 77 over it, 1.19\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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"812014c1401bff8dd365055163c7ab7ee45533c478024c01a1e93d903fd2d42e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDetailMethod.spec: MethodTooLong \u2014 spec runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\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":"VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0001cfec81e26d4eb21d96ad9598ae8f30f91684ff35cd4a07f5937427e69b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TXMDevPatcher.patchExecutableRemap: MethodTooLong \u2014 patchExecutableRemap runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cf6ff76f1683d15e876c15dc61f6bf71c20fcb2c4dcb7dbb9c03c67e4c6c53"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TXMDevPatcher: ClassTooLong \u2014 472 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 72 over it, 1.18\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a5f617d94a29cf4c1a9c61d5cc0f3d261ffc728f40cf5737d1b2ec3c8d1776"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneFirmwarePreparer: ClassTooLong \u2014 467 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 67 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwarePreparer.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2f5154f9da3934ce2d03fa0f038834d22f3018f80b47403d94fa8a8e33b8e1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VPhoneTemplateSetupBoot: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSetupBoot.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"90827bc37ba01b866d7566bc683e6354d4229483c19dc030c9018d7d7c7fb583"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneVirtualMachineCreator: ClassTooLong \u2014 466 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 66 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreator.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"500faba13bbc7d228bd945a1881e5a36bd4bda4a833eece65ce4135f81762072"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Process/VPhoneConfinedDirectory.swift: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: VPhoneConfinedDirectory (99-788). The bar is 500 significant lines; this is 76 over it, 1.15\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":"VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72c4297683758b4c9e961c2250e601eb886d2e6457ff920770b581a49f5b1d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Firmware/VPhoneFirmwareCommand.swift: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 72 over it, 1.14\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ccc08e112d9d59909f882d0dce396c7bfe0d9caad21dc582a914c7a9581618"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: VirtualMachine/VPhoneVirtualMachineTemplateCommand.swift: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 69 over it, 1.14\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineTemplateCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"137c4161f814f9944c8c75b21f3521d16493e5dbf3c392f6777484d20816b64d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Network/VPhoneTCPForwarder.swift: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: VPhoneTCPForwarder (54-866). The bar is 500 significant lines; this is 67 over it, 1.13\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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cab0036626e1ec3a78986803e6acb6fd9d1d72df9c4aa722b0786450a0c51f5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FirmwarePipeline: TooManyMethods \u2014 34 methods, declared across 4 files: Pipeline/FirmwarePipeline.swift (12), Pipeline/FirmwarePipelineDiscovery.swift (12), Pipeline/FirmwarePipelineOriginals.swift (6), Pipeline/FirmwarePipelineComponents.swift (4). The bar is 30 methods; this is 4 over it, 1.13\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipeline.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"15772a5f4f4218da14244f5c22d04569ac72ace30a09fd41c38c94980e68653a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TXMDevPatcher: TooManyMethods \u2014 34 methods, declared across 3 files: TXM/TXMDevPatcher.swift (14), TXM/TXMExecutableRemap.swift (14), TXM/TXMMissingProfile.swift (6). The bar is 30 methods; this is 4 over it, 1.13\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"952b10669da801b8de18425766d7403fa4c7779a8ca0960547f60a7d1ab5c214"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneTCPForwarder: ClassTooLong \u2014 449 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 49 over it, 1.12\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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"614ccac19da0ae023ee9ab716a1b856d4f2b5ad58b0088aa5031b8823eb2f31f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneHostAutomationServer.respond: MethodTooLong \u2014 respond 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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneHostAutomationServer.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12776aceae3a915a26ab431544e783780bdd7274eafa35f244d011573b7a70e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: VirtualMachine/VPhoneVirtualMachineCreator.swift: FileTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: VPhoneVirtualMachineCreator (78-835). The bar is 500 significant lines; this is 59 over it, 1.12\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc053cf9c45f98bf61f97a1016029fd7a253f5628c47a6c490f02e4832da4bd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DyldSharedCacheMaxSlidePatcher.patch: MethodTooLong \u2014 patch runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMaxSlidePatcher.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d30639dfcebc8d31dfe843089a6189b3beb5ce2d3ae355dc48316f1e961431b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Daemon/GuestAPI\u002BDevice.swift: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 54 over it, 1.11\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":"VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b0c7b1d5b5349a38e726b7d6b724316f63c4f0c1f58494fecec4d0e1132dd7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VPhoneTCPForwarder: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d873ead7d97672984d0df8268fb98df946c638477b1b443e893e5bec8835ff60"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DyldSharedCacheMachPortsPatcher.prepare: MethodTooLong \u2014 prepare runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMachPortsPatcher.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b23a097d27811d3f77e678c8e8c9edcbfc891e9f7f8bedb78498d1b63c7376"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneCustomFirmwareInstaller.runKernelUpdate: MethodTooLong \u2014 runKernelUpdate runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0792dbcfbf12429d976606e2c3101ee82fb7612047cd9c130e860fc6c8c9fd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GuestAPI: ClassTooLong \u2014 432 significant lines (blank, comment-only and punctuation-only lines excluded), 173 methods. The bar is 400 significant lines; this is 32 over it, 1.08\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":"VPhoneDaemon/Daemon/GuestAPI.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1b616fdfc80d82c39f15e3a8e314717bf72e9f49b3b53d72710e5972fa6699"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KDKImageExport.layout: MethodTooLong \u2014 layout runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKImageExport.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5137f34dfbaa77e32236f9981286dee9a02517576824e2a9f10dfb086f234f63"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneHostAutomationServer: ClassTooLong \u2014 430 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 30 over it, 1.08\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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneHostAutomationServer.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eccce8ab19a1ce312df666a7b8642d32e1bad7b342c6893f2ef2503359c1c49"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DyldSharedCacheCodeSignature.reattest: MethodTooLong \u2014 reattest runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheCodeSignature.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cd379f238c66374d4530c0e7a9ea5e963403d2bbd4e88d04749ed4316c6179"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/VPhoneVirtualMachineAppDelegate.swift: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: VPhoneVirtualMachineAppDelegate (6-716). The bar is 500 significant lines; this is 33 over it, 1.07\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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee6349dffbfb3a749448f8b09b7cc3cfe5310f80a67747805125d02602b485e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Support/VPhoneNetworking.swift: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: VPhoneNetworking (309-890). The bar is 500 significant lines; this is 28 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":"VPhoneKit/VPhoneCoreKit/Support/VPhoneNetworking.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4ef9e4e666617b53dfef5c79160c50658d00e8da96d5ea0f9d7d75e52263cd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneLaunchpadPreview: ClassTooLong \u2014 420 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 20 over it, 1.05\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":"VPhoneLaunchpad/VPhoneLaunchpad/Application/VPhoneLaunchpadPreview.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"93372cb200db3f6020cf1b6fd215f3b508eb8eccbd325e3fabe77b8b008c2921"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneIPSWCache: ClassTooLong \u2014 417 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 17 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d439185f664c5b84de4aa6626d7535aaf375b1da16fa23cfcff267b105f7a3e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneConfinedDirectory: ClassTooLong \u2014 416 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 16 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"395967731cb2f755c0e21122d3fdeb304a386c4440a9e3310238d1294636ea7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Bundle/VPhoneDiskRebase.swift: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 16 over it, 1.03\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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"820668bcb0e39d53e00ff460d738e74ec4a5c7dc9ded80c3f1e19624a951a9e2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VPhoneLaunchpadCoreBundle: ClassTooLong \u2014 412 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 12 over it, 1.03\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":"VPhoneLaunchpad/VPhoneLaunchpad/CoreBundle/VPhoneLaunchpadCoreBundle.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a1871899680238a19201b4aec26f459d6049796ff6f9ea1c91efa5acb870ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DeviceTree/DeviceTreeGuestDevicePatches.swift: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 13 over it, 1.03\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c6ec5856e6ba8351a13f99b7ad8a342a2784b25e2cecd7f76439b60b260c6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Firmware/VPhoneCustomFirmwareMachOVerbsCommand.swift: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 7 over it, 1.01\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareMachOVerbsCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1a953b7c22062fa5ba91d3f9ed4f32348afcaafde77bc4c80f3103ceee96cf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DyldSharedCacheArm64eX1BootstrapPatcher: ClassTooLong \u2014 405 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 5 over it, 1.01\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb347dfd6558d00b3d6052f4b4a8fa879c2199b0c939a1acec83b0001281169"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VPhoneVirtualMachineKeySender.asciiToVK: MethodTooLong \u2014 asciiToVK 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineKeySender.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"556f6f6edfc241f239263331db62d0ae3221d477a8eb83096d0ce1c8865daa21"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 10 shared lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift:68-84 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift:90-106 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheSettingsRowsPatcher.swift:186-205 \u2014 These 3 members are variants of one another: a block of 10 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3b01869d68c813381711be4a66e706695640ce52d93c19445f63191cecb17b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (51 shared lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1557-1647 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1691-1796 \u2014 These two members are variants of one another: 51 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"466caf1c4459bbed7b7875991b64be44847af3c008862fa4adc5f59c68431adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (41 shared lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift:249-301 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift:472-520 \u2014 These two members are variants of one another: 41 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10749feb0d4bf42420ce2dc2bde01b3377ee94b9686d62c66a915116bebf87e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift:650-662 | VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSW.swift:197-209 \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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45877541626ac001e9feeed0b84a6e3982da7fea134dab158b6109aebd6c516"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift:31-71 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift:75-95 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"606ade922233dea1c9b26cdf9f2eb7fd3f008e7e1bcfdfaa73c3c3e011b80cd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchDisplayScale.swift:90-99 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:126-222 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:225-241 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:246-300 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:303-323 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift:297-304 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift:238-246 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchDisplayScale.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dba2cd64ce72eec790610405aa0fd0fd64dc276f033c48811a723eb29bcaa93"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:427-511 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:556-626 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:662-735 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:785-873 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:920-1007 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1054-1150 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86a22f652fde72621cab0067b490e437024872db2373b9352f79ab7fe6b835f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:131-149 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:154-172 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:176-194 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:636-654 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:680-698 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7791cc4445b756e2a27566477118e07afb812b83f530d8a036cb5a33ad531fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift:65-85 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:51-71 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift:48-68 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift:54-77 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheTextRecognitionANEPatcher.swift:50-70 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6423d023cc51d5c3f493315821a4979065b25b169f14f2c5e9ab40e53cc6c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:262-284 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:306-325 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:347-369 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:391-413 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:466-488 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05a2c2c3c93745bb660c51afb4c211523664656cc5a2e905914fb6e78f2b5c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): VPhoneDaemon/Daemon/GuestAPI\u002BHomePodDebug.swift:11-27 | VPhoneDaemon/Daemon/GuestAPI\u002BHomeViewDistance.swift:9-24 | VPhoneDaemon/Daemon/GuestAPI\u002BVisionOSImmersion.swift:9-49 | VPhoneDaemon/Daemon/GuestHomePodDisplay.swift:15-25 \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":"VPhoneDaemon/Daemon/GuestAPI\u002BHomePodDebug.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d02b88f3cf85202eaa15d13b55ee37e4e02d53f8dfc5c9142d75ae85d2d6ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1181-1276 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1306-1416 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1487-1554 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1875-1947 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"3019945d5e8dc0bcbdf7fa1a0e3b367650dc77fb8787e2d14b16dd9aef2b1e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:33-126 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:134-198 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:204-273 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:282-368 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03f6e9e48875bfaf01e7806be5f545b00765a674034da28cdf2bfae7f37707f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchLoadDylinker.swift:14-53 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchPortToMap.swift:14-67 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.swift:38-96 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchParavirtUserClients.swift:54-139 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchLoadDylinker.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aaf82a85ccf77cf40de0ab329814877013d260ebd5c071ca6ff376fcbd63020"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:94-172 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:281-385 \u2014 These two members are one piece of code written twice and then edited apart: 79 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8458011d240af1130904c51fbf5751eaea6c5f0f05c825cdd8fa0bc6672b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 49\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:73-124 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift:70-118 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift:79-141 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 49 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"51dfc2c30f45891c97251f94f8fd0c56a8134b78b1fad8de02679cab06782b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift:152-227 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift:265-349 \u2014 These two members are one piece of code written twice and then edited apart: 76 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa2448b06d6642da9c65ba80d65963f34c0ca439345d80b41516ad2e4b13a0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (91 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift:98-188 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchPostValidation.swift:14-119 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"162e7d9486b76558fa5cd5498ef2f1cda31912bdd74ec2a680637b20cf5340b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): VPhoneDaemon/Daemon/Bootstrap/RootHide/GuestIrisinInstaller\u002BRootHideBase.swift:214-261 | VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.swift:147-182 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/Bootstrap/RootHide/GuestIrisinInstaller\u002BRootHideBase.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7682ea959be9afa15e3da501fe4ad193fa9a064a816fd31bfae4970ed59bf10c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:70-88 | Research/Guest/SettingsRows/ReviewedProviderPatch.swift:71-89 \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":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d517531a619257a94fbf5f2e904cefe2b1e6982eec701e1aef32b2c7c9d655"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:217-239 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift:200-229 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"31afb8f6bf57c8de51e4b78afba8c7e3f020801b0d2caff68f7fe7c1aa311d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift:108-179 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchSandboxExtended.swift:134-191 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97f28f4f60b13520aefefebb5699cce70d1e2286a1ca570b1a580023e3d211d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:728-770 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift:179-224 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcc934496f098d43aa34496f7812e407369e8f38fc9722b54b60d9cf12066c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): VPhoneDaemon/Daemon/GuestAPI\u002BAttitude.swift:10-37 | VPhoneDaemon/Daemon/GuestAPI\u002BGyroscope.swift:10-40 \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":"VPhoneDaemon/Daemon/GuestAPI\u002BAttitude.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"270a089274759562c3c6290ac7f987d6702cb685f35c2476ee782077d2892f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift:155-198 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift:205-247 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"40117978384033f9ae5897ea814acdacdc2eaf9f4f174db51e389d6cff982732"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileWindowController.swift:23-72 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainWindowController.swift:18-65 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileWindowController.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e17ade4f03df12d9185ada8462b228ca70a306b2db64340dfc02c90ed9a216"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestClipboardView.swift:7-45 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestPreferencesView.swift:8-45 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestClipboardView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ac1876456fb1844192a041379bc0492529dc3e6a7dca69a43e734f5c351e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Processes/VPhoneProcessesView.swift:152-182 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Processes/VPhoneProcessesView.swift:185-216 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Processes/VPhoneProcessesView.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c847323beff97f80700f13d1466ed48efd65c159705b1c1383f17d3c0c9a6eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareLocationdCohorting.swift:15-44 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareTVSetup.swift:14-44 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareLocationdCohorting.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ad6a3a3862311f6ba0125a477522974503380517620e93c56362642f20bc48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:530-568 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:695-738 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3d2a5a88b28cf8070609e41419aae0e41b5baa2b78dcc894f2cd7f2402462c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootPatcher.swift:119-144 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift:89-130 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift:57-85 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootPatcher.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea093c4612e4de909b24c070d55daf4bc6a8994e82f0c7b36ee26e96da0bca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:772-795 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift:237-264 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"d808ebcc01110f9dae255bc17075a0e3dddfde0181e4284712b5edffde7efaa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchSharedRegion.swift:15-62 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift:23-64 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchSharedRegion.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"493599712cbc9d504acd49a20d23eca149bbb07807e95bd7f39b3005de4a9691"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:386-402 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:450-469 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4e3d70e7e617f3b519ac9796f273566cd3901785d17f2ac14df33f1a703e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:2499-2522 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchDisplayScale.swift:126-143 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2499}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0a31fd5f7bcce26d1ce6f178bac2dfd5cbaf5c47177c0789d12ee52c0aca55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift:656-684 | VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift:689-725 \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":"VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"deee7d45ae2fef62addc251291648c8c659dc6d739b338ce21f0137e46063202"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:204-221 | VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:409-425 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae570a8ac05cb203e94c3514ed3c2cd13c4a4f07bfe4de3e38d263307592f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:2158-2186 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:2461-2485 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f2f71b04af4b6ec21a2ffabb0429212d0cafb95d63429b0704f5ee572210c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchTarget.swift:88-108 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhoneVersionRequirement.swift:104-124 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchTarget.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76214a0b34e06ac7a54cee45f94a744e4bf0fa1528e8f78b39dc42f79a4895a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControlAttitude.swift:23-34 | VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControlGyroscope.swift:25-37 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControlAttitude.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc3f9ca34ae0a054b8182d9b3a37da6fea5e98562bde631aba5979a52ade83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift:246-255 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift:325-335 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift:104-115 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"33877dfbfaab6a1f74139a249840647fd044046da47f7014c5da4fe1ed17e826"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift:917-939 | VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift:941-961 | VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift:963-982 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe13517228f1752c16cd5e904d05c0980abd367a01e1ebc0611c1e88347ef96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:4881-4897 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:4899-4923 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:4928-4944 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":4881}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d5b5e87f5544d49db635a33b5bcf877867c1d2002943f1a0c9ab9395447c05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:477-486 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:623-632 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ea8de97326393370a36649418899d9428ced87bfbe5de0199a72e2112b5e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppWindowController.swift:31-60 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestToolsWindowController.swift:100-125 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppWindowController.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cca18745eef2f9fd36d17b896863db5a9d26bd1f6143c1638184633f8e4d5ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): VPhoneDaemon/Daemon/GuestPortForwardHandler.swift:72-115 | VPhoneDaemon/Daemon/GuestShellSessionHandler.swift:292-317 \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":"VPhoneDaemon/Daemon/GuestPortForwardHandler.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a73b842a6f7359535652c04147435a5a444fa96dbe885d30670c40e30f8b11b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift:143-163 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift:168-189 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8242496caae97fda158e6c18c499818312f4839bda323e06b88fe4269ed035f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift:834-857 | VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift:859-881 \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":"VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"0121f20d5c2dce93275bedfe357bee3964113f0ddcfcd532d40ce4af9035f08c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchHomeViewEnvironmentCommand.swift:14-23 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchQuartzCoreUnrotatedFramebufferCommand.swift:14-23 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchSettingsSoftwareUpdateCommand.swift:14-23 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchHomeViewEnvironmentCommand.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d9d5e145da51a8ee3dcbb686c4e5779cbc8b8438bf781477deb468a371cf82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneHomePodDebugModel.swift:121-129 | VPhoneKit/VPhoneExternalAccessKit/VPhoneAPIClient.swift:12-27 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneHomePodDebugModel.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"0771a976d044889d97b59432ea60bdeb2cb35762e858549987019653198cee6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBluetoothVirtualController.swift:18-38 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareJetsamDisableAllowed.swift:24-41 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBluetoothVirtualController.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbca75b4789c6a93a130c2d22c7af8a20ce74d39e67e274ab6e7b818332d8a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift:340-360 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift:679-702 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"23315d8cbe7cce26f153c59d59846632d809e816df251370573cfe751801e53e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchLaunchConstraints.swift:27-72 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSpawnPersona.swift:17-55 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchLaunchConstraints.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb892f04658d7531031fd326cf307ff2190af88185dfc232fb308b52a6420ebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift:184-202 | VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSW.swift:80-97 \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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b337122a940cb1d4427251485041c01ae78b52decef63450af46d11dd1debdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppBrowserModel.swift:227-242 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppBrowserModel.swift:250-270 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppBrowserModel.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"93eb5b70afe3a6fc16e1d839e4e5d1984abde4e164a87a253378cbb215419124"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareMatrix.swift:447-469 | VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareMatrix.swift:473-503 \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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareMatrix.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d16907f3c68b5863d3f095e902d3e6095059f1a7491d2151d6f614c4b136cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift:451-467 | VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift:478-497 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc654cfad1f108a713f2289cebb8e81cc2f8bfb8f854739977adeba76ae674a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): VPhoneKit/VPhoneCoreKit/Bundle/VPhoneOTAUpdate.swift:10-28 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneOTAUpdate.swift:30-42 \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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneOTAUpdate.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05d50c91a50157d64cae265f5a13bd03f25305a9f5607cbe2a88a367216b7d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:154-173 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:193-212 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a5b1ed2a9d4e566be83621b39445644c7f035dc27bf3faad386b263567e03e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuApps.swift:76-95 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuApps.swift:133-154 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuApps.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4283b6485388c7c9494b1ca08daa752804a2f16660f6e10f822bfc2d4cdbe5a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSWCache.swift:145-160 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachine.swift:178-191 \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":"VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSWCache.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbbebff7a8943f360e78b1cdde31913b47601b59bdf4b9270200e80694f24a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Jetsam/CustomFirmwareJetsam.swift:185-201 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Sep/CustomFirmwareSeputil.swift:175-192 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Jetsam/CustomFirmwareJetsam.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff7c3faa84c2ba11bbfb21507eec0eec7a171db3b3e23617107f06d7d22335e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:642-659 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:762-782 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:900-917 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1034-1051 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b97554cba78331d1bd62fa86c407cbb0d8a6eed4b5e13ba828e640b8df21ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuRecord.swift:70-94 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuRecord.swift:96-121 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuRecord.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3274936da5eb693819bb8c7a43949febc444f115211ec73635595e2574479659"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Research/Guest/SettingsRows/ReviewedProviderPatch.swift:95-100 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:196-203 \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":"Research/Guest/SettingsRows/ReviewedProviderPatch.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"996227a84f19ae41f3f171b9b4fdfb03de481da80c79b23544a0d386e6c8e17a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneDaemon/Daemon/GuestDisplayMetrics.swift:51-57 | VPhoneDaemon/Daemon/GuestPointGeometry.swift:52-58 \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":"VPhoneDaemon/Daemon/GuestDisplayMetrics.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12e41422f07d012b7ac48842fb2738ceeda42cc2b40696d77cbf93d8fa8ab23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift:167-183 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBSwapEndPatcher.swift:123-151 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLockdownModePatcher.swift:131-146 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"284c4dea38b88559947018089800b0f3cf569db2b73a75ec8ac86f75fa55abca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift:290-307 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift:311-328 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"85dbba4f1b98a90a23ca2fc518d0ea1816005faa2b503000b71091bee71e7fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift:558-579 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift:587-612 \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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aadf2862d8ee62ce055bb6e554593055cbdc716f187da6883070477c9e200ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESDepthClipPatcher.swift:214-222 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift:259-269 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESDepthClipPatcher.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"bece9e1370cad4630babf6a3a3d53a388b6db350fe0d2f086da219b5700ed5dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift:383-389 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchVmMapDelete.swift:170-178 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift:334-340 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0589d93d908d2fb8712a84de7a1ec9294818ba360eb5195f50b7ba6df521de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift:328-333 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMMissingProfile.swift:100-108 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd1a9dde2b462b1decdac20aa89afe39011a05c70ae7d3e99a6f07d112ca6b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchDeclaration.swift:77-91 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPreset.swift:142-154 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchDeclaration.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"633987837d8e80ac2999e67b7d0b47eae1ef2fee6bd97b1cd278cfdcbe64350a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift:343-349 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift:313-321 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c6c5f679c6f1fb9100bc4cb5a3bd0096f527f96a4f504629f660400e8edaf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): VPhoneKit/VPhoneCoreKit/Firmware/VPhoneRemoteZip.swift:157-173 | VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSW.swift:372-391 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneRemoteZip.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb3d16fdf0dde7fee43f9aa1edba038fed792c021bce8d34d7ef5419104ae3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): VPhoneDaemon/Daemon/GuestShellSessionHandler.swift:400-410 | VPhoneDaemon/Daemon/GuestWebSocketHandler.swift:60-72 \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":"VPhoneDaemon/Daemon/GuestShellSessionHandler.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d19bff675140d258577bb7942be5e2cb4dc50965ec7e1de19db3adcb8b9a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineSnapshotCommand.swift:129-145 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineSnapshotCommand.swift:161-174 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineSnapshotCommand.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ea467bfee1b41008768403e29b7fd22014299f201f053f1f511c7f71e9a2a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift:326-338 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift:341-353 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift:356-368 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift:401-415 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"072a3ef5f88da9984259b0c90c36d82c8d014f915e5f3237a096eeb06567a9e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): VPhoneKit/VPhoneCoreKit/Network/VPhoneUserspaceNetwork.swift:239-259 | VPhoneKit/VPhoneCoreKit/Network/VPhoneUserspaceNetwork.swift:261-285 \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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneUserspaceNetwork.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d80d8bc16b26b87c669dfc68e9d418927000c8c0342d0e2060b38c031bfbf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.swift:247-257 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.swift:293-305 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"127e5595816f4271a6cf5526e169cec49fa671e05bdc2ec10828e8a3a9375797"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:77-82 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:496-502 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"583a7907782d55f9af1b5f203ab530b5a238d3d6a6838b79525d9578d887d801"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader\u002BStringAnchor.swift:62-75 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:2686-2699 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader\u002BStringAnchor.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c491cb48c30d221d8de44f15f3ef1cce2aa67ce8d0240a25baace2b019a039a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:348-360 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:411-423 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5e50056fb99ec5e11a48be24b6e3bd4f60cdd259fc473d8e83af6e37093852"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPreset.swift:184-195 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchSelection.swift:101-113 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPreset.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"add8c93a818e6f3c1cccbba4153d77ef9c50c1aa659449fb4e96afaffa5da57b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 15\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:114-135 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift:260-276 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUIndexOffset.swift:103-117 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUPrimitiveRestart.swift:61-75 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:530-553 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift:225-241 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c814dc9f75666d2408341a44877b6ece9a8e4128c0be2aa4a442313f85485724"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:130-137 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:140-147 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:179-186 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a50aef5c3d6de0a115ef2c04657a73eb7bee5fd34c40de431db18dd7a38611d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneLaunchLayout.swift:166-171 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskHolder.swift:58-63 \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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneLaunchLayout.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3007732eb512443af9d31ddce53d3f5b27f622819dde3c5576be4c66bcdc837"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift:329-334 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchDisplayScale.swift:77-87 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b49f59a440f01ad37e03da1b55d55c7060046e8811af103eec36b071401532"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): VPhoneKit/VPhoneArchiveKit/Archive/VPhoneTreeFingerprint.swift:237-245 | VPhoneLaunchpad/VPhoneLaunchpad/CoreBundle/VPhoneLaunchpadLocalBundle.swift:128-136 \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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneTreeFingerprint.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"70934ffc4fbcb4f07ae380b0c33341ae721ded85d43edb9e59ffb44d2dd3dd7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift:130-151 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachOCodeSignature.swift:363-378 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e374097da570b624ee3fdcb6d5a08eee28b5dfd16c5638cc5a0c9af4b25e3bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDounmount.swift:83-90 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDounmount.swift:93-100 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDounmount.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5505234172db24e2f1b72353362d30739273a2c2ca4a752fcfc4478c5a2416e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:23-25 | Research/Guest/SettingsRows/ReviewedProviderPatch.swift:24-26 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:107-114 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e3b68b1499d40f48ff8528162d223f6b1895bb8859d31ed304a8d80d731a09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:850-864 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:938-954 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21856177764d366c69dc51018b6a32c22c6c354621c2df46d1f38be62213cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBSwapEndPatcher.swift:340-359 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift:255-279 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLockdownModePatcher.swift:271-282 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift:373-387 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBSwapEndPatcher.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab66efe189f34185f9314ae03a2dc6635597844990e4318de92c5553dee6288"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): VPhoneKit/VPhoneCoreKit/Bundle/VPhoneBundleOperations.swift:129-139 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneBundleOperations.swift:159-169 \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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneBundleOperations.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddaa21a15c8a9a2a507e026f6fe4c57e60524b714cee045b3b42caea1684879b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplateKey.swift:44-56 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplates.swift:29-45 \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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplateKey.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"05db56053d9a9e5932052eaf324ac40b0e0c1523e6d51abaa86d5dcf641f242d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDiskImages2.swift:231-244 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDiskImages2.swift:247-254 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDiskImages2.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde98cede9e0b2f51db15418e4f10f66e1f0178cee80c5aea2ce8f4b5f16c66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCollectionBuilder.swift:283-292 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneMachineTemplateTrimmer.swift:181-192 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCollectionBuilder.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad174a240e058898340c5a338cba06e91fcf3114f732838258205bb3a6007b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:475-493 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift:374-386 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45177001555c6dfe4073e6fbdf57dc661bdca7c099fa845036256ee45f4953b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:1088-1097 | VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:1101-1110 \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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"c187d423d4fed9b60cce4c18f1e341e10b3b7b320fe63c1f03b3f585bfe39b21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift:274-282 | VPhoneKit/VPhoneCoreKit/Network/VPhoneUDPForwarder.swift:122-130 \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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa61de54b717392c526409d9362b5a50b85210e11edf778aee3ddf59d9011f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 16\u002B corresponding lines): VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift:250-267 | VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift:271-286 | VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift:290-305 | VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift:309-324 | VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift:328-343 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"338da9eec540db569a743c17060cae7a777cb2611c3452684dca69316783c07b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift:139-152 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Manifest/FirmwareManifest.swift:497-511 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49944f01732a0039795396069a103e8739eb186900f52387db25a8c0fbe60fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Sep/CustomFirmwareSeputil.swift:459-466 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:2344-2353 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Sep/CustomFirmwareSeputil.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d33b195623f9a61eefa6a219ee48c94800bfcd728c245b85d49fc0545d40af3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:1427-1445 | VPhoneExecutable/VPhoneVirtualization/UI/VPhoneHostAutomationServer.swift:707-722 | VPhoneKit/VPhoneCoreKit/Support/VPhoneGuestFileName.swift:136-149 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e94fa35d2a162619b0e7a52ae0e1ef32ea3a8daf23ea058eefd6dc9c5a6723e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift:653-664 | VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift:668-679 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"762e1c72a6483691c0117837df68dba5a32bef0d2b99f52f6c41c8d2ab36f5dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift:241-244 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift:323-326 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchArm64eX1.swift:99-102 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift:323-326 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMMissingProfile.swift:87-93 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b61e23a35440ec9e73ef70e0411037351a2fdaa4f79461f843416e1dd85931"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:72-75 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:78-81 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:84-87 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64EncoderCSSC.swift:6-10 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"37347bf995dc3ebfa1025ba85359e66a6ba356d230966afc1f01ce3971fe82c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): VPhoneKit/VPhoneCoreKit/Network/VPhoneUserspaceNetworkResponder.swift:311-333 | VPhoneKit/VPhoneCoreKit/Network/VPhoneUserspaceNetworkResponder.swift:385-399 \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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneUserspaceNetworkResponder.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3e808181993be1aaa780eb5e9c087dbb183dd0a18f2918afd8cda8b16dba2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift:154-161 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchExcGuard.swift:168-174 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7493ae3bd6ee1ed58b05fba3579ee3076b62ef4e26f605a46963f87587eb933"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:486-498 | VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:517-527 \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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"786f5efee0eb5694f4b96def24e2bead259609629890a6e7eda99a88d28004da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:27-29 | Research/Guest/SettingsRows/ReviewedProviderPatch.swift:28-30 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:116-123 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b3b29cdec98baacf0a20fb4e1df8c09507e24fc4512537e43b4dfba2c49e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSpawnPersona.swift:139-147 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift:136-144 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift:146-154 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift:248-257 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSpawnPersona.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1479a39318323e963bf9475a10d37d550a2b5bcb2cf0f0011db5de86d54961af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheCameraPatcher.swift:199-219 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheCameraPatcher.swift:224-240 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheCameraPatcher.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"471c28d067718ff208598acd4612b955a66b66d53c6ef00b4f01ae704f8c51a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareDownloadCommand.swift:116-125 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneMachineTemplateTrimmer.swift:194-202 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareDownloadCommand.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"457b87ffac0ec2c56951965325bd3d52b6777fcd7a22f556dfa68d66f8ac75ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:261-266 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:276-281 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:288-294 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b6e6be3406ebc33a61fada2fbbaed5cf607d7697e9a828628d1f4d96c93768"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneDisplayOrientation.swift:61-68 | VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneDisplayOrientation.swift:72-79 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneDisplayOrientation.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcbf79e89fb387d6bc3f90e95ce917c85ceae92f465ec0d383d58dcdc7b5ac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): VPhoneDaemon/Daemon/GuestPortForwardHandler.swift:149-162 | VPhoneDaemon/Daemon/GuestShellSessionHandler.swift:412-420 \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":"VPhoneDaemon/Daemon/GuestPortForwardHandler.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"53df4f6453714acd12a8eab0eeef654a0a5d6e71b96aff8a9412918e8f7880ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControlCryptex.swift:145-152 | VPhoneKit/VPhoneCoreKit/Firmware/VPhonePCCCryptexctl.swift:107-114 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControlCryptex.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"603f51868b6a19735e78e0e34b91c97256f6fd2ff56b2d64da6669b67a3b8c51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift:54-66 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift:37-49 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"027b72412d8941949f7cd81c73c5070df2240950003dd17ede1ad7ff658118a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 6\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift:322-327 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift:179-185 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheTextRecognitionANEPatcher.swift:197-203 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheTextRecognitionANEPatcher.swift:205-211 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSpawnPersona.swift:174-181 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift:229-236 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9839679a52b6f9a2ce25796710969b6938979975c74387ec7c5d8b70a6e87a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift:328-332 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift:342-347 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"392bfc84f0096d5b5010f5200551639ccf0427460403a42bc924478c336361b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1110-1119 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplateKey.swift:472-482 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b180b008adf780f757897cd44d57d2e1f39b36f05b80c693943f548d70496e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneVirtualMachineManifest.swift:596-615 | VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneVirtualMachineManifest.swift:620-639 \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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneVirtualMachineManifest.swift"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"e210b54f6bcf98afafdffc2525be94c89afd91c6db886050a97227ae6e40d3b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift:318-325 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift:227-234 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e402ff5221df5fbab7df7cf7443ef269ce1a8b490d117ec19725beb3c230308"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:681-688 | VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:1162-1176 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aca5db9a9e9d965a7696ac021d945d434853b49ad03ba5ac4a17f2a0a88bf2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareVisionOSFramePacing.swift:34-42 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Dyld/CustomFirmwareTVTPRO.swift:35-44 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift:45-54 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareVisionOSFramePacing.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd2d5148bc7a1ec026fd8fa27c4e834d1290efaab880650630eba5b28d8289c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneDaemon/Daemon/GuestPointerScroll.swift:63-71 | VPhoneDaemon/Daemon/GuestPointerScroll.swift:76-82 \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":"VPhoneDaemon/Daemon/GuestPointerScroll.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8babfcd439af09ac2207c5932f7c24310a405b6ad2fb9f97a724ef72d7155b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareVisionOSFramePacing.swift:169-173 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMMissingProfile.swift:95-98 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CustomFirmwareVisionOSFramePacing.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb56d382cb00b92a9ee5c2cc3a1de7ae1d7f742b71111e91c5fd8746f584cec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineLeasesCommand.swift:156-163 | VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift:1003-1011 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineLeasesCommand.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f6293a8ba759189f20b6ca19e8a970cb3f0d36378da4928da652e647b9e2b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:369-372 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:377-380 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a109b074709f4fa07644cb83dd47b2fa6810f89181bac0b12edfd6dc31059e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneGuestDevice.swift:114-128 | VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneGuestDevice.swift:187-202 \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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneGuestDevice.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cf79f1967b82ee186c68b4c46c1f805cdc798a8fb6c9c1def534d176120fae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift:24-35 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Manifest/FirmwareManifest.swift:34-45 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/Patch/PatcherError.swift:11-22 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff8dd138f56edf0c0b41465af42930fe3c31eb18706b9fd7f14d3483547a216"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchSelection.swift:44-54 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchSelection.swift:62-72 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchSelection.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"42936d0594f280299dc5a508a50e02e37f603b9ed50ff8730b6a55ebb7f873a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/HomePod/VPhoneHomePodDisplayView.swift:175-181 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/TVRemote/VPhoneTVRemoteView.swift:231-238 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/HomePod/VPhoneHomePodDisplayView.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4312e3b702ffe9c35dedfffacc6efac05c7eb684763cedee60be98996ebaddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift:32-38 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift:40-46 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachOCodeSignature.swift:32-38 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/Binary/BinaryBuffer.swift:7-18 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"caae4aa8f9416f0671e31efe1863986ecc64545dd47c550c468cc42fdbadd3d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 5\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift:321-333 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift:312-316 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift:171-177 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift:144-149 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift:290-295 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf9827e67da9611037b858bdd08e9e19b5702398c0c4a91008be77391d3143e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift:465-470 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchFpfsScopedOpen.swift:98-102 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbc4c11b9280fda3c57f64932b9584f56a778b2b54a39d5029f485e13c39f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhonePCCGPURecovery.swift:265-276 | VPhoneKit/VPhoneCoreKit/Firmware/VPhonePCCGPUDriver.swift:90-98 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhonePCCGPURecovery.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1cdda40b051665e8ac32f472b750a99ecacbaa69e661df6e9c8409f48edc72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneKit/VPhoneCoreKit/Bundle/VPhoneSystemTrim.swift:294-299 | VPhoneKit/VPhoneCoreKit/Restore/VPhoneRestoreInfo.swift:167-172 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneSystemTrim.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"894958cf42ff1c9bb4302377dd59d55900ae98b19f57b123b76e71dc07e17468"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift:392-406 | VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadControl.swift:45-61 \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":"VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04ccf0af5f7c9b7274c17a728e4a57812c27dd5be9f44266dfbd08ef015f82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 7\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:69-75 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:115-126 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:198-208 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:213-223 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:488-494 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:510-516 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:606-616 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"093feb49d38d7f395202866401e48131db898adff972ebf77b9264308f4b90ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootROM.swift:54-60 | VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneSEPROM.swift:54-60 \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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootROM.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9ea8780835906ffe10af2a06f47ebe64513bdb2eada2cf4e9eba0b8bd98cc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift:430-437 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift:439-446 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"97522e1b55f400f1ee7c6f02749fc8efaf830a634ed19bdf0dba701c28c88157"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift:34-50 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift:56-68 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift:288-301 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"010434982d3af2b194870d6e1d91661060ad1109388cdb8ebc767e34d6fcb8a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneAlert.swift:22-34 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneAlert.swift:36-46 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneAlert.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"66eaddb8662d9e238147b57492ab8b2bff10b10da1057022390871c392a271c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:142-147 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchDisplayScale.swift:102-110 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSpawnPersona.swift:157-165 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a90fa7593400347fed1b9f8880cf01413bd9dd748c6eacec71a2406d8be5738"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSpawnPersona.swift:167-172 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchBsdInitAuth.swift:175-180 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSpawnPersona.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d443d5316e24484d98e5b100c33f639c5c7c13ddf4b5811762edba0e872ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneBootROMOption.swift:48-54 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneBootROMOption.swift:81-87 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneBootROMOption.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1713963cc56efef4cbdaa2947f65cd7674a3accfcf33fcbbddc5df7fcf09c8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESDepthClipPatcher.swift:230-233 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift:336-339 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESDepthClipPatcher.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"569706646cd4f196c3c342cfba7fdf0932382af7fbbd4a0b6c84784de8f6c0b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift:335-349 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift:431-441 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift:480-490 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"000fe572581420909eecaa578450ad5f441df3bdb3275d1ee281a736d2bf1a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplates.swift:456-462 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplates.swift:892-898 \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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplates.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2198b6b8a9b961841f55dfc8d7b4d916c5cbb2bd863ff414b6b71d477258e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:31-33 | Research/Guest/SettingsRows/ReviewedProviderPatch.swift:32-34 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:125-130 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60c0d94b06f295a9c7dd649360f4b79e312c7f31f75efd346025592bd93e77f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift:120-124 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneSystemTrim.swift:282-287 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"294e64d7a9d5d59fbb44c4a33f4dcccb8f4e3ead8bf723ed7828afe92c668785"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchBsdInitAuth.swift:130-141 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchBsdInitAuth.swift:184-199 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchBsdInitAuth.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ea0394d7653daaf009687921813967f9a20d4a156f08ba10b6cb3c01f18502"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:4053-4058 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:4465-4470 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":4053}}}],"partialFingerprints":{"codehealthFindingId/v1":"f783ffe1d4ba05548746742339d7f64aa0432090acb2bc41afba5ab40c6e3e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/CrashLogs/VPhoneCrashLogsModel.swift:167-172 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Services/VPhoneServicesModel.swift:328-333 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/CrashLogs/VPhoneCrashLogsModel.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"780cc6e6069983c1c6044c30274584ac159541428e0dea78ec9fc4c8b096374d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift:689-700 | VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift:702-711 \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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0d9a54ebc8f6446ef10c715d41d5980ac442852d1c73c90c5993e1e2b81327"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneDisplayOrientation.swift:83-87 | VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneDisplayOrientation.swift:91-95 | VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneDisplayOrientation.swift:100-104 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneDisplayOrientation.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22cb93a472eae1d10099862417318f1d75fde5a6bc0fb9645ae31a3a3ab6972"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift:127-134 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift:283-289 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"772f10b500901e7e38b2e769a4acdcdb3fa1194877f33b5d307eb8060c2f407e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchDeclaration.swift:32-46 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPreset.swift:58-72 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchDeclaration.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4afd1cd37d06443b8afc1ee0292e0e01768b30f7202306bd8de3ac06c803b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppBrowserModel.swift:20-27 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Console/VPhoneConsoleEntry.swift:119-125 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Services/VPhoneServicesModel.swift:17-24 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppBrowserModel.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6dd727ba265167483c959e6126430f92988b445627de4ad85bb706236b9af88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppBrowserView.swift:77-83 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Processes/VPhoneProcessSignal.swift:76-81 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppBrowserView.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"6132025d211a96dd69a682d1aabf499fa56ee4da739eb51fb014ca7af38b7ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuBattery.swift:65-71 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuBattery.swift:73-78 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuBattery.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c16b699323ffad8d793a75afef4c4121dfb538ccff490bbef76865b7112282"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 16\u002B corresponding lines): VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift:83-99 | VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift:101-116 | VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift:118-133 | VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift:135-150 | VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift:152-167 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"51af6b1d110007a0a626f01dd25160ac86ea436d0dcfb92f85367ecba36edf95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherDiskImage.swift:269-277 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneMachineTemplateTrimmer.swift:172-177 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherDiskImage.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"22db02320f384673ba9c149e85e08903e118bce8d0eb3480b860c75fe866a34f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Jetsam/CustomFirmwareJetsamDiscovery.swift:349-352 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift:376-381 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Jetsam/CustomFirmwareJetsamDiscovery.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcbc0587fa6e01a4263dadbd7e720bb2decc216b59c55a869d4b9366d704552"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:2356-2365 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:2368-2377 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2356}}}],"partialFingerprints":{"codehealthFindingId/v1":"566f48f49984bf4bb6c3c3ed644a680d0defaae6e802aa067186921ebd3f8153"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:155-165 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:178-188 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e4c5fc6d915226727bd29ac1358f15bac53376a6f9c072da8a518412d915c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserModel.swift:107-115 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserModel.swift:129-141 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserModel.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"816c15e6ffc12e32d68311ed6433530795de37842ecc8ad8227d316be19422a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift:39-55 | VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift:57-67 | VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift:69-79 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0277beedf9bd0fae5c969423ea3b0473b9fa91de7385080d099f6c6027ac17cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift:392-401 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift:404-409 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d88a5a1820a1a76fef6d28421341e76915d9978b190fcdfa0504f18636d598"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:637-644 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:840-850 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"832e88bdaa852fffeb554e6d310db9262555a1c83ad898bba007534bbd02ae7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeResearchBoardConversion.swift:210-213 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeResearchBoardConversion.swift:298-301 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeResearchBoardConversion.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea49c99f7536106bea7ccfa029bfdb91561107bfca925fee90808eabbd468f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneKit/VPhoneCoreKit/Restore/VPhoneRestoreInfo.swift:47-55 | VPhoneKit/VPhoneCoreKit/Restore/VPhoneRestoreInfo.swift:108-114 \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":"VPhoneKit/VPhoneCoreKit/Restore/VPhoneRestoreInfo.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f44d2de1a893d63e830cfd23eab7286b500dc3e3b69349b8f4e6f5d2efeaadf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift:106-121 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootPatcher.swift:97-109 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/SPTM/SPTMSecondaryCPUPatcher.swift:101-113 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"235f9a185c54301b004b9dd21f2190751d9dbb7d579715b10f3d8fc8a0e80049"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift:108-124 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Fold/VPhoneFoldModel.swift:105-115 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"012b293828dfa57542f9b350993a03b0579e6885beefce6f8896419dfe4fedc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/RemotePairing/CustomFirmwareRemotePairing.swift:200-203 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/RemotePairing/CustomFirmwareRemotePairing.swift:205-208 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift:117-122 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift:181-186 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift:188-193 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/RemotePairing/CustomFirmwareRemotePairing.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7ac9d6187c67a16a41945508526d25021ec77b10c4c25f1bdfb2d969e909d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:894-903 | VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:1123-1132 \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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"395d02f51cd1c071a264b4213ccbb6e808e3a713efbd6fd4090e083b2b38f81f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneLocalization.swift:19-28 | VPhoneKit/VPhoneCoreKit/Firmware/VPhoneInstallPackage.swift:23-32 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneLocalization.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e31a7a72ab0f2ab4283dfc9457cf9d32902790b96db63d87929a6afaaa1bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSetupBoot.swift:1004-1008 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadTemplates.swift:595-598 \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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSetupBoot.swift"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"de60e313ff825215223211cb9d39558c0f778059c560f833d4611dd33fe46aa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:701-709 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift:227-235 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"337a7686766946caee43096882444b0f6c0ca6685f5ad18dae563b5d73c336aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift:462-467 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift:504-509 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLockdownModePatcher.swift:315-321 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"226aa1c943565d45977a1fbce6595ea6b7c8fecd2fbd42862da70554dc2061f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift:831-835 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift:839-843 \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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb7e1aec9b2bce368d06b175970c250d8f4900184870ca8e9609289aebc40a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift:455-460 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift:497-502 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"56908f71e62b234b6c8ce096ddcc11471902e787f5043ca42257b70f733ce702"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift:370-374 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:149-153 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b20547a503631b7512b171a3d66333efe11e78e47b27eb70f451f13528a82b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 4\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:64-67 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:105-108 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:252-255 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:355-359 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:362-366 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64EncoderCSSC.swift:12-15 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64EncoderCSSC.swift:22-25 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"818e0845359aeebdca511c042a0bb6ead05728d9577ce2882cff96bbda89fb2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneKit/VPhoneCoreKit/Support/VPhoneGuestFileName.swift:15-24 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift:282-287 \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":"VPhoneKit/VPhoneCoreKit/Support/VPhoneGuestFileName.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9c78813d338222598c657fbd803ae4e76d6ccc0761ee3b6657efee65baac66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneDaemon/Daemon/GuestScreenUnlock.swift:185-192 | VPhoneDaemon/Daemon/GuestScreenUnlock.swift:222-228 \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":"VPhoneDaemon/Daemon/GuestScreenUnlock.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"066cbbe4c588d17d5f6a0b3fb2939e931cb9d405fee2af8859ed288783c2d098"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherManifest.swift:154-163 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Manifest/ManifestHashPatcher.swift:67-76 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherManifest.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"6564b877cb49c51d4b7e48427da628de1036186198eac54bdc0f6381e64946c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift:264-269 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchSharedRegionSize.swift:236-242 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b4111221ed72da605807bd465ee7d49713c0f161c259a51bc203629c0c5984"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchPresetStore.swift:425-436 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchSetStore.swift:61-70 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchPresetStore.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e19901b9701abefca4f7a8c774554aece06ac5dfe3ffb564b9840d3c5412886"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift:245-257 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneAttitudeDial.swift:98-104 \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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"775177670d80cdf296d1c0c76a9b57043012a41c52ff4a1281252e7b43dd535e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift:464-469 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation.swift:332-336 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebd7334a69668f89989a69a88fd7efa5b7febad2fdcbff507748065797cd3bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheLocalSymbolTable.swift:211-216 | VPhoneExecutable/VPhoneCommand/VPhoneSign/Signing/VPhoneSignBytes.swift:11-16 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheLocalSymbolTable.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"928e0193e976b392aa550d114dbb96224e2b2252c73ce7d6a0f24aadd46e616c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift:361-366 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchArm64eX1.swift:136-139 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4807f0a83d851cbbe155e609633af073db748b2e06cc9514d2d92bc803e812f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): VPhoneKit/VPhoneCoreKit/Process/VPhoneManagedProcess.swift:162-170 | VPhoneKit/VPhoneCoreKit/Process/VPhoneManagedProcess.swift:178-189 \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":"VPhoneKit/VPhoneCoreKit/Process/VPhoneManagedProcess.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"542a0918dfd4750e0a26ffa0d639d2353977e1372bf1fba2c094f10e88becab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneGuestDevice.swift:27-37 | VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSW.swift:15-25 \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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneGuestDevice.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79c688953991e753fac7908540984c96c53216925d909deb5ba10e214f3a912"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): VPhoneDaemon/Daemon/GuestPointerScroll.swift:107-113 | VPhoneDaemon/Daemon/GuestScreenshotSizing.swift:192-196 \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":"VPhoneDaemon/Daemon/GuestPointerScroll.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"496b7fdb602107334faff51023079d0a88d1c46af3fb3293d53c95f76109d2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift:469-474 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift:515-520 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d41f0789e1add90806eb7d53d4922ae79d44b4b3f665343173e7c09bd9acb94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift:187-192 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchSyscallFilterOff.swift:252-257 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchThreadSetState.swift:94-99 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"3784a70a1cf4d56b5b8b8513814092462a64aae7c196f3b59510272fad4e1850"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift:253-263 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Jetsam/CustomFirmwareJetsamDiscovery.swift:288-294 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"8571909f9768cad46a4270c3ea0aa849af16d19826b521c25f7002fa4f359191"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestClipboardModel.swift:64-69 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestPreferencesModel.swift:126-131 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/CrashLogs/VPhoneCrashLogsModel.swift:176-181 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestClipboardModel.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fdf52fb22dd45c9c74848b83ca4a986921add363e577b03d759a030b22cb7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareOTACommand.swift:416-421 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSetupBoot.swift:946-951 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareOTACommand.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28ae48beccc4feadfdb4034562a10561bd5e8d5e5338c6e5b085174ec6aa322"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Binary/MachOBuildPlatform.swift:58-61 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Binary/MachOFatSlice.swift:47-50 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Binary/MachOBuildPlatform.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3587f41d7386b3394fce54cd3a4fbcae93f577eea07729571e260d94827c9c65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader\u002BStringAnchor.swift:82-88 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Jetsam/CustomFirmwareJetsamDiscovery.swift:124-130 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader\u002BStringAnchor.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"30637a0c79ad1041d0fc0a7ecdfef93f7c35630febe9b6a9831bd8b74baef23d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64EncoderCSSC.swift:17-20 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:99-102 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64EncoderCSSC.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b568fbf03c92ecce06461ecfd06f388a0b1f04984c23a3309d816f581bc63acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): VPhoneKit/VPhoneCoreKit/Bundle/VPhoneSystemTrim.swift:289-291 | VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneVirtualMachineManifest.swift:478-485 \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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneSystemTrim.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16044f265168eaf217f6e38addacd6934191a616edb901105b11b0c3cfed0d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift:162-169 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Manifest/FirmwareManifest.swift:514-521 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb03ce5a9b3eccab30f0b4e75d59dd11f839966e71a78728a131ffb29c55b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 3\u002B corresponding lines): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:11-13 | Research/Guest/SettingsRows/ReviewedProviderPatch.swift:12-14 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:87-91 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKImageExport.swift:161-165 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKMachO.swift:194-198 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"974cef437e29413bebb22acb9f388378b914ebe9732f2859a0d90d18cfa7acc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareDeviceTreePatchSet.swift:25-36 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareRestoreImagePatchSet.swift:71-79 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareDeviceTreePatchSet.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b783d24d0f380a12d8f6e1505496b2821c37acf7f8a9197c81b815890c72b588"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:15-17 | Research/Guest/SettingsRows/ReviewedProviderPatch.swift:16-18 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:93-98 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca6d9c61d4285f4757054cc57e6ff66ab60feab81470448c23ecc970e3ee6cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:19-21 | Research/Guest/SettingsRows/ReviewedProviderPatch.swift:20-22 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:100-105 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6ef847b2f46d75388592399a8262896e7e685913d16afc38b7995a10753000"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneDaemon/Daemon/GuestAPI.swift:629-632 | VPhoneDaemon/Daemon/GuestKeychain.swift:136-139 \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":"VPhoneDaemon/Daemon/GuestAPI.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"0281fd40ad8cceec5019c8e82c6aef8f8079c4299b69d58db2d49d057755991a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader\u002BStringAnchor.swift:90-96 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:2678-2684 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader\u002BStringAnchor.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c85c5f7df06cb1415d36918750c6197d981b0a334fcaa4f92937adc9934ec02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESDepthClipPatcher.swift:235-238 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/SPTM/SPTMSecondaryCPUPatcher.swift:162-165 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESDepthClipPatcher.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce06ff7743f5b1a5b213011afa310ebc4d2ece430c30e1f3cb531c801317f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:59-62 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64EncoderCSSC.swift:27-30 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cb599326cb8afe60fe3be24579ba50d1a0d38c9315bd7525286c9b88237d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:216-219 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64EncoderCSSC.swift:32-35 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"810bf2572f15ad3de4d92274b9ec89de30bd1232421809af3994095a139788b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift:255-260 | VPhoneKit/VPhoneCoreKit/Network/VPhoneUDPForwarder.swift:103-108 \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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacd603e25c5b70ca303e3f6a05fdad167f626fea370974f17122f742fa971b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift:86-91 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift:108-113 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6954c73aa2b5d3e410f47a00f4c8ad5125b28b2cb5a6c4e73d42bfc11150d0bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootROM.swift:46-49 | VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneSEPROM.swift:46-49 \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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootROM.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2afc7e1eb123f769a9c0bdc5c8dd6d2824e6f3a23e90d5888e9b738ca3a024"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): VPhoneDaemon/Daemon/GuestIconServicesCache.swift:53-55 | VPhoneDaemon/Daemon/GuestMobileGestaltCache.swift:147-149 \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":"VPhoneDaemon/Daemon/GuestIconServicesCache.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b08b77d657284a08eb504ff6b3d352c7e68518ff5be0f75582609504f279e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift:479-482 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchThreadSetState.swift:119-124 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchVmMapDelete.swift:161-166 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"58de201ae22b42d77e8e9c8c9858840230b07a47e12c250b3cf01cbd4d175be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineKeySender.swift:16-19 | VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift:211-219 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineKeySender.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"28879949b3d0d0aaeaa1fe037ab26f6080c3413b06fd8d022477b3f52a81f137"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift:48-52 | VPhoneExecutable/VPhoneCommand/VPhoneSign/Signing/VPhoneSignBytes.swift:32-36 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50171ca75479be7697892aecb57d7648337f03040d75d6e8f5b5246e645a3ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): VPhoneKit/VPhoneCoreKit/Firmware/VPhoneAEA.swift:93-97 | VPhoneKit/VPhoneCoreKit/Firmware/VPhoneRemoteZip.swift:300-302 \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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneAEA.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fee09545c3faaff7dca97e77bfb526673e6aaa0557da1e26ded541ce6b9eb9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneDaemon/Daemon/GuestDisplayMetrics.swift:39-43 | VPhoneDaemon/Daemon/GuestPointGeometry.swift:41-44 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestDisplayMetrics.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"edaf608dcb303fdcf03b56c2f967c06166c7b4acec30022086f212bb4be733f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Research/VPhoneVirtualMachineRefactored.swift:331-335 | VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift:413-417 \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":"Research/VPhoneVirtualMachineRefactored.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5aa5c4c9ad97cf8cbbc0245d914157661d03011ba4487248614c7df2b6b75c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): VPhoneDaemon/Daemon/GuestAPI.swift:32-34 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCacheRecipes.swift:191-193 \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":"VPhoneDaemon/Daemon/GuestAPI.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ba854dffeae9012a659ba2e1b25b00248afa09686fd7fb8db50901d96a0dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): VPhoneDaemon/Daemon/GuestIconServicesCache.swift:47-51 | VPhoneDaemon/Daemon/GuestMobileGestaltCache.swift:141-145 \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":"VPhoneDaemon/Daemon/GuestIconServicesCache.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d6c0be7ffaac013d3739b4fabded1ddf10bddf2146f78c8957b48043126a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneDaemon/Daemon/GuestLockScreenIdle.swift:61-64 | VPhoneDaemon/Daemon/GuestVirtualAudioProduct.swift:65-68 \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":"VPhoneDaemon/Daemon/GuestLockScreenIdle.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d0bc408aec83ca5d1e753d1874e57e98ba9402d05efd263f1efd991a171a5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.swift:452-455 | VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSWCache.swift:162-165 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLocations.swift:77-80 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57e2a0d46c44891d4a12632b904de80777df59dd724b19fadba49e508c87277"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): VPhoneDaemon/Daemon/GuestAPI\u002BCryptex.swift:85-87 | VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControlCryptex.swift:32-34 \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":"VPhoneDaemon/Daemon/GuestAPI\u002BCryptex.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1eda5a37ecd3d2d1d1553b7d26d6f14df79dfc78ee687cd9ae91271e8326c17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneDaemon/Daemon/GuestPortForwardHandler.swift:117-120 | VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneAPIProxy.swift:375-378 \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":"VPhoneDaemon/Daemon/GuestPortForwardHandler.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db6c8da11b67408e5dfec90218e64b50cb91a609f5e109bf74cb8a4e86ce6fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherManifest.swift:10-16 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Manifest/ManifestHashPatcher.swift:172-178 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherManifest.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3fd495fdd7e1489c8ff829ba980eff891a69be3c211713fe73d9f3a2ae5d51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareSourceSelection.swift:10-12 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineSelection.swift:9-11 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareSourceSelection.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a8285a2b9b2f675f99af6f4110439ac8bbbe238d5ac7209180e32de8463f9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineSnapshot.swift:69-71 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadTemplates.swift:260-262 \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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineSnapshot.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb231f29c6e994c9c81e3d663b4c6189a4e3ba2b6bc8c3e54914a992e5dc0b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): VPhoneDaemon/Daemon/GuestSystemAppPolicy.swift:199-204 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheUndoLog.swift:263-267 \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":"VPhoneDaemon/Daemon/GuestSystemAppPolicy.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedcf16880ec0ef4e410a45500ca5e65d32a617d436cbe6bb05eba5a856ebd3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneLaunchLayout.swift:148-150 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskHolder.swift:54-56 \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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneLaunchLayout.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c35d30790b0d399c718b602d69580dcfb13fce089e22eca4bf8eaf915dbe8a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.swift:457-460 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineSnapshots.swift:395-398 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplates.swift:1067-1070 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fce27a52845e4282e88a5ecc0d63bfa60e4da584cdc6b609cec44a52b5def26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Sep/CustomFirmwareSeputil.swift:127-133 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLockdownModePatcher.swift:77-84 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Sep/CustomFirmwareSeputil.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"92eb24b25b588ca866280e0fa2e940dbd282c5e364639c5ab9a205407af773f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:113-116 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64EncoderCSSC.swift:37-40 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f762785bab3be11a9d4aa0cfedf7fd35f8a8fb65266610bb5e48e6ce80cf4ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestPreferencesView.swift:266-269 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Console/VPhoneConsoleModel.swift:264-267 \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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestPreferencesView.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a82d61c3acd479a49e693c4806d36a64fd23c45f46a44bb7c6606936ee50cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift:65-67 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachOCodeSignature.swift:40-42 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b19a321837528626e9a9af2d43c322c49482e1002401d197a2a9f91bbf8238"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchPresetStore.swift:340-342 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSetupBoot.swift:503-505 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadPatchCatalog.swift:366-368 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchPresetStore.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"94aaf65c3d3b338d6357740a5ab8f8ef84ff6d807febbae501a1ba4575da6836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201339 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift:128-163 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchSandboxExtended.swift:153-191 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift:128\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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchSandboxExtended.swift:150\u0060 calls \u0060log\u0060 and \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift:125\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"7040f7b86d0821931f53623f73d2d9e9bdbc606848955b9119193c68c811a5fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift:156-186 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift:206-237 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift:156\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"87173d7d14886a661ef9e7a49788769d985c170316ecc4b00bcdac27c842a6ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1559-1588 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1700-1727 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1559\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 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1557\u0060 calls \u0060locateSPGate\u0060, \u0060locatePlaybackHandler\u0060 and \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1699\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af71babe1cef9cd1d06651a91a69733ad9a948eb1bf97585980b2f95e2b4f21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Process/VPhoneProcessRunner.swift:113-133 | VPhoneKit/VPhoneCoreKit/Process/VPhoneProcessRunner.swift:151-173 \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 \u0060VPhoneKit/VPhoneCoreKit/Process/VPhoneProcessRunner.swift:113\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":"VPhoneKit/VPhoneCoreKit/Process/VPhoneProcessRunner.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a63a7c26bdd18f241328a9b1a30d3149e6db559f420faa5fd0430d09671a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation.swift:146-167 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:407-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62762f11223736918de1af5be3559f4aa48ec02747ee2d19747526115650c55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:805-825 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:939-959 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:805\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ecb66172ff8e4f84160523717cb61a53c3c7198d6f66277a57c79a7c415127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:142-162 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:236-256 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:142\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9ed184e8d379ac958eee85cf6ce6dd7cc813bc28d5f69f297ff1d1e72034ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201320 lines \u00D7 2): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:129-142 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:327-346 \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 \u0060Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:129\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":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7034cd5f591983ea5293cc00a28b1b90b43b1dbba11637c3c296926549aac975"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 5): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:266-284 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:310-325 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:351-369 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:395-413 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:470-488 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift:266\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e797b8552031bf33fd04761f2c6594828c8519eb50f36a1d4a1dd8bd34cdf258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:378-395 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:486-504 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:378\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae02591c66cc120dc8ef3518e9b1107a2d5dfc37c1e019304133b1d5f619da8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift:282-301 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift:502-520 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift:282\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e616fc2f0a1749fe61e0d0d9268cc4c786e009f355c16793809b6d72d4cf1c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:363-376 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:467-483 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:363\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"680b6d280ceb7ccf08caa436f792e06d098d579c81d10d747cffcd7aa60ba6c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:39-54 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:140-154 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:234-248 \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. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cfbaf23393deb3dfbc2e032b9f449e24b0ff3e614f3bf1f4f3f367932a7d51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:830-845 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:964-979 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:830\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1399212d31fa9fbcbe16b6b03bf84be1c088c0defd30a6d00d3c72b1cc3b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift:152-167 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift:265-280 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift:152\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 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae78f4cbf27a089e890161880bfef1dbdbf5383bc138b58a8c32c6ec2a173a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift:100-115 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchPostValidation.swift:16-31 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5aa680ec0d6cfa0d02311d0c94f3ed808f8ea22a811b96b9f334470d27b8d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchDisplayRefresh.swift:41-56 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift:56-71 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchDisplayRefresh.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"69311e16a2b48cac1e0cc50f040b4e19c9e346db1e1874a99f5a6ffb6ae03644"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201316 lines \u00D7 3): VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift:171-186 | VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift:553-568 | VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperAuthorization.swift:89-91 \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 \u0060VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift:171\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. 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":"VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e58ce9ca855b75d83ee37a2ed233fb4da619fc3559a5463b5552d86d27bcc82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 5): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift:74-85 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:60-71 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift:57-68 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift:63-77 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheTextRecognitionANEPatcher.swift:59-70 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift:74\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f268e5e241bd59a4e3e6d6a220d0a36b9aaa1efc5f525e66849efe7c88a20f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:114-128 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift:260-270 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:114\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"921749552e629f2901a1a0ad13c5264d97fd52b3db7e4e6916af762e45b1ab05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift:66-81 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsSnapshot.swift:38-52 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift:66\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, \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift:82\u0060 calls \u0060w\u0060 and \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsSnapshot.swift:53\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d50a49156d92ecdc050c586109b37571ce922d50e936dc85565f3f97c685298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift:39-53 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserView.swift:28-42 \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 \u0060VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift:39\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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"48445c9d6cbf0306d2683dee29a3ddb14a95781a3ce1b124efd63f91e8649709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchLoadDylinker.swift:16-29 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchPortToMap.swift:16-29 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.swift:40-52 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchParavirtUserClients.swift:57-70 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchLoadDylinker.swift:16\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchLoadDylinker.swift:30\u0060 calls \u0060jbIsInCodeRange\u0060 and \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.swift:53\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchLoadDylinker.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"972be93637fe9333a15f0ed043cf008507e953feea0b933d76023308cd64e10c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:35-48 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:136-149 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:284-297 \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. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0bf59518ea6d0012fbbfa6a6cd782ed52d30347e6f2d576b22aeeb086b7fe7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:339-352 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:388-401 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2d5bd2eeed83fcd38a10eba70c427cf261c261a873c614aaf25b39757fc254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift:359-372 | VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift:407-420 \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 \u0060VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift:359\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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5387b10b9aabcff6adc24a6603fda46c061fe471f8eb0003e9cde26323d6ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:133-145 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:156-168 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:178-190 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:638-650 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:682-694 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:133\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1ffbc8f52495b6935dcc45bfefff7280cf8904fc4845246265a70ed30bbffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift:69-78 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift:91-100 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheSettingsRowsPatcher.swift:187-199 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. 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. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8035473a711d0ba740a34e6809c2fbb1a309e5f7596ad673b09c2199d480d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1717-1729 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1749-1761 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1784-1796 \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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1717\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1781\u0060 calls \u0060contains\u0060, \u0060ValidationError\u0060 and \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1716\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1ca62faed486483ed6499b86a9767e7224457cc5c569a817d06267450db33e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBuildVersion.swift:61-73 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioGraphConfigurations.swift:74-86 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBuildVersion.swift:61\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBuildVersion.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d9e08326a675bbc9b88085950eeafa1c684d1b8a8fc400afc3f0dfd4c7c8c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:457-469 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:695-707 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:457\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"93683a2c8714a56cef3c2c49a53c59ed53b87d7bdab42e0c3f0e626901acb17d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:2187-2198 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:2206-2217 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:2837-2848 \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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:2187\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":2187}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de803c931886288abcc85ba0744c2a4cea7afb4074a086e42e29ce83e50f0cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader\u002BStringAnchor.swift:64-75 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:2688-2699 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader\u002BStringAnchor.swift:64\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader\u002BStringAnchor.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dab5b1ce776c8b2f58041381e1ba776b2277cce17c149c674fdab729246b563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:488-499 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1131-1142 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f3f327530fc8491ffce744a4cd8d929319284b7b3d0ff4347170a0cf94b936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:389-402 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:456-469 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:389\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"a117eade8fb8635aeea5ef6c6a6c51f29377dcc184d3f58dceb4767e7d77ea25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift:114-125 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchSandboxExtended.swift:137-148 \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, \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchSandboxExtended.swift:150\u0060 calls \u0060log\u0060 and \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift:128\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"997241c97302072ecb581a15e1475c373a300c25224e24b0857111cf5145e916"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:531-542 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:696-707 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:531\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef19081eb90f8f109a0f1c0745e2333b32890c7e2ecc02d6581ce4cde31a68b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation.swift:148-157 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:409-418 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:532-542 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation.swift:148\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82e8ef1cd33a17120704974aa59a17b391d072114b778e29ed012a7e4f40213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift:56-66 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift:39-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7d94c8754169f519b1d8d69e5e4f71d13a4ae1792f8c6088490bff7665142a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:102-109 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift:110-120 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheTextRecognitionANEPatcher.swift:97-99 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:102\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheTextRecognitionANEPatcher.swift:100\u0060 calls \u0060DyldSharedCacheWriteSpan\u0060, \u0060snapshots\u0060 and \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalVertexFormatPatcher.swift:120\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4d83523839b51cc659d6c132be69573b3771d7d927d2e7502596e0a5004a2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift:175-181 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBSwapEndPatcher.swift:137-147 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBSwapEndPatcher.swift:137\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. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f263f99409f1b0360ab103d3e3b05ac31bf7d283720e0fecc71979e5a49508a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift:214-224 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift:336-346 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift:214\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b334288896d93a601d74e0486ff26f4eb2979c4130e38f2a3f1949f0190cb40f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestClipboardView.swift:18-28 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestPreferencesView.swift:20-30 \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 \u0060VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestClipboardView.swift:18\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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/GuestTools/VPhoneGuestClipboardView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"890fd729c7ace33fcd65e1574180870043c93bfa3a78c755cf51702d87070c6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift:1197-1207 | VPhoneLaunchpad/VPhoneLaunchpadCLI/main.swift:137-147 \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 \u0060VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift:1197\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":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0535e856ffc4f2f9e6ee670322d9a36cfa82a61258514a4ba12b926e4bc58c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:349-358 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:412-421 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift:131-140 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eeefb711ed84e2a9ea6d14d968babe62a60284016fa51a294f444e568a303b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:141-152 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift:193-202 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:141\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f3283e72d57ad6188cc55b26403d750c52a983cd22fa1713935fc1b1ee4119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation.swift:170-179 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:427-436 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation.swift:170\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"806c13c175f1ace95bff40a915681ac9f8e7612f03e4e041862f545db722fa70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUIndexOffset.swift:103-112 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUPrimitiveRestart.swift:61-70 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUIndexOffset.swift:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUIndexOffset.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8378aafb1f2868cbacb687ef6e9b1068dd7363a4ec6dfbe224a013f957c1db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:429-438 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:558-567 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:429\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2622fe9dc30de20e591aaf979c43c34ae8ec9c607656f30e5a6d382737ef52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:2162-2171 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:2465-2474 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19a97cc2213ff56e8889c71802dafbdf40c7b414c247c694562e1fa2a2aa852"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:108-124 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift:102-118 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:108\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0bc0703929b286ca0288e6cbf025712e4db69399ecc08d3870e1d9cc205bf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift:492-501 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift:592-601 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift:492\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eec45c84731c6bee2f49f9af54e43d1de5777729c97ecfb4ed07aa047eae84d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsGraft.swift:29-38 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift:211-220 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsGraft.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c9ac2d015f0ca25deeef34f2c13fe05a122373cb53dc2dfa75faebf4961042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.swift:110-119 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.swift:163-172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"275b66a9ae69f289db2495ef388cf653ec72e8ae44478425dbc1f5408e0158be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:447-472 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:811-836 \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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:447\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"132dd74e5131b53b63d6bedd09a3bdaa58639a367e0fdcb333e041508a684bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:867-876 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:4201-4210 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"005e4148ee7d5d6ea417ed70ea8ca264d60914e6ee2edcada8b1da71e8662fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 4): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:620-626 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:727-735 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:865-873 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:999-1007 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:620\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a692d127a0fa10a8ab1dcea40cd2fd5c6291590f36f74bef48e057e947e4462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift:54-62 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootPatcher.swift:97-105 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift:37-45 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift:54\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9292e9fcbda22085b433f8d7d506b7dd2e03e8710f736c653dcb2d33475268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:119-127 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift:265-270 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift:229-234 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:119\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e51851056a81381dbf4f3dc803b54b551ceb277c9a55d6b13602929cd922b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher.swift:241-249 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift:160-166 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift:273-279 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher.swift:241\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 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. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"602bfef0de02cfd9cb6f3fb22c88f9717517556868981be8e9520dad62540973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:77-88 | Research/Guest/SettingsRows/ReviewedProviderPatch.swift:78-89 \u2014 before extracting anything, compare \u0060Research/Guest/SettingsRows/GameCenterStandalonePatch.swift\u0060 and \u0060Research/Guest/SettingsRows/ReviewedProviderPatch.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:77\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":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce73a0acf951e46b5ce5ac1a7ad6803cd4b65fba373b45a90a0bc493bc537400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): VPhoneDaemon/Daemon/Bootstrap/RootHide/GuestIrisinInstaller\u002BRootHideBase.swift:230-238 | VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.swift:161-168 \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":"VPhoneDaemon/Daemon/Bootstrap/RootHide/GuestIrisinInstaller\u002BRootHideBase.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"472d9d132234148444a41455ef554fe72c6b3f904a03697fc5f3be1e8b184b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:213-221 | VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:417-425 \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 \u0060VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:213\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:212\u0060 calls \u0060NSNull\u0060 and \u0060VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:416\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":"VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffbe42c0c4b820ea365c17446d1187db1b7a32cc8f81091e04c80b8b2a5d3ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBuildVersion.swift:71-79 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachLookupExceptions.swift:87-94 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBuildVersion.swift:71\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBuildVersion.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"73817f3bd820a3f85b3e5acde0b1452107c4291faa56f2e1a4b5348b790f0eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:819-827 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift:313-321 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed326bf8be85fa1f356790c517890041c17b02101843ede6f7b5295a2e067869"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUIndexOffset.swift:148-156 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUPrimitiveRestart.swift:99-107 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUIndexOffset.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"faac0908cfd2350bed6a8f6a9c5b9e9347b775f3bd341a7d0940aaf3703d595d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1604-1613 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1750-1759 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d6bc85267800ecb320c254463e897556f718641ff78190d54718a9564bdfe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1621-1633 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1770-1782 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1621\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1621}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a278055d46a65bb551e0b021f2586263c6427e88ff21a80c4504d8cb0c9289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchDebugger.swift:124-133 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchDebugger.swift:154-162 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchDebugger.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"3374717244dbadccd95377cc40932862b7e092539c284ba496c4496ffeda1a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplates.swift:718-726 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplates.swift:793-801 \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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplates.swift"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"29455d613c54286de1c76f25f2442c10ac2d3260ac0fdadc4cc4b753389a6dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperFirmwareRequest.swift:48-56 | VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperLeasesRequest.swift:22-29 \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 \u0060VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperFirmwareRequest.swift:48\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":"VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperFirmwareRequest.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"882f742ffeeb0589850f7774bdca7a38fe3395e21728fdc28f28c04a979501b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 5): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:119-126 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift:265-270 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUIndexOffset.swift:106-111 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUPrimitiveRestart.swift:64-69 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift:229-234 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:119\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2384ce8d4b74b91e17e19d18a4d365c712980c67be6447ed89213d4d1cbf325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): VPhoneDaemon/Daemon/GuestAPI\u002BHomePodDebug.swift:18-25 | VPhoneDaemon/Daemon/GuestAPI\u002BHomeViewDistance.swift:15-22 | VPhoneDaemon/Daemon/GuestAPI\u002BVisionOSImmersion.swift:25-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. 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":"VPhoneDaemon/Daemon/GuestAPI\u002BHomePodDebug.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc48ac10e314a56438c9dbc5aee16e0951f57564da122eac165c2e535dc2328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:271-278 | VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:281-288 | VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:290-297 \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 \u0060VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:271\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPICoreMethods.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"1587e92f017874360f8e872ba1b20fd3b9a24746a82dcf5822f26e34bf60f48a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:2290-2297 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:2915-2922 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:2928-2935 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7b6213d9b52cf60f482fd58d9742828b30ae93f3c3cf459e8cc055bc13b1c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Research/VPhoneVirtualMachineRefactored.swift:339-346 | VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift:505-511 \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 \u0060Research/VPhoneVirtualMachineRefactored.swift:339\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift:514\u0060 calls \u0060start\u0060 and \u0060Research/VPhoneVirtualMachineRefactored.swift:348\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":"Research/VPhoneVirtualMachineRefactored.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6883de0239e00fa6342aa8f18a7b41120cfd99834f99b79498846693784c93e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller\u002BInitialPackages.swift:74-82 | VPhoneDaemon/Daemon/GuestScriptSession.swift:126-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also 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":"VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller\u002BInitialPackages.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f48436d8434d4637adbfa3413558d71d25557aa8c11c66356bd01105932c36d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift:58-65 | VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift:75-82 \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 \u0060VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift:83\u0060 calls \u0060required\u0060 and \u0060VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift:66\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":"VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a05f38f27b1d8dfa13ac5caeeaefe1639d99f60b23fc0503506a837f9089ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:373-381 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:434-442 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift:373\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf139d6f0ebb371d69512306877c6e4db7d2f980c82d803cd34aef1d5569d5b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift:433-440 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift:527-534 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1268d473d2a4be431cfab21277aa5e6fda09f4ca3e4200e660a229f4f4e440"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift:70-77 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift:99-106 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift:70\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"11253dc0fca4f3ea67a95615f9ea34455c9992f359e1176db201acbcbc6755e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift:253-260 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift:475-482 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift:253\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e804b2a5a47e4b4f2ba465943b6e00bb2b8e968d875b58486fd3f31a5bec40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/ExperimentalPatches/KernelExperimentalPatchHvVmmRename.swift:98-103 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/ExperimentalPatches/KernelExperimentalPatchHvVmmRename.swift:182-189 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/ExperimentalPatches/KernelExperimentalPatchHvVmmRename.swift:98\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/ExperimentalPatches/KernelExperimentalPatchHvVmmRename.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d8c1360532b4ece49f13d9524b1c16bb9ca6432fcae1fe3fb1c38ea2191643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:3908-3915 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:3960-3967 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:3959\u0060 calls \u0060copyFile\u0060 and \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:3907\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":3908}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3ab80bb02d9b6955e115dd82d64eb6dd1b7a002287876a958c5dd0e89dc322"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:4857-4864 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:4901-4908 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":4857}}}],"partialFingerprints":{"codehealthFindingId/v1":"3119497a561cb66eea093885fa026e8f7d78335088d242f73c9d835284fa1d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/Binary/MachOParser.swift:90-99 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/Binary/MachOParser.swift:120-129 \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 \u0060VPhoneExecutable/VPhoneCommand/VPhonePatchKit/Binary/MachOParser.swift:90\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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/Binary/MachOParser.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bf7f50cc5f01b666cdc0383b780899ec64dfb75857a3bbf16b9310ebdc4653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift:169-176 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift:212-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 \u0060VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift:169\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 after the matched lines, \u0060VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift:220\u0060 calls \u0060FileState\u0060 and \u0060VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift:178\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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc9877bc387944a4b375e8dcf236ddece7763d8ed66e928a2b2e028eae0f967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareMatrix.swift:448-455 | VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareMatrix.swift:476-483 \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 \u0060VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareMatrix.swift:448\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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareMatrix.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0d5c240cf1502fe3e9f139aafcfb1c2d4e93a8ddaf5be56983b29dd5545f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Firmware/VPhonePCCCryptexctl.swift:66-72 | VPhoneKit/VPhoneCoreKit/Firmware/VPhonePCCGPUDriver.swift:110-117 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneKit/VPhoneCoreKit/Firmware/VPhonePCCCryptexctl.swift:66\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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhonePCCCryptexctl.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"580f0a49d3a9181d46b696dfdd228537cc4daa4d0bbbc069d030ed5a9804eb7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift:676-683 | VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift:716-723 \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":"VPhoneKit/VPhoneCoreKit/Process/VPhoneConfinedDirectory.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aff58c087fe87c8d1cb1d57a796671917a4d7a8c1c849192e83064142a084cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadSnapshotsView.swift:101-108 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadTemplatesView.swift:76-83 \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 \u0060VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadSnapshotsView.swift:101\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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadSnapshotsView.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"26dcb334fce2c62d91f96e9febb79ef98bae1069ddb12288465a40da96cad80e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:118-124 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift:264-270 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation.swift:150-156 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:411-417 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:534-541 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift:228-234 \u2014 there are 6 copies across 5 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:118\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a23f50d2622901f462dd5fff3ccb4e424f3653e57545d80cd4018656f6fe241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1182-1188 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1307-1313 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1488-1494 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1876-1882 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1883\u0060 calls \u0060vma\u0060, \u0060UInt64\u0060 and \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1496\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b42aa7491af611f48f84dc48ebe2578b7ca3426f66cd36a281a500d69225ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:35-68 | Research/Guest/SettingsRows/ReviewedProviderPatch.swift:36-69 \u2014 before extracting anything, compare \u0060Research/Guest/SettingsRows/GameCenterStandalonePatch.swift\u0060 and \u0060Research/Guest/SettingsRows/ReviewedProviderPatch.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"007da78044ce8171b5015a9bc0cfc7dde52d7c9b4176c44f4be0e26e7802f770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneDaemon/Daemon/Bootstrap/RootHide/GuestIrisinInstaller\u002BRootHideBase.swift:216-222 | VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.swift:150-156 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneDaemon/Daemon/Bootstrap/RootHide/GuestIrisinInstaller\u002BRootHideBase.swift:223\u0060 calls \u0060vp_spawn_file_actions_addopen\u0060, \u0060vp_spawn_file_actions_adddup2\u0060 and \u0060VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.swift:157\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":"VPhoneDaemon/Daemon/Bootstrap/RootHide/GuestIrisinInstaller\u002BRootHideBase.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a448b76aaec05df16cfb0af887722fb634c18f682c1c00348097fd5865a751"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPI\u002BAttitude.swift:17-23 | VPhoneDaemon/Daemon/GuestAPI\u002BGyroscope.swift:19-25 \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 \u0060VPhoneDaemon/Daemon/GuestAPI\u002BAttitude.swift:17\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":"VPhoneDaemon/Daemon/GuestAPI\u002BAttitude.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d6edca21ada74425dfc827f4c3881377177c219dd191f551845acf884d9146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift:67-73 | VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift:84-90 \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 \u0060VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift:67\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":"VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f93bf29ab555bb6d4c2b4d8783cee641cc76eb8b7d23a630338f4d627f0e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift:267-273 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:3647-3653 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89c2058e1d323470d49de8ce8cca4cacb62081007607b8ddd8a3a065a4ef07d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBluetoothVirtualController.swift:20-26 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareTVSetup.swift:16-22 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBluetoothVirtualController.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b021a4508299c52e632e466e9a96ebbbba7f53b492ef6c319becc1497d0ce93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:776-782 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift:242-248 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift:776\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"438f234300df89da06a74b6cc6f4301133461bca0f8186e9ef5dec4ed746db50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:478-484 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1121-1127 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:478\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18aa519ad56bb81b87224ddb5df4b6039d9b3b26fe2cde5a0f5dcabcaf931ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:476-482 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:862-868 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"c797d522938a244a5cb6d08843ab12b3ac8c6e9ebd99e7e647f62a457bc26955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:848-856 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:982-990 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1747c608d542ebb4a23dce3025615b12a0f7f20b7901a77330fe4b9ddab4128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift:271-277 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift:492-497 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift:271\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81759c28c353c3c27ce7b8296ef7c159275cb89e8534605ca8748611d23f000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiTrustcache.swift:91-98 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiTrustcache.swift:99-106 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiTrustcache.swift:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiTrustcache.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"632404a0018573c1529c4514ac5893cb689395cff0108aa0f0a4ecf48e39c38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:165-171 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:174-180 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:165\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"19665d0286eaebed7f82ef71859e58ad206a745a85d877b54638714b48ef107c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift:138-144 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift:148-154 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift:138\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce68583335b32b0821f441b836c02ab653c1c7769c6376ea8d3e46c73122f6ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:364-372 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:781-787 \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 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ce54afed84809833b77da50277d0b57269bb7b12badc729b45067e4b70e82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchDeclaration.swift:77-83 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPreset.swift:142-148 \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 \u0060VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchDeclaration.swift:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchDeclaration.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3aea9c94bbef269171cc086db02e51e90f37cb69a1833632ce9670661effde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/DeviceInfo/VPhoneDeviceInfoView.swift:46-52 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Processes/VPhoneProcessesView.swift:62-68 \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 \u0060VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/DeviceInfo/VPhoneDeviceInfoView.swift:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/DeviceInfo/VPhoneDeviceInfoView.swift:54\u0060 calls \u0060Button\u0060, \u0060copyJSON\u0060, \u0060help\u0060 and \u0060VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Processes/VPhoneProcessesView.swift:70\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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/DeviceInfo/VPhoneDeviceInfoView.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b0c5aa968161a5375d9301bed1abb94f3c0afc77477b8e034f8f889f16086e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): VPhoneDaemon/Daemon/GuestAPIAttitudeMethods.swift:11-16 | VPhoneDaemon/Daemon/GuestAPIAttitudeMethods.swift:18-23 | VPhoneDaemon/Daemon/GuestAPIAttitudeMethods.swift:25-30 \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 \u0060VPhoneDaemon/Daemon/GuestAPIAttitudeMethods.swift:11\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":"VPhoneDaemon/Daemon/GuestAPIAttitudeMethods.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d2e4b3762287c3d0120cfe2626c68139c76386de4b59fd7ffcfe06c8b98a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): VPhoneDaemon/Daemon/GuestAPIGyroscopeMethods.swift:11-16 | VPhoneDaemon/Daemon/GuestAPIGyroscopeMethods.swift:18-23 | VPhoneDaemon/Daemon/GuestAPIGyroscopeMethods.swift:25-30 \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 \u0060VPhoneDaemon/Daemon/GuestAPIGyroscopeMethods.swift:11\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":"VPhoneDaemon/Daemon/GuestAPIGyroscopeMethods.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c01590509d4c1fb89d59e30d64752d693e0b7070cb863103f5cf192bf34968"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 8): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchDisplayScale.swift:91-94 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:166-171 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:175-180 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:231-233 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:262-267 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:309-311 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift:298-299 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift:239-241 \u2014 there are 8 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 8 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchDisplayScale.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"591cec66947fab4675d2ff7d6c36f2e35892cdf5d1aaf9f6fbf2088295510c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSpawnPersona.swift:140-145 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift:137-142 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift:147-152 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSpawnPersona.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0fda137c8803417a08583b6bbdd459d7d73d0b23ba60e97562af6b3674d799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileWindowController.swift:36-41 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainWindowController.swift:29-34 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Shell/VPhoneShellWindowController.swift:24-29 \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. 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileWindowController.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"856f14aa345cfdef7f9f476a31778674f2ba667ef14ee9fb551922341bfdf296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift:918-923 | VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift:942-947 | VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift:964-969 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b010fa82e7cb9aa4b73e1a66b70174e20b66e86b66c512b86306397617d5c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:314-319 | VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:328-333 \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 \u0060VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:314\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:334\u0060 calls \u0060optional\u0060 and \u0060VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:320\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":"VPhoneDaemon/Daemon/GuestAPICoreMethods.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"808eccaff4ad2508a8dd6716af8a56b8e98338f5437a9d61b846de83cd2098f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPIDeviceMethods.swift:140-145 | VPhoneDaemon/Daemon/GuestAPIDeviceMethods.swift:159-164 \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 \u0060VPhoneDaemon/Daemon/GuestAPIDeviceMethods.swift:140\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":"VPhoneDaemon/Daemon/GuestAPIDeviceMethods.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e8a6787ada99541d2e9d729448eef87a7e6d570d751f8745ae06fcabd8a780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift:33-36 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift:41-46 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachOCodeSignature.swift:33-38 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff69c7a13ebfab8894f2c21c434664fe296298ae1b899cdbd9fd119bfea09721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation\u002BAnchoring.swift:289-294 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift:274-279 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation\u002BAnchoring.swift:289\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation\u002BAnchoring.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"4456fe15a9f71b4db7c3f5e28a99c6ec73fcd19a5884535962ec4abf49e237e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1231-1238 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1352-1359 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1231\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1223\u0060 calls \u0060locateEpilogue\u0060 and \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1351\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"1643cc46b072c346fcf76758567d896d9f3baf7286218573082fe6ec9d6a8104"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:219-225 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.swift:246-252 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift:219\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPrimitiveRestartPatcher.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"93876f6d614251afd0b7329a468462a932df0f329ea19d759d3d6300b0c2d4ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift:78-84 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheQuartzCoreUnrotatedFramebufferPatcher.swift:100-106 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift:78\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHomeViewEnvironmentPatcher.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fdd87cdc05b0075a1bcc59dee5cf050e8db6efb1f45beb737b188edbd37652"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift:57-62 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift:74-83 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift:74\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da95b9f5fc0282c3dc8ee778698682cc01a8590a2db27182a6d0c49854c989f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootPatcher.swift:120-125 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift:100-104 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.swift:58-63 \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. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootPatcher.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d539fb824c3db573aaca80dba17969ec087a5db67bc801286b50353f7ca47354"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/VPhoneCSSCCode.swift:76-81 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/VPhoneCSSCCode.swift:83-88 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/VPhoneCSSCCode.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fff7da438c9788bb073440ac6e83181b0aa1d70ef824824c2efab3d1373c8db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:223-228 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:538-543 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift:223\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0a77ac9abe936cb228ce59583c91c91ccc9e9244fd77e6b15cff2fc6846a7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1826-1832 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:2755-2760 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bf65331ca40498da0d930cb9a2d123c0168099c135221aad82a609038c1ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:2662-2668 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:2672-2678 \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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":2662}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fde2d43f7cb912ab71f16ee1fb20278b9cf1c2b370d613b89c30f42b6feb461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift:431-436 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift:480-485 \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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift:431\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"47552cde252053335de8557fb51d877774f9f35a0faa001692fb7e84c8a64b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Firmware/VPhonePCCCryptexctl.swift:65-70 | VPhoneKit/VPhoneCoreKit/Firmware/VPhonePCCCryptexctl.swift:77-82 \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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhonePCCCryptexctl.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9603db9dc7e1b74e5e559903612e083fc214df3741aabfd7c1073b3078e5a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Network/VPhonePortForwarder.swift:200-205 | VPhoneKit/VPhoneCoreKit/Network/VPhonePortForwarder.swift:268-273 \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":"VPhoneKit/VPhoneCoreKit/Network/VPhonePortForwarder.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"2311f3baad8f01627e4b9da1aa548c1d95d9f7650bf628bc030b6dfd94d7b31a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:477-483 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:619-623 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:725-731 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:863-869 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:997-1003 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:1120-1126 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"815beb2dea0b23fad8c7a3f15dbc990f2541f5bcefe72bbd2c17a6ac1303e564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1684-1688 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1869-1873 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1886-1890 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1901-1905 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1914-1918 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1927-1933 \u2014 all 6 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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1684\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"976c019891a288efac17fe9fd92ddfcc224865934d65c2af5ea48327ec405274"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 7): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1682-1683 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1863-1867 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1882-1885 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1895-1899 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1908-1912 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1921-1925 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1936-1940 \u2014 all 7 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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1863\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1867\u0060 calls \u0060directory\u0060 and \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1683\u0060 does not \u2014 after which the two agree again for 5 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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcefee5c931a2a73159d914e99f2950200a035835d6b080e2b7e08820b59f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): VPhoneDaemon/Daemon/GuestAPI\u002BHomePodDebug.swift:18-22 | VPhoneDaemon/Daemon/GuestAPI\u002BHomeViewDistance.swift:15-19 | VPhoneDaemon/Daemon/GuestAPI\u002BVisionOSImmersion.swift:25-29 | VPhoneDaemon/Daemon/GuestHomePodDisplay.swift:19-23 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. 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":"VPhoneDaemon/Daemon/GuestAPI\u002BHomePodDebug.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3777556504e8eacb413313fd2c512eee98f02ec073a8af941c1e894dc2eaa822"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift:266-271 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift:279-284 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift:487-492 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelPatcherBase.swift:499-504 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift:266\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"52be9eb03bb28ae48b53fe8bdde79a67ffffb3c781c29200b4edb4d622fc6357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBluetoothVirtualController.swift:18-23 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareLocationdCohorting.swift:15-20 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareTVSetup.swift:14-19 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBluetoothVirtualController.swift:18\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBluetoothVirtualController.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7ab01c9c8427002663b9114646feba46be70346001ce93b035208477329e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift:521-526 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.swift:362-367 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift:704-709 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/CacheLoader/CustomFirmwareCacheLoader.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99011a08a2ed39c9c8fc8d1a79bbe04ec1c8661c25b302cf26a42a9af70d0f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation\u002BAnchoring.swift:290-294 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher\u002BMachOStringSites.swift:95-99 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift:275-279 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation\u002BAnchoring.swift:290\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation\u002BAnchoring.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14f34018ef4f1a0cbc0037776d445afeba768251e02f93c4e8de7b37b577fcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift:40-45 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift:56-61 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift:82-87 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift:40\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8865d02b26b84f84483577a6b89b7a774c91cf4b746b0e4b54b55110e878dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1731-1741 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1763-1773 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1798-1808 \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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1731\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1731}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fec6bca6eabcc8258d7680ec7d75cb261c41fb50c673a8e1e320c28147137f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchHomeViewEnvironmentCommand.swift:19-23 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchQuartzCoreUnrotatedFramebufferCommand.swift:19-23 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchSettingsSoftwareUpdateCommand.swift:19-23 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchHomeViewEnvironmentCommand.swift:19\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchHomeViewEnvironmentCommand.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"648163d90c615eb2df200e94e275cb55da97ee4f44bac42a8699bf52a64d8159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:51-55 | Research/Guest/SettingsRows/ReviewedProviderPatch.swift:52-56 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:165-169 \u2014 before extracting anything, compare \u0060Research/Guest/SettingsRows/GameCenterStandalonePatch.swift\u0060 and \u0060Research/Guest/SettingsRows/ReviewedProviderPatch.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:51\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:164\u0060 calls \u0060InvalidImage\u0060, \u0060try\u0060, \u0060Int\u0060 and \u0060Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:51\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":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2fe73474e3879003e4f9609f4ddba1502a657f16f44fd852745453ac12c73d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:101-105 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.swift:284-288 \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 \u0060Research/Guest/SettingsRows/GameCenterStandalonePatch.swift:101\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":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b572c379d420751be3afe77dda84a81241f633279e6738eeffa256e3b2a4887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Research/VPhoneVirtualMachineRefactored.swift:310-314 | VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift:389-393 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/VPhoneVirtualMachineRefactored.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb61fc03d9657b6640558a727baea0a5dc0b161ea7064898eb7d9914be7a00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:206-211 | VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:411-416 \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 \u0060VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:206\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:212\u0060 calls \u0060NSNull\u0060 and \u0060VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift:417\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":"VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"0549c1bd1a356d81d33903c365a65c0e9dfb98ef58765e2e348968f9de8b633d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift:119-123 | VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:95-99 \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 \u0060VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift:119\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":"VPhoneDaemon/Daemon/GuestAPIAppDetailMethods.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad20234cde6f8172b869acb759e18c8f80744417cf74d4b71bfb6651574a0633"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:57-61 | VPhoneDaemon/Daemon/GuestAPIDeviceMethods.swift:54-58 \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 \u0060VPhoneDaemon/Daemon/GuestAPICoreMethods.swift:57\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":"VPhoneDaemon/Daemon/GuestAPICoreMethods.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b647977d3fca64b1897ddd7ae4f76f476d04482a7af235845ad3620314915d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPISystemAppsMethods.swift:13-17 | VPhoneDaemon/Daemon/GuestAPISystemAppsMethods.swift:22-26 \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 \u0060VPhoneDaemon/Daemon/GuestAPISystemAppsMethods.swift:13\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":"VPhoneDaemon/Daemon/GuestAPISystemAppsMethods.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4d47b12169665248c009535dbd99c2383dc8157ac8e6ade74f113e94b99058"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift:267-271 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Jetsam/CustomFirmwareJetsam.swift:192-196 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"c266eceb77ee0a05b8df8e54511eb056dcf0790db0a62b48bf791a5e4ac5d40f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:447-452 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift:685-690 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f254f19b0116d336c6c71d7fd24e151f39431d16fffcdde5d4f0a2766d15077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift:84-88 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:304-308 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8238f34253417271d222fa536a129f76f3ce47d41c5f789482d31b565edcb4a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift:121-126 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchMacMount.swift:124-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0c0838750afa3265d187fbee6a26e28dfaaf48719977119b988dc01926b9aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:161-163 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift:254-258 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift:72-76 \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. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc55c2084eae6922d15b07d2f542befa7fa46014773fe0c55f0d86db5b314500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift:43-52 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift:85-94 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.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. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1a13cbcaeab4022b6d6f13f4fd30db296de26369e150298c99217aec0caf8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:476-483 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:838-842 \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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:476\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3dca682d875d8323d422401f630228f3867c374c5e87f3aa0d653bea34bdbe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:3055-3060 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:3073-3078 \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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:3055\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":3055}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a241a19e3c755879922cb6de86f64c226d6c7ac802cc992fa673cd8d945eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:3805-3812 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:3835-3842 \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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:3805\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":3805}}}],"partialFingerprints":{"codehealthFindingId/v1":"f817f605223ee3e2f0b5eb7cb894146e336bf8c31c19abf4c551e0186ca5ade4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:131-137 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:180-186 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44c1bc0b63f69fb9927db38d3b0abed5a3ca24939cd18795ba5bae54335f611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:262-266 | VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift:277-281 \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":"VPhoneExecutable/VPhoneCommand/VPhonePatchKit/ARM64/ARM64Encoder.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ae63d5524a6f65f44397bea69dc39235aa18e1f0f78942a7873b3755568bc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:1090-1094 | VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:1103-1107 \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 \u0060VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift:1090\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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"109d528b85cc4793cde5267833d9dbf0e52af0bf8b4a76e9be6c8d820ef33ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift:394-398 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift:411-415 \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 \u0060VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift:394\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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d295e336b8c707eaa4aa981821f632ff1ce4016f8430adf8156449e3d165329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/VPhoneGuestPanelsWindowController.swift:121-126 | VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/VPhoneGuestPanelsWindowController.swift:139-143 \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 \u0060VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/VPhoneGuestPanelsWindowController.swift:121\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/VPhoneGuestPanelsWindowController.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"72aa1d39179e2a2344c051edbd652140d613f1a7088df873166440681215f7ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift:654-658 | VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift:870-873 | VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSW.swift:201-205 \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 \u0060VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift:654\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift:659\u0060 calls \u0060hash\u0060, \u0060Data\u0060 and \u0060VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift:873\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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad217fae275ff33728e025757f48eadfc55ab872a8738dcd24eb3938c55a2f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift:274-278 | VPhoneKit/VPhoneCoreKit/Network/VPhoneUDPForwarder.swift:122-126 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift:274\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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"171009599a43d120157e3211d36db6ec39e5cfd1a528935b0420e0c02ab566e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSWCache.swift:148-154 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachine.swift:181-185 \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 \u0060VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSWCache.swift:148\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":"VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSWCache.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e7d391557d45a3c6e20fcb31dfe9f84a54ab63309d3d50452c032e18f2da18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Research/VPhoneVirtualMachineRefactored.swift:388-394 | VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift:555-561 \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":"Research/VPhoneVirtualMachineRefactored.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc97e94b26c7ab1dd4b431543b4c7af7ba865230fa7e1322ba52396cb8949da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneDaemon/Daemon/GuestDisplayMetrics.swift:45-49 | VPhoneDaemon/Daemon/GuestPointGeometry.swift:46-50 \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":"VPhoneDaemon/Daemon/GuestDisplayMetrics.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e3d27426d6004dd3bde43ebc6f7ad10b5db4b06dc6bc81950cbdbb8811b5a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneDaemon/Daemon/GuestHyperTextHandler.swift:331-335 | VPhoneDaemon/Daemon/GuestWebSocketHandler.swift:80-84 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneDaemon/Daemon/GuestWebSocketHandler.swift:88\u0060 calls \u0060send\u0060 and \u0060VPhoneDaemon/Daemon/GuestHyperTextHandler.swift:339\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":"VPhoneDaemon/Daemon/GuestHyperTextHandler.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed587f5fa19bf8857fb06dd0d073317e8ab409d0b8d241be54b4dc40d4e45a13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBuildVersion.swift:134-140 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioGraphConfigurations.swift:274-280 \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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareBuildVersion.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"8741951b353be7660574fc53302ab897b4435724302b574b7ed83ae3e5e0a025"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Bundle/VPhoneBundleOperations.swift:463-469 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplates.swift:1072-1078 \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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneBundleOperations.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdc326c2926fe456f9d74c2909382afb75a49febee9c8a58b492476cb5cbc8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift:267-272 | VPhoneKit/VPhoneCoreKit/Network/VPhoneUDPForwarder.swift:115-120 \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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"8764717313dbf4d809b0f792d3e2f8933709ab51bf6679c6493eec2365faba1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift:284-294 | VPhoneKit/VPhoneCoreKit/Network/VPhoneUDPForwarder.swift:132-142 \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":"VPhoneKit/VPhoneCoreKit/Network/VPhoneTCPForwarder.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06d4a0d5bd4b7b9437b9fcc7adc127f626a565bff29c543daf00e99eb1350c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootROM.swift:70-77 | VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneSEPROM.swift:70-77 \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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootROM.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"45171f483224986d6c7cc85867b7afa1a27b178902cacbe5fdc020980da0ea03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootROM.swift:80-85 | VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneSEPROM.swift:80-85 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootROM.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bfe92ab92b9a4d304555b730c785d2e7d87138b8ee07c71c7c399fa86a9552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPIHomeViewDistanceMethods.swift:10-16 | VPhoneDaemon/Daemon/GuestAPIHomeViewDistanceMethods.swift:18-24 \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 \u0060VPhoneDaemon/Daemon/GuestAPIHomeViewDistanceMethods.swift:10\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":"VPhoneDaemon/Daemon/GuestAPIHomeViewDistanceMethods.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf36375b65d11e835fc9721d033f52c249dfb708cc40067c1d0ce19bb382ac10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneDaemon/Daemon/GuestAPIInputMethods.swift:120-124 | VPhoneDaemon/Daemon/GuestAPIInputMethods.swift:127-131 \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 \u0060VPhoneDaemon/Daemon/GuestAPIInputMethods.swift:120\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":"VPhoneDaemon/Daemon/GuestAPIInputMethods.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"87075f44618af96bb5f54817b0eb5bb0001165944f82f50330963adf18917c34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherDiskImage.swift:28-33 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherDiskImage.swift:92-97 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherDiskImage.swift:28\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherDiskImage.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"672dd5bf779ececcd9f687dee6faa806dc386d77e108eaa47359754c62246cfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift:152-156 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchPostValidation.swift:60-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5abe38db2dc3f822e4fc010ce56016d99871bdf1bac39432ece5e73eb507738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift:108-113 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchMacMount.swift:106-111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift:108\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift:114\u0060 calls \u0060contains\u0060 and \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchMacMount.swift:112\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"297ca99d8260cbf8fdc5f0cd49b3ff2b11eb81f7c683af1acfec111c69cb1acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportLinkedit.swift:176-181 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportLinkedit.swift:189-194 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportLinkedit.swift:176\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExportLinkedit.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"136b591ddbabda99d5ab89857dccb3562b64642e49bc7ca8f4fdbb1eeb0de1a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:445-449 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:809-813 | VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhonePCCGPURecovery.swift:160-164 \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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:445\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 after the matched lines, \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:450\u0060 calls \u0060first\u0060 and \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhonePCCGPURecovery.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4435c1ecaea92314f17bb788eaab254c55f6f09d368d3745ed9c61f2cf4dbae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1299-1304 | VPhoneKit/VPhoneCoreKit/Bundle/VPhoneSystemTrim.swift:443-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 \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift:1299\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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"7232fc6e2d9e58b48077c9874cad1f88b2510fe260fbb333b1cdd74607a9bbe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneLaunchLayout.swift:167-171 | VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskHolder.swift:59-63 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneLaunchLayout.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"870995216b63b0ccdddfd61009eb5b01c0a7bd952f37852dc935f3a018f59031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.swift:42-60 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchParavirtUserClients.swift:60-77 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.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. 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d76024549c2aefca35c018443f5f3e743d733e665573eda90a67f144fff1d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchFpfsScopedOpen.swift:58-64 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchParavirtUserClients.swift:152-159 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchFpfsScopedOpen.swift:58\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchFpfsScopedOpen.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9b8e47edd9f20bcbfce19473262b1d185e29620244f109765e4aa9ee74f4f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.swift:64-70 | VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchParavirtUserClients.swift:79-83 \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 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.swift:64\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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"4008cab76bd1c4462ac82daffd306bcf4ae02a455b67cded68d49fa38ae9deb0"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: VPhoneVirtualMachineKit: VPhoneVirtualMachineKit: abstractness 0.01, instability 0.00, distance 0.99 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"faf64f6a073f5b6ebf560e632f7286213c8c275a8905afd0616f7e46c2bb6b0b"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: VPhoneCoreKit: VPhoneCoreKit: abstractness 0.01, instability 0.00, distance 0.99 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"47e54bca178b81e157cfdb1365518e73aa9e82bfbcb5b32e459fec89546d0fe0"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: VPhoneSign: VPhoneSign: abstractness 0.08, instability 0.00, distance 0.92 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"02a14e995fcf095d3c835c4055dc23049b2b2b28f9fd5d3a90ce0a75edd30e61"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: VPhonePatchKit: VPhonePatchKit: abstractness 0.08, instability 0.00, distance 0.92 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ed8def59335aef50492108f421c0c513f90a33e0cfaa7308106ccd182c15d037"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Data (LCOM4 16): Data\u0027s methods fall into 16 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 16 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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneAEA.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baa67a9b477a650c0a26e44cc47ecb394a489026b6d117b2756c06df6119d58"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VPhoneMenuController (LCOM4 11): VPhoneMenuController\u0027s methods fall into 11 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 11 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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuController.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f2b5c204f080b96a96b885910184d97c48684a2833ec57f5e3559ab58804a7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: KernelCustomFirmwarePatcherBase (LCOM4 10): KernelCustomFirmwarePatcherBase\u0027s methods fall into 10 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 10 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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abb3c6d9f266f3e5161fb9520096b228dc9297de18872eef286048f01772f13"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VPhoneVirtualMachineRefactored (LCOM4 7): VPhoneVirtualMachineRefactored\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Research/VPhoneVirtualMachineRefactored.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"592cddc1c51825c4e430519fa05856d3c116cd25bf7a858c6e07f05262356ba5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VPhoneKeychainWindowController (LCOM4 7): VPhoneKeychainWindowController\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainWindowController.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7313bb99330009aebfa5c13337a935ad271d9a72baef212b7172320bb90d1ba"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VPhoneDeviceInfoModel (LCOM4 7): VPhoneDeviceInfoModel\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/DeviceInfo/VPhoneDeviceInfoModel.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5561014145d7ead691ec14a640f8ab7d5802a15077069e19252d2cea6349e8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VPhoneGuestControl (LCOM4 6): VPhoneGuestControl\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee46a4532b64a40984fce09a4cc7548a2c15f7a03f9776b9cc7b06ac447ff17c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VPhoneVirtualMachineView (LCOM4 6): VPhoneVirtualMachineView\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cba14e08c10e2d9e3baa3e197ee3e18d6f6807ab66a2d8ec0ad3f7ff910eca9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VPhoneLaunchpadHelperService (LCOM4 5): VPhoneLaunchpadHelperService\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf4debd82fdfb6e1934c0c831e61f580fcdcfbb0463e9f99edb1d11cd90ef67"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SegmentByteStream (LCOM4 5): SegmentByteStream\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29f0c9dc07c63897949989ad99eb4277e87bd9056b90445dfde726188d9b2de"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VPhoneTemplateSetupVirtualMachine (LCOM4 5): VPhoneTemplateSetupVirtualMachine\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneTemplateSetup.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cfc146689684468a14bae3fc2cd6c44c0e66cea63424f117b24c9604e50acd"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VPhoneLaunchpadAppDelegate (LCOM4 4): VPhoneLaunchpadAppDelegate\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":"VPhoneLaunchpad/VPhoneLaunchpad/Application/VPhoneLaunchpadApp.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d5dae9a023871fff32964e101a4ee520769a4f7636f688ba4fb81ba9d27c3a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ByteRelay (LCOM4 4): ByteRelay\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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneAPIProxy.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab5dbb41f4903ee6d0b4909da04aa5919c435b54a8442ec1330579f462f4310"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VPhoneVirtualMachine (LCOM4 4): VPhoneVirtualMachine\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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4aa6ef6b8b2925d4582804371790e42edb8937275d006023d2cdff80f97903"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VPhoneConsoleModel (LCOM4 4): VPhoneConsoleModel\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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Console/VPhoneConsoleModel.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7c9bb235ed962ef3e7b015ba0e14a63e6beb7c73046aa10bfb4dc80a03981d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneArchiveKitTests/BundleTransferTests.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"354736eceb4ac36d135a7e77db727163d619b115bcbbbf31351c6763480505ae"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKitTests/Bundle/TemplateSetupBootTests.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ce5c50e0e48fbca9791c0011c500be56e0a1c8aedc2ff288b62a229f733839"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKitTests/Network/VPhoneTunnelGatewayTests.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87708a0638c526dd0a718b9f5532473ae926e4608923c8576a262f85b95d63d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKitTests/Support/MacNameTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a046d3873a27b338f50a2b3862e144a39fb405c38291f01949b0f035d271f8a5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKitTests/VirtualMachine/BootROMTests.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"874ae4f4532b152966acae086d8e0f4b8ea7b83d580c318ef928e7105a92bbf4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKitTests/VirtualMachine/DisplayGeometryTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e39776d93cb9442fc98bf3780a655e7c589df07ac6bdf22ffcffa766546f930"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKitTests/VirtualMachine/NewVirtualMachineManifestTests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ef39a4294ea45fb8ea64da956361d406008551e36aa990b512ab996c372930"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKitTests/VirtualMachine/SEPROMTests.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97c9cfccad89dd9b41584e637a6b324b5015106753d98a39a2acab1fcf756bb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nop: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/FirmwarePatcherTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5535209f63571680f55a9b0a685f015434d3d39a42b9024c0eb5e47169ab99"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: ret: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/FirmwarePatcherTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f43b37096d926a67dc7fbe570b4d1831a014a334b652a24bd825004fe508ec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: retaa: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/FirmwarePatcherTests.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f7d16254f1007696cf3ef51288f3e75706476c773a0955c435871a77c1c878"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: retab: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/FirmwarePatcherTests.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adf175c65c107fda2b804ae82b4c41395773b85141de7f504d802faccbdacde"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/FirmwarePatcherTests.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31c41c9691e658209a965f27ae6c8471a5d0c4443d1d0d68c5f5d32503c1a2c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/IBootDisplayScaleTests.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd48eb1a3599c973f028d343e5437b7da5528c65d3ba69b548fbb7a8d8baa703"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/PatchComparisonTests.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3841b6a0141ebfc10046fdedb4a678940d0f314511d5f8f7cd03a664f4fe4c34"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/PatchComparisonTests.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf2246f7aad131c2f7fe76387415e58e2b1325a66e41a28923b290953e78b7a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/PatchComparisonTests.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"831860ebd2867c465ed7e368450f129348d3f0e44bb00c2f0d05ed9b845ba04f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/PatchComparisonTests.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5f5bc3b974e7287fb07b6fe6a7549be6a92475c21e1bf7512004172b2baa5b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/PatchComparisonTests.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2a55fd8d8de1d2364c68607cb89d56785fb795b6a32c92e1b45d1bf3f662be"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/PatchComparisonTests.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4d81fac4676e3515d11fda75375a9e8955ff88d3d53368151c6c2debaee75a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/PatchComparisonTests.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"272708d9a3e6db66145bddac7f0a8b24c6aa9b04e4759f7312478ad87bd5a8cf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/PatchComparisonTests.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"6380c4149add51b19c767b96cf36ccb55d352e08314c2fd69f9eeaa0e1b99d21"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/PatchComparisonTests.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b8a6961d94ac8c3c000edb69f2aea2cdf3490bf91b096919ff573493f7044f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/VerboseCustomFirmwareDebug.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"542700e6a3a8ac045a3614658963fd901e24251d7038c73a1c99e6595b402db5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/CustomFirmware/CustomFirmwareBoardAudioTests.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9fff6b92be0687b6b76ee5f3f6ad84a77c3c682eec5bda0f9918e4c2d84d47"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/CustomFirmware/CustomFirmwareDetachedSignatureTests.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e2386270880579788fc41f7b04279e069ba43fc34094bfb65663aa506515df"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/CustomFirmware/CustomFirmwareParavirtGPUPrimitiveRestartTests.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"788ff773c81175d19d7e7fd5a9e243e7faf362a800277ca4f388044850ab0100"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/CustomFirmware/CustomFirmwareVirtualAudioMicrophoneChainsTests.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f20f372699b58f841345bdadfa98326a3fcb79dfdd0d63e209cfb7afb7ef2c4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/DyldSharedCache/DyldSharedCacheCameraPatcherTests.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52698bdfff6a72e1ee9de1292df501bfbd261f5b08e70817c5dc95583c5452f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/DyldSharedCache/DyldSharedCacheHypervisorVirtualMachinePatcherTests.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bee091559ecb94ad1357b3d93dd0ce44d8893feba70c62c148516e6868b3bf7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/DyldSharedCache/DyldSharedCacheLockdownModePatcherTests.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"27aba59980906f0b42b042000b7d2bd6498a442b6cd2ea5fe4f3c78fa63c2cc9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/DyldSharedCache/DyldSharedCacheMISTrustAuthPatcherTests.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"9693ab9cceaf08d5808cc2830eacfd7e3b67ec38cb262d527df907793eb84a5d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/DyldSharedCache/DyldSharedCacheMISTrustAuthPatcherTests.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"3391e7c52a7ba31866ebe51c77c636d16c3ef3998da12172bdbb9a7f07d441be"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/DyldSharedCache/DyldSharedCacheMaxSlidePatcherTests.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51855d08ac1599304f7edc7c7f45e0191111b033b9493f0c2046644466d63a7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Kernel/KernelForkInheritInvalidCodeTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c47735e7d68ead2d5871a5a61c6c993675053a2442c3ef00a2b2e1070635a1b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneRestore/VPhoneRestoreTests/RestoreEventTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4712549893a790e7a4dd9c4659fe14cc7474de9b41de19cbcf43a64c13a4ec65"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneRestore/VPhoneRestoreTests/RestoreOptionsTests.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd0f021a83e04797e37c596a5a6125b7b0bf888424816cad346370898ea1a9b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKitTests/VirtualMachine/DisplayOrientationTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70454c3499cac49450cdbf974084cec41db91922ec28cf96ed0a3e768a14c1e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift: VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift changed 148 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 344 in VPhoneCustomFirmwareInstaller.applyGuestPatches at line 1358. 14 of those changes were fix/bug commits, and the other 134 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"383e426136f55000e825540b7c06cee914d2aad1b4ffbd6bbd464a9d43629f6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneDaemon/Daemon/GuestAPI.swift: VPhoneDaemon/Daemon/GuestAPI.swift changed 91 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 104 in GuestAPI.executeCore at line 182. 3 of those changes were fix/bug commits, and the other 88 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneDaemon/Daemon/GuestAPI.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":"VPhoneDaemon/Daemon/GuestAPI.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"823689427ac7dffa26d41230bdddb8c88225ce95b8c460c0ba7f52c704470950"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift: VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift changed 60 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in VPhoneVirtualMachineAppDelegate.startVirtualMachine at line 79. 2 of those changes were fix/bug commits, and the other 58 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff617475296dcd84a4ec7a12642eeefe884b33bd470e49a12065c1ac77821d9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift: VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift changed 52 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in GuestAPI.executeDevice at line 62. 4 of those changes were fix/bug commits, and the other 48 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneDaemon/Daemon/GuestAPI\u002BDevice.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":"VPhoneDaemon/Daemon/GuestAPI\u002BDevice.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d71456bb5e120c0cb35107c9ebce760e0b61d93c10a273685b463062ec3d95"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineComponents.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineComponents.swift changed 41 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in FirmwarePipeline.buildComponentList at line 52. 2 of those changes were fix/bug commits, and the other 39 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineComponents.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineComponents.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed2b3def9c1c38353bb30a42ca3a86f8020203330aafd8f81558e12ebb15d1c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift: VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift changed 72 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in VPhoneGuestControl.probe at line 327. 1 of those changes was a fix/bug commit, and the other 71 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.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":"VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af67cbabcb30b000d912e68b204e4b149e706e7229fcc06802013ceca0694e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwarePreparer.swift: VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwarePreparer.swift changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in VPhoneFirmwarePreparer.prepare at line 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwarePreparer.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwarePreparer.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db3dcfc6416c99edc7c7818486234e0ca9f9d37eb1f2775f3afc328c6176a88"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadCreationPipeline.swift: VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadCreationPipeline.swift changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in VPhoneLaunchpadCreationPipeline.perform at line 388. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadCreationPipeline.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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadCreationPipeline.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65696d4e4581bef609c6b0a7583e01d36695a8a8892853da0f891b37f8c1199"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneVirtualization/UI/VPhoneHostAutomationServer.swift: VPhoneExecutable/VPhoneVirtualization/UI/VPhoneHostAutomationServer.swift changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in VPhoneHostAutomationServer.respond at line 184. 1 of those changes was a fix/bug commit, and the other 22 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneVirtualization/UI/VPhoneHostAutomationServer.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":"VPhoneExecutable/VPhoneVirtualization/UI/VPhoneHostAutomationServer.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74aa2fe2e3b3b5b8d383923bcff1ab17bc296cddef9422b4456f94ef677d452"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift: VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in VPhoneLaunchpadControlCommands.startCreation at line 526. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.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":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff0abf1238e10237fb101a001abef256a7f027528fd268f79c82810a19a8c2f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift: VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift changed 47 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in VPhoneVirtualMachineWindowController.showWindow at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"88849b934fc8d4682ec3567dfb7e454585b3d7fbe8091256840a3ee6db548b9c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift: VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in VPhoneVirtualMachine.init at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachine.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5557bc261075125424e3bd4964f0a2dd4622c19c6828497568b377356496887"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneDaemon/Daemon/GuestHyperTextHandler.swift: VPhoneDaemon/Daemon/GuestHyperTextHandler.swift changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in GuestHyperTextHandler.channelRead at line 26. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneDaemon/Daemon/GuestHyperTextHandler.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":"VPhoneDaemon/Daemon/GuestHyperTextHandler.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c2342971f188cddf128c2712a5ec0ac9040c8c00a2d79a22eabf1a2d123f93"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateCommand.swift: VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateCommand.swift changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in VPhoneVirtualMachineCreateCommand.validate at line 164. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateCommand.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateCommand.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea736ced078fbf31cf1f02b5f5ddb72747252b679c419b451caba0ea09e7f97"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift: VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in VPhoneFirmwarePrepareCommand.run at line 263. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83b99ff0039ca1e8529d62463c4e8446209b2f1719b45d8eff07fd01ccd04d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachinesView.swift: VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachinesView.swift changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in VPhoneLaunchpadMachinesView.body at line 76. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachinesView.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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachinesView.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66f357ccb3d55f950da16d2c8ca94089f12025db36112f28c40e1528d238d38"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadControl.swift: VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadControl.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in VPhoneLaunchpadControlRequest.parse at line 233. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadControl.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":"VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadControl.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43931601b7c65bc82d1a91bfad3b34a0868dccf266b3ba20738d20a0fbecf07"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCommand.swift: VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCommand.swift changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in VPhoneVirtualMachineConfigCommand.networkEdit at line 346. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCommand.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCommand.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab7eb1bdc4e15adbc16d1ee93d00e3b7d525be754d3c775ebba800e0c858f44"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineInspector.swift: VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineInspector.swift changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in VPhoneLaunchpadMachineInspector.patchesPage at line 347. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineInspector.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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineInspector.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f90969f1d8845ae452ebbe427c111ea2b4fb299bc743b2e81e3b3b18a27e6c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift: VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in VPhoneVirtualMachineView.scrollNatively at line 562. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.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":"VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"beec834b1adf1449af130c55231ab287bec3ce7024965d3abdd2b45533719bb0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.swift: VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.swift changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in GuestAPI.installEnvironment at line 61. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.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":"VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be9913ce25aebe570f1d9a43a70f9da9101daf84022d197465197edb4de3530"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcher.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcher.swift changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in CryptexFilesystemPatcher.mergeFilesystems at line 179. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcher.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"037e3c4efb0ad730661514100d62d2fa9f32817da1f5430ab49c7880c8c734df"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in DeviceTreePatcher.guestEdits at line 156. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb71447e51a662b347bbc9a4ead4cf1888c44494b1ccd825d68f7dd56e4051b2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhonePCCGPURecovery.swift: VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhonePCCGPURecovery.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in VPhonePCCGPURecovery.stageFromSystemDisk at line 143. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhonePCCGPURecovery.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhonePCCGPURecovery.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b0fbb7beded870af6acdf6dc9c9c568b45be50c71f1e57a27f91fc0d8ab1ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in DeviceTreePatcher.applyPatches at line 364. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce66b9ce5e588bcca29dd83d89a1e2841522af62747134fcc2ea0cd233946d79"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneKit/VPhoneCoreKit/Support/VPhoneNetworking.swift: VPhoneKit/VPhoneCoreKit/Support/VPhoneNetworking.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in VPhoneNetworking.merge at line 510. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneKit/VPhoneCoreKit/Support/VPhoneNetworking.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":"VPhoneKit/VPhoneCoreKit/Support/VPhoneNetworking.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6de2f0d9ba3010b68349c98bd1bce41dde18278f2fbf1320220c842aded1c9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipeline.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipeline.swift changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in FirmwarePipeline.patchComponents at line 316. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipeline.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipeline.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a8a6af6f54cd714f562a0b1cf8cf60d1365a20b8d26f99993dfafcad4b7aaa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in KernelCustomFirmwarePatcher.scanRange at line 126. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmProtect.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4701ac36d8f18b5280066d2aea8bec645e38ee94de898e6af102bc2e92185192"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineSheets.swift: VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineSheets.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in VPhoneLaunchpadMachineSettingsView.save at line 356. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineSheets.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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineSheets.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"4713f49fd332b04b5941cd077928b82d9d4e3b3db31848bb31674f137fa6e8eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in TXMDevPatcher.patchSelector24ForcePass at line 420. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMDevPatcher.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c090a6488124460f070a85ebe1ee99225f30e05fb3e638333ba75866a1a3dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift: VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in GuestAPI.updateOTASystemApps at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.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":"VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16b368cd4743c04cb5bb61bc2ce493acea94bc038b9da163b84f7fca52c427b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.swift: VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in GuestIrisinInstaller.performInstall at line 250. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.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":"VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd88d60be649ce48fe133aac3a2f42cf86baad6750722bc274c774b720de5a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in KernelCustomFirmwarePatcher.findCsBypassGate at line 80. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Memory/KernelCustomFirmwarePatchVmFault.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a591f553407d4d6cb482624c54d9140be506a6969d75bc679a74c828a01073b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootCommand.swift: VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootCommand.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in VPhoneBootCommand.validate at line 106. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootCommand.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":"VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneBootCommand.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f9189b75a365dd3e07eb568fc86edef5271fcda7ccc7dcc0c573d7bf0910f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneDaemon/Daemon/GuestAPI\u002BInput.swift: VPhoneDaemon/Daemon/GuestAPI\u002BInput.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in GuestAPI.executeInput 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneDaemon/Daemon/GuestAPI\u002BInput.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":"VPhoneDaemon/Daemon/GuestAPI\u002BInput.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2974a9bdc85e492f3031131c25e8ad2862097d53463c378f03b55b655ad34430"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveWriter.swift: VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveWriter.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in VPhoneArchiveWriter.pack at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveWriter.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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveWriter.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd387faa71729e9257611d2a69307fb13076ae17076c271607e3ce6f4bb53e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchCatalogReport.swift: VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchCatalogReport.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in VPhonePatchCatalogReport.text at line 323. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchCatalogReport.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchCatalogReport.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b9590894aeca66d1e78223fa4aa86f521816d36d0cac690fa7190ad63da746"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMaxSlidePatcher.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMaxSlidePatcher.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in DyldSharedCacheMaxSlidePatcher.patch at line 228. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMaxSlidePatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMaxSlidePatcher.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8cc0d4ccca41abba625509c5fcf5c15beb6a6b2ffad5cc318d10c37b272055"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in CustomFirmwareVirtualAudio.epilogueEntry at line 2606. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2606}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54cf1e4dca25a3f647402a34f46a5b6077a88ada6dce2263dc73612c54d6706"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchPostValidation.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchPostValidation.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in KernelCustomFirmwarePatcher.patchPostValidationAdditional at line 14. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchPostValidation.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchPostValidation.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5b91975c418e01af8b1f0debff4afbc578febcf461a9d9ec16c75090531ad5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in KernelCustomFirmwarePatcher.patchCredLabelUpdateExecve 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchCredLabel.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba124d5c4b937a7a41c09ab2aaca3bed781530987831b92e86dbaccb13f787a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in DyldSharedCacheHypervisorVirtualMachinePatcher.patch at line 266. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c7089bba761e142514c219d73f25e138f9a1595c512859f9d0ae92c6479b61"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/VPhoneSign/MachO/VPhoneMachOImage.swift: VPhoneExecutable/VPhoneCommand/VPhoneSign/MachO/VPhoneMachOImage.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in VPhoneMachOImage.init at line 60. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/VPhoneSign/MachO/VPhoneMachOImage.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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/MachO/VPhoneMachOImage.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79f00a71d6636e1860cf02f7714a034bf28aa065b09cc3f798d323d6002dfcb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchThreadSetState.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchThreadSetState.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in KernelCustomFirmwarePatcher.patchThreadSetStateEntitlementFlag at line 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchThreadSetState.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchThreadSetState.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f553174413b18dd5b37c3940d4ed9192ac3d298b7c54a7273b74ab8eef9702"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchExcGuard.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchExcGuard.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in KernelPatcher.patchExcGuardBehavior 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchExcGuard.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchExcGuard.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5010c9a548d2f2b49517f5d0221a4c7aee2689d83814f36b4ee82de522d79661"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 93 in TXMDevPatcher.patchExecutableRemap at line 18. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMExecutableRemap.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"066c3171622668f41c8fd46d024efdb4373586c9d99d79007a72addf2b4825fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneDaemon/Daemon/GuestAPI\u002BFileTool.swift: VPhoneDaemon/Daemon/GuestAPI\u002BFileTool.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in GuestAPI.executeFileTool at line 37. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneDaemon/Daemon/GuestAPI\u002BFileTool.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":"VPhoneDaemon/Daemon/GuestAPI\u002BFileTool.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"724d967f3df7884d3063fb530b734699c2de167e19bfccb8ba57bf73a426e826"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in KernelCustomFirmwarePatcher.matchUpstreamTaskForPidGate at line 68. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchTaskForPid.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3adeaa90016dfca19a1ec82f0f25072c9826be6b18981d7253deb43c44ed8c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in KernelPatcher.patchPostValidationCMP at line 98. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchPostValidation.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"de11d3d12dd5c64b5c9c9cf3fee7bdc230ac61b02ee5fe56bfd622ad159b83f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Sep/CustomFirmwareSeputil.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Sep/CustomFirmwareSeputil.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in CustomFirmwareSeputil.references at line 403. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Sep/CustomFirmwareSeputil.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/Sep/CustomFirmwareSeputil.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fcde3d39c032c6dd93b432c28ae699026b4ec43134073353e40345c7cdbb6d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift: VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in VPhoneOTAArchive.stageUserland at line 468. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneOTAArchive.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23269143bd0c4d6745dea917513cced7f9cc327b1daad2e1f789f6b0dfa85d5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in IBootCustomFirmwarePatcher.patchSkipGenerateNonce at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/IBootCustomFirmwarePatcher.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec441b3b899b4575227ee1f75e9efc63eb5141cd9a00470e65d32b50f8e8922"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneDaemon/Daemon/GuestAPI\u002BService.swift: VPhoneDaemon/Daemon/GuestAPI\u002BService.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in GuestAPI.executeService at line 8. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneDaemon/Daemon/GuestAPI\u002BService.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":"VPhoneDaemon/Daemon/GuestAPI\u002BService.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2356707dc2ba22a54ece7edb3e5dc4712477952671546ffa3b13ea5fe35b725"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in DyldSharedCacheArm64eX1BootstrapPatcher.lower at line 114. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheArm64eX1BootstrapPatcher.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e90ec97c932c63a43877a76a981afae2690513b03d079cbeace7c75a7498be"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in DyldSharedCacheIOMFBForceKernPatcher.isConditionalDispatch at line 364. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBForceKernPatcher.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf596f956cccf5625efe95718ace6b24e8e771a381e957795e9cbf6d36807ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneApplication.swift: VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneApplication.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in VPhoneApplication.takeKeyEvent at line 67. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneApplication.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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneApplication.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dd341b0f8d3136c9367e1a6abe828f807885b672a49f37a85db22354d4222d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in DyldSharedCacheXPCLWCRPatcher.apply at line 139. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e98dd067c921d4892ba6717b5890664ec7c7477586fd63aff563e28e8c6688"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchMacMount.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchMacMount.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in KernelCustomFirmwarePatcher.findStateGate at line 146. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchMacMount.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchMacMount.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ca6c0d6b5518f8bf4fa2cb477f9288d514eefa9b4ee3a0fc9421a1887c5616"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchVmMapDelete.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchVmMapDelete.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in KernelCustomFirmwarePatcher.patchVmMapDeleteImmutableCode at line 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchVmMapDelete.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchVmMapDelete.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae75365b8c0d8bfd60472e49002b864086e1bbf5b22804907a9e3bcc048cc48"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in KernelCustomFirmwarePatcher.patchIoucFailedSandbox at line 38. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucSandbox.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"da52f5280edafaa5a16425407c3752234079f813c67d16a97a533634f87bc248"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneVirtualization/UI/HostDevices/VPhoneCameraServer.swift: VPhoneExecutable/VPhoneVirtualization/UI/HostDevices/VPhoneCameraServer.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in VPhoneCameraServer.setSource at line 77. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneVirtualization/UI/HostDevices/VPhoneCameraServer.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":"VPhoneExecutable/VPhoneVirtualization/UI/HostDevices/VPhoneCameraServer.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9eb0f57e117aae39c27ba146b3b9988e6778d3e4a067ca3f47218aed38b58ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDiskImages2.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDiskImages2.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in KernelCustomFirmwarePatcher.nopAbiVersionGate at line 78. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDiskImages2.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Storage/KernelCustomFirmwarePatchDiskImages2.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"357d7a49d2fba45e522ab7abf22e812176a7ea33f1e5a32aa9774fc887b5dafb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneLaunchpad/VPhoneLaunchpadCLI/main.swift: VPhoneLaunchpad/VPhoneLaunchpadCLI/main.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in main.swift.top-level code at line 97. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneLaunchpad/VPhoneLaunchpadCLI/main.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":"VPhoneLaunchpad/VPhoneLaunchpadCLI/main.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dca31245470f4bfff64f8cf6d250c7d11826aaa3c2665b4a84558a0beb20a3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveExtractor.swift: VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveExtractor.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in VPhoneArchiveExtractor.unpack at line 51. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveExtractor.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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveExtractor.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a858b6845fc0fb0d92e4a5499fc2d88a0020df05a2a2e12df8f7c91f417776"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in KernelCustomFirmwarePatcherBase.findProcSecurityPolicy at line 228. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcherBase.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbc3ef926df281bb97112311dd3158cff95fb4817b69cc77789e57a785ce939"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneKit/VPhoneCoreKit/Firmware/VPhoneAPFSSnapshot.swift: VPhoneKit/VPhoneCoreKit/Firmware/VPhoneAPFSSnapshot.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in VPhoneAPFSSnapshot.rename at line 206. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneKit/VPhoneCoreKit/Firmware/VPhoneAPFSSnapshot.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":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneAPFSSnapshot.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f8cef6535ed319521a2351e6f44162c1f58b3ff4ac31f73ba32818684e46c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDogDiscovery.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDogDiscovery.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in CustomFirmwareWatchDog.locateSites at line 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDogDiscovery.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDogDiscovery.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3abd2926090239613b4422df176ff529ca4497d3cf08a989c334481eeacc4e9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiExecve.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiExecve.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in KernelCustomFirmwarePatcher.patchAmfiExecveKillPath at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiExecve.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiExecve.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"93885c1318dd17ca3cfcadcad300dd98dc3c1648014e96721a10d7a71a3ee0aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in CustomFirmwareDaemons.filesystemLayout at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareDaemons.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"539683960b9e4bd090f2b3239654c1dcf19e8a28b58fe395ac9ffd4cdea5a699"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucMacf.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucMacf.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in KernelCustomFirmwarePatcher.patchIoucFailedMacf at line 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucMacf.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchIoucMacf.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48f21f7d9771b42738e39747de545e0892adf6faecaa336ff80f69b2fb2dbae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in IBootPatcher.patchBootxPrecondition at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchBootxPrecondition.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0988f5f28bbe40c647f37dbf68dcce6251a43bf172ceaaa0325f01fc74ab21c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSlimmingRequest.swift: VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSlimmingRequest.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in VPhoneTemplateSlimmingRequest.resolve at line 107. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSlimmingRequest.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":"VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSlimmingRequest.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"763788968b7afc3256298bb39898fcbe6799ce202e4d86230cd63bbd789e5b85"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchThidCrash.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchThidCrash.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in KernelCustomFirmwarePatcher.patchThidShouldCrash at line 14. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchThidCrash.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchThidCrash.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2060eda3018d295eca389e95d7ac5feaec6660ab84e937a08cea33bfa0ac3aed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in KernelPatcher.discoverSandboxTextRange at line 185. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5382d67dfa457720280de979d76938228d2703614ed3d56fef6c70de1fb07e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheCodeSignature.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheCodeSignature.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in DyldSharedCacheCodeSignature.reattest at line 271. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheCodeSignature.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheCodeSignature.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3dcdb725c295ff0291331ba30778dc47f0f52cdd9cf3e3bf6447bf8dd6bdb2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachOCodeSignature.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachOCodeSignature.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in CustomFirmwareMachOCodeSignature.reattest at line 286. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachOCodeSignature.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachOCodeSignature.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fde2b6822b570095c881935d5e249c04b9002bc1e349c5d3c015e51c64fca2c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiTrustcache.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiTrustcache.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in KernelCustomFirmwarePatcher.patchAmfiCdhashInTrustcache at line 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiTrustcache.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchAmfiTrustcache.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9aea1bb046a9b3d2a578028a654ae53f05e2defcd0ddd464f4d1deb55813a06"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in KernelPatcher.patchApfsVfsopMountCmp at line 33. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"99024ed34702df56860bdf669a1219a7b180269d879d8b490da8a56f287c2187"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchExecPolicyKill.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchExecPolicyKill.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in KernelCustomFirmwarePatcher.patchExecSecurityPolicyKill at line 35. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchExecPolicyKill.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Sandbox/KernelCustomFirmwarePatchExecPolicyKill.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6bf4c26c0160a0f49cf049a4f9edfd1e44630f371009f8d971090f7082cf21"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in AVPBooterPatcher.patchDGSTBypass at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/AVPBooter/AVPBooterPatcher.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace095f8c9b389d0964b2b4d93cc5a1d39d853c518e7f0148837bc7023e0138e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskUsage.swift: VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskUsage.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in VPhoneLaunchpadDiskMeter.measure at line 163. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskUsage.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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskUsage.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60e5203626938c9ff7701e81f5a0dd762ff2d76b7f739e59282da6631402c3f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in KernelCustomFirmwarePatcher.patchParavirtTask3Version at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchParavirtTask3.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea9234c0ba353b0bba99a278b1932a95ecd9e840df3931551f276f85dfa0aa6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchImage4Callback.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchImage4Callback.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in IBootPatcher.patchImage4Callback at line 14. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchImage4Callback.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchImage4Callback.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3999e00682de341b2b3fab5a194e4b9cf5edd0491226a883240e74aa86dec5e9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/RemotePairing/CustomFirmwareRemotePairing.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/RemotePairing/CustomFirmwareRemotePairing.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in CustomFirmwareRemotePairing.locate at line 45. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/RemotePairing/CustomFirmwareRemotePairing.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/RemotePairing/CustomFirmwareRemotePairing.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb562e932a35b3979b4ad7bfd2ea2d8cf011d94b8bc44737009110e604302875"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioGraphConfigurations.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioGraphConfigurations.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in CustomFirmwareVirtualAudioGraphConfigurations.patch 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioGraphConfigurations.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareVirtualAudioGraphConfigurations.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de62e525a1655ac3ffd8005d43f2d3ceed4a5bde398d18679d4c72db78c0746"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/VPhoneSign/Entitlements/VPhoneSignEntitlements.swift: VPhoneExecutable/VPhoneCommand/VPhoneSign/Entitlements/VPhoneSignEntitlements.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in VPhoneSignEntitlements.write at line 171. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/VPhoneSign/Entitlements/VPhoneSignEntitlements.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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/Entitlements/VPhoneSignEntitlements.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"71acfc65b02defcbe80920456dd32180b80fc22effeb32d5b55b15a5710c41f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/VPhoneSign/Identity/VPhoneSignPKCS12.swift: VPhoneExecutable/VPhoneCommand/VPhoneSign/Identity/VPhoneSignPKCS12.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in VPhoneSignPKCS12.decrypt at line 119. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/VPhoneSign/Identity/VPhoneSignPKCS12.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":"VPhoneExecutable/VPhoneCommand/VPhoneSign/Identity/VPhoneSignPKCS12.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e26cbbdd1db9d1d82d522ebe42a1c7093ba3ffde724d95b3f96dfbffaf5b952"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCacheKDK.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCacheKDK.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in KernelCacheKDK.mix 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCacheKDK.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCacheKDK.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5959d09f3d286624da372d01a779d178163d274dcbb8bbdc7d5adca7304deb41"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneKit/VPhoneArchiveKit/Archive/VPhoneTreeFingerprint.swift: VPhoneKit/VPhoneArchiveKit/Archive/VPhoneTreeFingerprint.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in VPhoneTreeFingerprint.capture at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneKit/VPhoneArchiveKit/Archive/VPhoneTreeFingerprint.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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneTreeFingerprint.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb7fddd36d96c6528aa82e7480f367eb346db46f93f5dc23e270cf69a411a06"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchSerialLabels.swift: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchSerialLabels.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in IBootPatcher.patchSerialLabels 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:00:54 \u002B08:00\u0027 --until=\u00272026-11-13 17:00:54 \u002B08:00\u0027 --full-history --no-merges -- VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchSerialLabels.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchSerialLabels.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab3ceeae723ada973e3bb6b347c647dbe99214114ebdde32cb8a5d7787a3d6d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 96 significant file(s) lose their only recent owner: VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMISTrustAuthPatcher.swift, VPhoneLaunchpad/VPhoneLaunchpad/CoreBundle/VPhoneLaunchpadCoreBundle.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/WatchDog/CustomFirmwareWatchDog.swift, VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/DeviceInfo/VPhoneDeviceInfoModel.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/MobileActivation/CustomFirmwareMobileActivation.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Process/KernelCustomFirmwarePatchSyscallmask.swift (\u002B88 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"82bb2ea46343ffdd34f9aa8069e04f4fefd7cc7d8886d7f650bb516c1b98e38a"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 23 significant file(s) lose their only recent owner: VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineTemplates.swift, VPhoneKit/VPhoneCoreKit/Bundle/VPhoneDiskRebase.swift, VPhoneDaemon/Daemon/GuestServiceProfile.swift, VPhoneKit/VPhoneCoreKit/Bundle/VPhoneMachineSnapshots.swift, VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadDiskUsage.swift, VPhoneExecutable/VPhoneVirtualization/UI/HostDevices/VPhoneHostAudioLatencySync.swift, VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneTemplateSetup.swift, VPhoneKit/VPhoneCoreKit/Bundle/VPhoneTemplateSlimmingRequest.swift (\u002B15 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5624793b26432f9425922d06f4c591f7021964722fffa52cd3571245c5bbb94d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 3 significant file(s) lose their only recent owner: VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneAttitudeDial.swift, VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneMotionView.swift, VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneAttitudeDialsWindowController.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"83eed7b1cfb1024cfb98e02cd0a75b3573dcc518ea90a8de0ddc3d04a5153980"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (123 single-owned of 595 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 595 of the 714 production source files in this repository met that bar). They are anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: VPhoneDaemon/Daemon/Bootstrap/GuestIrisinInstaller\u002BPackages.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"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 \u0060VPhoneLaunchpad/VPhoneLaunchpad.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca58a164d25f0dccafbb061bcc79fb305694c45af136f8815327b65b37af9850"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060addGpuDriver\u0060 spells \u0060Gpu\u0060 where 21 names in the project spell it \u0060GPU\u0060: 21 of 22 names in project repository spell the token \u0060GPU\u0060 (21 of 22; unit: names in project repository containing \u0060GPU\u0060). Peers: GuestIconServicesCache.dropIfOlderThanGPUOnStartup (VPhoneDaemon/Daemon/GuestIconServicesCache.swift:28); CryptexFilesystemPatcher.retargetGPUBundle (VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift:264); repository.CustomFirmwareParavirtGPUCompilerCache (VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.swift:17); repository.CustomFirmwareParavirtGPUIndexOffset (VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUIndexOffset.swift:56); repository.CustomFirmwareParavirtGPUPrimitiveRestart (VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUPrimitiveRestart.swift:39). Rename to \u0060addGPUDriver\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"a775281270db41cd2328368dc53308f69ce00578d3ce39f7650106a1237c26de"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060includeIpsw\u0060 spells \u0060Ipsw\u0060 where 23 names in the project spell it \u0060IPSW\u0060: 23 of 24 names in project repository spell the token \u0060IPSW\u0060 (23 of 24; unit: names in project repository containing \u0060IPSW\u0060). Peers: VPhoneBundleTransfer.export(includeIPSW) (VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneBundleTransfer.swift:70); VPhoneBundleTransfer.archivedLogicalSize(includeIPSW) (VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneBundleTransfer.swift:129); repository.VPhoneIPSWCache (VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift:10); VPhoneFirmwareMatrix.sharedIPSWNames (VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareMatrix.swift:228); repository.VPhoneLaunchpadIPSW (VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSW.swift:10). Rename to \u0060includeIPSW\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineTransferCommand.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2504808f4ec6a53cfaf153f09a81486ddd30570d9eda240b59c61eded71eeba"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 4 of 7 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060VPhoneExecutable/VPhoneCommand\u0060 (73923 LoC, 607 module-visible types across 47 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3bbe655f195314aac0a883780bc144d3e6736095f19aa5383467d23c2d0f2a53"},"properties":{"commitSha":"ddd9b9d83cc17f0beb22379c8bfd1049a801d749"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"139fcc42ef81ea4a08bbdd9b6b7edb76739b98d7daa800e65636c0b2d058e3d8"},"properties":{"commitSha":"8137c121e5ff79a73d2cfea94fa75984351260d7"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a7f6a54bca9f06807b6dadf29033884ff1ec51354e8db63021e575c073181a4c"},"properties":{"commitSha":"32dc319c088e0986ab445305f80a7b890c5d24c3"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f01321d9b5174160d5ed7eb161cc8f8635a8bdeb06b04f0530799e4afe3f178b"},"properties":{"commitSha":"e65e78d090140cf6c56c55d7f85c6856bb72b82a"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3e43ebdacf9c8b0c4ef7398f46ef36687f9bcde7592d4a51fd44f6630561ab58"},"properties":{"commitSha":"ee5e7d0fa2b2cd40fd2b30d8d98b0733b7b25f1b"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bfb336b5b1fdf6596fdbae803eec7d45330a2c60576d02cb7ed850b515dac900"},"properties":{"commitSha":"154d5064ec80b67f076bdbdde13c46fd833fc702"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1542ac657294a7960a3ca68607ef7a17d9ed3d2457fb06dcd777067445c6a3cf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b20c9e3f5f07cd9ed7d38e1ad9e3677b956fa28fa72534ce39bdba4769b42e6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b5b52056351106a0f413fb6a7ed6f1a86554a34d439d2fbd3636fe84453604ac"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"52aefc45d6fc2a81375bd9f09093aa4438814bffaac40ce9e2fe17433b852235"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"db9b924efd601d3ee579e5d904f3c29d9b5ca26d27f57f68e4540ad4ce721d59"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5be03ab325ce0dd57044d4e411f1428508ecf7870bea56774afff406be2e7ce3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6819b36024d45f5f0e1d43e74427f1e72c7d8dae5d09101e0f966a51bf6829ab"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"75369c09bb288495c1ec96550eb2aa9585bb73f2d0abcdd876376a94900b52cc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ae59d5e9dd2c30e110a21be3f2f3e4339df91ffb4154cfcf5f17bedb858ec684"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"87ba35728564bceb0d4a268d35614a2505f142f930d0f44f485b7415d60d1cb3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"79eb58c66e2a8a71efabe7e033e29b36af1b6badac040ab8aa59ba0b6c19ea59"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7537a61fc431d1ce66fd879b4e2c4c758a960e096a33eb8d68a47f0aee539d1b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ee038650d3102f4fd5fd73363e3181c6fe1e3607ecd4a8414969dc08ba728211"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b71cb54cb12517207db398abf7e0b73135014a92b501834e9c521cb796c4481"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a6230cf55ddc376da53b968600afb8cf4a90c6c27dd46ec4a95a902f4b4358ce"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5df34987e7beb341d21eb5a16244640e01d4c463ca38c7a89cd0fb28febb22c5"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"27f30a143f248c9a11fd8ec66afd73e4c0bb6ba3b724d7c5d5a29a3c426fe173"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0eabaa3c0782859c2075037c8ad5bb175decbae8a0b50a2c61f9b5c2ecf41539"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"61e0463de274ba247679d1d299a613c9d2eacbbf9f5ae2398902817652bc24ac"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"77ee8748e71913a45540473e377b812e106f2216e83c51b3687b41f31b3d0c72"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c9bd7dbfe2ebab07e18d25221ac150978e2223cb3c44b992174052cb2bc6f16f"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a86c76b93710ac4c1d4597e8dfee67db8f8d8af6407e63f67cfd1b6ba2009ead"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b60b3e0e2b421ea1fb406bf857907962d2846b11a19342560d19c509ed311eb4"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"edb921b47494020a721db36a915b3109157827d3731756c43338ade83b83f724"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d8ede80302493047f3d6ecbc45a040fa1eee4e60cdd45db52b9d3a4de116c694"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"571b6c2192c8871f5afc2058d2422fdc8339c9e785f1ba3804b82dbe6daf8769"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"92348e61e36b067de68745a5d49ed0336ce476b84a01b865d1090bc33a54e9d6"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64c3f95e43ee183c7a72537ad1806020b2750e2934300943ec9494ca6297f31e"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dc729be5354003458c6238cc89f7c9961fe500c6ca150f7664a0b16477ad869b"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce6615336b709f0a900f5df491056c318c24f164195fbb7db4a9d8cd36c9c2ac"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e6870ed38b6506410bca229d2de6fa4f8b58653d807c5d2cae3505dda0cac2be"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a976a93fc178f043edc00f46a7b8e7b8deca283fe50178adc66e773af91bb833"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"96a0e37ac625bdbf3c82384df65324aae588bdb3e834de860f356fead955baa9"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b51fa965bc901d66524276f09e963d15cde77c8a37c392d851df7dce3b4cb07a"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1dbc38da304f1563e0235a40e08db54df744e3d0953a9ba357117f94d2162a85"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"588ded3549033312219f46116d70dc128844afa6ab8150216bbb881347847388"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3e84fe202af45b4f24f6a4d729bbe78e1e41b17d7fe1c89f4c9173c3898a9649"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6a7a2213ca7cabf8d4ac408591c43ba4cfbe1f09dd6b47743ce3482052419c27"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"167bf46be0af2796edcf5933e1f2a9197ec47d5fc6f2603b2061eebd9b640d82"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7420e1a6f1afd8ecff90f8906941badb3198154da1d5844a509309aa4205ccb6"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"09ce05d6afaf51b908310482a26fc64f6239977d13c4352ede73e3028a9813e9"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"49d3828ccbadbae16424d19e1e30c243d533718e61d7559befb5d57531a4b8a7"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c9eb1f3318f9320ef52e463021592c73ab21cdf9ba654cb932a178a021007ed7"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"92cea6fe38e4c96632413dea8c3bef8ac7a62e841a0715e2daba7553dada8905"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1241349c9ee9fe603a41612e67b70f6dd669b952a5f2bd493fca2bcc163416bf"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa20351948d4c9d344584bf17516b8682a032f6899242fd9c6eeac1c5f6e0251"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82aaad1c7ac62d24a89c350ffd875c6a4ed55992053a375638778e6f15052ef0"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"809dd611ae2b6e78581363de2de55dbc8a4dcedd4ddd18e2b2f8fc102d743c49"},"properties":{"dependency":{"package":"github.com/apple/swift-nio","version":"2.83.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7813d27367a15ed29242804cde8e02c39ac26a9ae4f1bd9cff9bc5e22ed5de64"},"properties":{"dependency":{"package":"github.com/apple/swift-nio","version":"2.83.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"afd95aa5cd9441ce3b41aea135859bee838d6e7e8d07955a9d49ece15d49fd35"},"properties":{"dependency":{"package":"github.com/apple/swift-nio","version":"2.83.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 595 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 595 of the 714 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: VPhoneExecutable/VPhoneVirtualization/UI/HostDevices/VPhoneTouchIDMonitor.swift, VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Preview/VPhoneQuickLookController.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/HostDevices/VPhoneTouchIDMonitor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ecba437aa1bbf240bc5419c6521e0191faf8d7155afe4932c9723b92e1474e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Preview/VPhoneQuickLookController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83871a8d2343baec0a2bbae87c6a8bf404a897dc8d35234340c485959871ecc0"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: GuestAPI\u002BEnvironment.swift \u2194 VPhoneGuestEnvironment.swift: \u0060VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.swift\u0060 (context VPhoneDaemon) and \u0060VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneGuestEnvironment.swift\u0060 (context VPhoneKit) sit in DIFFERENT parts of the tree yet change together 94% of the time (16 of the 17 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are \u006023337dc8\u0060 experiment: bridge iOS 16 startup to SpringBoard run loop; \u00603a82d57f\u0060 Remove PosterProbe; \u0060c868da9d\u0060 Duo: fix stale guest dylib deploys and make the fold libraries instal\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI\u002BEnvironment.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e80359718947f57259019308133895f29cedf24574efd8820e279795d5805b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: FirmwareGuestSystemPatchSet.swift \u2194 VPhoneGuestEnvironment.swift: \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareGuestSystemPatchSet.swift\u0060 (context VPhoneExecutable) and \u0060VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneGuestEnvironment.swift\u0060 (context VPhoneKit) sit in DIFFERENT parts of the tree yet change together 59% of the time (10 of the 17 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u006023337dc8\u0060 experiment: bridge iOS 16 startup to SpringBoard run loop; \u006083b4cd46\u0060 Make libprefsfix and libsigninfix selectable patches; \u006096ecc23e\u0060 fix: feed virtual gravity into SpringBoard orientation \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareGuestSystemPatchSet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e67a143f100ddd992933e18cb00e9d361e7d398aacbdd1e0467672991b23d2"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: GuestAPI.swift \u2194 VPhoneGuestControlSystem.swift: \u0060VPhoneDaemon/Daemon/GuestAPI.swift\u0060 (context VPhoneDaemon) and \u0060VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControlSystem.swift\u0060 (context VPhoneExecutable) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060de764d2f\u0060 Use active point geometry for guest input; \u00603715b5bf\u0060 Keep the guest\u0027s clock on the Mac\u0027s; \u006040440b13\u0060 Unlock a guest at startup when its machine asks for it \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e717a23c59426af697a4abbca0eaeac65bdb6aeb4f0f7dc5b1db3b6ad0a78f8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: VPhoneLaunchpadHelperService.swift \u2192 VPhoneLaunchpadControlCommands.swift, VPhoneLaunchpadHelperClient.swift, VPhoneLaunchpadControl.swift: \u0060VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift\u0060 changes together with 3 other files \u2014 \u0060VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift\u0060, \u0060VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift\u0060, \u0060VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadControl.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":"VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"802e198b7d56c0b4def43c4047bc096ea85c940206d39b0a15e0c9d762485983"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: VPhoneCustomFirmwareInstaller.swift \u2192 CryptexFilesystemPatcherGuestPayload.swift, FirmwareDeviceTreePatchSet.swift, VPhoneCustomFirmwareMachOVerbsCommand.swift, VPhoneCustomFirmwarePatchCommand.swift: \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift\u0060 changes together with 4 other files \u2014 \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift\u0060, \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareDeviceTreePatchSet.swift\u0060, \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareMachOVerbsCommand.swift\u0060, \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchCommand.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 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 4."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2d02dae604029e080b42248a1da86332301610089cd19cfe49fc5142064ad3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: KernelCustomFirmwarePatcher.swift \u2194 FirmwareKernelCustomFirmwarePatchSet.swift: \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcher.swift\u0060 and \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareKernelCustomFirmwarePatchSet.swift\u0060 change together 85% of the time (11 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u006039f6e672\u0060 Render OpenGL ES in guests; \u0060ac83d371\u0060 cfw: jb: Accept the 5-scalar aks_unlock_bag on the 26.4 kernel (iOS 2\u2026; \u0060ab4c7c81\u0060 Emulate scalar CSSC in the kernel and abort failed X1 boot patches \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/KernelCustomFirmwarePatcher.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"238cd915ddcbc33b2505d6950fbba783a5a2fb26ecf0e41e0c97562539b05265"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CustomFirmwarePostRestoreDeviceTree.swift \u2194 VPhoneRestoreCommand.swift: \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift\u0060 and \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift\u0060 change together 82% of the time (14 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u006090e0c6cb\u0060 Enable DriverKit for virtual USB input on iPhone and iPad; \u0060773c1088\u0060 feat: restore opt-in iOS 16 scanout, touch and fresh-lab desktop; \u0060ec014d7c\u0060 Duo: match Apple\u0027s simulator for CoreMotion, displays and the book angle \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwarePostRestoreDeviceTree.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1fee7a29c50844fb0b0f62ab07011bf8a931ba094f118919c868910e4a189c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: VPhoneLaunchpadHelperFirmwareRequest.swift \u2192 VPhoneLaunchpadControlCommands.swift, VPhoneLaunchpadHelperClient.swift, VPhoneLaunchpadControl.swift, VPhoneLaunchpadHelperProtocol.swift: \u0060VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperFirmwareRequest.swift\u0060 changes together with 4 other files \u2014 \u0060VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift\u0060, \u0060VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHelperClient.swift\u0060, \u0060VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadControl.swift\u0060, \u0060VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadHelperProtocol.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 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 4."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpadHelper/VPhoneLaunchpadHelperFirmwareRequest.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6b61c5d37fcd09f48bc5d1328ce5dd868e73feff472751907a100d2bd3eab4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: VPhoneMenuDevice.swift \u2194 VPhoneVirtualMachineAppDelegate.swift: \u0060VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuDevice.swift\u0060 and \u0060VPhoneExecutable/VPhoneVirtualization/UI/VPhoneVirtualMachineAppDelegate.swift\u0060 change together 61% of the time (11 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u00602c49d5cd\u0060 Let the mouse be the iPad\u0027s pointer again, as a saved choice; \u006007bb9351\u0060 Add localized environment immersion actions to the visionOS Device menu; \u00608804d3f5\u0060 Toggle the guest\u0027s software keyboard without restarting \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuDevice.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46b5c3446c34da83edb9ee65505d8af2aa1108b23705496db98c390c77ba024"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CryptexFilesystemPatcherGuestPayload.swift \u2194 FirmwareRestoreImagePatchSet.swift: \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift\u0060 and \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareRestoreImagePatchSet.swift\u0060 change together 60% of the time (6 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 6 shared commits counted here, the most recent 3 are \u006029d6110a\u0060 Validate userspace debugging on iPhone, watch and HomePod guests; \u00602eb85ae7\u0060 Re-sign debugserver in the restore image; \u00602fdc2323\u0060 Sign launchd.plist so Minimal boots a stock launchd_cache_loader \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef7297733cfbd969bdc072cbf4e6694dce4d0b9fe94a2ba48f0bbfdd6a04a11"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FirmwarePatchSetCatalog.swift \u2194 VPhoneCustomFirmwarePatchCommand.swift: \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwarePatchSetCatalog.swift\u0060 and \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchCommand.swift\u0060 change together 55% of the time (11 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u006090e0c6cb\u0060 Enable DriverKit for virtual USB input on iPhone and iPad; \u0060773c1088\u0060 feat: restore opt-in iOS 16 scanout, touch and fresh-lab desktop; \u0060ec014d7c\u0060 Duo: match Apple\u0027s simulator for CoreMotion, displays and the book angle \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwarePatchSetCatalog.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b397a6c8e39cfd7a2cd376fa2ad6563bc2d1b60efbc95de2c6b9d46a48c7313"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: VPhoneLaunchpadControlCommands.swift \u2194 VPhoneLaunchpadHelperProtocol.swift: \u0060VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift\u0060 and \u0060VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadHelperProtocol.swift\u0060 change together 55% of the time (6 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 6 shared commits counted here, the most recent 3 are \u0060b7d0c632\u0060 Create Launchpad machines on the release\u0027s own cloudOS; \u0060b77021fb\u0060 Create, install and patch minimal VMs; \u006004a13e47\u0060 Add the Launchpad Update Kernel action for cfw update-kernel \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Control/VPhoneLaunchpadControlCommands.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf8f2dcf0cebc296eccfeff54d4eba8584175a1e15b37eea8f58f2819d5cfc2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: VPhoneLaunchpadCoreBundleView.swift \u2194 VPhoneLaunchpadMachinesView.swift: \u0060VPhoneLaunchpad/VPhoneLaunchpad/CoreBundle/VPhoneLaunchpadCoreBundleView.swift\u0060 and \u0060VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachinesView.swift\u0060 change together 55% of the time (6 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 6 shared commits counted here, the most recent 3 are \u0060f3cac9db\u0060 Say when a CFW install did not finish, and give Core Bundle installs \u2026; \u00604e8d7bd7\u0060 Polish Launchpad: multi-select machines, sheet flow, and New Machine; \u0060b21910e0\u0060 Apply the formatter to the daemon, the VM, the IPSW cache and the hos\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/CoreBundle/VPhoneLaunchpadCoreBundleView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47fbf64987f445cd15bef95fdd3458ea95d3ac559391b4b141f0fbb224846fb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FirmwareDeviceTreePatchSet.swift \u2194 VPhoneCustomFirmwarePatchCommand.swift: \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareDeviceTreePatchSet.swift\u0060 and \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwarePatchCommand.swift\u0060 change together 50% of the time (7 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 7 shared commits counted here, the most recent 3 are \u006090e0c6cb\u0060 Enable DriverKit for virtual USB input on iPhone and iPad; \u006079cc81c0\u0060 HomePod audio; \u0060a44273ee\u0060 Pair a virtual Apple Watch with a virtual iPhone \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareDeviceTreePatchSet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a6121c258a83e2ad2c64ab7fb3ec7672ab588eec580535572a7f1cf89890e0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FirmwarePatchSetCatalog.swift \u2194 VPhoneCustomFirmwareMachOVerbsCommand.swift: \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwarePatchSetCatalog.swift\u0060 and \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareMachOVerbsCommand.swift\u0060 change together 50% of the time (7 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 7 shared commits counted here, the most recent 3 are \u0060693e42f7\u0060 Cover standalone accessibility X1 images and audit remaining libraries; \u0060f2a4e071\u0060 Lower X1 instructions in standalone debug libraries; \u006027add652\u0060 Fix standalone HomePop accessibility X1 crashes on iOS 27.1 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwarePatchSetCatalog.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5965406c92dc2a2dfc82a9c00d612caa11a81faa7da0f2e1a61f823897e7dfd6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: VPhoneFirmwareCommand.swift \u2194 VPhoneVirtualMachineCreateCommand.swift: \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift\u0060 and \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateCommand.swift\u0060 change together 50% of the time (7 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 7 shared commits counted here, the most recent 3 are \u0060a3176db5\u0060 cli: Resolve --iphone-version and --iphone-build in vm create; \u00609a9d688b\u0060 HomePod Sound Glow; \u006081873692\u0060 iPhone XS Max guests on the research board\u0027s iOS 18 kernels \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4c355acb42141af88c69650900656f33ae010f8804bc30e3f4b703103b96f7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FirmwareDeviceTreePatchSet.swift \u2194 VPhoneRestoreCommand.swift: \u0060VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareDeviceTreePatchSet.swift\u0060 and \u0060VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift\u0060 change together 50% of the time (7 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 7 shared commits counted here, the most recent 3 are \u006090e0c6cb\u0060 Enable DriverKit for virtual USB input on iPhone and iPad; \u006079cc81c0\u0060 HomePod audio; \u0060a44273ee\u0060 Pair a virtual Apple Watch with a virtual iPhone \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareDeviceTreePatchSet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c90258b169d94e30c426304c6f4c3474e16447ed105670859e5eb810972aa0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: VPhoneLaunchpadMachineLibrary.swift \u2194 VPhoneLaunchpadMachineSheets.swift: \u0060VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift\u0060 and \u0060VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineSheets.swift\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00609341c9b9\u0060 Add Machine menu with shortcuts, view patches read-only, export directly; \u0060d898718e\u0060 Clone with a new identity and keep disk snapshots in Launchpad; \u006040440b13\u0060 Unlock a guest at startup when its machine asks for it \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ffd340ef19605e80de5ea8b00d3b4cd7ad15b52a70da96a4958b68d8194eb1"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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":"P2","level":"note","message":{"text":"Logging is not universal: Only 4/6 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060VPhoneExecutable/VPhoneVirtualization\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 4 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/build.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060VPhoneWebsite/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneWebsite/package.json"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee33a514b6c653337baa6ef18e33425b77c5bd2538a492c8a6c489d02c02af29"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.element.isDecoded \u0026\u0026 $0.element.size == 4 \u0026\u0026 $0.element.address == start \u002B UInt64($0.offset * 4)\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheMetalCacheReusePatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47622000ad91237fc7d5685ae960cd1f66382020af61a4119508c1546b3c11f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.hasPrefix(\u0022iPhone\u0022) \u0026\u0026 $0.hasSuffix(\u0022_Restore\u0022)\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift, VPhoneKit/VPhoneCoreKit/Restore/VPhoneRestoreInfo.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e096a58e86e2fb3be3e9a1e84666103da1f1b22cf2169d54db1480ecf585b77"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.segmentName == \u0022__LINKINFO\u0022 \u0026\u0026 $0.name == \u0022__symbolsets\u0022\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExtraction.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKLinkSymbols.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKExtraction.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd716c67aef1b24c88d56dbc449e37b456ef9a608c10d0285377bccea823e74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.segmentName == \u0022__TEXT_EXEC\u0022 \u0026\u0026 $0.name == \u0022__text\u0022\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKLinkSymbols.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KernelCollectionStubCalls.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/KernelCache/KDK/KDKLinkSymbols.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"53716358941034e40d17f0b9be1ab375ea3cac3d851cd399d44ba7c3337f3d33"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.type == .register \u0026\u0026 $0.writesRegister \u0026\u0026 ($0.reg == .x(0) || $0.reg == .w(0))\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheGLESPointDrawPatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/VirtualAudio/CustomFirmwareVirtualAudio.swift"},"region":{"startLine":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13d4dde0133ff187ffcee6ef3b9fac7d73352a7feef0afb67301baa12b578df"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(value \u003E= 48 \u0026\u0026 value \u003C= 57) || (value \u003E= 65 \u0026\u0026 value \u003C= 90) || (value \u003E= 97 \u0026\u0026 value \u003C= 122) || value == 45 || value == 46 || value == 95\u0060 appears character-identically in 2 files \u2014 VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift, VPhoneLaunchpad/VPhoneLaunchpad/IPSWCache/VPhoneLaunchpadIPSW.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":"VPhoneKit/VPhoneArchiveKit/Transfer/VPhoneIPSWCache.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"9693b74b54c2e16fa48ddaee7bdc01fe8f33a90d9fe607e039e2665338ceb3b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060device.family == .iPhone || device.family == .iPad\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareOTACommand.swift, VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwarePreparer.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareOTACommand.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"52312dc6609f976ec684b33cdfa09835d1ba007c076fd35e699a0feced1c381a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error is CancellationError || Task.isCancelled\u0060 appears character-identically in 2 files \u2014 VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadCreationPipeline.swift, VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadMachineLibrary.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":"VPhoneLaunchpad/VPhoneLaunchpad/Machines/VPhoneLaunchpadCreationPipeline.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3e2d77fc4b3d549b8689438be77dd53ba70edfe32c52aaf0575ad6261c79c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060found.lowerBound == range.lowerBound || data[found.lowerBound - 1] == 0\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage\u002BDynamicMetadata.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/ParavirtGPU/CustomFirmwareParavirtGPUCompilerCache.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/DiskImage/CustomFirmwareDiskImage\u002BDynamicMetadata.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a10a27c12b14d4a21fab14005e08d6e7bb2b3687051dcb4965d6ae17d5bfd6c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060guestFamily == .iPhone || guestFamily == .iPad\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcher.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcherGuestPayload.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CryptexFilesystem/CryptexFilesystemPatcher.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a43c70d4bcb710966cebcb151b2ea07ab47cc0885e981095af77623016b3b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060insn.mnemonic == \u0022cbz\u0022 || insn.mnemonic == \u0022cbnz\u0022\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchRootfsBypass.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsMount.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/IBoot/BasePatches/IBootPatchRootfsBypass.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee999376e39d54392fcb0762680e19d768ef022e9dffd2bff889b18ec17c163"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060insn.mnemonic == \u0022mov\u0022 || insn.mnemonic == \u0022movz\u0022\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchThreadSetState.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"626c3452ec119bca35a10ea32aae1678266997e17654f941dc4e160e85c74011"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060insn.mnemonic == \u0022ret\u0022 || insn.mnemonic == \u0022retab\u0022\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLockdownModePatcher.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheXPCLWCRPatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLockdownModePatcher.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d29fbf744842bf424281e570ab7f49edfeccb96471863f8bc6fbafe4e7876a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060insn.mnemonic == \u0022tbnz\u0022 || insn.mnemonic == \u0022tbz\u0022\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsSnapshot.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/TXM/TXMPatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/APFS/KernelPatchApfsSnapshot.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"52beb7d29f12468ff872f6340f2b78e336e805fa311ef0900e4756848f41fbf7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060insn.mnemonic == \u0022tbz\u0022 || insn.mnemonic == \u0022tbnz\u0022\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchNvram.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Frida/KernelCustomFirmwarePatchForkInheritInvalidCode.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/Drivers/KernelCustomFirmwarePatchNvram.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8154320c990d96e306e4d492c69e78e85a9ef6f428cde5912849c6e1dc2d082e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060instruction.mnemonic == \u0022ret\u0022 || instruction.mnemonic == \u0022retab\u0022\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBSwapEndPatcher.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheLSDEmbeddedRegPatcher.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheIOMFBSwapEndPatcher.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"8faf929beb81f26f1945c5192056694554b96f7c24536652a00f43a8bb87d2d6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060iphoneVersion != nil || iphoneBuild != nil\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift, VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreateCommand.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":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcc9e8fbbc20d07a51ea8d140e5b647aabcfd292813406f9f595dbb1adecac0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060offset \u003E= 0 \u0026\u0026 length \u003E= 0 \u0026\u0026 offset \u002B length \u003C= count\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareMachOCodeSignature.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/CustomFirmwareInjectDylib.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bdc19e2f6d704faa6db26206fb3530c7f902495dadcf098122adb12ad322d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060offset \u003E= 0 \u0026\u0026 offset \u002B MemoryLayout\u003CT\u003E.size \u003C= count\u0060 appears character-identically in 4 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheCodeSignature.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheLocalSymbolTable.swift, VPhoneExecutable/VPhoneCommand/VPhonePatchKit/Binary/BinaryBuffer.swift, VPhoneExecutable/VPhoneCommand/VPhoneSign/Signing/VPhoneSignBytes.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheCodeSignature.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a53f619ecfff85f1f512b537ee0f379832c920f2cbeb86e451d226c42557c86"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060position == 0 || buffer[buffer.startIndex \u002B position - 1] == 0\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheChunkSet.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher\u002BMachOStringSites.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/DyldSharedCacheChunkSet.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"4819e87841060d1034bc5f897a92414d901a9a559b8eb9e0d8bb63c592a4c094"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060seg.name == \u0022__DATA_CONST\u0022 || seg.name == \u0022__DATA\u0022\u0060 appears character-identically in 2 files \u2014 VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/CustomFirmwarePatches/CodeSigning/KernelCustomFirmwarePatchHookCredLabel.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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Kernel/BasePatches/Security/KernelPatchSandbox.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"276f728de38f257947a519cd56790bd8c48503e43904d6f93b8e97576565c04f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == ARCHIVE_OK || status == ARCHIVE_WARN\u0060 appears character-identically in 3 files \u2014 VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveExtractor.swift, VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveReader.swift, VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveWriter.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":"VPhoneKit/VPhoneArchiveKit/Archive/VPhoneArchiveExtractor.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab58d5296aaea0a9d2eea5bb83daffd86b758b9c20bf123d20a9aa336b0d7ba6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060text.va \u003E= $0.va \u0026\u0026 text.va - $0.va \u003C $0.size\u0060 appears character-identically in 3 files \u2014 Research/Guest/SettingsRows/GameCenterStandalonePatch.swift, Research/Guest/SettingsRows/ReviewedProviderPatch.swift, VPhoneExecutable/VPhoneCommand/FirmwarePatcher/CustomFirmware/ExecutablePatches/SettingsRows/CustomFirmwareSettingsRows.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":"Research/Guest/SettingsRows/GameCenterStandalonePatch.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e732af917358828b202d9ebd031a22baffca5062f7b2d727b1f8021e02afaa5"}},{"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":"VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHostSetup.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a4f9c0cdd18cb80652cb48dfdafc4b5a385fa3e64d82b6d26af5c6a69b3845"}},{"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":"VPhoneLaunchpad/VPhoneLaunchpad/HostSetup/VPhoneLaunchpadHostSetup.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a98158e43c7b49894e69379cf609ed267d669558977596d0a71689886ff335"}},{"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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneControlsModel.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f538d1ddd528ae65a3afefd20cb76548b0b47b93c46be78ba6414054d8b0731"}},{"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":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/HomePod/VPhoneHomePodDisplayView.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd26b1f23901a4c84c26c00bf1feaa432ec88787e2c2d640fa7cf23833665636"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/HostDevices/VPhoneFrameProducer.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd176057792528246a9163532eb88424ec0aa91e9d9c37384b2fdfa5064f2cf2"}},{"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":"VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DyldSharedCache/Patchers/DyldSharedCacheHypervisorVirtualMachinePatcher.swift"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5761b57f3c063547be66e35302d870f6f146ceda567704fbef8367a9212071"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: This repository commits no tsconfig, so whatever type-checks it uses tsc\u0027s own defaults, in which \u0060strict\u0060 and \u0060strictNullChecks\u0060 are OFF: \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060, and a value that is null is compiled through to the property access that throws. If the build passes \u0060--strict\u0060 on a command line instead, put it in a committed tsconfig \u2014 this check reads configuration, and configuration is all it can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060directoryEntries\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneDaemon/Daemon/GuestAPI\u002BSystemApps.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8dd0ff179143e26c8193535e4fa2aee6847fcec941581c267ffacf535d4863e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060testedBuilds\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareMatrix.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"19834ac95b643a0f81d0358cabb370f349feb12a6e16e7451ce74db0f842dd19"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060releases\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareMatrix.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"996839a976e3167de318cefcb7d665e82c92aea40ccd21f7358e143899246ae5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060knownKeys\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineTemplateCommand.swift"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bc0386e6e73bfe1e390f610873e9bbab1e5a6cc366c9bda4c726a056dcf5c4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060editorText\u0060 turns every thrown error into \u0060\u0022null\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Controls/VPhoneHomePodDebugModel.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1967b68cea37362927f93a9d8ff383649a96beb8371f35b49fe26ef7aaf79f63"}}],"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-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-676","guid":"550e6fab-2881-3252-8a05-c688a6b19c14","name":"Use of Potentially Dangerous Function","shortDescription":{"text":"Use of Potentially Dangerous Function"},"helpUri":"https://cwe.mitre.org/data/definitions/676.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":61,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}