{"$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":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"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":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"],"owasp":"A01:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"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":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"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":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"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":"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":"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":"Runtime.message (cyclomatic 319): Runtime.message has cyclomatic complexity 319 (threshold 15). Of this number, 314 points are the body\u0027s own statements and 5 belong to 2 function literals 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: StoreHelper/ipatool/internal/store/emulator/bridge.go holds 5 of the 95 functions over the threshold \u2014 including the worst \u2014 and 508 of the 1754 points over it (29%), 2.6\u00D7 the next-largest file (StoreHelper/ipatool/internal/store/emulator/network.go at 193). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f0affef2c3dae675dde7bdefa94aa4f8f80b4cd4d100b41ba83decdcbfad9b"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.symbol (cyclomatic 200): Runtime.symbol has cyclomatic complexity 200 (threshold 15). Of this number, 199 points are the body\u0027s own statements and 1 belongs to one function literal 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: StoreHelper/ipatool/internal/store/emulator/bridge.go holds 5 of the 95 functions over the threshold \u2014 including the worst \u2014 and 508 of the 1754 points over it (29%), 2.6\u00D7 the next-largest file (StoreHelper/ipatool/internal/store/emulator/network.go at 193). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6a076bdedfb3923b67c7a76644c6f956229a5fd44135e00e10df3af249fb8b"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.swiftSymbol (cyclomatic 192): Runtime.swiftSymbol has cyclomatic complexity 192 (threshold 15). Of this number, 190 points are the body\u0027s own statements and 2 belong to one function literal 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":"StoreHelper/ipatool/internal/store/emulator/swift.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6e5fd42a4fe35284dae1df67d52e9ace001483cfec7314e980fd63e90da949"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.networkMessage (cyclomatic 179): Runtime.networkMessage has cyclomatic complexity 179 (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":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"94940d29d89d356872a0b443b3832f9998ebdb7ebfef914599801abbf0f551f9"}},{"ruleId":"D1","level":"warning","message":{"text":"bootstrapVM.host (cyclomatic 102): bootstrapVM.host has cyclomatic complexity 102 (threshold 15). Of this number, 101 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/internal/store/profilegen/vm.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea775aa9122c498a3606c3117011ae15215ef5f3db277df197693ae0d26e286"}},{"ruleId":"D1","level":"warning","message":{"text":"Result.Validate (cyclomatic 61): Result.Validate has cyclomatic complexity 61 (threshold 15). Of this number, 60 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/internal/store/profilegen/validate.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4788304596136abe23dc3391ba65bd68bd264380772f134023d112ff95830fa"}},{"ruleId":"D1","level":"warning","message":{"text":"bootstrapVM.collect (cyclomatic 59): bootstrapVM.collect has cyclomatic complexity 59 (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":"StoreHelper/ipatool/internal/store/profilegen/collect.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d925e296cfe1b5800cacce34bd8d1f0da5b55b0a1c9bff4fc406e0ece325bd9"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.Execute (cyclomatic 58): Runtime.Execute has cyclomatic complexity 58 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 4 belong to one function literal 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":"StoreHelper/ipatool/internal/store/emulator/client.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4932a93b1baae1d13d5938efa6933f58c2f3e2c18cf20efc35c7d887824fb9f9"}},{"ruleId":"D1","level":"warning","message":{"text":"emulator.open (cyclomatic 49): emulator.open has cyclomatic complexity 49 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/internal/store/emulator/runtime.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1187d8e7c685fb8f92b71c261b4b14cdcf7a8d75f9327891f82380bc209650b9"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.asyncSymbol (cyclomatic 45): Runtime.asyncSymbol has cyclomatic complexity 45 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 2 belong to one function literal 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":"StoreHelper/ipatool/internal/store/emulator/async.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"79615737b4b225ac241fec6bd6960a460f783e3ea20645dbab7884acb7a31eb5"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.performHTTP (cyclomatic 44): Runtime.performHTTP has cyclomatic complexity 44 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 3 belong to 2 function literals 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":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3e4e0c4fc98e65e93da989db02c57c6f19cbbde5a9f231f6adb40474680635"}},{"ruleId":"D1","level":"warning","message":{"text":"source.discoverSwiftRequests (cyclomatic 44): source.discoverSwiftRequests has cyclomatic complexity 44 (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":"StoreHelper/ipatool/internal/store/profilegen/discover.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bbfe20180c7ff27ebf10dfdf645ca88667dc06fb632c30b8ea35572d24a33e"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 40): main.main has cyclomatic complexity 40 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 5 belong to 3 function literals 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":"StoreHelper/main.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"65049fadfc40e335b3c858e84cfa4078eb3fd22e0dfe123513c4a655812eccb3"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.sendDownloadProduct (cyclomatic 39): appstore.sendDownloadProduct 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":"StoreHelper/ipatool/pkg/appstore/appstore_download_product.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e60a04d5189fff2b43fff0a4d0b098b0bcbda84557539b3dcc67074477a94c"}},{"ruleId":"D1","level":"warning","message":{"text":"profilegen.dataReferences (cyclomatic 38): profilegen.dataReferences has cyclomatic complexity 38 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 5 belong to 3 function literals 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":"StoreHelper/ipatool/internal/store/profilegen/references.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2131571a570a61ca8a0164fa86e18c076e22d44e1d65fa3d3014ea75831fdc"}},{"ruleId":"D1","level":"warning","message":{"text":"PastelApp.swift.downloadErrorMessage (cyclomatic 35): PastelApp.swift.downloadErrorMessage 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":"Pastel/PastelApp.swift"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"90695725752c64726f7a63c12b5399da4430e10383452b56d4fb11db532c920e"}},{"ruleId":"D1","level":"warning","message":{"text":"bootstrapVM.swiftMetadata (cyclomatic 33): bootstrapVM.swiftMetadata has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/profilegen/swift_metadata.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0661e647c0293857f2e86613f1b888e5b8f2d0585e4119d1681f2a742b54bac4"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.Download (cyclomatic 33): appstore.Download has cyclomatic complexity 33 (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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc42d5cfb3c082e7114d6cd64014918cc4130710221a4ac8dfcfc7a78cb2d4c"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.extractFairPlayKext (cyclomatic 31): assets.extractFairPlayKext 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":"StoreHelper/ipatool/internal/sap/assets/kernel.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2148d5e7e6defd40ba7326b2c54bb8f159b689189fddbf61a4a80bde4aa4aef"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.accountMessage (cyclomatic 31): Runtime.accountMessage has cyclomatic complexity 31 (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":"StoreHelper/ipatool/internal/store/emulator/accounts.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"336a58533416332d29ce928415b0519ae643530dab320f6bb3442e4a3f440f30"}},{"ruleId":"D1","level":"warning","message":{"text":"_listVersionIdsOnce (cyclomatic 31): _listVersionIdsOnce 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":"NodeProject/src/ipa.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc72fc8ce1011cbffa88af543b61de1bad327bee6a8fab5bfb7575b55eaf3b9"}},{"ruleId":"D1","level":"warning","message":{"text":"apfsExtractor.openFile (cyclomatic 30): apfsExtractor.openFile 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":"StoreHelper/ipatool/internal/sap/assets/apfs.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"e347a1955d5103fdafe38f93ee00cc459f8423b7c5bfa3b65f05c55e48264042"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.PrepareNativeDownload (cyclomatic 30): appstore.PrepareNativeDownload 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":"StoreHelper/ipatool/pkg/appstore/pastel_native.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"46976e093583fdbd5b8105b63a57290eb53c7a0f8b75e384bb024e303fa030a5"}},{"ruleId":"D1","level":"warning","message":{"text":"shims.ioConnectCallStructMethod (cyclomatic 29): shims.ioConnectCallStructMethod has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e19083305739e3ee052aaa365fdb57ec25db9c0bff0265804de2a6ec2a578a"}},{"ruleId":"D1","level":"warning","message":{"text":"main.normalizeAccountMetadata (cyclomatic 27): main.normalizeAccountMetadata 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":"StoreHelper/metadata.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f844d95ae196d84cff61262b7ec9cd7c6113ace351693ee6d4783a9f303c626"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.foundationEqual (cyclomatic 27): Runtime.foundationEqual has cyclomatic complexity 27 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: StoreHelper/ipatool/internal/store/emulator/bridge.go holds 5 of the 95 functions over the threshold \u2014 including the worst \u2014 and 508 of the 1754 points over it (29%), 2.6\u00D7 the next-largest file (StoreHelper/ipatool/internal/store/emulator/network.go at 193). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":2142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0bde541d3b94321de71edbd01ccd76cb73cbd0047d15ae12473e859a821af9"}},{"ruleId":"D1","level":"warning","message":{"text":"source.loadImage (cyclomatic 27): source.loadImage 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":"StoreHelper/ipatool/internal/store/profilegen/source.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8a117a7a4d00562c4b6fd84426aa906182d06835bac3e8b570d3e11a9e39fb"}},{"ruleId":"D1","level":"warning","message":{"text":"bootstrapVM.prepareWitnesses (cyclomatic 27): bootstrapVM.prepareWitnesses has cyclomatic complexity 27 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 5 belong to one function literal 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":"StoreHelper/ipatool/internal/store/profilegen/swift_metadata.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0036526cd8b6f3c8dc78db35f4fc1b6782de1c5ca6ed901c4daaeb18aa7026a"}},{"ruleId":"D1","level":"warning","message":{"text":"machine.openRuntime (cyclomatic 26): machine.openRuntime has cyclomatic complexity 26 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 2 belong to 2 function literals 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":"StoreHelper/ipatool/internal/sap/machine/machine.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7f0f1ce149c9e28bf0a1ea070aa56f7f8c2c67ec9aae25845eaac09b49e784"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runCommand (cyclomatic 26): main.runCommand 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":"NodeProject/main.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"800bf1578e01cd0e7b0438eb46554f9b7dcc654d884a3070369704b252ea9943"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.macPreflightVersionMetadata (cyclomatic 25): appstore.macPreflightVersionMetadata has cyclomatic complexity 25 (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":"StoreHelper/ipatool/pkg/appstore/appstore_macos_preflight_metadata.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd497563970ae8de3374b21d7dc889a86dd790a0389b72c11e14764720609a0"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.nativeLogin (cyclomatic 24): appstore.nativeLogin has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/appstore/appstore_native_login.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9096fd3045befdf6b0c46a8b0d343825038f874a2128ff3522842d3196ad6e"}},{"ruleId":"D1","level":"warning","message":{"text":"gsa.parseLoginResponse (cyclomatic 24): gsa.parseLoginResponse has cyclomatic complexity 24 (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":"NodeProject/src/gsa.js"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"02886390dbd1aac64f52c78cfd5ee5dc757c024249c3448aeebfcfdc867897df"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.newAEAReader (cyclomatic 23): assets.newAEAReader has cyclomatic complexity 23 (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":"StoreHelper/ipatool/internal/sap/assets/aea.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3d177d822948c33e75e250b02b204937a2936f3f8cad0fb28f15526a70ff7e"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.openDyldCache (cyclomatic 23): assets.openDyldCache has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/internal/sap/assets/dyld.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9578ff2b365831bf4e3632836963623938ecfcb0b7d42815aabeb5dc9e177ac6"}},{"ruleId":"D1","level":"warning","message":{"text":"Machine.invoke (cyclomatic 23): Machine.invoke 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":"StoreHelper/ipatool/internal/sap/machine/machine.go"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c1d87da13547e327be7b9532b9f1db8d84ad5ea5a365945ae5bbff1de0baad"}},{"ruleId":"D1","level":"warning","message":{"text":"shims.ioAESPerform (cyclomatic 23): shims.ioAESPerform has cyclomatic complexity 23 (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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad8144e5c42d6debaced1ce4bfdd9b37a47b1b81f3a9852f21db58ed5dd2ad8"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.downloadFile (cyclomatic 23): appstore.downloadFile has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bb084428f48328891a197dde856eae5cfae9b091f38db4fcb2f55d3566d2b6"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.GetVersionMetadata (cyclomatic 23): appstore.GetVersionMetadata 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":"StoreHelper/ipatool/pkg/appstore/appstore_get_version_metadata.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8074dcdf65d3b9167c3a66b15062aef64b2a47ec8bcabba2c4939480b26e9a"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeFileTransfer.urlSession (cyclomatic 23): NativeFileTransfer.urlSession 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":"Pastel/NativeDownloadEngine.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c180c61afc9220da415939ebb2398597de3e95ebd176b949571b9f2f54ab5f5"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 23): (anonymous) 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":"NodeProject/main.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da246d7729970f1ccc66a56128d208a283eaba8086dea220d4f9c9356c59726"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.resolveAEASymmetricKey (cyclomatic 22): assets.resolveAEASymmetricKey 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":"StoreHelper/ipatool/internal/sap/assets/aea.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2a4c4442562719782a40ccae6c4cf5e2618f08470133dd66a71e6da4cc76c0"}},{"ruleId":"D1","level":"warning","message":{"text":"dyldCache.imageSymbols (cyclomatic 22): dyldCache.imageSymbols 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":"StoreHelper/ipatool/internal/sap/assets/dyld_symbols.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1134bda161121c1bc7524c03c70872b6b4c53315d64b688f34d6c2a723a891b4"}},{"ruleId":"D1","level":"warning","message":{"text":"Image.relocateChained (cyclomatic 22): Image.relocateChained 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":"StoreHelper/ipatool/internal/sap/machimage/image.go"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5bd7d5d69c770162476f47fd39ea027ad9c859cbc43d90401e4b9343ed34b7"}},{"ruleId":"D1","level":"warning","message":{"text":"Image.Load (cyclomatic 22): Image.Load 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":"StoreHelper/ipatool/internal/sap/machimage/image.go"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53f21474b6f7d5e15683590f574e5ec0d58f3c633391de5bbf096fa91172017"}},{"ruleId":"D1","level":"warning","message":{"text":"arm64Compatibility.emulateInvalidInstruction (cyclomatic 22): arm64Compatibility.emulateInvalidInstruction 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":"StoreHelper/ipatool/internal/sap/machine/arm64.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d432a7e323374b67ba646ba62805f5e4889eaded62e40cc1036d74038deaef9b"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.purchaseRequest (cyclomatic 22): Runtime.purchaseRequest 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":"StoreHelper/ipatool/internal/store/emulator/client.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4daa888f6593341b2ef4a06eed3a74ee836ebeb6a6afff4293a7f136993d60"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.notificationMessage (cyclomatic 22): Runtime.notificationMessage 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":"StoreHelper/ipatool/internal/store/emulator/notifications.go"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"623e37ea59c6ef35503832fbebf68f4d49648e5967cddad9d9a4148a4ff6b50a"}},{"ruleId":"D1","level":"warning","message":{"text":"Backend.execute (cyclomatic 21): Backend.execute 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":"StoreHelper/ipatool/internal/store/backend.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"c847e89202207dd571080785366c6fe6e44ac0b5b7274120e0b6debdd1b52eb8"}},{"ruleId":"D1","level":"warning","message":{"text":"storeauth.finishStoreProvisioning (cyclomatic 21): storeauth.finishStoreProvisioning 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":"StoreHelper/ipatool/internal/storeauth/store_provisioning.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc569c3b5ba2946dbf6117f499aeacb44aac59def63638aa339a71b95ac72e6"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.parseOwnedApp (cyclomatic 21): appstore.parseOwnedApp has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 465). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/appstore/appstore_owned_apps.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b7da6eedee651fb31bd223d5798dbcd2430e564c8dbd1e9632f315c2b132eb"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.OpenRemoteStoreCache (cyclomatic 20): assets.OpenRemoteStoreCache has cyclomatic complexity 20 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 10 belong to 3 function literals 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":"StoreHelper/ipatool/internal/sap/assets/store.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2090f36b9ff497a8ae32ae7c620b331feaf4b03d283244ac8e0d5fa8dd572e45"}},{"ruleId":"D1","level":"warning","message":{"text":"aeaReader.indexClusters (cyclomatic 20): aeaReader.indexClusters 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":"StoreHelper/ipatool/internal/sap/assets/aea.go"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2cc09c5647f10add935647ecf097c152e7cf54e4370a09b95e9ab4697f1e91"}},{"ruleId":"D1","level":"warning","message":{"text":"Image.RelocateKernelCachePointers (cyclomatic 20): Image.RelocateKernelCachePointers 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":"StoreHelper/ipatool/internal/sap/machimage/image.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40cc9790ffe742b962035182f28e75e2f8882bec08366ec5e71c7183c01c00a"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.formatAt (cyclomatic 20): Runtime.formatAt 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: StoreHelper/ipatool/internal/store/emulator/bridge.go holds 5 of the 95 functions over the threshold \u2014 including the worst \u2014 and 508 of the 1754 points over it (29%), 2.6\u00D7 the next-largest file (StoreHelper/ipatool/internal/store/emulator/network.go at 193). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f22173b72f68190ee5ceb2bd41c0e717cd9f2c11ed67f0ac0f6021baa694a9"}},{"ruleId":"D1","level":"warning","message":{"text":"Result.GoSource (cyclomatic 20): Result.GoSource 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":"StoreHelper/ipatool/internal/store/profilegen/emit.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e526ec43e36bb2c83d2fac662a30d0d02e45f6ba2b0145688b14cd60e8d7a53"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.isStoreAMDCommerceURL (cyclomatic 20): appstore.isStoreAMDCommerceURL 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":"StoreHelper/ipatool/pkg/appstore/appstore_amd.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d0fd130a27888a1d694ea52734f40b4c609e709f4ad290f5dd8b417f73c040"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.downloadResponseRange (cyclomatic 20): appstore.downloadResponseRange 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":"StoreHelper/ipatool/pkg/appstore/appstore_download_range.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9958bf39a43c28962260ba8e2451e1ac26d5c9588639b4a6ee579ed8071cae"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentView.body (cyclomatic 20): ContentView.body 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":"Pastel/PastelApp.swift"},"region":{"startLine":2767}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16cf18fa61e1e063f1b1183fe7eb5cefb7c2780a8c109591935c400c25698c0"}},{"ruleId":"D1","level":"warning","message":{"text":"runStoreHelper (cyclomatic 20): runStoreHelper has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 75, a function literal at line 100, (anonymous)::stop, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/store-helper.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d3113e9a811bb0fc5f372ebe98cbe95edac62042e2a269b78c5e0c5baba009"}},{"ruleId":"D1","level":"warning","message":{"text":"remoteFile.ReadAt (cyclomatic 19): remoteFile.ReadAt 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":"StoreHelper/ipatool/internal/sap/assets/http_range.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c39c2d601f46a267465aac5364b506a4036632f1f8527ba9bb8e482d0fb21f0"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.compressionSymbol (cyclomatic 19): Runtime.compressionSymbol 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":"StoreHelper/ipatool/internal/store/emulator/compression.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8707e60db9a406afe6d70d346a927c70b920d27bdb3e5c5deaec3de25abb4af"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.phoneNumberStorefront (cyclomatic 19): appstore.phoneNumberStorefront has cyclomatic complexity 19 (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":"StoreHelper/ipatool/pkg/appstore/appstore_login_storefront.go"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0f1a7a77971a447390d721c875849d0b7d1e7c993f7a787693c53a1e1efac7"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.ListVersions (cyclomatic 19): appstore.ListVersions 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":"StoreHelper/ipatool/pkg/appstore/appstore_list_versions.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d6bde01293395d12e1a6efd3abcf60a492c76c82daac154fd0a8f06e3d9321"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.parseLoginResponse (cyclomatic 19): appstore.parseLoginResponse 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":"StoreHelper/ipatool/pkg/appstore/appstore_login.go"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"014fae9ad61c81935d7418b786edf871c586e7b572be44070d92e2213c57f19c"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.lookupLatestExternalVersionID (cyclomatic 19): appstore.lookupLatestExternalVersionID 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":"StoreHelper/ipatool/pkg/appstore/appstore_platform_version_lookup.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"80cf0a71d356070358b30dc4a8e918702af15533a6618ac8cddadafefc8e9782"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadManager.start (cyclomatic 19): DownloadManager.start 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":"Pastel/PastelApp.swift"},"region":{"startLine":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e3b9cbd4adb806656464c49c24e66783fe49a6db5d5854f4a34e3e442154f6"}},{"ruleId":"D1","level":"warning","message":{"text":"gsa.sapConfigurationFromBag (cyclomatic 19): gsa.sapConfigurationFromBag 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":"NodeProject/src/gsa.js"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a96379ac5ca3d10dc121123d0b0d9149f191510b9eb7b7a60ec12ad19db204d"}},{"ruleId":"D1","level":"warning","message":{"text":"main.newAuthenticationKeychain (cyclomatic 18): main.newAuthenticationKeychain 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":"StoreHelper/authentication_state.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d65e97474b4ac04dfde1d9032f3334ce0f33916c12bc0af1bd6c66f6f8f5ec"}},{"ruleId":"D1","level":"warning","message":{"text":"collector.constant (cyclomatic 18): collector.constant has cyclomatic complexity 18 (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":"StoreHelper/ipatool/internal/store/profilegen/collect.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"606dbbe26c4c98997d8d3d57c94a7b88962d2f96a8869d913bf69791335cb755"}},{"ruleId":"D1","level":"warning","message":{"text":"bootstrapVM.step (cyclomatic 18): bootstrapVM.step has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/internal/store/profilegen/vm.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"77873f7499e67d250adff20d202d0d8148b8fa5a2f6897574ed96da449dad2f7"}},{"ruleId":"D1","level":"warning","message":{"text":"storeauth.ProvisionStoreAnisette (cyclomatic 18): storeauth.ProvisionStoreAnisette 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":"StoreHelper/ipatool/internal/storeauth/store_provisioning.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"41990a6d8ad92179a9181d355e2bf6e39d2847f8db3e362323eb685dc5fb9709"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.login (cyclomatic 18): appstore.login 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":"StoreHelper/ipatool/pkg/appstore/appstore_login.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7cb42aab882b49b272479400b03b4f7707d9b4e1dc51301c0e53263e903004"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeDownloadEngine.run (cyclomatic 18): NativeDownloadEngine.run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/NativeDownloadEngine.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"779a58ffc944af59e2bc0ee4cb0297aef12bd026344cc5911a36d116a17cf753"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionEncryptionKeyStore.loadOrCreateKey (cyclomatic 18): SessionEncryptionKeyStore.loadOrCreateKey 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":"Pastel/PastelApp.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c44a3bb9ae239210d334aa41ca9144be969373b043bb47d30f6fa7ea072e13"}},{"ruleId":"D1","level":"warning","message":{"text":"catalog.fetchRankedRSSApps (cyclomatic 18): catalog.fetchRankedRSSApps 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":"NodeProject/src/catalog.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed8aa9c90fa330839f87a265dfa94bc9546b8af9bc8bcd9464c12d2793847a2"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.padLZFSEStreams (cyclomatic 17): assets.padLZFSEStreams 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":"StoreHelper/ipatool/internal/sap/assets/lzfse_padding.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8125e070e54f50a5c8bfa24ddf256549136f0dc5a2263237404175155f28bc9"}},{"ruleId":"D1","level":"warning","message":{"text":"shims.sysctlbyname (cyclomatic 17): shims.sysctlbyname 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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":1702}}}],"partialFingerprints":{"codehealthFindingId/v1":"d047674d593fb117320546f748071f0164b5b8b1cd2a244f1aa79a44c0977f8a"}},{"ruleId":"D1","level":"warning","message":{"text":"emulator.prepareMetadata (cyclomatic 17): emulator.prepareMetadata 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":"StoreHelper/ipatool/internal/store/emulator/metadata.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6692ee5796a85cb14edaff4e2d5ae040c7e46249cbcb772946b2881d8406bf24"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.responds (cyclomatic 17): Runtime.responds has cyclomatic complexity 17 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: StoreHelper/ipatool/internal/store/emulator/bridge.go holds 5 of the 95 functions over the threshold \u2014 including the worst \u2014 and 508 of the 1754 points over it (29%), 2.6\u00D7 the next-largest file (StoreHelper/ipatool/internal/store/emulator/network.go at 193). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9a12e2bf921a5839da8c1fa50ef329c067efcd2ca19da3f929ef17e8030ef1"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.installStoreAMDAdapter (cyclomatic 17): Runtime.installStoreAMDAdapter has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 68, 34, 109, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/delegate.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f81d0c56ea3592a0822a650590024271cf084d7e2404ca61a96565c80eda588"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.ensureUniqueDictionary (cyclomatic 17): Runtime.ensureUniqueDictionary 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":"StoreHelper/ipatool/internal/store/emulator/dictionary.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"652fe8a7ac3d6c989656bda35b5f596f8b4c085d08d520b2de23cc5780e4944c"}},{"ruleId":"D1","level":"warning","message":{"text":"source.loadSymbols (cyclomatic 17): source.loadSymbols 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":"StoreHelper/ipatool/internal/store/profilegen/symbols.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"036ecd58e63d41c4c5e4d7e4aa52a5c3c702fd07f6baf03cebea816428a8a4dc"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.authenticationDialogError (cyclomatic 17): appstore.authenticationDialogError 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":"StoreHelper/ipatool/pkg/appstore/appstore_login.go"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac5301833ac1793168c8ffb5872b6d886faab71e05ab61b3390125e10ac65b8"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.fetchOwnedAppsForStorefront (cyclomatic 17): appstore.fetchOwnedAppsForStorefront 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":"StoreHelper/ipatool/pkg/appstore/appstore_owned_apps.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10b00a6c488e3ca033d94767fc445311256e2bf3b2d8d860d4e635991d9f302"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentView.fetchVersionIDsFromApple (cyclomatic 17): ContentView.fetchVersionIDsFromApple 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":"Pastel/PastelApp.swift"},"region":{"startLine":5739}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ccc9cb2f57a5e294ebb83fb6f3d829e2be51cc528e95bded64cad360d46006"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountEditorView.body (cyclomatic 17): AccountEditorView.body 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":"Pastel/PastelApp.swift"},"region":{"startLine":7643}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4376172c9d98050c6c3446b18b9512ee455e4f3dfa8fe3cf864d46e86889f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"sign (cyclomatic 17): sign 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":"NodeProject/src/Signature.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"894dd7136e78eb04ef67de711b05850357a73d42b8930c302da7adfb2ff6c905"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeVersionRecord (cyclomatic 17): normalizeVersionRecord 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":"NodeProject/src/catalog.js"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"1525c1d0a61227894846912a3f188c294587830a6c5dae5ce54b364758586901"}},{"ruleId":"D1","level":"warning","message":{"text":"apfsExtractor.collectPhysicalExtents (cyclomatic 16): apfsExtractor.collectPhysicalExtents 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":"StoreHelper/ipatool/internal/sap/assets/apfs.go"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b239cb2143a459c081646ccd1669d50dbf4d0d292c1efe0cd99859f237938b"}},{"ruleId":"D1","level":"warning","message":{"text":"Image.Relocate (cyclomatic 16): Image.Relocate 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. This is NOT this file\u0027s highest cyclomatic complexity: machimage.WithoutPointerAuthentication (cyclomatic 17) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machimage/image.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"412c270ca84fc7556f5672baa319f556ee73581227caddb81107a94766d8a509"}},{"ruleId":"D1","level":"warning","message":{"text":"machine.OpenModernADI (cyclomatic 16): machine.OpenModernADI has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 4 function literals 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":"StoreHelper/ipatool/internal/sap/machine/modern_adi.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3381ddbc00f9c0934d5d5dd3795826ca52e8a785221c5e7d2766b2dbd1b68e37"}},{"ruleId":"D1","level":"warning","message":{"text":"sap.NewSigner (cyclomatic 16): sap.NewSigner has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/internal/sap/signer_local.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"acaa6cd820a30dc3e56bc8e308aac518312c2257b48db3180a91eb759ca9b18d"}},{"ruleId":"D1","level":"warning","message":{"text":"appstore.validatePackagePlatform (cyclomatic 16): appstore.validatePackagePlatform 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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c721a935be353d705662d1bea215c8df11414f5f65799477a4187ebb3a7336d"}},{"ruleId":"D1","level":"warning","message":{"text":"i18n.pickLang (cyclomatic 16): i18n.pickLang 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":"NodeProject/src/i18n.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca90c3e150e722799a6f573d36dbc80ba6c23b99526863569611bda2ac1a36a2"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.message (cognitive 317): Runtime.message has cognitive complexity 317 (threshold 15). Drivers by points: if/else 104 (209 pts), loops 24 (58 pts), boolean chains 26, match/switch 12 (24 pts) (nesting depth added 151). Of this number, 307 points are the body\u0027s own statements and 10 belong to 2 function literals 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":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef8a879a48be4c302d987549814cc7026a796a556d24ce887e4ac1999f37acb"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.networkMessage (cognitive 278): Runtime.networkMessage has cognitive complexity 278 (threshold 15). Drivers by points: if/else 81 (200 pts), boolean chains 39, loops 8 (25 pts), match/switch 7 (14 pts) (nesting depth added 143). 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":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"09961c918385adc3a722422518e130b27816affbc490ea7541b8ccc81b8ca955"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.swiftSymbol (cognitive 231): Runtime.swiftSymbol has cognitive complexity 231 (threshold 15). Drivers by points: if/else 89 (192 pts), boolean chains 28, loops 3 (6 pts), match/switch 3 (5 pts) (nesting depth added 108). Of this number, 227 points are the body\u0027s own statements and 4 belong to one function literal 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":"StoreHelper/ipatool/internal/store/emulator/swift.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4f946b598dde8f4dd4ab827d89273a7491f5aeccb467d140be4b1bf01c67ec"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.symbol (cognitive 169): Runtime.symbol has cognitive complexity 169 (threshold 15). Drivers by points: if/else 73 (146 pts), match/switch 5 (10 pts), boolean chains 7, loops 3 (6 pts) (nesting depth added 81). Of this number, 166 points are the body\u0027s own statements and 3 belong to one function literal 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":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"319e624e5f12f269951bf2c2e898e4526b0263c6d30bc48418b703468dbd64d4"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrapVM.collect (cognitive 130): bootstrapVM.collect has cognitive complexity 130 (threshold 15). Drivers by points: if/else 21 (73 pts), loops 25 (43 pts), boolean chains 9, match/switch 1 (5 pts) (nesting depth added 74). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/profilegen/collect.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"112e33be3edcd4625f2e6cf5c5d87972b74570bd05a010702193d46caec094a4"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrapVM.host (cognitive 107): bootstrapVM.host has cognitive complexity 107 (threshold 15). Drivers by points: if/else 43 (89 pts), loops 3 (8 pts), boolean chains 7, match/switch 2 (3 pts) (nesting depth added 52). Of this number, 105 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. 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":"StoreHelper/ipatool/internal/store/profilegen/vm.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"72da430b2db06bb62db5b0be8c1cfe8346f2fe9b3d35f54029fbb49eac7801c7"}},{"ruleId":"D2","level":"warning","message":{"text":"Result.Validate (cognitive 97): Result.Validate has cognitive complexity 97 (threshold 15). Drivers by points: if/else 27 (63 pts), loops 15 (20 pts), boolean chains 11, match/switch 1 (3 pts) (nesting depth added 43). Of this number, 96 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/internal/store/profilegen/validate.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f63b03d79ce4c7688b0875fcacc2c27c6224b1e492a33f40e9c1cbe20f9a384"}},{"ruleId":"D2","level":"warning","message":{"text":"source.discoverSwiftRequests (cognitive 96): source.discoverSwiftRequests has cognitive complexity 96 (threshold 15). Drivers by points: if/else 16 (53 pts), loops 15 (34 pts), boolean chains 6, match/switch 1 (3 pts) (nesting depth added 58). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/profilegen/discover.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eaea31b390f16c93ee39814ebaf909bf2555a6fb320bd1596d4c5920007af86"}},{"ruleId":"D2","level":"warning","message":{"text":"emulator.open (cognitive 92): emulator.open has cognitive complexity 92 (threshold 15). Drivers by points: if/else 35 (75 pts), loops 12 (16 pts), boolean chains 1 (nesting depth added 44). Of this number, 91 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/internal/store/emulator/runtime.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a987c8adcb6ddf9e9c02b3dd014f57c8f4b3c405aa49d4a78f8ad44440afb2"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.Execute (cognitive 86): Runtime.Execute has cognitive complexity 86 (threshold 15). Drivers by points: if/else 47 (72 pts), loops 4 (8 pts), boolean chains 6 (nesting depth added 29). Of this number, 83 points are the body\u0027s own statements and 3 belong to one function literal 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":"StoreHelper/ipatool/internal/store/emulator/client.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25611b759c98b3cac5d8e81d33165f86884106588b6093820dd6c37e960cf95"}},{"ruleId":"D2","level":"warning","message":{"text":"profilegen.dataReferences (cognitive 61): profilegen.dataReferences has cognitive complexity 61 (threshold 15). Drivers by points: if/else 17 (45 pts), boolean chains 9, loops 4 (5 pts), match/switch 1 (2 pts) (nesting depth added 30). Of this number, 55 points are the body\u0027s own statements and 6 belong to 3 function literals 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":"StoreHelper/ipatool/internal/store/profilegen/references.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b684e2b5f2a9e4eb9676885b94c9aebd600e96ccdc1cc9f9a7146276ade6ec70"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.relocateChained (cognitive 58): Image.relocateChained has cognitive complexity 58 (threshold 15). Drivers by points: if/else 11 (43 pts), match/switch 3 (11 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machimage/image.go"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0b1b5af99b30d0b6a581bec5ea17df8ba8f4b2090edc454ccf4a5e2f92e372"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.asyncSymbol (cognitive 57): Runtime.asyncSymbol has cognitive complexity 57 (threshold 15). Drivers by points: if/else 26 (52 pts), boolean chains 4, match/switch 1 (nesting depth added 26). Of this number, 53 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. 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":"StoreHelper/ipatool/internal/store/emulator/async.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9728069c01eb09e93d1c2e86d3a6b0f0ad7c0519e6e3737ebdde48c77437b361"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 56): main.main has cognitive complexity 56 (threshold 15). Drivers by points: if/else 29 (48 pts), boolean chains 4, loops 1 (3 pts), match/switch 1 (nesting depth added 21). Of this number, 46 points are the body\u0027s own statements and 10 belong to 3 function literals 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":"StoreHelper/main.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7dc7b2f8b4afedaffa4c91bbfd525b3dfa57f31955c94d238e0c6d38ebdb5b"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.performHTTP (cognitive 54): Runtime.performHTTP has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 13, loops 5 (11 pts) (nesting depth added 16). Of this number, 49 points are the body\u0027s own statements and 5 belong to 2 function literals 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":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4707ebdec3e763518dc0a6ba81e821419b6147badb21bd2497c1ff060bdb54"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrapVM.swiftMetadata (cognitive 49): bootstrapVM.swiftMetadata has cognitive complexity 49 (threshold 15). Drivers by points: if/else 21 (37 pts), loops 8 (9 pts), boolean chains 3 (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":"StoreHelper/ipatool/internal/store/profilegen/swift_metadata.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d5a68a2e98457404b5caf76c5f7be30d37ee0f562d5f9b93ded12a7b1f7b92"}},{"ruleId":"D2","level":"warning","message":{"text":"apfsExtractor.openFile (cognitive 47): apfsExtractor.openFile has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (36 pts), match/switch 2 (5 pts), boolean chains 4, loops 2 (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":"StoreHelper/ipatool/internal/sap/assets/apfs.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c3e61b2c164547f21d8a34a729e45a841b051e14dbffaaccb90dfac6edbbf3"}},{"ruleId":"D2","level":"warning","message":{"text":"aeaReader.indexClusters (cognitive 43): aeaReader.indexClusters has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (38 pts), loops 2 (3 pts), boolean chains 2 (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":"StoreHelper/ipatool/internal/sap/assets/aea.go"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"365dead57219661a9fcea6044982007a697b845f35919f2f3281b5485cf05029"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.sendDownloadProduct (cognitive 43): appstore.sendDownloadProduct has cognitive complexity 43 (threshold 15). Drivers by points: if/else 22 (34 pts), boolean chains 9 (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":"StoreHelper/ipatool/pkg/appstore/appstore_download_product.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69df3a0d726e36bcff09dc5289869e5b199010a01a05a5465063bdd252ee805"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.extractFairPlayKext (cognitive 42): assets.extractFairPlayKext has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (33 pts), loops 3 (5 pts), boolean chains 4 (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":"StoreHelper/ipatool/internal/sap/assets/kernel.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbff97fffa4be8288ae159a361be9afcf8173b4672816816e31aa727c86f01cd"}},{"ruleId":"D2","level":"warning","message":{"text":"source.loadImage (cognitive 42): source.loadImage has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 5 (6 pts), boolean chains 4, match/switch 1 (2 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":"StoreHelper/ipatool/internal/store/profilegen/source.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb14e67238e0f8a28ea367a1e5e56f28844e1bdc3c4d9bf5e8abc05bcda6b12"}},{"ruleId":"D2","level":"warning","message":{"text":"_listVersionIdsOnce (cognitive 42): _listVersionIdsOnce has cognitive complexity 42 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 11, error handling 3 (5 pts), loops 1 (2 pts), other 1, 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":"NodeProject/src/ipa.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec09c266b5e2eb96d0981e2fdff8672669face5208de79273f1ac5b58e04761e"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrapVM.prepareWitnesses (cognitive 41): bootstrapVM.prepareWitnesses has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (27 pts), loops 8 (10 pts), boolean chains 4 (nesting depth added 16). Of this number, 35 points are the body\u0027s own statements and 6 belong to one function literal 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":"StoreHelper/ipatool/internal/store/profilegen/swift_metadata.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05e551c08b36992cd901e4bf87cfb8b53ee6f8fa8f47fa4885bad077299406a"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.RelocateKernelCachePointers (cognitive 38): Image.RelocateKernelCachePointers has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (30 pts), loops 3 (5 pts), boolean chains 3 (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":"StoreHelper/ipatool/internal/sap/machimage/image.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3db1ec7fafe4d66d1d77fba5a7d22a155018c19b8e0e54f7c6f6ad0242ae53"}},{"ruleId":"D2","level":"warning","message":{"text":"machine.openRuntime (cognitive 38): machine.openRuntime has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (32 pts), loops 6 (nesting depth added 12). Of this number, 36 points are the body\u0027s own statements and 2 belong to 2 function literals 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":"StoreHelper/ipatool/internal/sap/machine/machine.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8963648684eac8ba84f88af68888849c2933f6ab7bcb477f880a52ace889a4c"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.openDyldCache (cognitive 37): assets.openDyldCache has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 15). Of this number, 36 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/internal/sap/assets/dyld.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"27480086c271f03eb31f28a0685e0a45745ee6618e8174fe1bb43e156b949a73"}},{"ruleId":"D2","level":"warning","message":{"text":"Machine.invoke (cognitive 37): Machine.invoke has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (34 pts), loops 3 (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":"StoreHelper/ipatool/internal/sap/machine/machine.go"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"186b6c75bc61302e909c41a27bc0403cfa280b2175387c37779b39746265a48a"}},{"ruleId":"D2","level":"warning","message":{"text":"dyldCache.imageSymbols (cognitive 36): dyldCache.imageSymbols has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 3, match/switch 1 (2 pts), loops 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":"StoreHelper/ipatool/internal/sap/assets/dyld_symbols.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d842480c19cdeaf95483ba7bc70365456775f4b1dd3c6aa73bdded78d7fd0a7b"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeFileTransfer.urlSession (cognitive 36): NativeFileTransfer.urlSession has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 12, 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":"Pastel/NativeDownloadEngine.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"02294aabecdd08dbf315fb563532fd25bd5c011216193941ba00c4ae698b0879"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.storefrontVisionApps (cognitive 35): appstore.storefrontVisionApps has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (27 pts), loops 3 (6 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":"StoreHelper/ipatool/pkg/appstore/appstore_storefront.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d916c0dd4a563526ac237fa6a742d8cf0ab87000e1fb841e5110d5af949ad037"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeDownloadEngine.run (cognitive 35): NativeDownloadEngine.run has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (19 pts), error handling 2 (6 pts), boolean chains 4, loops 2 (4 pts), ternaries 2 (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":"Pastel/NativeDownloadEngine.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32af04d64f2dfc636fc511c5a8c5e356e5591ad5e9dd8d3bfc09449c8f5a25d"}},{"ruleId":"D2","level":"warning","message":{"text":"PastelApp.swift.downloadErrorMessage (cognitive 34): PastelApp.swift.downloadErrorMessage has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 23, if/else 11. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/PastelApp.swift"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3127ad47098f57757918c45c38fd8fca1da684c7c3bdba3f66b2f4e6c8d95a8e"}},{"ruleId":"D2","level":"warning","message":{"text":"main.normalizeAccountMetadata (cognitive 33): main.normalizeAccountMetadata has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23 (30 pts), loops 2, boolean chains 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/metadata.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f71742e66d628ea90227f037de329d734bc71e18d6d7a97be4ef247925a931"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.compressionSymbol (cognitive 33): Runtime.compressionSymbol has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (29 pts), match/switch 2 (4 pts) (nesting depth added 19). 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":"StoreHelper/ipatool/internal/store/emulator/compression.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"938b289ee9d92a43e969a6c9ab37f4425054a386841eeead799bc3a94faea590"}},{"ruleId":"D2","level":"warning","message":{"text":"source.objcClasses (cognitive 33): source.objcClasses has cognitive complexity 33 (threshold 15). Drivers by points: loops 8 (17 pts), if/else 5 (16 pts) (nesting depth added 20). Of this number, 31 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. 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":"StoreHelper/ipatool/internal/store/profilegen/objc.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"43685a1c1721746709a1492c43eaf65f50c5a69235a22799a3901768ffe26ed2"}},{"ruleId":"D2","level":"warning","message":{"text":"catalog.fetchRankedRSSApps (cognitive 33): catalog.fetchRankedRSSApps has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 5 (11 pts), loops 4 (6 pts), boolean chains 2 (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":"NodeProject/src/catalog.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc46375bd589045127cc3937eeffb9b6a3aba39e9dcde68d8079f9bdb180ee6"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.OpenRemoteStoreCache (cognitive 32): assets.OpenRemoteStoreCache has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19 (32 pts) (nesting depth added 13). Most of this is not in the body itself: 9 of the 32 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 120, 96, 109). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/assets/store.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f33f3e6058254f3441187538b9e1a7f89cbde41332f5ac174167a259911a736"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.Load (cognitive 32): Image.Load has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 4, loops 4 (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":"StoreHelper/ipatool/internal/sap/machimage/image.go"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b893f0b94ff8ba819bfcce4382f22be68cd0144a5b97561f184cf722d5153d"}},{"ruleId":"D2","level":"warning","message":{"text":"unicorn.findImport (cognitive 32): unicorn.findImport has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 2 (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":"StoreHelper/ipatool/internal/sap/unicorn/library_prepare_windows.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78291bbea800227a672541cb2f17a568caf5a9c9db3453c7662a531d0110b8e"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.macPackageVersionMetadata (cognitive 32): appstore.macPackageVersionMetadata has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 3 (6 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":"StoreHelper/ipatool/pkg/appstore/appstore_macos_version_metadata.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6612afafa7fc678edc4f2900aa5a5b8c573c8fe2183256fda482d5869102c1d"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.Download (cognitive 32): appstore.Download has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21 (24 pts), boolean chains 8 (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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8490460e3e577784cf885a78d2b98ac138e5c004b039ac0636480d2e79b9d754"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.padLZFSEStreams (cognitive 31): assets.padLZFSEStreams has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/assets/lzfse_padding.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"2715c6ac28759688e71d57aaa8ed2534b09108e2e763d694d8b6a798e3f4da7f"}},{"ruleId":"D2","level":"warning","message":{"text":"shims.ioConnectCallStructMethod (cognitive 31): shims.ioConnectCallStructMethod has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21 (27 pts), boolean chains 4 (nesting depth added 6). 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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2760cee5f3aaac22a37523c0f93ac6646984aa80ca5687655ec864f1b23047"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.accountMessage (cognitive 31): Runtime.accountMessage has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 9, match/switch 2 (3 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":"StoreHelper/ipatool/internal/store/emulator/accounts.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be7ed9ea0bfabfe163fb43560ae2e2189f1ff92d8a8a5f561c7f2f08a0b86b0"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.formatAt (cognitive 31): Runtime.formatAt has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 3 (5 pts), boolean chains 3, match/switch 1 (2 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":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69d04f88a64d981be6d5515a7d4ddc32bd2c8e70c7726de02a1db8f1c906aa8"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.macPreflightVersionMetadata (cognitive 31): appstore.macPreflightVersionMetadata has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 5, loops 4 (5 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":"StoreHelper/ipatool/pkg/appstore/appstore_macos_preflight_metadata.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b27b6ca6d4a87abb2679f7284dc677368660934c9aaab3956783dd3ceb2c79b"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.notificationMessage (cognitive 30): Runtime.notificationMessage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 5, loops 2 (4 pts), match/switch 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":"StoreHelper/ipatool/internal/store/emulator/notifications.go"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8d733c108ba8f2ed1fa8e0058b60bea39a581ae97ff85b2bae5350987223bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.appHistoryDetailPane (cognitive 30): ContentView.appHistoryDetailPane has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (23 pts), ternaries 2 (6 pts), boolean chains 1 (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":"Pastel/PastelApp.swift"},"region":{"startLine":3504}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d47de94b8e2495ecd584606c18de22faff7db404203e6bf90d47fab00e823d"}},{"ruleId":"D2","level":"warning","message":{"text":"arm64Compatibility.emulateInvalidInstruction (cognitive 29): arm64Compatibility.emulateInvalidInstruction has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (27 pts), match/switch 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":"StoreHelper/ipatool/internal/sap/machine/arm64.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bfc6b9501195ff73a1403b1eeb64654630402e621e8f728ddd910fb4d1adf4"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.GetVersionMetadata (cognitive 29): appstore.GetVersionMetadata has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 5, match/switch 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":"StoreHelper/ipatool/pkg/appstore/appstore_get_version_metadata.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da091169aa3d80592ed75100e66331c4971f9ece30b632ce23fcdff2c84e7a6"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.foundationEqual (cognitive 28): Runtime.foundationEqual has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, match/switch 3 (5 pts), loops 2 (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":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":2142}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f5bfc4438c7be1a86f2f90741078b2dc22609d23171f36a099c01a22181746"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.findVisionExternalVersionID (cognitive 28): appstore.findVisionExternalVersionID has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (23 pts), loops 2 (4 pts), match/switch 1 (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":"StoreHelper/ipatool/pkg/appstore/appstore_storefront.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d627758bc6539d6f0f96786db79c498c790cd878bb431b7d5053bd1868c65a0"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.PrepareNativeDownload (cognitive 28): appstore.PrepareNativeDownload has cognitive complexity 28 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 8 (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":"StoreHelper/ipatool/pkg/appstore/pastel_native.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e0c606d34f9c14aab03673bb3543026e0afa8572091274cc91a307ef206a51"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.nativeLogin (cognitive 28): appstore.nativeLogin has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (20 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/appstore/appstore_native_login.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"048192ee714d47a92bacb93bcf1e35b9da2ba5e36194ec0e3c7943e261ccbacc"}},{"ruleId":"D2","level":"warning","message":{"text":"apfsExtractor.collectPhysicalExtents (cognitive 27): apfsExtractor.collectPhysicalExtents has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 2 (3 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":"StoreHelper/ipatool/internal/sap/assets/apfs.go"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bc9e55b9e6c22ed2c9c67de7f7c5115f492cc396a7e0eb17d0cc4d12993bed"}},{"ruleId":"D2","level":"warning","message":{"text":"Backend.execute (cognitive 27): Backend.execute has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (25 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":"StoreHelper/ipatool/internal/store/backend.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34654ca27d2eb19b79572434253334952676dda2e787dac0233556319024f2a"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.login (cognitive 27): appstore.login has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 1, 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":"StoreHelper/ipatool/pkg/appstore/appstore_login.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"12652ffa3d600581837e47368fd1bf2366be69165e7825533528eceaed73e75b"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreCache.OpenImage (cognitive 26): StoreCache.OpenImage has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 1 (2 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":"StoreHelper/ipatool/internal/sap/assets/store_images.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c130da3eec05bf6630592682b2e20ac1b1ae8b6e202a7b138f75cfbc5f6b6dd0"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.lookupLatestExternalVersionID (cognitive 26): appstore.lookupLatestExternalVersionID has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (23 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":"StoreHelper/ipatool/pkg/appstore/appstore_platform_version_lookup.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"11765a10a5f249a9d19fb423e2ba04e74454791305ce6d4a454a0d08c08f51b3"}},{"ruleId":"D2","level":"warning","message":{"text":"gsa.parseLoginResponse (cognitive 26): gsa.parseLoginResponse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 9, error handling 2 (5 pts) (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":"NodeProject/src/gsa.js"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"77da013ca89fe2f357e22705e8793b914335c1f0f6c856ddc8854f31ede7d7f1"}},{"ruleId":"D2","level":"warning","message":{"text":"apfsExtractor.collectRecords (cognitive 25): apfsExtractor.collectRecords has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 2 (3 pts), boolean chains 2 (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":"StoreHelper/ipatool/internal/sap/assets/apfs.go"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0756b42970dc107ecf98c6c10aa436916b31535d69a6204161014cc904da5bf"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.Relocate (cognitive 25): Image.Relocate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (22 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":"StoreHelper/ipatool/internal/sap/machimage/image.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe2a48da2354444adc71b746a1679b556d72700d9a4879a0268eb7c870d71df"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.purchaseRequest (cognitive 25): Runtime.purchaseRequest has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (20 pts), loops 4, boolean chains 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":"StoreHelper/ipatool/internal/store/emulator/client.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e08861e1d3a548075d54466b0d0f34e60e4ca0619896c2a95c06271d087f44c"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.parseLoginResponse (cognitive 25): appstore.parseLoginResponse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 5 (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":"StoreHelper/ipatool/pkg/appstore/appstore_login.go"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"129f9d7192e1494df7b296ef1c0d096ae4eaf01bc28ffa5528e2c1f2106ff5c3"}},{"ruleId":"D2","level":"warning","message":{"text":"dyldCache.rebases (cognitive 24): dyldCache.rebases has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/assets/dyld.go"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca06242e83cc35459a462c4f26cd7d7008b3fb11262f07e02979968274979ca3"}},{"ruleId":"D2","level":"warning","message":{"text":"remoteFile.ReadAt (cognitive 24): remoteFile.ReadAt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (21 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":"StoreHelper/ipatool/internal/sap/assets/http_range.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4aa225a6a1a674455a9ce794a0bacbce266888eb1412a992e45432b116fd07"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrapVM.realizeStoreClasses (cognitive 24): bootstrapVM.realizeStoreClasses has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (4 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":"StoreHelper/ipatool/internal/store/profilegen/realize.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9ba2f51965f4fffd3bdabadaadcebec957d732b927320e322b7fb55f571def"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.downloadFile (cognitive 24): appstore.downloadFile has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 4 (nesting depth added 2). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8d78b3b9df4f7bf504f28aa593b3f28ef1d717deb4dcad12e5c81e57129342"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 24): (anonymous) has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 14, if/else 6 (8 pts), error handling 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":"NodeProject/main.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f965e1747607ebe43a5b91dc60ac29b9309ac9a966b952ef2a905fa9bdf9d24"}},{"ruleId":"D2","level":"warning","message":{"text":"dyldCache.applySlide (cognitive 23): dyldCache.applySlide has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 2 (3 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":"StoreHelper/ipatool/internal/sap/assets/dyld.go"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7b01c83f669cdf56b6e6260371cb59933057ae27723f592980661500f3c715"}},{"ruleId":"D2","level":"warning","message":{"text":"shims.createKernelBufferDescriptor (cognitive 23): shims.createKernelBufferDescriptor has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b599d94c61aa060e62592db5c2c9cef5f819d5a88eed4117b198a9c0200028"}},{"ruleId":"D2","level":"warning","message":{"text":"source.methods (cognitive 23): source.methods has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/profilegen/objc.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c679f3e9e72ab203a3f44310c110beffe8eaed2cb3106851803f8356b297744"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.newAEAReader (cognitive 22): assets.newAEAReader has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, boolean chains 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":"StoreHelper/ipatool/internal/sap/assets/aea.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff5a310605d16729de1f04f2beb764c7c4bc7c374f48784524182fb49222a7c"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.sendAuthenticationRequest (cognitive 22): appstore.sendAuthenticationRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (21 pts), 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":"StoreHelper/ipatool/pkg/appstore/appstore_login.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"5364c42d496f0bdf3f742aadbc6903a1fde297ee65437dac3c5edfa2b0a7a3f6"}},{"ruleId":"D2","level":"warning","message":{"text":"emulator.prepareMetadata (cognitive 21): emulator.prepareMetadata has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 5 (6 pts), match/switch 1 (2 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":"StoreHelper/ipatool/internal/store/emulator/metadata.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a663927ff09d6138fe080c8de5107e3b29fbf463bb48af327f4ac86dfe449806"}},{"ruleId":"D2","level":"warning","message":{"text":"source.loadSymbols (cognitive 21): source.loadSymbols 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":"StoreHelper/ipatool/internal/store/profilegen/symbols.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c9459d1213bb946c6d7748b63923c06b8000a6a9314217bb23f01f4a005f2c"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.validatePackagePlatform (cognitive 21): appstore.validatePackagePlatform has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (3 pts), boolean chains 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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9dbefe77d750a5d6aa7cd7306f6821a9eac73efe0102b4759f5373eb4d2033f"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionEncryptionKeyStore.loadOrCreateKey (cognitive 21): SessionEncryptionKeyStore.loadOrCreateKey has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 8 (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":"Pastel/PastelApp.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a037fb396c8f527faf66a6069210d891df6dcdfb8b126700dc7d9a40ebb012"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.body (cognitive 21): ContentView.body has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 8 (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":"Pastel/PastelApp.swift"},"region":{"startLine":2767}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb64f5033bf5187f0ebaa01377a3956e8af9924f9637c44a061ee18d3103df17"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.fetchVersionIDsFromApple (cognitive 21): ContentView.fetchVersionIDsFromApple has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, ternaries 2 (3 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/PastelApp.swift"},"region":{"startLine":5739}}}],"partialFingerprints":{"codehealthFindingId/v1":"3377bf2e77d146c9916f651f7a14f4cd574a4a94620fbecccec4ba38e8917418"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.resolveAEASymmetricKey (cognitive 20): assets.resolveAEASymmetricKey has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 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":"StoreHelper/ipatool/internal/sap/assets/aea.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"29726efe92e64ab8be43208da5cef07a000311b4a419cdb65303643d63234729"}},{"ruleId":"D2","level":"warning","message":{"text":"aeaReader.decodeSegment (cognitive 20): aeaReader.decodeSegment has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (19 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":"StoreHelper/ipatool/internal/sap/assets/aea.go"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"605654334819067c285ffa9a9550b5407e2d492d103ebf123886d09e4bfcff5c"}},{"ruleId":"D2","level":"warning","message":{"text":"shims.strncmp (cognitive 20): shims.strncmp has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machine/shim_memory.go"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac51f52f6827d6d8adf124184be050b42c651fe69059d6f6809900398bf19c7c"}},{"ruleId":"D2","level":"warning","message":{"text":"shims.xpcDictionaryGetData (cognitive 20): shims.xpcDictionaryGetData has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"84602a3fa90e2198f25790da6127f005b87bc63a27ab1b7404bb1ff0de1134b4"}},{"ruleId":"D2","level":"warning","message":{"text":"shims.ioAESPerform (cognitive 20): shims.ioAESPerform has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 3, 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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e70cab7c1ea32210c1d05d97d6feced0b01fa5a3d1f312209e9ddf86bd7924"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.step (cognitive 20): Runtime.step has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/internal/store/emulator/runtime.go"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf553f0181b3ea538faf8551753d31128218d4b3d823082f413d46c74b9d558"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrapVM.pageFault (cognitive 20): bootstrapVM.pageFault has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (5 pts) (nesting depth added 10). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function literal 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":"StoreHelper/ipatool/internal/store/profilegen/vm.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc40f92814935f96e0799225f08c8ac2d407389b7c5014cac743543f2d48a456"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrapVM.step (cognitive 20): bootstrapVM.step has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 6). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal 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":"StoreHelper/ipatool/internal/store/profilegen/vm.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc06440516b005d39ad6ad9d55f30022526f25f763ebb977236ba2b92157444"}},{"ruleId":"D2","level":"warning","message":{"text":"storeauth.finishStoreProvisioning (cognitive 20): storeauth.finishStoreProvisioning has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (14 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":"StoreHelper/ipatool/internal/storeauth/store_provisioning.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"169cc2aab45845e1497f8dd1cc1604a0b18d69f346ef97a51e6d2664a4010f3d"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManager.start (cognitive 20): DownloadManager.start has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3, error handling 2 (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":"Pastel/PastelApp.swift"},"region":{"startLine":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"76830340009344b829feea2dfb2ae6626cedc5112ee029e16c3470bc188e10bd"}},{"ruleId":"D2","level":"warning","message":{"text":"Ipa.downloadInfo (cognitive 20): Ipa.downloadInfo has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 4, error handling 2 (4 pts), loops 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":"NodeProject/src/ipa.js"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81c9bccbdb0763190148d3891c6206d75ff11f65c73d2cd04ad98979c1baf08"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runCommand (cognitive 20): main.runCommand has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, if/else 3 (6 pts), match/switch 1 (nesting depth added 3). 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":"NodeProject/main.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e2ac0f7e74a36a9e1043e63ce6ca27e724798b8aabac7c151a0f5b1a82b0ca"}},{"ruleId":"D2","level":"warning","message":{"text":"sign (cognitive 20): sign has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 3 (5 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/Signature.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"524c82f451c124cdd7922c942ff679a84cd796b86ab3489769ff459b63eefbff"}},{"ruleId":"D2","level":"warning","message":{"text":"main.downloadAuthorizedPackage (cognitive 19): main.downloadAuthorizedPackage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 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":"StoreHelper/main.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"652f56fa037b001ccc51b031f4fa7f15893f71c4c8bcb401f1e870e5e5e303d9"}},{"ruleId":"D2","level":"warning","message":{"text":"shims.read (cognitive 19): shims.read has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (19 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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d55113f14f615f24d6a32c154d07cda5ac4260f7ff91d95c027ba1222376a0"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.installStoreAMDAdapter (cognitive 19): Runtime.installStoreAMDAdapter has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 1 (nesting depth added 3). None of this is in the body itself: all 19 points belong to 7 function literals inside it that branch (lines 68, 34, 109, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/delegate.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee8e7df9f8eef2ca0117fbeca7e02cdeeaff856b700c50813838fff0a4bd33f"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.ensureUniqueDictionary (cognitive 19): Runtime.ensureUniqueDictionary has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 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":"StoreHelper/ipatool/internal/store/emulator/dictionary.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae93d4eea019bed55e50ba4478d00427a520f40d3a87699375355daa888118a6"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.bridgeDictionaryToSwift (cognitive 19): Runtime.bridgeDictionaryToSwift has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (4 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":"StoreHelper/ipatool/internal/store/emulator/dictionary.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"998166853e3750cd83f64157f8703d9848fc4ae2fdf6664816f5e73ce5688a71"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.parseOwnedApp (cognitive 19): appstore.parseOwnedApp has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 3 (4 pts), loops 1 (2 pts) (nesting depth added 8). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 465). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/appstore/appstore_owned_apps.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af60f30fdb6b8f18093e0321e3caafe77a24a0b0ed237dfd8f06508645a30ac"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManager.finish (cognitive 19): DownloadManager.finish has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, 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":"Pastel/PastelApp.swift"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a985251fabc46492bb8d55815f82f3099137c59566275e63fd1f817d1ccfa770"}},{"ruleId":"D2","level":"warning","message":{"text":"runStoreHelper (cognitive 19): runStoreHelper has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, error handling 1, other 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 13 function items inside it that branch (a function literal at line 75, a function literal at line 100, (anonymous)::stop, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/store-helper.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45f99702999c7210489640a8801f902fe957f3dfdcac4a211bce48deecc1ade"}},{"ruleId":"D2","level":"warning","message":{"text":"main.newAuthenticationKeychain (cognitive 18): main.newAuthenticationKeychain has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 2, 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":"StoreHelper/authentication_state.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0b359ba75df2de842fee3bb172fed32387a6a01d85debaa90bd373552056cc"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.readImageSymbols (cognitive 18): assets.readImageSymbols has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, loops 1 (nesting depth added 5). Of this number, 14 points are the body\u0027s own statements and 4 belong to one function literal 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":"StoreHelper/ipatool/internal/sap/assets/dyld_symbols.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8269d5cfd88ee340b052863c56bf02a8bd1075b73c533cdb7a09cbf55985af"}},{"ruleId":"D2","level":"warning","message":{"text":"machimage.Open (cognitive 18): machimage.Open has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, 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":"StoreHelper/ipatool/internal/sap/machimage/image.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e641701407ea07048f311764511d788610cc46550f673fe23aae6f4fcf357b"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.PreparePrelinked (cognitive 18): Image.PreparePrelinked has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machimage/image.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd8c95b9295aab577e5c6c2aa7655ae1093e3d7e69c011a436e65f3945deef3"}},{"ruleId":"D2","level":"warning","message":{"text":"machine.OpenModernADI (cognitive 18): machine.OpenModernADI has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (18 pts) (nesting depth added 3). Of this number, 13 points are the body\u0027s own statements and 5 belong to 4 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machine/modern_adi.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4ef4accd5ef5d72f7ea2e1d06a1f7265050757d27eb7348752267a680ba62a"}},{"ruleId":"D2","level":"warning","message":{"text":"shims.sysctlbyname (cognitive 18): shims.sysctlbyname has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":1702}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b71e8df69bfa87621c3498f97eb8654e484f725c0f3e8c4650ae5ee2535267"}},{"ruleId":"D2","level":"warning","message":{"text":"Result.GoSource (cognitive 18): Result.GoSource has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 3 (4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/profilegen/emit.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9e4ebf43ebdf97042cad26a6bd6174d0f5a021f3ee8de040fc87597501fc1c"}},{"ruleId":"D2","level":"warning","message":{"text":"source.storeCalls (cognitive 18): source.storeCalls has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 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":"StoreHelper/ipatool/internal/store/profilegen/discover.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31d3311ac9bfaf04bb06928b3112d111bff1c77b39c12a9cf889dc99238250e"}},{"ruleId":"D2","level":"warning","message":{"text":"searchResult.UnmarshalJSON (cognitive 18): searchResult.UnmarshalJSON has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 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":"StoreHelper/ipatool/pkg/appstore/appstore_search.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec443a6cdc14df62696ea15b36804c36779d45617893c7e4392fc1867f7fbc1"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.manualActionContent (cognitive 18): ContentView.manualActionContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/PastelApp.swift"},"region":{"startLine":3778}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f1cb19bb61861bde8c3397ad4eb7873c385b7fc4d244f2cbe56c41ce96854a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.versionsWorkspace (cognitive 18): ContentView.versionsWorkspace has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 3 (4 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":"Pastel/PastelApp.swift"},"region":{"startLine":4092}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33e82d51d92105d993be20d86d3705113888fe9e6338e7068cb1506797ff6bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.handleDownloadedGroupSelection (cognitive 18): ContentView.handleDownloadedGroupSelection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, ternaries 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":"Pastel/PastelApp.swift"},"region":{"startLine":5568}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e9c5c64146f3870ddd69bc9b924895cc24297249f1f6059123126be9be3bb0"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountEditorView.body (cognitive 18): AccountEditorView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 4 (5 pts) (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":"Pastel/PastelApp.swift"},"region":{"startLine":7643}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d929604ca3ab5433766cdc7dea2084a8249bf4919f14a51a065743e34b09446"}},{"ruleId":"D2","level":"warning","message":{"text":"catalog.featuredApps (cognitive 18): catalog.featuredApps has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7c6a4a29694843cd1091b75f809cee6d4c66c120d37a9af3d0267fc4063257"}},{"ruleId":"D2","level":"warning","message":{"text":"memoryJar.SetCookies (cognitive 17): memoryJar.SetCookies has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, 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":"StoreHelper/cookies.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"68469bff876935d26bdb77c7fa2c1297fba058ec83a956f339e045948badc933"}},{"ruleId":"D2","level":"warning","message":{"text":"dyldImage.linkeditAddress (cognitive 17): dyldImage.linkeditAddress has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/assets/dyld.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"390c401bfaa369b340816c24af6c62f43d11a122cdfaef4f92bbf3bcc48abee3"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.validJSONObject (cognitive 17): Runtime.validJSONObject has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), boolean chains 2, match/switch 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":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7b29efd24919b685b29b904cb5d278fe06e08baf28ce2bb281a9c696d1a3d8"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.MemMap (cognitive 17): Runtime.MemMap has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (8 pts), if/else 4 (7 pts), boolean chains 2 (nesting depth added 6). 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":"StoreHelper/ipatool/internal/store/emulator/runtime.go"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fb3fefe04125225b5a227283d96ffc1a05c1b4c141c5aa318ab3aadf5dd0de"}},{"ruleId":"D2","level":"warning","message":{"text":"collector.constant (cognitive 17): collector.constant has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), boolean chains 1, match/switch 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":"StoreHelper/ipatool/internal/store/profilegen/collect.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ed9b6d4a2d9da2b3fc9ac225442a6e30e6089cd2951964f7a3af9992f3a5f8"}},{"ruleId":"D2","level":"warning","message":{"text":"storeauth.ProvisionStoreAnisette (cognitive 17): storeauth.ProvisionStoreAnisette has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 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":"StoreHelper/ipatool/internal/storeauth/store_provisioning.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6378b0a475f41796977d817a134d931844b23d0c5fd90d70249308285349c9f4"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.collectMacOSExternalVersions (cognitive 17): appstore.collectMacOSExternalVersions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (4 pts), boolean chains 3, 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":"StoreHelper/ipatool/pkg/appstore/appstore_macos_version_lookup.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9e3d90c1707de396467d8b58b45b42d99bd7e59beef1958df018253633557e"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.ListVersions (cognitive 17): appstore.ListVersions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 3, match/switch 2, loops 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":"StoreHelper/ipatool/pkg/appstore/appstore_list_versions.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3902fdbb58f6936bc14c310203ab2dab5567724f4e976ad7f7d3f76b434eeb21"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogViewModel.loadFeatured (cognitive 17): CatalogViewModel.loadFeatured has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), ternaries 1 (3 pts), error handling 1 (2 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":"Pastel/PastelApp.swift"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c7d5ed7ab0043a5f1e4823b40c7125d3fa3a432941d8c83712bbdfd0196b17"}},{"ruleId":"D2","level":"warning","message":{"text":"login (cognitive 17): login has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 2 (3 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e195599581f9c18a924c1d5317978b417a224f772ea394e19eafae503087ea"}},{"ruleId":"D2","level":"warning","message":{"text":"runDownload (cognitive 17): runDownload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, ternaries 2 (3 pts), error handling 1 (nesting depth added 4). Of this number, 16 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":"NodeProject/src/ipa.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f2d4ddac7769194434309aa4681d8cbee1f29e327e03e70a0ae9ed5d14320c"}},{"ruleId":"D2","level":"warning","message":{"text":"machine.decryptStream (cognitive 16): machine.decryptStream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 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":"StoreHelper/ipatool/internal/sap/machine/storeagent.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef1c957e86291881aace1c29400a754fb39c80cf05fe06403b8fd18a3c0e7b1"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernADI.handleFairPlayMessage (cognitive 16): ModernADI.handleFairPlayMessage 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":"StoreHelper/ipatool/internal/sap/machine/modern_adi.go"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff72b7abf35367f33fb2ba0010dce3366ca1ccab63c7f4b1771c7d7ff48a4318"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.responds (cognitive 16): Runtime.responds has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (8 pts), if/else 5 (6 pts), boolean chains 2 (nesting depth added 4). 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":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd107a9f6dfbda547427883e1b663502705b6d3750c3c8390e390d6ecd038b25"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrapVM.observeMetadataReturn (cognitive 16): bootstrapVM.observeMetadataReturn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, match/switch 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":"StoreHelper/ipatool/internal/store/profilegen/vm.go"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa6f987ad87358fa82b5efc6526090cae25022f33bb4d8b0a242bca76577cfe"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.mergeOwnedApps (cognitive 16): appstore.mergeOwnedApps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), 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":"StoreHelper/ipatool/pkg/appstore/appstore_owned_apps.go"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"197a04292c72aad5906ab255f5071f9af4e64ceaa4a66c5368e702e6d273a9a3"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.walkDMAP (cognitive 16): appstore.walkDMAP 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":"StoreHelper/ipatool/pkg/appstore/appstore_owned_apps.go"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5332962d0f05e608ff3508a52bd87235f9be17869ff251b4ced073c3745225f"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.fetchOwnedAppsForStorefront (cognitive 16): appstore.fetchOwnedAppsForStorefront has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 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":"StoreHelper/ipatool/pkg/appstore/appstore_owned_apps.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1935cbd62a86bbd13ef54e260821a9888cd53ae1f6ca7d0f958271eb4868eab3"}},{"ruleId":"D2","level":"warning","message":{"text":"appstore.replicateZip (cognitive 16): appstore.replicateZip has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, 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":"StoreHelper/ipatool/pkg/appstore/appstore_replicate_sinf.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0cbbbf895f2ba2d220118ae5c6c90d1607fceb78bcdfb6fe95e01c2978c7b9"}},{"ruleId":"D2","level":"warning","message":{"text":"client.handleXMLResponse (cognitive 16): client.handleXMLResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/http/client.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dabccec517e28d4bd6b9fefd700c9f92ac86781e3886871fda12d10b7cf6406"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.trackManualLatestDownload (cognitive 16): ContentView.trackManualLatestDownload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 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":"Pastel/PastelApp.swift"},"region":{"startLine":5847}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2337fa9e7529e75fab9b8864901e272a9c7f6e0456a0ee4a6f37cdeedc63d8"}},{"ruleId":"D2","level":"warning","message":{"text":"downloadChunkToFile (cognitive 16): downloadChunkToFile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 3 (6 pts), loops 1 (nesting depth added 8). Of this number, 12 points are the body\u0027s own statements and 4 belong to 5 function literals 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":"NodeProject/src/downloader.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c462cbf8def75db461d9194d14707b35109994e29263e4107f11149d7ef5cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Pastel/PastelApp.swift: FileTooLong \u2014 6053 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5553 over it, 12.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":"Pastel/PastelApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"617cda9623d2c3105a85faf106899a59bbd515ed653d24ae3e1378e010cbbf99"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.message: MethodTooLong \u2014 message runs 831 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 731 over it, 8.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":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"073ada01a6f9e359a383c15d520722fbeb2d52fb20505cbb3efc0f9ae8fa994e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.symbol: MethodTooLong \u2014 symbol runs 499 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 399 over it, 4.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a6e23a1b4d4029312cf4451b3dcdd99e4400b44650915afef4e215130a3283"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.swiftSymbol: MethodTooLong \u2014 swiftSymbol runs 438 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 338 over it, 4.38\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":"StoreHelper/ipatool/internal/store/emulator/swift.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70d1a970d54fb8dc24fe14642c25cf53f52b9a3be1fb3c5a02059c56e28b87c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: shims: TooManyMethods \u2014 125 methods, declared across 3 files: machine/shim_platform.go (80), machine/shim_memory.go (30), machine/shims.go (15). The bar is 30 methods; this is 95 over it, 4.17\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machine/shims.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9df6d9fa5052de4caee9b124a9f14d9905d1d4a6a95e3f017386fef23cc3c4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.networkMessage: MethodTooLong \u2014 networkMessage runs 405 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 305 over it, 4.05\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":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7809720e02fb6aa7c7c356adf6c9d9bb2dc62ad05f29ee18d1c49df1ca4c27a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: emulator/bridge.go: FileTooLong \u2014 1570 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Runtime (13 blocks, 23-2236). The bar is 500 significant lines; this is 1070 over it, 3.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13abe741970410ed0b9813ace87d2b79f688f538229783cbaba7e86a3f9ff40a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ContentView: TooManyMethods \u2014 91 methods. The bar is 30 methods; this is 61 over it, 3.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":"Pastel/PastelApp.swift"},"region":{"startLine":2692}}}],"partialFingerprints":{"codehealthFindingId/v1":"801197290cc5b458493874d948eeb014b9f7cb060b6828a2a3bc20e0377cc2d7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Runtime: TooManyMethods \u2014 84 methods, declared across 18 files: emulator/runtime.go (25), emulator/bridge.go (13), emulator/network.go (7), emulator/callbacks.go (5), \u002B14 more file(s). The bar is 30 methods; this is 54 over it, 2.80\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":"StoreHelper/ipatool/internal/store/emulator/runtime.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"179061cc95b153f799a2c302e9484a889e74c1c9e1a7a5c848cc1f0a501eefb9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: appstore: TooManyMethods \u2014 78 methods, declared across 25 files: appstore/appstore_replicate_sinf.go (8), appstore/appstore_download.go (7), appstore/appstore_download_product.go (6), appstore/appstore_login.go (6), \u002B21 more file(s). The bar is 30 methods; this is 48 over it, 2.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/appstore/appstore.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e30e52cc6e58dc9237f35a967cd3c330f47f8375c65f908877b4d53a6dfa29"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: bootstrapVM.host: MethodTooLong \u2014 host runs 250 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 150 over it, 2.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/profilegen/vm.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e309813adb9da5dbffb9306ecdf04993a93314c44657ba04127daf73f7ca7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: machine/shim_platform.go: FileTooLong \u2014 1149 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: shims (80 blocks, 30-1774). The bar is 500 significant lines; this is 649 over it, 2.30\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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27789f7f4e31123e6fc7d8dcf8635e525a36c9ab1fcfccf92352d0483910635e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Runtime: TooManyFields \u2014 43 stored fields beside 84 methods. The bar is 30 stored fields; this is 13 over it, 1.43\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/runtime.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"715fda418bd173e84bb2aac75112a0faf69b89b9636e2a756d1b8a3fc35b65b3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: bootstrapVM: ClassTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods, 22 blocks, lines 23-928. The bar is 400 significant lines; this is 171 over it, 1.43\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":"StoreHelper/ipatool/internal/store/profilegen/vm.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe01aa618a832b7e8d06138bb9c1c959dbbbbb0da707bf11bb42739861b3a48"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.asyncSymbol: MethodTooLong \u2014 asyncSymbol 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":"StoreHelper/ipatool/internal/store/emulator/async.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb85e8e12ef7b75ecc941a4681cfd684666980c0ccc26d6a500a0b05a64ff04"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.Execute: MethodTooLong \u2014 Execute 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":"StoreHelper/ipatool/internal/store/emulator/client.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5f02a3d9ffd798a64ad9d77f2711b5b0057b265e5e95038ec685410b904b47"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: emulator/network.go: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: Runtime (7 blocks, 18-993). 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":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ce21d8b93f707b929559e89860303b34a3217ea8a24ab400d57894c8437b10"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.main: FunctionTooLong \u2014 main runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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":"StoreHelper/main.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d223fb79a6e41972555ae2f0d52d8dd1c969025ac60575c3e6be79f05a94c95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: profilegen/vm.go: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: bootstrapVM (22 blocks, 23-928). 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":"StoreHelper/ipatool/internal/store/profilegen/vm.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88854ebfe0815649e00bcdbabcd005c5fb74cd28161bfd8df51419eb0768620b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: shims: TooManyFields \u2014 37 stored fields beside 125 methods. The bar is 30 stored fields; this is 7 over it, 1.23\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machine/shims.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"039695f7419800ede11b2c35eb757209b247272fccaddb8b49e7a706e21787e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: shims.registerPlatformServices: MethodTooLong \u2014 registerPlatformServices runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9f52ce619d20dc2baeb9815718d6a2ce1df1947845897e657f3f21a78a32c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: assets/apfs.go: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 65 over it, 1.13\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":"StoreHelper/ipatool/internal/sap/assets/apfs.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b902d02cbe5f78dcc8285345110a424336b264ca8651cf715593134bf84f9d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: bootstrapVM.collect: MethodTooLong \u2014 collect 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":"StoreHelper/ipatool/internal/store/profilegen/collect.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c795ca0049150a46fe5df7475847a4a7d6b98d8f7045b0b10e1727217e4ef6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: emulator.open: FunctionTooLong \u2014 open 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":"StoreHelper/ipatool/internal/store/emulator/runtime.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8496a9fac63e9d8119be8ad9db5fca44da1828fa3d3ebc26e192439545321ec2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: emulator/swift.go: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Runtime (4 blocks, 20-796). The bar is 500 significant lines; this is 10 over it, 1.02\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":"StoreHelper/ipatool/internal/store/emulator/swift.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f575bc179b3cf9368c3dbde400ff69098fea034f078cdbe48d0dae743c0d82"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.performHTTP: MethodTooLong \u2014 performHTTP runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aced3e3886ea63598bce83b7f8901b4f942df748e25416824a6d5cac9e61edb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (119 corresponding lines): Pastel/PastelApp.swift:3504-3658 | Pastel/PastelApp.swift:4092-4210 \u2014 These two members are one piece of code written twice and then edited apart: 119 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/PastelApp.swift"},"region":{"startLine":3504}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb53980be1a0c23cbf600abf6fc92bc609c982f759e3f3a1f482047fa21a2209"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (94 corresponding lines): StoreHelper/ipatool/pkg/appstore/appstore_download.go:38-148 | StoreHelper/ipatool/pkg/appstore/pastel_native.go:29-122 \u2014 These two members are one piece of code written twice and then edited apart: 94 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abc6e3c3b8ec3fd7c762350fb3866cd265ff25ea7ab38c32f60a79e49fd357b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): Pastel/PastelApp.swift:3202-3266 | Pastel/PastelApp.swift:3268-3344 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/PastelApp.swift"},"region":{"startLine":3202}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a206479ce80f82d7468241b9067e01502b3e1990934ce6587d56e5599f3ce9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Pastel/PastelApp.swift:3364-3415 | Pastel/PastelApp.swift:4325-4362 \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":"Pastel/PastelApp.swift"},"region":{"startLine":3364}}}],"partialFingerprints":{"codehealthFindingId/v1":"314294c93bf32fed08beb175d561555457001d32299fd64089ae5004bd4344e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Pastel/PastelApp.swift:4502-4534 | Pastel/PastelApp.swift:5078-5116 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/PastelApp.swift"},"region":{"startLine":4502}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66491cc0a6dcdaa744e04e3ba946c84e31cc3a411255e4d61e006c7a3186a4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): StoreHelper/ipatool/pkg/appstore/appstore_login.go:63-118 | StoreHelper/ipatool/pkg/appstore/appstore_owned_apps.go:41-109 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/appstore/appstore_login.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"825c0e3327e5e9842954980947634620c1ab4828ec162ca239277399fbaf5d87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): StoreHelper/ipatool/internal/sap/machine/machine.go:347-416 | StoreHelper/ipatool/internal/sap/machine/modern_adi.go:459-508 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machine/machine.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2a17a67262572d878eff112de6d936581d606109d5a9630d9e87e2dfc21e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Pastel/PastelApp.swift:5568-5617 | Pastel/PastelApp.swift:5619-5655 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/PastelApp.swift"},"region":{"startLine":5568}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdcd7e021d8b45b6a7a046d459b609a44b75bf7523184d6b5f3543a209ecfcc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): StoreHelper/ipatool/pkg/appstore/appstore_download.go:395-442 | StoreHelper/ipatool/pkg/appstore/appstore_replicate_sinf.go:46-113 \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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8212879c4cc37bb783cbf85d8718cb45dc51698c05316d3bebba732c1fb42fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Pastel/DownloadLibraryFeatureState.swift:38-68 | Pastel/SearchFeatureState.swift:76-109 \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":"Pastel/DownloadLibraryFeatureState.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"638e36eb5f47783df33e92495e55e2430ae62a5422566e69f590cd6903a15d60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Pastel/PastelApp.swift:3467-3501 | Pastel/PastelApp.swift:4031-4073 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/PastelApp.swift"},"region":{"startLine":3467}}}],"partialFingerprints":{"codehealthFindingId/v1":"57550b4a7dedf6b126d2f43e3bfab89948e088efb353d2c483482430fa0bb04a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Pastel/DownloadLibraryFeatureState.swift:80-112 | Pastel/DownloadLibraryFeatureState.swift:266-299 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/DownloadLibraryFeatureState.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fa95c031044e76d03ed0e103d1f7b187096ec6bc909283b2f19b4e22cbecab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): StoreHelper/ipatool/internal/sap/unicorn/archive_7z_windows.go:25-56 | StoreHelper/ipatool/internal/sap/unicorn/archive_zip.go:9-45 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/unicorn/archive_7z_windows.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f968d27f274b4a5e5b92eea48ad14b3d4c3f20e2169200748019dbc901f2da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): StoreHelper/ipatool/internal/sap/machine/storeagent.go:118-158 | StoreHelper/ipatool/internal/sap/machine/storeagent.go:160-199 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machine/storeagent.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0125e6069580dd50c1bd376d87b86b00e06ea68f404f8206b7a9617998909eab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): StoreHelper/ipatool/internal/store/emulator/callbacks.go:36-75 | StoreHelper/ipatool/internal/store/emulator/callbacks.go:99-136 \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":"StoreHelper/ipatool/internal/store/emulator/callbacks.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99cf580f8a887c177a12417072d5cf9c3a8997639a4dfb8c3191eff174e370b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): StoreHelper/ipatool/internal/sap/machine/machine.go:243-274 | StoreHelper/ipatool/internal/sap/machine/machine.go:276-304 \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":"StoreHelper/ipatool/internal/sap/machine/machine.go"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9905bec7b31b973e3a1efad8fa2ac1753c6af34f27f620d84f42bfd791726db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Pastel/DownloadLibraryFeatureState.swift:135-167 | Pastel/VersionHistoryFeatureState.swift:177-203 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/DownloadLibraryFeatureState.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfedc7002f79719ec0a957ecb199274c04c1e28e0d4d80658bdc66718d09d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): StoreHelper/ipatool/internal/store/emulator/metadata.go:36-70 | StoreHelper/ipatool/internal/store/profile/profile.go:37-70 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/metadata.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5bfa332fde9de0cf7bbf6284ef396a98cb47b11ed3f8c8030f1e67aa930de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): StoreHelper/ipatool/pkg/appstore/appstore_replicate_sinf.go:230-257 | StoreHelper/ipatool/pkg/appstore/appstore_replicate_sinf.go:259-286 \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":"StoreHelper/ipatool/pkg/appstore/appstore_replicate_sinf.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75217c7fc943d9c110983b78be0da96303fe8f889aa2c0789b02a2eaa9679a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Pastel/PastelApp.swift:6284-6302 | Pastel/PastelApp.swift:6304-6324 \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":"Pastel/PastelApp.swift"},"region":{"startLine":6284}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fc2b37b28fc183f867dd873ef4a51b62889566245fc5e54518225dd26e9da1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Pastel/PastelApp.swift:8062-8085 | Pastel/PastelApp.swift:8095-8117 \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":"Pastel/PastelApp.swift"},"region":{"startLine":8062}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe8ee0c7371070f0533ef7c7da3b766a2032797311c9280046386d32eb631df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Pastel/PastelApp.swift:6648-6660 | Pastel/PastelApp.swift:7253-7269 \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":"Pastel/PastelApp.swift"},"region":{"startLine":6648}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2f998fec3c45dfab936dbd3f838898706251cae5194b5ba3944235a6c65162"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Pastel/PastelApp.swift:6628-6636 | Pastel/PastelApp.swift:7225-7241 \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":"Pastel/PastelApp.swift"},"region":{"startLine":6628}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a76c6b52e8147e1d53899310a66ff16a097f235ddb851dcb380171fa464fa3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Pastel/PastelApp.swift:5248-5258 | Pastel/PastelApp.swift:5260-5270 \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":"Pastel/PastelApp.swift"},"region":{"startLine":5248}}}],"partialFingerprints":{"codehealthFindingId/v1":"141f6a26e2e0bf40a69ddafde256efdc8c8fa2576fdfc7a94b534e8e92b1eb50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): StoreHelper/ipatool/internal/sap/unicorn/engine.go:214-230 | StoreHelper/ipatool/internal/sap/unicorn/engine.go:232-248 \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":"StoreHelper/ipatool/internal/sap/unicorn/engine.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e163edbf2e354f81b716a8f8ec4d54fc57574d5f0da3754e0d2b69f2ecb9444"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): StoreHelper/ipatool/internal/sap/machine/shim_memory.go:459-489 | StoreHelper/ipatool/internal/sap/machine/shim_platform.go:282-302 | StoreHelper/ipatool/internal/sap/machine/shim_platform.go:1067-1088 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 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":"StoreHelper/ipatool/internal/sap/machine/shim_memory.go"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"786ac1057b1a1f9bc81f86ba02fc430783d5ee7cdcacc8bb37ced4fa00842163"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): StoreHelper/ipatool/pkg/http/client.go:143-159 | StoreHelper/ipatool/pkg/http/client.go:183-200 \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":"StoreHelper/ipatool/pkg/http/client.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"651c52028a40ee5793c8130f05e565d90c629f40734979630c95acc0165a9280"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Pastel/AccountFeatureState.swift:19-34 | Pastel/PastelApp.swift:6502-6517 \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":"Pastel/AccountFeatureState.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e943f01fab4e5ccacd03efacc9cd0a36d81bbde4166d9c373c00ccca11a01be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Pastel/PastelApp.swift:3157-3183 | Pastel/PastelApp.swift:3185-3199 | Pastel/PastelApp.swift:4212-4226 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/PastelApp.swift"},"region":{"startLine":3157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2bc52701e47b893ff0935b6cfd506cc8ed905d0cdf590b456f83a702fdf7f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Pastel/PastelApp.swift:4833-4846 | Pastel/PastelApp.swift:5210-5223 \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":"Pastel/PastelApp.swift"},"region":{"startLine":4833}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd720acffb05b32241c404050a9b603c201e5df2dbf4d025f3db74d9191513d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): StoreHelper/ipatool/pkg/appstore/appstore_lookup.go:79-93 | StoreHelper/ipatool/pkg/appstore/appstore_search.go:214-228 \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":"StoreHelper/ipatool/pkg/appstore/appstore_lookup.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6673166852a545fd88a7683f82e99e13134e9e1114482497e2d92bcb6620ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): StoreHelper/ipatool/internal/sap/machine/shim_memory.go:334-352 | StoreHelper/ipatool/internal/sap/machine/shim_memory.go:519-540 | StoreHelper/ipatool/internal/sap/machine/shim_platform.go:682-699 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machine/shim_memory.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f926ff7c3d3bc1459ac16a023e020f08445490152d531212fb9a3d6430f81f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): StoreHelper/ipatool/internal/sap/machine/shim_memory.go:67-88 | StoreHelper/ipatool/internal/sap/machine/shim_platform.go:205-224 \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":"StoreHelper/ipatool/internal/sap/machine/shim_memory.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e34980e25ffc0e91a9b25349ef007a14e1b1305e293c41d3de7ba3d3ff0a51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): StoreHelper/ipatool/internal/sap/machine/shim_platform.go:788-806 | StoreHelper/ipatool/internal/sap/machine/shim_platform.go:1465-1490 \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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff8fd60e7b6419e5ae27217bda7ae09da8cc5e0f1aa0c05b983310c6ecaf81e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): StoreHelper/ipatool/pkg/appstore/platform.go:42-61 | StoreHelper/ipatool/pkg/appstore/platform.go:63-82 \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":"StoreHelper/ipatool/pkg/appstore/platform.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"118b7c997deb741df8ae657f51b5fc0360845c4043dc1bfc903c0fd703b0683e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): StoreHelper/authentication_state.go:201-214 | StoreHelper/authentication_state.go:216-229 \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":"StoreHelper/authentication_state.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0537ab0167798a5de7d0d150ff3462340a4ff0a8a136eba271a4cc877c3db68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): StoreHelper/ipatool/pkg/appstore/appstore_download_macos_adapter.go:16-28 | StoreHelper/ipatool/pkg/appstore/appstore_kbsync.go:21-33 \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":"StoreHelper/ipatool/pkg/appstore/appstore_download_macos_adapter.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a45e4a924619274da83b13dd81177b2545641705fafb702dad805645fb89ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): StoreHelper/ipatool/internal/sap/machine/arm64.go:152-169 | StoreHelper/ipatool/internal/sap/machine/arm64.go:171-187 \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":"StoreHelper/ipatool/internal/sap/machine/arm64.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f42cc69f743df9a1f1d549a67b2718a7918274ec3b32a6aac2c17d2eb813438"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Pastel/PastelApp.swift:4471-4481 | Pastel/PastelApp.swift:5142-5151 \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":"Pastel/PastelApp.swift"},"region":{"startLine":4471}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1c06fc39a4b21da1309cb8fc9c3e056007d87df80c0610cb4d799888c28e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): StoreHelper/ipatool/internal/sap/unicorn/engine.go:250-261 | StoreHelper/ipatool/internal/sap/unicorn/engine.go:274-285 \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":"StoreHelper/ipatool/internal/sap/unicorn/engine.go"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf68ab6a3f96138648c3ba98cf678648d5495c51de3a5e68a40869018571d296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): StoreHelper/ipatool/internal/store/emulator/runtime.go:371-395 | StoreHelper/ipatool/internal/store/profilegen/vm.go:165-184 \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":"StoreHelper/ipatool/internal/store/emulator/runtime.go"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fefc76e407b37fc7044fb5c84060b9bca1e1748285b357d2938930855907b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): StoreHelper/ipatool/internal/sap/machine/shim_platform.go:951-966 | StoreHelper/ipatool/internal/sap/machine/shim_platform.go:968-984 \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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"3154f8bf1a186d8ddbdcf32b61e7c88a809ed98eba5509fe690a5fd62d071eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): StoreHelper/ipatool/internal/sap/machine/shim_platform.go:1149-1166 | StoreHelper/ipatool/internal/sap/machine/shim_platform.go:1679-1696 \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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72c24afa2e8dc0e02fe72b70d4719ccfb0cf29cf864a40c007f396d32e47775"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Pastel/PastelApp.swift:3766-3775 | Pastel/VersionHistoryFeatureState.swift:323-332 \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":"Pastel/PastelApp.swift"},"region":{"startLine":3766}}}],"partialFingerprints":{"codehealthFindingId/v1":"223420f97b18a47c6cf871224ab11ed5e346ec6a40e6d06d2dd70ba3a0fdabc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): StoreHelper/ipatool/internal/sap/machine/arm64.go:205-214 | StoreHelper/ipatool/internal/sap/machine/machine.go:694-704 | StoreHelper/ipatool/internal/sap/machine/shims.go:314-324 \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":"StoreHelper/ipatool/internal/sap/machine/arm64.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb2bc464e51c60988f6ea2b385444aa642d09408bfb8d5ea50d4de8378f5db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): StoreHelper/ipatool/pkg/appstore/appstore_lookup.go:66-77 | StoreHelper/ipatool/pkg/appstore/appstore_search.go:201-212 \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":"StoreHelper/ipatool/pkg/appstore/appstore_lookup.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f116edfc448fc304a0ef5fce84573bec422b0979e33cc0577de0580f2fd64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): StoreHelper/ipatool/internal/sap/machine/machine.go:676-683 | StoreHelper/ipatool/internal/sap/machine/shims.go:284-291 \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":"StoreHelper/ipatool/internal/sap/machine/machine.go"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa199030dd787e2d0fb3e9dfb7f6e153c1b0fa1d0aa40a4d76f7a765f0285b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): StoreHelper/ipatool/internal/sap/machine/machine.go:685-692 | StoreHelper/ipatool/internal/sap/machine/shims.go:305-312 \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":"StoreHelper/ipatool/internal/sap/machine/machine.go"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"54322355441b72890273956e17e3fe0b6f598f30a445990eb988f375ed08f9d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Pastel/PastelApp.swift:3040-3042 | Pastel/VersionHistoryFeatureState.swift:102-104 \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":"Pastel/PastelApp.swift"},"region":{"startLine":3040}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cffd1fc4c94b91da1d9afca268a546409088db4be4b1fc2832f51ef19e7efa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Pastel/PastelApp.swift:3032-3034 | Pastel/VersionHistoryFeatureState.swift:110-112 \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":"Pastel/PastelApp.swift"},"region":{"startLine":3032}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b42bea747ea0eb827d95c8c92bf3b69dc5c69337f891d3e1ec2a46a11866fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201324 lines \u00D7 2): StoreHelper/ipatool/internal/sap/unicorn/archive_7z_windows.go:27-46 | StoreHelper/ipatool/internal/sap/unicorn/archive_zip.go:11-34 \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 \u0060StoreHelper/ipatool/internal/sap/unicorn/archive_7z_windows.go:27\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"StoreHelper/ipatool/internal/sap/unicorn/archive_7z_windows.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f01b6dfffff523ec9981c851d2b3506735d57f3216f9566148941343ac9260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): StoreHelper/ipatool/internal/sap/machine/shim_memory.go:462-480 | StoreHelper/ipatool/internal/sap/machine/shim_memory.go:581-599 \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 \u0060StoreHelper/ipatool/internal/sap/machine/shim_memory.go:462\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":"StoreHelper/ipatool/internal/sap/machine/shim_memory.go"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d8e9cadb2dab298a12f2a6bd3f3fdd6dbbb814c0d53d48bc492371e0e76051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): StoreHelper/ipatool/internal/sap/machine/shim_memory.go:460-477 | StoreHelper/ipatool/internal/sap/machine/shim_memory.go:579-596 | StoreHelper/ipatool/internal/sap/machine/shim_memory.go:636-653 \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":"StoreHelper/ipatool/internal/sap/machine/shim_memory.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c673656e8577f3a0de3c9c110df0fd85f6689ab91ec3a8650f835deeb529c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): StoreHelper/ipatool/internal/sap/machine/shim_memory.go:497-510 | StoreHelper/ipatool/internal/sap/machine/shim_memory.go:520-533 \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":"StoreHelper/ipatool/internal/sap/machine/shim_memory.go"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf4622f93f363c6dc28c5b0f0cb0a0c1117b7b91cdec9a175fa99597c3e67a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StoreHelper/ipatool/internal/sap/unicorn/engine.go:215-227 | StoreHelper/ipatool/internal/sap/unicorn/engine.go:233-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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":"StoreHelper/ipatool/internal/sap/unicorn/engine.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"95aeb8d65cf891553d45c1b96a30f205f75f747e7c0f72331ed6acddd3ce0891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StoreHelper/ipatool/internal/sap/machine/shim_platform.go:170-181 | StoreHelper/ipatool/internal/sap/machine/shim_platform.go:494-506 \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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40f85cfa71c65241f84dba90fdceb4f2a14db8dda9e87e7b5448ac0954084a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StoreHelper/ipatool/internal/sap/machine/shim_platform.go:789-800 | StoreHelper/ipatool/internal/sap/machine/shim_platform.go:842-853 \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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d732731dd01e3b6ebe91198d7768184b00f22d9ea25b6461d30a3b175625ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StoreHelper/ipatool/internal/sap/machine/shim_platform.go:830-841 | StoreHelper/ipatool/internal/sap/machine/shim_platform.go:987-1000 \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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"76299e0b86942d3f7aab15903956ddd56221692ffffb97979f4da1d9d8b061ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): StoreHelper/ipatool/internal/sap/machine/storeagent.go:128-137 | StoreHelper/ipatool/internal/sap/machine/storeagent.go:164-174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StoreHelper/ipatool/internal/sap/machine/storeagent.go:164\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. 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":"StoreHelper/ipatool/internal/sap/machine/storeagent.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8ad57bad921c369e421adce99054a7157817813c52bcab9c75fb39f2e43ed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StoreHelper/ipatool/internal/store/emulator/network.go:140-150 | StoreHelper/ipatool/internal/store/emulator/network.go:430-440 \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":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"8029b1eef890650d9e4933f57d8b4a8b7f0cfb6a60d9facb2350089cf6901f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StoreHelper/ipatool/internal/store/emulator/swift.go:622-632 | StoreHelper/ipatool/internal/store/emulator/swift.go:640-650 \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 \u0060StoreHelper/ipatool/internal/store/emulator/swift.go:622\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/swift.go"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"566e5ace1a6d077aef78ce235f502a8f149a9d3e22009ebbfd9f73691397f1c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StoreHelper/ipatool/pkg/appstore/appstore_download.go:94-104 | StoreHelper/ipatool/pkg/appstore/pastel_native.go:93-103 \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 \u0060StoreHelper/ipatool/pkg/appstore/appstore_download.go:94\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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca59065fd5b587a300d7b8ac7217e49e811a4b1902dbf856a8631ddd3d2ea905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StoreHelper/ipatool/pkg/appstore/appstore_partial_zip.go:67-77 | StoreHelper/ipatool/pkg/appstore/appstore_partial_zip.go:139-149 \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. 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":"StoreHelper/ipatool/pkg/appstore/appstore_partial_zip.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"389db22fd08088c0783063e440e389a403ece0f8523c3b21bd75acfa656baab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StoreHelper/ipatool/pkg/appstore/appstore_replicate_sinf.go:233-243 | StoreHelper/ipatool/pkg/appstore/appstore_replicate_sinf.go:262-272 \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":"StoreHelper/ipatool/pkg/appstore/appstore_replicate_sinf.go"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd307d144d1963e9e8385f76aa04f5426e393121c913cd744b07e497de84ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StoreHelper/ipatool/internal/sap/assets/apfs.go:183-191 | StoreHelper/ipatool/internal/sap/assets/apfs.go:427-435 \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":"StoreHelper/ipatool/internal/sap/assets/apfs.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"429547d800c36276924488bdb3a25809fd296f4bd87c7e89ae9783d010146fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StoreHelper/ipatool/internal/store/emulator/bridge.go:596-604 | StoreHelper/ipatool/internal/store/emulator/bridge.go:606-614 \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":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"270253724a73b9eab750e937c44e85d7451a9d0f77d1c0e99129d89f11fe04c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): StoreHelper/ipatool/internal/store/emulator/accounts.go:79-86 | StoreHelper/ipatool/internal/store/emulator/bridge.go:814-823 | StoreHelper/ipatool/internal/store/emulator/network.go:406-413 \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 \u0060StoreHelper/ipatool/internal/store/emulator/accounts.go:79\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. 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":"StoreHelper/ipatool/internal/store/emulator/accounts.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd2a3bb15108908a3c21ac6d19d1a8c9ccbf15c93180d4e8ab267ba7ebcb0ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StoreHelper/ipatool/internal/sap/machine/shim_platform.go:657-665 | StoreHelper/ipatool/internal/sap/machine/shim_platform.go:744-752 \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":"StoreHelper/ipatool/internal/sap/machine/shim_platform.go"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ff1b15e5185606336423f90d658012073e9e749a02d0d39c7a9446b4babc39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StoreHelper/ipatool/internal/store/emulator/network.go:207-214 | StoreHelper/ipatool/internal/store/emulator/network.go:226-233 \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":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb5ac1c1ac6d7b0e0e17862da40d006c01d0c852d31d6e589b8a8a62c689d2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StoreHelper/ipatool/internal/store/profilegen/vm.go:750-757 | StoreHelper/ipatool/internal/store/profilegen/vm.go:805-812 \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":"StoreHelper/ipatool/internal/store/profilegen/vm.go"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e26a0dbd26a1daedfd0903cb2f2b3c035c9c56ef2051b7bb3e3d1c686947811"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StoreHelper/ipatool/pkg/appstore/appstore_download.go:54-61 | StoreHelper/ipatool/pkg/appstore/pastel_native.go:52-59 \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 \u0060StoreHelper/ipatool/pkg/appstore/appstore_download.go: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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"086d15e4cdb16f33255933c62cec0381fe8242945b44bd95ece7f0dee1a26d5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): StoreHelper/ipatool/internal/store/emulator/network.go:323-329 | StoreHelper/ipatool/internal/store/emulator/swift.go:785-791 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StoreHelper/ipatool/internal/store/emulator/network.go:321\u0060 calls \u0060New\u0060 and \u0060StoreHelper/ipatool/internal/store/emulator/swift.go:783\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":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"730ffb693d0623763abf973ee70748ee1a776f276ba484ca9c9cf3b317b0eecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StoreHelper/ipatool/internal/store/emulator/network.go:354-358 | StoreHelper/ipatool/internal/store/emulator/swift.go:206-210 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/network.go"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"75866fe4329794c4215dd664f73754292037138c7212dc1a4b3aabf974f00ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): StoreHelper/ipatool/pkg/appstore/appstore_download.go:220-224 | StoreHelper/ipatool/pkg/appstore/appstore_partial_zip.go:196-200 \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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d833ec24fcbdf8c97f1e19c9dcfa7225e53fa5d4167d8c74ceaed2494464656"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StoreHelper/ipatool/internal/store/emulator/compression.go:19-27 | StoreHelper/ipatool/internal/store/emulator/runtime.go:404-412 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060uint64\u0060 to \u0060r *Runtime) write32(address\u0060 in one and \u0060value\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/store/emulator/compression.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a611624ccf5749dd2792a0abbbbad8d05625034add5c4932656179cdf6ebc352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StoreHelper/ipatool/internal/sap/assets/aea.go:461-473 | StoreHelper/ipatool/internal/sap/assets/http_range.go:84-96 \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 \u0060StoreHelper/ipatool/internal/sap/assets/aea.go:461\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":"StoreHelper/ipatool/internal/sap/assets/aea.go"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f247603004229bf8461c3bba2464ec329a8587bdd174fd2c2a3e46e689a39d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StoreHelper/ipatool/internal/sap/assets/assets.go:123-135 | StoreHelper/ipatool/internal/sap/assets/remote.go:79-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StoreHelper/ipatool/internal/sap/assets/assets.go:123\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":"StoreHelper/ipatool/internal/sap/assets/assets.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd701a4b8b63b84ab9df5c7f578c432f0e62226fb9e607dfc43a09645e175c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StoreHelper/ipatool/internal/store/emulator/callbacks.go:54-66 | StoreHelper/ipatool/internal/store/emulator/callbacks.go:112-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StoreHelper/ipatool/internal/store/emulator/callbacks.go:54\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, \u0060StoreHelper/ipatool/internal/store/emulator/callbacks.go:126\u0060 calls \u0060write64\u0060 and \u0060StoreHelper/ipatool/internal/store/emulator/callbacks.go:68\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":"StoreHelper/ipatool/internal/store/emulator/callbacks.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"40af42bd59e8bef7c4707dd05bd07cc4cc459b6b39b8bea3955dcafb884abc99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): StoreHelper/ipatool/pkg/appstore/appstore_download.go:403-414 | StoreHelper/ipatool/pkg/appstore/appstore_replicate_sinf.go: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 both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StoreHelper/ipatool/pkg/appstore/appstore_download.go:403\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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c07c0cf241314c2a13e7cf8fa5e340845ee78c21f934f958e325f598af851d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StoreHelper/ipatool/internal/sap/unicorn/cache.go:151-161 | StoreHelper/ipatool/internal/sap/unicorn/cache.go:207-217 \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":"StoreHelper/ipatool/internal/sap/unicorn/cache.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ee9e7962bd17697de67ad19292c177846170bc282664c39628bdc4a9833a2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StoreHelper/ipatool/pkg/appstore/appstore_login.go:70-80 | StoreHelper/ipatool/pkg/appstore/appstore_native_login.go:23-31 \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 \u0060StoreHelper/ipatool/pkg/appstore/appstore_login.go:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/appstore/appstore_login.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d97c554d21253c4ee58cafe29fe50db8b6d76458bcb302a1426324b57cc2645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): StoreHelper/ipatool/internal/store/emulator/swift.go:375-385 | StoreHelper/ipatool/internal/store/emulator/swift.go:619-629 | StoreHelper/ipatool/internal/store/emulator/swift.go:637-647 \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 \u0060StoreHelper/ipatool/internal/store/emulator/swift.go:375\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":"StoreHelper/ipatool/internal/store/emulator/swift.go"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fbd183fed2a268aafe49d57e28b646a2c848d5aca3e3f0486ae095204c0ce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): StoreHelper/ipatool/internal/sap/machine/machine.go:248-257 | StoreHelper/ipatool/internal/sap/machine/machine.go:279-288 \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 \u0060StoreHelper/ipatool/internal/sap/machine/machine.go:248\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":"StoreHelper/ipatool/internal/sap/machine/machine.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b3bb9c23c2a91fc7ac28f4aad44cbd56bb592c912385cc50d0853b06fc2b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): StoreHelper/ipatool/internal/store/emulator/bridge.go:1649-1657 | StoreHelper/ipatool/internal/store/emulator/bridge.go:1665-1673 \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 \u0060StoreHelper/ipatool/internal/store/emulator/bridge.go:1649\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":"StoreHelper/ipatool/internal/store/emulator/bridge.go"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5136166acc0c42561c9708c48d456cc65d1723373d7cbaf721f3371b4e919e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StoreHelper/ipatool/pkg/appstore/appstore_macos_preflight_metadata.go:54-61 | StoreHelper/ipatool/pkg/appstore/appstore_macos_version_metadata.go:65-72 \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 \u0060StoreHelper/ipatool/pkg/appstore/appstore_macos_preflight_metadata.go: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":"StoreHelper/ipatool/pkg/appstore/appstore_macos_preflight_metadata.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68c7f459f5b1f0a22516bca65c3a3a7ce0536e03259fb8b4edd9abcbf1717ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StoreHelper/ipatool/internal/sap/machine/modern_adi.go:290-297 | StoreHelper/ipatool/internal/sap/machine/modern_adi.go:327-334 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/machine/modern_adi.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f215fb24e4d54056646b7a947009dab68b43426fb1a61b079b1f369a6de684ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): StoreHelper/ipatool/internal/sap/assets/store.go:73-80 | StoreHelper/ipatool/internal/sap/assets/store.go:123-130 \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":"StoreHelper/ipatool/internal/sap/assets/store.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0ff7bc976678d5d18f9061a47aa92f7074b00e026e65e00baff8ef465cb6c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): StoreHelper/ipatool/internal/sap/assets/remote.go:98-103 | StoreHelper/ipatool/internal/sap/assets/remote.go:160-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/internal/sap/assets/remote.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef0a0a19af269d87fe23bc754a5c810dd06114e0b15e15be95cab497bd3af17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): Pastel/PastelApp.swift:3583-3634 | Pastel/PastelApp.swift:4151-4202 \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 \u0060Pastel/PastelApp.swift:3583\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":"Pastel/PastelApp.swift"},"region":{"startLine":3583}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad8850cce784a3293e62fbf21e5040c1bbd303d55cc92bad448fd469dc4478e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Pastel/PastelApp.swift:3467-3484 | Pastel/PastelApp.swift:4031-4048 \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 \u0060Pastel/PastelApp.swift:3467\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00607\u0060 in one and \u006010\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/PastelApp.swift"},"region":{"startLine":3467}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fdf08c4637c094f8d21a8ca0a0916e70e485cafded3a1dba381bddee809e83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Pastel/SearchFeatureState.swift:121-138 | Pastel/SearchFeatureState.swift:214-231 \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":"Pastel/SearchFeatureState.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"79514afbf10b35e96d08d3c1f22fcbf6643acbffc51c0e83dbe08f5ecc7f5977"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Pastel/PastelApp.swift:3563-3578 | Pastel/PastelApp.swift:4129-4144 \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 \u0060Pastel/PastelApp.swift:3563\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":"Pastel/PastelApp.swift"},"region":{"startLine":3563}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde07d1b678de46aa0e48fdce67517e355336efd3cbdd11ce6294036b2b16d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Pastel/PastelApp.swift:4566-4579 | Pastel/PastelApp.swift:7814-7827 \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 \u0060Pastel/PastelApp.swift:4566\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":"Pastel/PastelApp.swift"},"region":{"startLine":4566}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64dd0706903e5b1769507fa857836b76c558fda29a0dc71ac23b96cb7582d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Pastel/PastelApp.swift:4775-4788 | Pastel/PastelApp.swift:5191-5202 \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 \u0060Pastel/PastelApp.swift:4775\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, \u0060Pastel/PastelApp.swift:4789\u0060 calls \u0060background\u0060, \u0060RoundedRectangle\u0060 and \u0060Pastel/PastelApp.swift:5203\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":"Pastel/PastelApp.swift"},"region":{"startLine":4775}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f5d52369cfaead502875862c22a1d814bc17a6e33990993bbd5ed4fbf05b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 2): Pastel/PastelApp.swift:6474-6487 | Pastel/PastelApp.swift:7842-7850 \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":"Pastel/PastelApp.swift"},"region":{"startLine":6474}}}],"partialFingerprints":{"codehealthFindingId/v1":"70de6ad8362c781f84f0f55d779bcf2293ec13848ae0e154d85fa98aa43afc84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Pastel/DownloadLibraryFeatureState.swift:305-316 | Pastel/VersionHistoryFeatureState.swift:392-403 \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":"Pastel/DownloadLibraryFeatureState.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f4c183f734f91fcdd042a9d939721fd4ddecf16e6af4ae2aa375a931fad80b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Pastel/PastelApp.swift:1670-1681 | Pastel/PastelApp.swift:2183-2194 \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":"Pastel/PastelApp.swift"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9dec287b9142324a15ed9c1fb3355d88206ef56ffe336f148d1bbffa855fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Pastel/PastelApp.swift:3393-3404 | Pastel/PastelApp.swift:4341-4351 \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 \u0060Pastel/PastelApp.swift:3393\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Pastel/PastelApp.swift:3392\u0060 calls \u0060loadFeatured\u0060 and \u0060Pastel/PastelApp.swift:4340\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":"Pastel/PastelApp.swift"},"region":{"startLine":3393}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7266b4d461a7d97dccc212ff5ca1b1b92a0d80936ff190ee9f18d61cdcd3afe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Pastel/SearchFeatureState.swift:157-168 | Pastel/SearchFeatureState.swift:259-270 \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 \u0060Pastel/SearchFeatureState.swift:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006010\u0060 in one and \u006016\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Pastel/SearchFeatureState.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"81edbe426c04bbe3e78163448c231302881570a84eb4b83668bf5be62076b029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Pastel/PastelApp.swift:3234-3244 | Pastel/PastelApp.swift:3305-3315 \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 \u0060Pastel/PastelApp.swift:3234\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":"Pastel/PastelApp.swift"},"region":{"startLine":3234}}}],"partialFingerprints":{"codehealthFindingId/v1":"660bd1de9196913b5214047906a8fd8df6bb2e541be29984935a66f8ed174103"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Pastel/PastelApp.swift:4524-4534 | Pastel/PastelApp.swift:5106-5116 \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 \u0060Pastel/PastelApp.swift:4524\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":"Pastel/PastelApp.swift"},"region":{"startLine":4524}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e12cbb2760015602203d2b75aec2a95419ce3f03197da0b501c1937a714edd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Pastel/SearchFeatureState.swift:245-255 | Pastel/SearchFeatureState.swift:313-323 \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":"Pastel/SearchFeatureState.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c812cfd684c02beb08e34b7ba9ab2c57a81480be403454c58dd8256b549733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Pastel/PastelApp.swift:3388-3397 | Pastel/PastelApp.swift:3980-3989 \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 \u0060Pastel/PastelApp.swift:3388\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, \u0060Pastel/PastelApp.swift:3386\u0060 calls \u0060padding\u0060 and \u0060Pastel/PastelApp.swift:3978\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":"Pastel/PastelApp.swift"},"region":{"startLine":3388}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bb879365dbf17df6b8518547d2b2fe62d6af51014c5c95aaa95c581df7652d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Pastel/PastelApp.swift:3406-3415 | Pastel/PastelApp.swift:4353-4362 \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 \u0060Pastel/PastelApp.swift:3406\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":"Pastel/PastelApp.swift"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b6e473a9fee407bbe350bfff358bea4a9e905a552e834c2ccb8700eec8edbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Pastel/PastelApp.swift:3488-3497 | Pastel/PastelApp.swift:4052-4061 \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 \u0060Pastel/PastelApp.swift:3488\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":"Pastel/PastelApp.swift"},"region":{"startLine":3488}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b589b08ce7da2a423443bf98f72e728b976389bf4a302a1bac857ce0e063c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Pastel/PastelApp.swift:3175-3183 | Pastel/PastelApp.swift:3191-3199 | Pastel/PastelApp.swift:4218-4226 \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 \u0060Pastel/PastelApp.swift:3175\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":"Pastel/PastelApp.swift"},"region":{"startLine":3175}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cf05fde5661a26442da7cb59ef9b1aae8568e1404d0ec13267d52937c75986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Pastel/DownloadLibraryFeatureState.swift:60-68 | Pastel/SearchFeatureState.swift:102-109 \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 \u0060Pastel/DownloadLibraryFeatureState.swift:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Pastel/SearchFeatureState.swift:100\u0060 calls \u0060frame\u0060 and \u0060Pastel/DownloadLibraryFeatureState.swift:58\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":"Pastel/DownloadLibraryFeatureState.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bfcad3852f14c2c5eabd5b2e629a5c5f48f1574b0f805ad4286ac451a91101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Pastel/DownloadLibraryFeatureState.swift:96-104 | Pastel/DownloadLibraryFeatureState.swift:282-290 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Pastel/DownloadLibraryFeatureState.swift:96\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":"Pastel/DownloadLibraryFeatureState.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7053718a152a6c3e9f0cc75df336d0ca1014202283d7fe6c2c6c5ac56dde8d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Pastel/PastelApp.swift:3896-3902 | Pastel/PastelApp.swift:4733-4740 \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 \u0060Pastel/PastelApp.swift:3896\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":"Pastel/PastelApp.swift"},"region":{"startLine":3896}}}],"partialFingerprints":{"codehealthFindingId/v1":"b542134338c5981d29f36935bb80eac7a84007ac9deb9778e2d82b4e4148bee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Pastel/PastelApp.swift:6648-6654 | Pastel/PastelApp.swift:7253-7259 \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 \u0060Pastel/PastelApp.swift:6648\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":"Pastel/PastelApp.swift"},"region":{"startLine":6648}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00ddba93d39fe0b7fd5cf148bff1dae1c0d0d39886a025c43083919027fc74d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Pastel/PastelApp.swift:3409-3414 | Pastel/PastelApp.swift:3458-3463 | Pastel/PastelApp.swift:4356-4361 \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 \u0060Pastel/PastelApp.swift:3409\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, \u0060Pastel/PastelApp.swift:3464\u0060 calls \u0060frame\u0060 and \u0060Pastel/PastelApp.swift:3415\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":"Pastel/PastelApp.swift"},"region":{"startLine":3409}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbd64cda3a0ad93920e3b7cc2e0dd9a4a16fb1f17349db2afce95c5a3b28505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Pastel/PastelApp.swift:1891-1896 | Pastel/PastelApp.swift:2023-2028 \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":"Pastel/PastelApp.swift"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e639a0d39974234d3d3f6912f7e23d7bbe9a7f7dc6186793e5d9d670ce5fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Pastel/PastelApp.swift:3997-4002 | Pastel/PastelApp.swift:4065-4070 \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 \u0060Pastel/PastelApp.swift:3997\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":"Pastel/PastelApp.swift"},"region":{"startLine":3997}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2c6d72aee435549428ef7a5852759ebb7c463a35be1d08364e484725e240a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Pastel/PastelApp.swift:4103-4109 | Pastel/PastelApp.swift:5017-5023 \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":"Pastel/PastelApp.swift"},"region":{"startLine":4103}}}],"partialFingerprints":{"codehealthFindingId/v1":"877bdbfdabccd0dc151831917a915112702d7d886f5dd60520e202360f985feb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Pastel/DownloadLibraryFeatureState.swift:260-264 | Pastel/VersionHistoryFeatureState.swift:297-303 \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 \u0060Pastel/DownloadLibraryFeatureState.swift:260\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":"Pastel/DownloadLibraryFeatureState.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d80cd74266bd3b81b87ab64634a403ee6581955d8a6489d4f194115724deba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Pastel/PastelApp.swift:1912-1917 | Pastel/PastelApp.swift:1918-1923 \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":"Pastel/PastelApp.swift"},"region":{"startLine":1912}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c1d3105767ea1bfd37cc868ef2fd598ab57fd5443cb300c16489a52900ba90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Pastel/DownloadLibraryFeatureState.swift:70-78 | Pastel/SearchFeatureState.swift:111-119 \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":"Pastel/DownloadLibraryFeatureState.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e3d681b0d9f7242c54e9a4c6bc294fb897c0d42215ffdebac66becbc03f8d6"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: github.com/majd/ipatool/v2: github.com/majd/ipatool/v2: abstractness 0.08, instability 0.00, distance 0.92 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e6f20ac2e4dc1becc0c1a282deb312d4f3c0a9a2927a2d47169524d692fd53e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Pastel/PastelApp.swift: Pastel/PastelApp.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in PastelApp.swift.downloadErrorMessage at line 1108. 6 of those changes were fix/bug commits, and the other 8 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 08:39:49 \u002B08:00\u0027 --until=\u00272026-11-10 08:39:49 \u002B08:00\u0027 --full-history --no-merges -- Pastel/PastelApp.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":"Pastel/PastelApp.swift"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"200e8d3f9745c735ccb3068a8d4a1a7b88f5a5e05a3b9cbdecb84032a61dbb08"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: NodeProject/src/ipa.js: NodeProject/src/ipa.js changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in Ipa._listVersionIdsOnce at line 357. 6 of those changes were fix/bug commits, and the other 8 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 08:39:49 \u002B08:00\u0027 --until=\u00272026-11-10 08:39:49 \u002B08:00\u0027 --full-history --no-merges -- NodeProject/src/ipa.js\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":"NodeProject/src/ipa.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a513e5ed2313e9dd2a4eddd8d7c8fd7b3af3ea8f7ec4e69aa56321852b685d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: NodeProject/src/gsa.js: NodeProject/src/gsa.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in gsa.parseLoginResponse at line 369. 6 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 08:39:49 \u002B08:00\u0027 --until=\u00272026-11-10 08:39:49 \u002B08:00\u0027 --full-history --no-merges -- NodeProject/src/gsa.js\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":"NodeProject/src/gsa.js"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76307aa6fa2860330f56301b4f57a0e1b01ef59872d850aa761950e3e0e5409"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: StoreHelper/main.go: StoreHelper/main.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in main.main at line 59. 2 of those changes were fix/bug commits, and the other 3 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 08:39:49 \u002B08:00\u0027 --until=\u00272026-11-10 08:39:49 \u002B08:00\u0027 --full-history --no-merges -- StoreHelper/main.go\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":"StoreHelper/main.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"1086331d934840cdedd9131ed9f0244a31141972488f2a685cc1885bbc0f64b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: NodeProject/src/client.js: NodeProject/src/client.js changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is Store.#storePost at line 135), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix unavailable historical version downloads\u201D; \u201CFix acquisition for previously unowned apps\u201D; \u201CRelease Pastel 20260901 device GUID fix\u201D; \u201CRelease Pastel 20260828 login fix\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 08:39:49 \u002B08:00\u0027 --until=\u00272026-11-10 08:39:49 \u002B08:00\u0027 --full-history --no-merges -- NodeProject/src/client.js\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":"NodeProject/src/client.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9989daa58d6ee2f8cd0b6eece7bc4df496d899f936cf6407654f87c7bff53d"}},{"ruleId":"D16","level":"note","message":{"text":"Small-team knowledge concentration: 1 file(s) are concentrated to one author \u2014 the ambient state with 2 active author(s), not 1 separate risks. The signal becomes meaningful as ownership spreads; no per-file action implied now."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8aa75b6daa18f1b578387fa04036c50b3163d47f957c8f5601bf083ed4489b0c"}},{"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 \u0060StoreHelper/authentication_errors.go\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/authentication_errors.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f6896ad63f8c9726c794a38137757a3beca7c51d22a9c910099ff2b9205cf3"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060versionID\u0060 spells \u0060ID\u0060 where 18 names in the project spell it \u0060Id\u0060: 18 of 19 names in project repository spell the token \u0060Id\u0060 (18 of 19; unit: names in project repository containing \u0060Id\u0060). Peers: catalog.extractAppId (NodeProject/src/catalog.js:22); catalog.appPriceInfo(appId) (NodeProject/src/catalog.js:192); catalog.extractStorefrontVersionId (NodeProject/src/catalog.js:209); catalog.extractStorefrontVersionId(appId) (NodeProject/src/catalog.js:209); catalog.storefrontCurrentVersion(appId) (NodeProject/src/catalog.js:230). Rename to \u0060versionId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/download-recovery.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ab8ba053cd73ff5c1eb60ea850a81a51adfc526e6dffbfb1070c698f9748d3"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022\u5BF9\u5E94 FailureTypeInvalidCredentials\u0022 repeats the code it sits on: 4 of its 5 words (failure, type, invalid, credentials) are already in \u0060const FAILURE_TYPE_INVALID_CREDENTIALS = \u0027-5000\u0027;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/gsa.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"906001e4877c185ed7e8ba7bc5168b6383785148676740ec6ca08e925b6fb42b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022failureType==\u0022\u0022 \u0026\u0026 customerMessage==\u0022Your account is disabled.\u0022\u0022 repeats the code it sits on: 6 of its 6 words (failure, type, customer, message, account, disabled) are already in \u0060if (failureType === \u0027\u0027 \u0026\u0026 customerMessage === CUSTOMER_MESSAGE_ACCOUNT_DISABLED)\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/gsa.js"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea5684450eed25a5ef29f72a0657565791a95d630ea54336a301298b649ed40"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 4 project(s) overshoot their size bounds, lowering Project Cohesion to 5.0/10. The most over is \u0060StoreHelper/ipatool\u0060 (25344 LoC, 104 module-visible types across 19 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"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":"4488ed6b0014c2da3e1db630bb24ded2786aef520c6690eb88d750a551655def"},"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":"7cbad4883b789c959f9f73f1f4999376ddd95c9452ae7a155f334b89ce7b30df"},"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":"61445b89657adc20bb8a7cbf6bfcf7535895e6152a92bdac8f36a58fc56f13ba"},"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":"daeebfa3e9c2e71b3d1c2d8d911b2e598cb68f1ef0de76cb7f694b7d4bae238d"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"32814f9acc9f93340873471d349af398968101027c39d076f3e4521da4ba73f3"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"c2c6a91f3e6093677b465a8c498956d4b60d794b410eb93da4e68672cd338581"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"6ecbbcd2b25be31b198f1b6274049b28075e23b9e641b17f309ec5bdc9029a77"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"03b44747c7fbbfd5a454a843eda30eaeb1d6932c1de92105606a26ff341146f9"},"taxa":[{"id":"CWE-310","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"f4dd2b6499ec6a670d49d041adada405f572897c72f1577d3229bd3b69a8a8c5"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"e5ab03723be8ecc4a5bf68971a6ac169af747cad710226262666f5186c803c8d"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-409","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"69693760d707e99680b69166bc6b2091c7d80d48f476b1d052dd2ad2eca5bc85"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-409","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"793a106f7034023f5d81b2cc9a1c952baabfa7b65da59b81a4d5d9623c5c8d5d"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-409","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"9c41f9d352ff8b4d06b0e2f9a9de2107ec147d0b69be86dc6c73b60738cbd74d"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"728967dd6517119a1c99cf701090a727631cb308250ba662c7ff4d2c2554197f"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"fa15d8c8f5820399e2e80a81158ae93ec74b374bdadbd6b47cc10be5a21aeefa"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"66d5e54576afb854e9d0abaaf73fbb8564bee0b3cc1660a37f522074aad3e6a4"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"6e884a5f3c5ed0b93181faf3831d5d6b21e0fdbf857a38b8993ff5bbcba9f75b"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"94e1c0b44690a01c7411bf3a3cd9962a9540e1d2a78d6e831f85719417e982df"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"0a1124fdbb0c671f73fad443eda10041cbe938581f9268ea30e7d20b47e7eba6"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"3396b11b67fa9a336e760db6206e8b34300acdf6e9fedf4ce63dd8e65ea070a9"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"09c1e9135034f053b909137f3553827b34b5d4cf4b23e42ebfbdc94000393605"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"90ba46350cab497db6a60f0f176bd6de82f36d627fef7a6a2eb262ef33360523"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"5c6e6e6071199eb76203d5ed49990010696d5f7dc4840da9880ff82ae3737758"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"faef18a5f17a686e8a2d74b9b78bc9e2a17dc5beeaab72371cb982a9bd6a0e9e"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"113f222c62e7124835089f504ac9426807a503f06e45dbde44ec90f41249dac8"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"53a032ccbe71aa8d4837bbeb0e1a78a51a2ceda424e0f163f962501b9c88f5ed"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"bceb94289c4d1c5f25c62653372642f4c1eba3e93958d85b605a5b4e1c20876d"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"26de680097e2338bd1eb724a827b9a7b7ec0436f5d0e7a4e44bdc6514d3e8da8"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"ac24047d1187ddc7e24e574ec68948d2f8d7d29116a37974f2d38978ee4339b8"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"279c175cf6faec4eb1c456b62f7dd64ed2dbe5902608f41be2ca6dd574e397e2"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"b48ca76f4283a3cf2fc274ddcf6a68aaed980b5c44d46dbe4e72d9c93b2b65b5"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"f91a497c9e9807edb8802197c77d678569f52d230754ae24b709a45b5e1325ef"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"8ac8352a1f5f4fb349c03b6390c9ab4a5995cd77e64f1dd7e878c98dc2b6667f"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"0640959de02014982d753535fde24dce123a196ea9e958399d3438f729e451f3"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"ab8bbe3e450d08badcc6b0dc222277116f9f086de4ec425cf42ebb02eb6042d3"},"properties":{"dependency":{"package":"brace-expansion","version":"2.1.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"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":"9a2a8c229e0e80d6a795c42ce2860ecda3a9cb35016d1f013fb8f207ab38680e"},"properties":{"dependency":{"package":"follow-redirects","version":"1.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9d3c96cbec4eb506e845650754eba6113b00b618320751567ba4ac8c53cb6720"},"properties":{"dependency":{"package":"stdlib","version":"1.26.5","advisory":"GO-2026-5026","aliases":["BIT-golang-2026-111943","BIT-golang-2026-33818","BIT-golang-2026-46600","BIT-golang-2026-56853","BIT-golang-2026-56857","BIT-golang-2026-56858","BIT-golang-2026-56859","BIT-golang-2026-56860","BIT-golang-2026-56862","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-5942","GO-2026-5972","GO-2026-6088","GO-2026-6089","GO-2026-6090","GO-2026-6091","GO-2026-6218","GO-2026-6599","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","GO-2026-6859","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"production","file":"StoreHelper/ipatool/internal/sap/assets/aea.go","line":264,"symbol":"http.NewRequestWithContext"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a4dcb6de9f407f14b4a4452e2035757aeb42308d626ad894095987485c41661"},"properties":{"dependency":{"package":"github.com/andybalholm/brotli","version":"1.2.1","advisory":"GO-2026-6888","aliases":["BIT-brotli-2026-111497","BIT-dotnet-2026-111497","BIT-dotnet-sdk-2026-111497","BIT-node-2026-111497","BIT-node-min-2026-111497","BIT-powershell-2026-111497","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-4322","PYSEC-2026-4323"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dc7d05e745566f58cb5c1bad05649e9b37b2db62fdf7c0c27a85c7d0272c5c1c"},"properties":{"dependency":{"package":"github.com/klauspost/compress","version":"1.18.7","advisory":"GO-2026-6865","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f291a5e609d36a9dd116728501a9d1b1766332e30edb7b137653446c0703782"},"properties":{"dependency":{"package":"golang.org/x/crypto","version":"0.57.0","advisory":"GO-2026-5932","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1ea4330ac0b1a3497c800547ca97b518b8b27b5678ea4b75e3506819c2aa33ba"},"properties":{"dependency":{"package":"stdlib","version":"1.26.5","advisory":"GO-2026-5026","aliases":["BIT-golang-2026-111943","BIT-golang-2026-33818","BIT-golang-2026-46600","BIT-golang-2026-56853","BIT-golang-2026-56857","BIT-golang-2026-56858","BIT-golang-2026-56859","BIT-golang-2026-56860","BIT-golang-2026-56862","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-5942","GO-2026-5972","GO-2026-6088","GO-2026-6089","GO-2026-6090","GO-2026-6091","GO-2026-6218","GO-2026-6599","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","GO-2026-6859","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"production","file":"StoreHelper/ipatool/internal/sap/assets/aea.go","line":264,"symbol":"http.NewRequestWithContext"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2d8e19f7bb6ad515fbc600731a43bf4cba73e882142ad46f60215c5e585504a6"},"properties":{"dependency":{"package":"github.com/klauspost/compress","version":"1.18.7","advisory":"GO-2026-6865","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"00fe5cd8c2d887caf5209410367661650b0a353e0ec50486baba4deda87777bf"},"properties":{"dependency":{"package":"github.com/andybalholm/brotli","version":"1.2.1","advisory":"GO-2026-6888","aliases":["BIT-brotli-2026-111497","BIT-dotnet-2026-111497","BIT-dotnet-sdk-2026-111497","BIT-node-2026-111497","BIT-node-min-2026-111497","BIT-powershell-2026-111497","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-4322","PYSEC-2026-4323"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5f32983fc2d06fd28bc06a8b873fcb1c430da55f91d16c9858c02bbeaf18903b"},"properties":{"dependency":{"package":"golang.org/x/crypto","version":"0.57.0","advisory":"GO-2026-5932","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5abcc0b3d8640557ae8f21c278e366bd4c04ed91a28c295772906abadc79d857"},"properties":{"dependency":{"package":"golang.org/x/net","version":"0.58.0","advisory":"GO-2026-6603","aliases":["BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78669","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6617","GO-2026-6860","GO-2026-6866"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b714c2d39a0669e5687285cb7e79dd0a80319f6f072364d0088af2eec6d46615"},"properties":{"dependency":{"package":"glob","version":"10.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ea3d319bc2d26c4f0ce25cc8b5a44c1669c5071c39cf897c620df0eacc0a73f7"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D32","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":"290c84a48b49dc3b5fed833fa21189c0dcab8341219578dbb9630033ce7e5129"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ipa.js \u2194 PastelApp.swift: \u0060NodeProject/src/ipa.js\u0060 and \u0060Pastel/PastelApp.swift\u0060 change together 62% of the time (8 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006020934736\u0060 Fix acquisition for third-party version downloads; \u00604b08d725\u0060 Release Pastel 20260901 device GUID fix; \u006054856189\u0060 Invalidate legacy StoreServices sessions \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bd85432ee1f56accd2bef8a818183269ad838d1d495f1e72dd8d9edb2ff83b"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P12","level":"warning","message":{"text":"Test suite runs only after the merge: \u0060store-upstream.yml\u0060 run(s) the test suite, but no workflow that runs tests is triggered by a pull request (or a merge queue) \u2014 so the suite reports on code that is already on the default branch. A red build there blocks nothing and the only remedy is a revert. Add the pull-request trigger to the workflow that runs your suite so the gate applies before the merge, not after it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"731ad560de6aa35d3e92103d5ad0fbec4c54f771b709281e852941847e03ef03"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060StoreHelper\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 gosec / govulncheck (or golangci-lint) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060NodeProject/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":"NodeProject/package.json"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd18cf07db65d3ba6970888bf79a9a8366812907cfb46a2fc634aceaa0e2104"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060open\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/gsa.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e21307f9172c3ec9999e55607949f1ea39fefa4b1d46d5fe84fead7fa5e0450"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060storeLogin\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/gsa.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"23dcebe70ded28a5968ac9f5c528b11cca079b77e823252da758fb27ca3ea17f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060storeLogin\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/gsa.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bdb6b9324168aeb926805f2843ae36c8a311bba56be7cf80ccde647ecb40fc"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060storeLogin\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/gsa.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c0643b6a09daf1f8792a2ac0fe180c39ba9305a1f99c960d110a2dea914359"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060runStoreHelper\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/store-helper.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"49161cd4098ecf6fec02ae88141e8c6f9aab9e854107f192b6ae8400f1eba05c"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 28 plain JS \u2014 the untyped files are NodeProject/main.js, NodeProject/src/Signature.js, NodeProject/src/catalog.js, NodeProject/src/client.js, NodeProject/src/credentials.js, NodeProject/src/device.js (\u002B22 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): NodeProject/src/catalog.js:174 \u00B7 NodeProject/src/catalog.js:307 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c627302bce5b90f8e294bfeb6fd12425ac67d2fdeaeaaf394f316d4021487de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): NodeProject/src/catalog.js:49 \u00B7 NodeProject/src/catalog.js:62 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e634ea4edd79dcd9180efd09dec574fc4632bb23698832a92e41eca843e98498"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): NodeProject/src/downloader.js:19 \u00B7 NodeProject/src/gsa.js:73 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/downloader.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3850e2ea396e2f4e4b72e81332a95e9dabf16c2aac46654bcc4945163eccf95e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): NodeProject/src/ipa.js:362 \u00B7 NodeProject/src/ipa.js:471 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b27a473fd5465a34eb6e0d548d793a1dd29261af381dc6c1b62e69013e7d89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _listVersionIdsOnce (cyclomatic 31, cognitive 42): _listVersionIdsOnce has cyclomatic complexity 31 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae34df39e3460f4906d58d72d264c517301f3e2e9873b3cd19137e580e13400a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runCommand (cyclomatic 26, cognitive 20): runCommand has cyclomatic complexity 26 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/main.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac45a8abed8568245ae85e2ab0ff469ad5e6a8cac38c5a712222610749e223e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseLoginResponse (cyclomatic 24, cognitive 26): parseLoginResponse has cyclomatic complexity 24 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/gsa.js"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f659bb82fe970671e81d3be8968076d4cb4deb56bb7f64fce7250a8ea84ed5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 23, cognitive 24): (anonymous) has cyclomatic complexity 23 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/main.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa9ed02e9c41fd15c47a769c446050161cb1517840601c5caf9c3b85e4393af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sapConfigurationFromBag (cyclomatic 19, cognitive 10): sapConfigurationFromBag has cyclomatic complexity 19 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/gsa.js"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9debf6c45ef593aee7d318771eebca4b5ad8fc9e32b1af2af5b2e1a20cb3d32"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchRankedRSSApps (cyclomatic 18, cognitive 31): fetchRankedRSSApps has cyclomatic complexity 18 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"9853b931c843498a46b407b36a1d8e93b4f70c7a658e871b5254857ea89637a8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sign (cyclomatic 17, cognitive 20): sign has cyclomatic complexity 17 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/Signature.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"191492429e0cd0ecc16b9570aab2b1ac655f11c73b73269de946fe50d3abb770"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeVersionRecord (cyclomatic 17, cognitive 9): normalizeVersionRecord has cyclomatic complexity 17 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"68554e8c9e733b55a2cb95f4225896cd6fd00f51c693cdf41b95dc3e6f01f426"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pickLang (cyclomatic 16, cognitive 12): pickLang has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/i18n.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"592e313ed657b40c327a4343a4f1214e76fa2b7ab2ff1d5c7782f116bda68b3c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function featuredApps (cyclomatic 13, cognitive 18): featuredApps has cyclomatic complexity 13 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfb4a99df415fe36041de7183957667df2b30bbdf0fbedd9025e27b03c0fc0a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runDownload (cyclomatic 13, cognitive 16): runDownload has cyclomatic complexity 13 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"f032116e5579e3e2ea1345b87136e17964ab703a24b6a9c53e31ffaf4ffba99f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/store-helper.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"912d970b0c61c8d7dc98b4dd70837ad791d8c82c45a7f4407f86317bf91455c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function helperUser (cyclomatic 13, cognitive 12): helperUser has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/store-helper.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"493925ce0c89a234c0c7de1b3662e8011a6d8082132fc42be50e0ae992e31879"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function downloadInfo (cyclomatic 12, cognitive 18): downloadInfo has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"171aadeba7a12a6f00532efe59233cd8a88e409f1ba9cd6b0f62ed3100c71e09"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function login (cyclomatic 12, cognitive 17): login has cyclomatic complexity 12 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c46b0e985e2420bcaa9d15164a5384b6368ae8d3c3eab1e37eee8fa9d141ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #storePost (cyclomatic 12, cognitive 12): #storePost has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/client.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"df36578414c6a1ae32f2dc99b41aef7fcc5342123647252cf18a1db1193ac9d2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validSessionFor (cyclomatic 12, cognitive 10): validSessionFor has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b514ba2704b6b3fbb95c716ec42ab7407e4bf397261a153c221893b83717228a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function helperRequest (cyclomatic 11, cognitive 12): helperRequest has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e28f822256681f21acb6b68e46481d9339e54ccff4ab0703cab4f372f70d62"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function systemProxy (cyclomatic 11, cognitive 10): systemProxy has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/downloader.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4ae1f0721e8882fcc386ee9dfec1449b612819bba97886ff8c4d359e02e262"}},{"ruleId":"R3","level":"warning","message":{"text":"NodeProject/src/catalog.js: 538 lines of code: NodeProject/src/catalog.js has 538 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"163f1b76fc7125e03e48e6bd7fe2bf60945ea334556f3f7e7465c8af102c982e"}},{"ruleId":"R3","level":"warning","message":{"text":"NodeProject/src/ipa.js: 535 lines of code: NodeProject/src/ipa.js has 535 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92df3bfabcd3d071b2429277e5af7c50d6b6bef938a1fb569ae22a0caf0083ea"}},{"ruleId":"R3","level":"warning","message":{"text":"NodeProject/src/i18n.js: 528 lines of code: NodeProject/src/i18n.js has 528 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/i18n.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5b71de06b8fd4db5081c5d850de2d3fc53f434cfb671338609fb8a3d0481a3"}},{"ruleId":"R3","level":"warning","message":{"text":"NodeProject/src/gsa.js: 446 lines of code: NodeProject/src/gsa.js has 446 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/gsa.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78255b3a1b3b2c542abca794d2a4169bcdaeac65207cf01a8f72aa7fd5f47a20"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint or typecheck script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2717 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"658a995477a4f3b704a1d0c61d78cffb4c5cc1944c2f896c1bb70ee901a201cf"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027storeLogin\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/gsa.js"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c1e4c15b154390c987a1fa2318f53f5009f2c3e932d3ff3ecdfbfcef57eec8"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027currentLang\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/i18n.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"260c32fc9312859bd0f615325b1b7a8c3dcaf3275303323fdcd4245de476ef17"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027reportStorePhase\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/store-helper.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"46736738224470413ec380e2236d59a67c077d7bcb90eb9ef636a7eed610fca2"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027axios-cookiejar-support\u0027: Declared in NodeProject/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"33be4fca97c99518d5d1fbfc7c7ce56255979709f3ed8a5e62a43dec9e54251e"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027fetch-cookie\u0027: Declared in NodeProject/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ed853bd0fe67b44f003d2be610abffd226b68682272e605ad182a651f66738b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !errors.Is(err, os.ErrNotExist)\u0060 appears character-identically in 2 files \u2014 StoreHelper/ipatool/internal/sap/unicorn/cache.go, StoreHelper/ipatool/internal/sap/unicorn/runtime_library_windows_arm64.go. 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":"StoreHelper/ipatool/internal/sap/unicorn/cache.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41141425daad6b7d4612ed5c65b8c7de83ba62a4dc877b7e263c95102b5124c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil || len(decoded) == 0 || len(decoded) \u003E anisetteLimit\u0060 appears character-identically in 2 files \u2014 StoreHelper/ipatool/internal/storeauth/anisette.go, StoreHelper/ipatool/internal/storeauth/store_provisioning.go. 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":"StoreHelper/ipatool/internal/storeauth/anisette.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bde85382a46a508ce91f79c77efc78c6f00eb974a51a197cce87607a5ba187a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil || parsed.Scheme != \u0022https\u0022 || parsed.Host == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 StoreHelper/ipatool/internal/store/emulator/anisette.go, StoreHelper/ipatool/pkg/appstore/appstore_bag.go. 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":"StoreHelper/ipatool/internal/store/emulator/anisette.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f44b31ae452c0b1a88266a7d8d0a8dc87c86a18561a9140c8deeb2f682ca80"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060externalVersionID == \u0022\u0022 \u0026\u0026 (input.Platform == PlatformAppleTV || input.Platform == PlatformWatchOS || input.Platform == PlatformVisionOS)\u0060 appears character-identically in 2 files \u2014 StoreHelper/ipatool/pkg/appstore/appstore_download.go, StoreHelper/ipatool/pkg/appstore/pastel_native.go. 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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed86cd0aa28ae60283fcbb43494c89449b610db1804d9141f03f7697bc553716"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060input.Platform == PlatformAppleTV \u0026\u0026 (errors.Is(err, errPlatformAppNotFound) || errors.Is(err, errPlatformOffersNotFound))\u0060 appears character-identically in 2 files \u2014 StoreHelper/ipatool/pkg/appstore/appstore_download.go, StoreHelper/ipatool/pkg/appstore/pastel_native.go. 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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7d184992960f11541a0ad2417a197f7d4edaebc4cca87fb53b6ad87a45169e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(key) \u003C 2 || key[1] \u003C \u0027A\u0027 || key[1] \u003E \u0027Z\u0027\u0060 appears character-identically in 3 files \u2014 StoreHelper/ipatool/internal/store/emulator/accounts.go, StoreHelper/ipatool/internal/store/emulator/bridge.go, StoreHelper/ipatool/internal/store/emulator/network.go. 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":"StoreHelper/ipatool/internal/store/emulator/accounts.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ad97137d2558783f98c9b8b77c50f095979e96f5cdb96e05fb0db38218a1ce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(parts) == 3 \u0026\u0026 parts[0] == \u0022Payload\u0022 \u0026\u0026 strings.HasSuffix(parts[1], \u0022.app\u0022) \u0026\u0026 parts[2] == \u0022Info.plist\u0022\u0060 appears character-identically in 2 files \u2014 StoreHelper/ipatool/pkg/appstore/appstore_download.go, StoreHelper/ipatool/pkg/appstore/appstore_partial_zip.go. 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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"9def6bdcf6efd3fedd6f5262b8f715739314d434b0853681f780b3098a9df79d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(t.anisetteState) == 0 \u0026\u0026 t.keychain != nil\u0060 appears character-identically in 2 files \u2014 StoreHelper/ipatool/pkg/appstore/appstore_amd.go, StoreHelper/ipatool/pkg/appstore/appstore_native_login.go. 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":"StoreHelper/ipatool/pkg/appstore/appstore_amd.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa60a6bd009f8bed882a38032944c63b5f4527cb1946965c5d855e6025dc329d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060page.Address%4096 != 0 || page.Offset != uint64(i)*4096\u0060 appears character-identically in 2 files \u2014 StoreHelper/ipatool/internal/store/profile/profile.go, StoreHelper/ipatool/internal/store/profilegen/emit.go. 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":"StoreHelper/ipatool/internal/store/profile/profile.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"30577ec8e61c52e494e98a8827b0902f2e79b88174f5935c12c56f73ff1cf027"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060res.Data.CustomerMessage != \u0022\u0022 \u0026\u0026 (res.Data.FailureType != \u0022\u0022 || len(res.Data.Items) == 0)\u0060 appears character-identically in 4 files \u2014 StoreHelper/ipatool/pkg/appstore/appstore_download.go, StoreHelper/ipatool/pkg/appstore/appstore_get_version_metadata.go, StoreHelper/ipatool/pkg/appstore/appstore_list_versions.go, StoreHelper/ipatool/pkg/appstore/pastel_native.go. 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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75cdab591030166d92afb6cd4a68aeaf636b934f62dd97734894cfcec9f3177"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060res.Data.FailureType == FailureTypePasswordTokenExpired || res.Data.FailureType == FailureTypeSignInRequired\u0060 appears character-identically in 2 files \u2014 StoreHelper/ipatool/pkg/appstore/appstore_get_version_metadata.go, StoreHelper/ipatool/pkg/appstore/appstore_list_versions.go. 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":"StoreHelper/ipatool/pkg/appstore/appstore_get_version_metadata.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9e705645c463578cd3b82e90c570f014f0137da2557811e19d05d88845a48b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060res.Data.FailureType == FailureTypePasswordTokenExpired || res.Data.FailureType == FailureTypeSignInRequired || res.Data.FailureType == Fail\u2026\u0060 appears character-identically in 2 files \u2014 StoreHelper/ipatool/pkg/appstore/appstore_download.go, StoreHelper/ipatool/pkg/appstore/pastel_native.go. 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":"StoreHelper/ipatool/pkg/appstore/appstore_download.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"72afb4563e65e78bcd2652940ba040b04504269b175470959a69efd7078f1a47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sec.Flags.IsPureInstructions() || sec.Flags.IsSomeInstructions()\u0060 appears character-identically in 3 files \u2014 StoreHelper/ipatool/internal/store/profilegen/collect.go, StoreHelper/ipatool/internal/store/profilegen/discover.go, StoreHelper/ipatool/internal/store/profilegen/source.go. 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":"StoreHelper/ipatool/internal/store/profilegen/collect.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f77a3e511578d4193d54b754be9ae36359a1d18b32e96f8d6089188cc47b804"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.HasPrefix(selector, \u0022set\u0022) \u0026\u0026 strings.HasSuffix(selector, \u0022:\u0022) \u0026\u0026 strings.Count(selector, \u0022:\u0022) == 1\u0060 appears character-identically in 3 files \u2014 StoreHelper/ipatool/internal/store/emulator/accounts.go, StoreHelper/ipatool/internal/store/emulator/bridge.go, StoreHelper/ipatool/internal/store/emulator/network.go. 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":"StoreHelper/ipatool/internal/store/emulator/accounts.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf4b78fad35c921cf4d0b3099147e91017a3cd8e90283514e98122a6357b8f0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060out.match(/HTTPSPort\\s*:\\s*(\\d\u002B)/) || []\u0060 appears character-identically in 2 files \u2014 NodeProject/src/downloader.js, NodeProject/src/gsa.js. 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":"NodeProject/src/downloader.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f5752231fc4a7fa0e6e4bd0af5639ebe31eb38b1abda75d20ccad9e55d52f7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060out.match(/HTTPSProxy\\s*:\\s*(\\S\u002B)/) || []\u0060 appears character-identically in 2 files \u2014 NodeProject/src/downloader.js, NodeProject/src/gsa.js. 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":"NodeProject/src/downloader.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a271153544d029dc3371277b5f22c51703fd089be7182e201156a30b23ec8be"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.XDG_CONFIG_HOME || path.join(os.homedir(), \u0027.config\u0027)\u0060 appears character-identically in 2 files \u2014 NodeProject/src/device.js, NodeProject/src/ipa.js. 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":"NodeProject/src/device.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"20174f389d1b2cdc9cfb959d1084a72e56545d2d1956134756447069c16b7bcc"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a context.Context or an AbortSignal: Only 13/24 functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http; net/http, net.Dial) accept a context.Context or an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, a cancelled request, a shutdown, an expired deadline. Take a \u0060signal\u0060 (Go: \u0060ctx context.Context\u0060) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"577196fe89725f9b0e6c2faf89eceb8eb245919bd44e4439e0b0d649c1ee1c53"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchVisionAppIDs: \u0060fetchVisionAppIDs\u0060 awaits \u0060catalogClient.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060catalogClient.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f25a934120c427a235898205d8e2e733e43fd5825d4121e0665631be7d209a4"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: lookupAppsByIds: \u0060lookupAppsByIds\u0060 awaits \u0060catalogClient.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060catalogClient.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bd98e8bc18157f46bcaf17c72bf9bfbe380237e614f6bafc38d4eec24716a5"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: appPriceInfo: \u0060appPriceInfo\u0060 awaits \u0060catalogClient.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060catalogClient.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7b73bbe9582f2cd200e61f8691b5a3a0c57057ee4d91f0f55328d8f4e42d50"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: storefrontCurrentVersion: \u0060storefrontCurrentVersion\u0060 awaits \u0060catalogClient.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060catalogClient.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0ebb185fb1256fea728485e5003ed4b0d5c7a1a1c9f6495b5e1ecc5a5f7a4d"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: platformCurrentVersion: \u0060platformCurrentVersion\u0060 awaits \u0060catalogClient.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060catalogClient.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c74524e75748205c25025d59646cb1f7907870131611dc3b37b8792f233740"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: lookupApp: \u0060lookupApp\u0060 awaits \u0060catalogClient.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060catalogClient.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"07feea85ccef1e1964b7c47a7971c8aa4ee59da9bfd3d2b303fb9f619eb4e464"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: searchApps: \u0060searchApps\u0060 awaits \u0060catalogClient.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060catalogClient.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"4475c9d3e0f789bade687830decaec543381be9ad46cde23a5c6de05432db260"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchRankedRSSApps: \u0060fetchRankedRSSApps\u0060 awaits \u0060catalogClient.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060catalogClient.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"3213ca4bea2eedcd7f4a3d3815d9a1990514e265853fe7cd34c5d1cad2164cd7"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchTimbrdVersions: \u0060fetchTimbrdVersions\u0060 awaits \u0060catalogClient.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060catalogClient.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"5577114c7a92154663633901d7daa0d7c06ff83c43f96d057f8013b0397939e2"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchAgzyVersions: \u0060fetchAgzyVersions\u0060 awaits \u0060catalogClient.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060catalogClient.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"24239619fce32e0d486ffdbbe80caa1dae0588faaaf8013df53924ae00a6377c"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchBilinVersions: \u0060fetchBilinVersions\u0060 awaits \u0060catalogClient.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060catalogClient.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/catalog.js"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3a93a5a076b2ff621b84ff3619e1ddae4f23de24d6498f9725f9e0b6c376cd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\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":"StoreHelper/authentication_state.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"933b287c6763e57b6fad2848e14368eb5dc7c442c0f810ce24592dc756f7d3a8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\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":"StoreHelper/transfer.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf444dc1c502a73e3fb46a846f64efefd7507ea74cefae0d4302a335e22e4509"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := getIfEntry2Ex.Find(); err != nil\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":"StoreHelper/ipatool/pkg/util/machine/mac_address_windows.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f88b797d4d0b200a8fe596b62683b878be6bbeca71e3e74dccd6cec689fec29"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := windows.GetIfEntry2Ex(windows.MibIfTableNormalWithoutStatistics, \u0026row); err != nil\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":"StoreHelper/ipatool/pkg/util/machine/mac_address_windows.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4cc31acbc8bd814e0d756527d86666718dc60d078bdb6228c4a824154687bb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\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":"StoreHelper/ipatool/pkg/appstore/appstore_kbsync_cache.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa775bb90312b070ddef2bcc9b32ec45470521c80688d009c9c629f821ecd18e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\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":"StoreHelper/ipatool/pkg/appstore/appstore_kbsync_cache.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63ddcc078ea4fc94702944e7c397e740e7909eb6fda84e313dd6baf6b72f978"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(item.Lockup, \u0026lockup); err != nil\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":"StoreHelper/ipatool/pkg/appstore/appstore_storefront.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cc9efeded71bc566493daa14e804c326b8c76563e70eaacc4454802a9b9920"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(data, \u0026value); err != nil\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":"StoreHelper/ipatool/pkg/appstore/appstore_storefront.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1721d7bad7de783dde52d1ec6cb25a0bcc829800b5e60697a979f635e1ca7cf4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\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":"StoreHelper/ipatool/internal/sap/unicorn/cache.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a368303dcf497c706018742fbbcce1b125ccbc9a297aef0a30a563c6ef574db"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\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":"StoreHelper/ipatool/internal/sap/machine/arm64.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32ea751454757bd68c55485758868e25db524ffc8d6f7f4ec55dd7f4c933517"}},{"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":"Pastel/PastelApp.swift"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7acef25a97a653aa35466ae4dbbc267de3774702218b5c3e3328141413902c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/Signature.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c09b91d0a8f41b8d1e32b8eb149b9519b334fdb6449e3b753e3a54ad48f7de"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/Signature.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa931574695e7bff72a35b8bff14a1b223c131aa83dea7ca49789230ea0c84db"}},{"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":"NodeProject/src/catalog.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00d92fedec0652ab4677a323d7a0657b196be4760d9db0ebeaa52aadf2b0033"}},{"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":"NodeProject/src/catalog.js"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe541d57db1e74d0c344af25a536f49159357173f3e28062293aa099ffab8568"}},{"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":"NodeProject/src/device.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"25accd96a68b11734ab9ba9849f13b5314966efe7100350a408ce3901a619ddb"}},{"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":"NodeProject/src/device.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e35c0c6f0fe3cea59db013b8cf08438e908a5a80d4e43f1589dc98808ab3e2"}},{"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":"NodeProject/src/downloader.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"346d34889e2d780fda9d09369225afc3d489793f7824269d4582cb58d607d3f6"}},{"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":"NodeProject/src/downloader.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22893d545f701c3f3acc16c40d9a2bdf63c815f16f9062681448ae2c82fe3c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/downloader.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"14648b554596e9e4138e59e9f3e73bb4216fe32e230034bda8b548de1f1f5c22"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/downloader.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae30aa1c14cf3dda5914ee044facc394e361d5959e5448fbb9190e655b7652d"}},{"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":"NodeProject/src/gsa.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd5c9177b0bc5e2526742ae826871c9608fde9e91790422a217dedbaefbe1a8"}},{"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":"NodeProject/src/gsa.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"640f5d432d89c5abbbaaaa79ce7f89d52561f832f31b263a95759fdd93330dc6"}},{"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":"NodeProject/src/gsa.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d98e323284a066d38bff0220863992a58e5eb786f01dc99553f6eabfaa9bf60"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"e690ef629019bd6af348a79eacff0bc4a4fc8aa84bb435a10f4d855e17bb2499"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"378f1b68232171eff232f77ad599b075afaf2479def5dd96a1d25ab4c1154583"}},{"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":"NodeProject/src/ipa.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"389989dc7d96a0dfe0e9273648c1ebea2737fe72b34f952e7a20e59adcd51580"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"8312ee2f86b76119c580f62a2f34ba76e4485d5fbfabfa3a285ed96c0f766ad4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/ipa.js"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"facbdc55dc87c3021dcaac75fcc38027d2ab8cf354eadfeaac7bcba7f57be1d1"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Go code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/http/client.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"247453b2509c91b4f05e89b62bf98ea75e8b8c6e208f84ba6795de540e89ebf9"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Go code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/http/client.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e1199bddcae068446b1dcff41879e0777d619c80a66bee2dd9ffadef04f9d6"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Go code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/http/client.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"deecce3c540ba4c990aea64e194f142f90f68d4d72eb33bdb2f251fbfa949156"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060authenticationStateDirectory\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/authentication_state.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e755b748409e6bc4f5663b67027313754903eafab6a455ce4cc8f6ffd41cebcb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cachedKBSync\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 on the \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StoreHelper/ipatool/pkg/appstore/appstore_kbsync_cache.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd11fe6e733c5326c3d5c8fc0e0dc32a2596b503566d4841477e13bb438477d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060systemGuid\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"NodeProject/src/device.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eba5be6d29a58b8107db2b085fbaf53a1d4673ba6eb282aeeff722696852cee"}}],"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-1004","guid":"872195c9-bb07-cf51-8a32-865f4bb753ca","name":"Sensitive Cookie Without \u0027HttpOnly\u0027 Flag","shortDescription":{"text":"Sensitive Cookie Without \u0027HttpOnly\u0027 Flag"},"helpUri":"https://cwe.mitre.org/data/definitions/1004.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-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-242","guid":"5c147e5c-be37-b051-9928-764ef5a8f3d3","name":"CWE-242","shortDescription":{"text":"CWE-242"},"helpUri":"https://cwe.mitre.org/data/definitions/242.html"},{"id":"CWE-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.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-310","guid":"97174724-2e33-8455-b7cd-5c3258d1cb8f","name":"CWE-310","shortDescription":{"text":"CWE-310"},"helpUri":"https://cwe.mitre.org/data/definitions/310.html"},{"id":"CWE-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.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-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.html"},{"id":"CWE-400","guid":"ca529a89-676d-8857-aac1-84359c77bb6c","name":"CWE-400","shortDescription":{"text":"CWE-400"},"helpUri":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-409","guid":"822967b4-c402-c453-948f-c5c279b4a370","name":"CWE-409","shortDescription":{"text":"CWE-409"},"helpUri":"https://cwe.mitre.org/data/definitions/409.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-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.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-704","guid":"50bd74b4-a921-5159-8671-99fd7e78c810","name":"CWE-704","shortDescription":{"text":"CWE-704"},"helpUri":"https://cwe.mitre.org/data/definitions/704.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":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"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":52,"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."]}]}