{"$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":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"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":"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":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02: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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXR1","name":"Runtime accessibility","shortDescription":{"text":"Runtime accessibility"},"helpUri":"https://codehealth.canine.dev/dimensions/AXR1"},{"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":"P11","name":"BDD / executable specs","shortDescription":{"text":"BDD / executable specs"},"helpUri":"https://codehealth.canine.dev/dimensions/P11"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"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":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"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":"cli.runAgent (cyclomatic 469): cli.runAgent has cyclomatic complexity 469 (threshold 15). Of this number, 425 points are the body\u0027s own statements and 44 belong to 13 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":"internal/cli/run.go"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7270d03a1b4b946360812418d93c71b87fc30347abf2b887d94dfbc5938376"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.rotateOneRole (cyclomatic 163): repos.rotateOneRole has cyclomatic complexity 163 (threshold 15). Of this number, 160 points are the body\u0027s own statements and 3 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8c2bd4537293c8c3f93e3b10784b5669ef84ef3ffdb8274721937bc4ffa1ea"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runReposInstall (cyclomatic 154): cli.runReposInstall has cyclomatic complexity 154 (threshold 15). Of this number, 138 points are the body\u0027s own statements and 16 belong to 4 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":"internal/cli/repos.go"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"a829dd8cf80cbaefc1626456fc6112a13aea117176df732df17b787fc77e7921"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.resolveFromLock (cyclomatic 149): cli.resolveFromLock has cyclomatic complexity 149 (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":"internal/cli/lock.go"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4dbe65f202c38961d9631b54b92509c3f940496994a13d5e84137efc1f7b76"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.Run (cyclomatic 139): Poller.Run has cyclomatic complexity 139 (threshold 15). Of this number, 126 points are the body\u0027s own statements and 13 belong to 5 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":"internal/poll/poll.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d8183940fe2f57260a1782306a2f89d2fd79d170a43c578a7dc9dbdfc9129e"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.Converge (cyclomatic 122): repos.Converge has cyclomatic complexity 122 (threshold 15). Of this number, 86 points are the body\u0027s own statements and 36 belong to 4 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":"internal/repos/converge.go"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b96037d8b2588fc89a44ea61334c5ade1738deba2faa53467b899895660b1fb"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runPerRepoInstall (cyclomatic 110): cli.runPerRepoInstall has cyclomatic complexity 110 (threshold 15). Of this number, 100 points are the body\u0027s own statements and 10 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":"internal/cli/admin.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02727ae5a3e126bfd5f49f9abe58d9bad9ce310905b107f1bc4e7d1361bc9d9"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.ensureGitLabWebhookFastPath (cyclomatic 108): repos.ensureGitLabWebhookFastPath has cyclomatic complexity 108 (threshold 15). Of this number, 100 points are the body\u0027s own statements and 8 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"48236f6d8756bd3f3efc5ff7a4e91ce057bef716c2d2dd7ae7243edf3b6d8296"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.convergeRepo (cyclomatic 83): repos.convergeRepo has cyclomatic complexity 83 (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":"internal/repos/converge.go"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15fefc834c15561a7614445b0bf4a74d13ffbab9dc43681d5cdbddd240185fe"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.parsePiStream (cyclomatic 83): runtime.parsePiStream has cyclomatic complexity 83 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 29 belong to 6 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":"internal/runtime/pi_progress.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cae2ac5f645f1a10ca7c15ba2790cb797d6d0a31767fdb3a52dabe63d42dce5"}},{"ruleId":"D1","level":"warning","message":{"text":"Provisioner.provisionSelfManaged (cyclomatic 79): Provisioner.provisionSelfManaged has cyclomatic complexity 79 (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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a0e0850c54a2b346e006b0cf0904aad5e1fdd69e1ec040359dfcaf9eced4f2"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runMintDeployCloudflare (cyclomatic 77): cli.runMintDeployCloudflare has cyclomatic complexity 77 (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":"internal/cli/mint.go"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"1070847135b82fec96775ca1d7111f1ef3dce1b967e2987bb4d11e941fc9e5a0"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runGitHubSetupPerRepo (cyclomatic 74): cli.runGitHubSetupPerRepo has cyclomatic complexity 74 (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":"internal/cli/github.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e57e24d75c2bdd42504fd20345fd7beac6e4aab3b29b155a5c0c16a507a6a9"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.CleanupScenario (cyclomatic 74): steps.CleanupScenario has cyclomatic complexity 74 (threshold 15). Of this number, 69 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":"pkg/behaviourtest/steps/cleanup.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2bfddc5c5df3f44f3a2ed41a3fd207306d5b80799c4d873ed4a0423a301e33"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.convergeRefFiles (cyclomatic 71): repos.convergeRefFiles has cyclomatic complexity 71 (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":"internal/repos/converge.go"},"region":{"startLine":2979}}}],"partialFingerprints":{"codehealthFindingId/v1":"285ade7b84ebc57edad74971e20fbfa420a35300859a86f393add18ecfa0409f"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.resolveBaseScripts (cyclomatic 69): harness.resolveBaseScripts has cyclomatic complexity 69 (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":"internal/harness/compose.go"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"62277258ce124096557af373095a943077947d76dbef44fe6b623b24ca05a7c6"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.parseClaudeStream (cyclomatic 68): runtime.parseClaudeStream has cyclomatic complexity 68 (threshold 15). Of this number, 66 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":"internal/runtime/claude_progress.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7cbbe4e598c0f61eb4c95cb703e81f26fb1a36a87eaa42d024197c8086d07a"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.discoverAllEvents (cyclomatic 63): Poller.discoverAllEvents has cyclomatic complexity 63 (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":"internal/poll/events.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7ddee2e9059a1c0ef6b7e0e8edd75bac71f9e9c3c4dcad2d1e284f947538c1"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.lockOneAgent (cyclomatic 59): cli.lockOneAgent 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":"internal/cli/lock.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d6c11c7945dbcfb0b3b8cbea897278403df138a78e9d0039450b1570a47804"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.ProbeComponentsForAuth (cyclomatic 59): repos.ProbeComponentsForAuth 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":"internal/repos/probe.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ebe94052171905f7b00f95e001517c4e0d0c2070f5f9c328747d4b758d5697"}},{"ruleId":"D1","level":"warning","message":{"text":"slotAllocator.Claim (cyclomatic 58): slotAllocator.Claim has cyclomatic complexity 58 (threshold 15). Of this number, 57 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":"pkg/behaviourtest/drivers/install/slotpool.go"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"684d7c91f596162d8112b0ec3476ddd7720621d884124966eb2d7b5d7e989e69"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runMintStatus (cyclomatic 56): cli.runMintStatus has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"0405b12a79acedd3e7fbae4ca5b2ef11810c6856d6469f3a097598554d4d29d3"}},{"ruleId":"D1","level":"warning","message":{"text":"resolve.ResolveHarness (cyclomatic 56): resolve.ResolveHarness has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/resolve/resolve.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fccefe1d3bd0f4fbe8f1760ad098b39ebf4c4782820217af1a90b6d34ae734b"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.parseCodexStream (cyclomatic 56): runtime.parseCodexStream has cyclomatic complexity 56 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 31 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":"internal/runtime/codex_progress.go"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a5da5fbec6102a90228e49f4e1a554aecf72ea565dc9006717faf851970f2d"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.decodeGitLabTriggerAccountState (cyclomatic 54): repos.decodeGitLabTriggerAccountState has cyclomatic complexity 54 (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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec1edd531edf18218931bf68905bfb08f2a97d704fdf861e44c4dc45959cb66"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.DiagnoseGitLabWebhook (cyclomatic 54): repos.DiagnoseGitLabWebhook has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook_status.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4845e47c43babb1ace16d9c44d226e385219c1ab6486528c9ad26729fe62fae1"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.serveHTTP (cyclomatic 53): Handler.serveHTTP has cyclomatic complexity 53 (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":"internal/mintcore/handler.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bccd617caa4789c5c9cc6a0e65266c46532bb4b22acf48a2c711bd021b6ee73"}},{"ruleId":"D1","level":"warning","message":{"text":"Manifest.validate (cyclomatic 52): Manifest.validate has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf4bf15202f59a36791f723d65473a7a6358704295b85bcf310ff0535bc0bee"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.toNormalizedEvent (cyclomatic 51): Poller.toNormalizedEvent has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/convert.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ce96a2bcd8076b2f7fe09a71209a9e407c124fb6534ed21226fbad1f0bb3ac"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.resolveBaseResources (cyclomatic 49): harness.resolveBaseResources has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"2719e1374adfa4eb9774a12403f33beb4ba80c8ac34cc00c209b9f1633d2a94f"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.decodeClaudeTaskProgress (cyclomatic 49): runtime.decodeClaudeTaskProgress has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/claude_task_progress.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd1f08316fbfbda863c03def57d29141ae31eb74a31958fa909bf4170242f40"}},{"ruleId":"D1","level":"warning","message":{"text":"Harness.ValidateResourceTypes (cyclomatic 48): Harness.ValidateResourceTypes has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/harness.go"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6101779856be310108f82e3f0232c161e9c6a98f98b4a9514e53e7dedf0b363"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.triggerExtraWorkProblemForSource (cyclomatic 48): repos.triggerExtraWorkProblemForSource has cyclomatic complexity 48 (threshold 15). Of this number, 44 points are the body\u0027s own statements and 4 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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1718805ad7a6d7ff9a16234c6da843159bb977ff301450742a7629be507fa7"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.executeBehaviourOp (cyclomatic 47): runtime.executeBehaviourOp has cyclomatic complexity 47 (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":"internal/runtime/dummy.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"4caf4de010f7e133ff11e9bf8b6ff240ed62bf3d57f2d6388437e22f2f26da4d"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexRuntime.Run (cyclomatic 47): CodexRuntime.Run has cyclomatic complexity 47 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 2 belong to 2 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":"internal/runtime/codex_run.go"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"19041b239155a0e537b57e61a516a8b745601408ac4a54203d062829c3d46a6c"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.commitFilesTo (cyclomatic 46): LiveClient.commitFilesTo has cyclomatic complexity 46 (threshold 15). Of this number, 44 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":"internal/forge/github/github.go"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"17af637886b4109eed4fd5dfcb23bbdd376553086f23f25bf38236d65d95c2d1"}},{"ruleId":"D1","level":"warning","message":{"text":"progressReconciler.task (cyclomatic 46): progressReconciler.task has cyclomatic complexity 46 (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":"internal/runtime/task_progress_reconciler.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8867bc58970e7b2f9530c7b373118f5c2ec42d48b5c58248edd8b0347a1eda03"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runReposUninstall (cyclomatic 45): cli.runReposUninstall has cyclomatic complexity 45 (threshold 15). Of this number, 38 points are the body\u0027s own statements and 7 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":"internal/cli/repos.go"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"444a9803c3e7a7c16bf0cff2823e7237fde4c1281ef4aa312745132213b44e6c"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.mintPollerOwnedTrigger (cyclomatic 45): repos.mintPollerOwnedTrigger has cyclomatic complexity 45 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 3 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":"internal/repos/gitlab_webhook_poller.go"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e03ed9c404444b111123f1b9d1e4058d4794b7d3837fa8a9867685571733312"}},{"ruleId":"D1","level":"warning","message":{"text":"pollerGenerationRun.attemptTrigger (cyclomatic 45): pollerGenerationRun.attemptTrigger has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_poller_generation.go"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b5f7f4e9cd1cd1ac9d210bd9372b86ab22947f2a067516e7807866461d01fa"}},{"ruleId":"D1","level":"warning","message":{"text":"posttool_chain.main (cyclomatic 45): posttool_chain.main has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/posttool_chain.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1d578629ef66702e11381e08df1bca19aa2eee0f3dc02f111d89dd7be80da5"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.LoadWithBase (cyclomatic 44): harness.LoadWithBase 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":"internal/harness/compose.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48051718098db07fbb8d5ec180ac3a835cd51687f49eafabcd2484b0ab63932"}},{"ruleId":"D1","level":"warning","message":{"text":"Harness.Validate (cyclomatic 44): Harness.Validate has cyclomatic complexity 44 (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":"internal/harness/harness.go"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cf63c40c37162eb94b1d9494bacacf964ae788c3a12f781b3d0a3987d0bc82"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.Install (cyclomatic 44): repos.Install 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":"internal/repos/install.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20b5e4f2a9ae88a60879e8b13a0b6c9a04fa889af66df04050f27a8997ab900"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.decodeClaudeStatusProgress (cyclomatic 44): runtime.decodeClaudeStatusProgress 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":"internal/runtime/claude_status_progress.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"438b089bf71a8c9daeb64e0d536eaa7c4aa8af7ce8b067f3c90ff7bc681f8fa0"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexRuntime.Bootstrap (cyclomatic 44): CodexRuntime.Bootstrap 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":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"68418cff528ea133f00ee4b6e8b31751b7374a259fa625de4f5a827d7cbd72e8"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.checkRepoStatus (cyclomatic 43): repos.checkRepoStatus has cyclomatic complexity 43 (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":"internal/repos/status.go"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1196016210310e92532363c5ab15228fc3d9add7eb3c0495f6d486bb9b9000"}},{"ruleId":"D1","level":"warning","message":{"text":"Manifest.validatePlatformRepos (cyclomatic 43): Manifest.validatePlatformRepos has cyclomatic complexity 43 (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":"internal/repos/manifest.go"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5cf602792746ad20fb614adcb4ce63d276a33fb12b427a07f2bfe4f46f27ec"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.resolveAgentNewOptions (cyclomatic 42): cli.resolveAgentNewOptions has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/agent_new.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c87343b326249dc2790e2d71fdbff58e356571a5ba9c59fd2a724b73bd5d12"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.doRequest (cyclomatic 42): LiveClient.doRequest has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec1af58339967f0ea75d61f6d8671e7f4683590f09253ee82063825d1f36c9d"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.provisionOwnRoles (cyclomatic 42): repos.provisionOwnRoles has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_roles.go"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8361efa487e1863e82dd5db10d71ef004b4c4505fe4d609517a718439ddf8bd"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.uninstallRepoResources (cyclomatic 42): repos.uninstallRepoResources has cyclomatic complexity 42 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 8 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":"internal/repos/uninstall.go"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"596b5dba8695e2ecebd6f7ac1d2871db8802f30dd06465809309f9e509f0dca1"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.ListPullRequestReviewThreads (cyclomatic 41): LiveClient.ListPullRequestReviewThreads has cyclomatic complexity 41 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 10 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":"internal/forge/gitlab/mr.go"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9203a1b820bf5a380e4aa605f2e4840184321087691adb3ec65b4579edc17b"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runLint (cyclomatic 40): cli.runLint has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/lint.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3ff46bf052d7deedbdc82e9c7f620a00996d93f7b93406011d805b2de0c300"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.mergeBaseIntoChild (cyclomatic 40): harness.mergeBaseIntoChild has cyclomatic complexity 40 (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":"internal/harness/compose.go"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0884fb76388e8c27b37d6a654bbe4a7c4c1807578affba4a287563201f6014a"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.convergeInstalledServiceAccount (cyclomatic 40): repos.convergeInstalledServiceAccount has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"436c82366a435d11e2927372e13c3625809b60288386b23f91d54d9889eb1fcb"}},{"ruleId":"D1","level":"warning","message":{"text":"gitLabTriggerAccountOp.converge (cyclomatic 40): gitLabTriggerAccountOp.converge has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"de545403be351a49a38790b2d7a5c75861f27968b241a95af55d64f965856cb1"}},{"ruleId":"D1","level":"warning","message":{"text":"PiRuntime.Bootstrap (cyclomatic 40): PiRuntime.Bootstrap has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_bootstrap.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49e1c16a4e9c27f77f85f9c26c99e727a29e91bdb704b366910bd7462f43e3f"}},{"ruleId":"D1","level":"warning","message":{"text":"Event.Validate (cyclomatic 39): Event.Validate 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":"internal/normevent/event.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec26cd7349d7e8223e648ef8e08733640b7d492ba0bfe8df36907c113f7c9efe"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.migrateLegacyManifestTracking (cyclomatic 39): repos.migrateLegacyManifestTracking 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":"internal/repos/manifest_legacy_tracking.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbf614626b31ca87891ee9be80417c342c5d5056b21442932e9282f43dc9e3d"}},{"ruleId":"D1","level":"warning","message":{"text":"config.validateAgentEntries (cyclomatic 37): config.validateAgentEntries has cyclomatic complexity 37 (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":"internal/config/config.go"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b35ed0efc5b4202bbcc0291a1daf6f61f263d646a2fd76e12efe84f3ac2fa3"}},{"ruleId":"D1","level":"warning","message":{"text":"config.CheckManagedSafetyGate (cyclomatic 37): config.CheckManagedSafetyGate has cyclomatic complexity 37 (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":"internal/config/managed_safety.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87976e9cf39ec454702dcc11a240795cef2c2e6637ec8dc3cb38ecd28b1c380"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.commitFilesImpl (cyclomatic 37): LiveClient.commitFilesImpl has cyclomatic complexity 37 (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":"internal/forge/gitlab/repo.go"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"558686a461dd744471cb177f1fa222660f6f77a3ef8f0c2dfd8171098cb982d8"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.loadBaseChain (cyclomatic 37): harness.loadBaseChain has cyclomatic complexity 37 (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":"internal/harness/compose.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed80872e0f32708688bd9376d8f22b442f7de3d1815477bbb5509f6f6d1a7a1"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabExtraWorkProblem (cyclomatic 37): repos.gitlabExtraWorkProblem has cyclomatic complexity 37 (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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"803c2d27c0a8a2844c659a7813ebc05e3078976d413605ac93977febcc20c9f9"}},{"ruleId":"D1","level":"warning","message":{"text":"config.applyManagedLayer (cyclomatic 36): config.applyManagedLayer has cyclomatic complexity 36 (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":"internal/config/managed.go"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcb0f891281fc43693e1cdf4e5c5a22e833190b7a23599e03590de15d4734e6"}},{"ruleId":"D1","level":"warning","message":{"text":"gitfetch.FetchTree (cyclomatic 36): gitfetch.FetchTree has cyclomatic complexity 36 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 9 belong 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":"internal/gitfetch/gitfetch.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3983393c86376912c3b9ef14def48933953fee4f2c5e9338a8497f4435df0c53"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabDispatcherTemplateProblem (cyclomatic 36): repos.gitlabDispatcherTemplateProblem has cyclomatic complexity 36 (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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9475488912c19632545d73d4bf15da7d4f6615313bbbcf454e3258a449a5225"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.UnmergeGitLabCI (cyclomatic 36): repos.UnmergeGitLabCI has cyclomatic complexity 36 (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":"internal/repos/gitlabci.go"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7da783bf834a18504ac161e45fac34d46707c5106770b4de8d4576af4e8ed6"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.validatePiGatewayModelValue (cyclomatic 36): runtime.validatePiGatewayModelValue has cyclomatic complexity 36 (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":"internal/runtime/pi_gateway.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"8189487db16d67c0b18f4ca732ca5ca71965d029f87727efc555eda97fef63e8"}},{"ruleId":"D1","level":"warning","message":{"text":"UnicodeNormalizer.Scan (cyclomatic 36): UnicodeNormalizer.Scan has cyclomatic complexity 36 (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":"internal/security/unicode.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bacabe8dc52cc18b92799b03b1f99184aafebc4d5739673f4426a58e11f3da6"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.resolveBaseProfiles (cyclomatic 35): harness.resolveBaseProfiles has cyclomatic complexity 35 (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":"internal/harness/compose.go"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77eebc95f10ddf48d664d906770cc8717d6cd4b0b869085fd1bd7033b8403a5"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.resolvePersonaModels (cyclomatic 35): runtime.resolvePersonaModels has cyclomatic complexity 35 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 4 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":"internal/runtime/pi_personas.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b4e50ce101b62417f85bb9cac27b28e31644121054355555d470b54312ce39"}},{"ruleId":"D1","level":"warning","message":{"text":"PiRuntime.Run (cyclomatic 35): PiRuntime.Run has cyclomatic complexity 35 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 6 belong to 2 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":"internal/runtime/pi_run.go"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b3c23f0c0a9b0c09d0862d80f38149ac7d22473f983b13f5b056266e306d4e"}},{"ruleId":"D1","level":"warning","message":{"text":"tirith_check.check_command (cyclomatic 35): tirith_check.check_command has cyclomatic complexity 35 (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":"internal/security/hooks/tirith_check.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b2e5ce33f3c837479b1063b515bc0fd18eca2cd215634f93f20ae3217d6177"}},{"ruleId":"D1","level":"warning","message":{"text":"nextwork.classify_issue (cyclomatic 35): nextwork.classify_issue has cyclomatic complexity 35 (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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cadad540e68d41f7fbd7cfd4938465a49e9b19b32d5a6c0975eb5b9538b10e"}},{"ruleId":"D1","level":"warning","message":{"text":"nextwork.normalize_item (cyclomatic 35): nextwork.normalize_item has cyclomatic complexity 35 (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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeddf8307ddbdbc9b0da8502bd9de85223c3fde839d4683b4a940698dfd8c4d5"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.bootstrapEnv (cyclomatic 34): cli.bootstrapEnv has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":4271}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99bf15f845400b8978e298ff404d89b3c5d4d3d9911492984ff673c41980eb6"}},{"ruleId":"D1","level":"warning","message":{"text":"e2etest.acquireOrg (cyclomatic 34): e2etest.acquireOrg has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/e2etest/testutil.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbaca6b042561460357d24bd3fea9bfef865c2204152aa90a55abe90413a625b"}},{"ruleId":"D1","level":"warning","message":{"text":"envmanifest.shellCommands (cyclomatic 34): envmanifest.shellCommands has cyclomatic complexity 34 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 3 belong to 3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/envmanifest/shellexports.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d368f43c9f97fe761ca182f8ef06bd6dc6938f965f66fe58502838de256d4e77"}},{"ruleId":"D1","level":"warning","message":{"text":"fetch.FetchURL (cyclomatic 34): fetch.FetchURL has cyclomatic complexity 34 (threshold 15). Of this number, 32 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":"internal/fetch/fetch.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7341d84f1015631e44d61fb879ea4693a57f7c54cae25fe00d673ef274d4b12"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceAccountTokenClient.AppendGitLabServiceAccountStatus (cyclomatic 34): ServiceAccountTokenClient.AppendGitLabServiceAccountStatus has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"33050d16e1326e2e180ce4c44985fc0f0dbb57db48b1b6ea2f33d8cfb341c59b"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceAccountTokenClient.withoutSuppliedLegacy (cyclomatic 34): ServiceAccountTokenClient.withoutSuppliedLegacy has cyclomatic complexity 34 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 3 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":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"9818305f3f477b54a51531353123f15d5ba4f3637507e0115205a228416071aa"}},{"ruleId":"D1","level":"warning","message":{"text":"analyze-transcript.cmd_network (cyclomatic 34): analyze-transcript.cmd_network has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fa25bdf3f6f3d4ba4f5703cf97c251d33e9bfe285353bfedb858f11435dd6c"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.routeBuiltinAgent (cyclomatic 33): cli.routeBuiltinAgent 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":"internal/cli/dispatch_route.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5161d89ef3027f4eecb0d1065f23101b264b4ca03fc4d353fc2f040073032b"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.mintAgentTokenAtLevel (cyclomatic 33): cli.mintAgentTokenAtLevel has cyclomatic complexity 33 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 10 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":"internal/cli/run.go"},"region":{"startLine":7646}}}],"partialFingerprints":{"codehealthFindingId/v1":"16dfaf0614d607a2d12cb345d15be590337a69973419c30eeacf2b7058696a54"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.RotateGitLabRoleCredentials (cyclomatic 33): repos.RotateGitLabRoleCredentials 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8082daa4a257fe704f90225483cba5c8898c7ace381981e4655f69c7baa7d2"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.planStaleVendoredCleanup (cyclomatic 33): repos.planStaleVendoredCleanup 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":"internal/repos/stale_vendored.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"30feaed6b093a39c7d37fc9003c4143c62dff52da7b66df4e6ba85405437532f"}},{"ruleId":"D1","level":"warning","message":{"text":"gitLabTriggerAccountOp.releaseSchedules (cyclomatic 33): gitLabTriggerAccountOp.releaseSchedules 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":"internal/repos/gitlab_trigger_schedules.go"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ecb3386ea41bace810992f1d9357af22cfc84b1feda1ca4fa543fdd11fa8813"}},{"ruleId":"D1","level":"warning","message":{"text":"manifestEditor.plan (cyclomatic 33): manifestEditor.plan 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":"internal/repos/manifest_set.go"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5da03868bae71a42f3079ab57f720c4e813020a90bab9f2209f8541cc1f858f"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.buildPiRunCommand (cyclomatic 33): runtime.buildPiRunCommand 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":"internal/runtime/pi_run.go"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a4176eae2eb31ce61a4392f34496523204f19d82e7a1332bd0ea2daa28b441"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodeRuntime.Run (cyclomatic 33): OpenCodeRuntime.Run has cyclomatic complexity 33 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 3 belong 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":"internal/runtime/opencode_run.go"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e73823278e31e6b6a86fa54a14fdf6829fdec54406e3b0a96d919146c57d316"}},{"ruleId":"D1","level":"warning","message":{"text":"nextwork.classify_pr (cyclomatic 33): nextwork.classify_pr 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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"c928b9aa950cee5e11dd68021f6b695e29ef4beafdf1ebb6b42f0634f4b02924"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveGCFClient.GetServiceRevisionInfo (cyclomatic 32): LiveGCFClient.GetServiceRevisionInfo has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"f654d5d214b4777907ff9e7b2efd989e1e516e29d1d85ac1c587f43989e4d970"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.resolveBaseProviders (cyclomatic 32): harness.resolveBaseProviders has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":1626}}}],"partialFingerprints":{"codehealthFindingId/v1":"257d83adebd30bb0676a713836129563c16e1ebbe1238c5e471f469dc1698021"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabWebhookReadiness (cyclomatic 32): repos.gitlabWebhookReadiness has cyclomatic complexity 32 (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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"030dcc2b68d864ddda4c08e81f1809cb212f9ddd682a455041ce1f333105172b"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.ensureGitLabWebhookAccountRoute (cyclomatic 32): repos.ensureGitLabWebhookAccountRoute has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook_trigger_account.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ecd7e759c3b3b8f8a6cdeaffaaf6bcf3895ce6781683a69cefb88e1f25e25de"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.resolveCodexChildModels (cyclomatic 32): runtime.resolveCodexChildModels has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/codex_personas.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f593bf0db7781610e68409335dfb11dbaa47a4c6b10a01a0586188537220783"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.BuildConfigMap (cyclomatic 31): harness.BuildConfigMap has cyclomatic complexity 31 (threshold 15). Of this number, 29 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":"internal/harness/forge.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"668f64e70623e9b11739e1f4989efd04b2836ba32511793f252c6b22b0ac209c"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.collectConvergeScaffoldFiles (cyclomatic 31): repos.collectConvergeScaffoldFiles 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":"internal/repos/converge.go"},"region":{"startLine":3775}}}],"partialFingerprints":{"codehealthFindingId/v1":"94112dd44a7ddc56e7d7d2dcee5f9ebd5a08ab6c1dec684e6d192ad42f4cc844"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.ContainGitLabPoller (cyclomatic 31): repos.ContainGitLabPoller 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":"internal/repos/gitlab_poller_credential_policy.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"30813294c759ec2706de6de03f6df122c7225cd7d4b5d5351947cb4dde81cc4d"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.diagnoseGitLabTriggerAccount (cyclomatic 31): repos.diagnoseGitLabTriggerAccount 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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fbcb75ff01d45bc1282ee7b24df47a8826ccd6ac2850d3d46721bb53c45041"}},{"ruleId":"D1","level":"warning","message":{"text":"Driver.settleHarnessDispatchCount (cyclomatic 31): Driver.settleHarnessDispatchCount 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eda2e36313972ee9f98d6c51b65d39bcec3bacac6546a81058377180e00065a"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.pinnedSetupFlags (cyclomatic 30): cli.pinnedSetupFlags 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":"internal/cli/github.go"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d70b8e87405f13a6818979098a19f07198484f4a197be2a143ef03919f874d"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runLockAll (cyclomatic 30): cli.runLockAll 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":"internal/cli/lock.go"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdafc503ec1a8142a7512d107aa80c07ad6d5927b2c6d4923196c366b7c520b"}},{"ruleId":"D1","level":"warning","message":{"text":"e2etest.acquireOrgFromClient (cyclomatic 30): e2etest.acquireOrgFromClient 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":"internal/e2etest/testutil.go"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"914211b5d6c5ceb09cd0cdb04926fe4d71e0f1ad91269559f692d51772387dbb"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.detectChanges (cyclomatic 30): Poller.detectChanges 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":"internal/jirapoll/discover.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e05f51f09d4b9e6d2306f745e6c9f21998eebbc073fb219b03b0ca41dc3bb2"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.Run (cyclomatic 30): Poller.Run 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":"internal/jirapoll/poller.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"003f7fc50d3067e0cd0740a5746231df878d7499e66304d76042329a6d1bdcb7"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.revalidateAdditions (cyclomatic 30): Poller.revalidateAdditions 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":"internal/poll/state.go"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"081000768655c3000434fa427f82571422c4186bffff75f555672947cc21181f"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.convergeScaffoldFiles (cyclomatic 30): repos.convergeScaffoldFiles 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":"internal/repos/converge.go"},"region":{"startLine":3285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17dc91cef6ed90914c65dc3a88567bf24269bc8aa5a5a3c8dac733be30da926"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.editManifestValue (cyclomatic 30): repos.editManifestValue 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":"internal/repos/manifest_set.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed743b2a06b2c3be8c3a657bb46d886d2fc695d2118f02be818b0f844986086"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceAccountTokenClient.DeleteManagedServiceAccounts (cyclomatic 30): ServiceAccountTokenClient.DeleteManagedServiceAccounts 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":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aba738dc5cc04818bc528ae2343020870a692a77cec8ccc69f33665f36c69e9"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceAccountTokenClient.CreateProjectAccessToken (cyclomatic 30): ServiceAccountTokenClient.CreateProjectAccessToken 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":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"97000f61fc0bce5ab1bcc8bb63d5a9c7960950d79fe87e2f0ffd6683cd90fc8a"}},{"ruleId":"D1","level":"warning","message":{"text":"workflowExprParser.parseOperand (cyclomatic 30): workflowExprParser.parseOperand has cyclomatic complexity 30 (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":"internal/repos/gitlab_workflow_admission.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f6ed0a64927edbae3b5c421ff788383ddc0a0993b4535ea0c218c6b779370c"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.ValidatePiGatewayModelsFile (cyclomatic 30): runtime.ValidatePiGatewayModelsFile 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":"internal/runtime/pi_gateway.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2d42f7e221379b34ac32d39c2e16aa2514fed7c7f2769910ec4d09c8e4cb60"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.describeDispatchRuns (cyclomatic 30): steps.describeDispatchRuns 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":"pkg/behaviourtest/steps/debuglogs.go"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"337b701d92c9b4dc09cb7ec072ad3728ed370dbcdacf5849eb739eb7e79f2a11"}},{"ruleId":"D1","level":"warning","message":{"text":"resolve-precommit-tools.resolve (cyclomatic 30): resolve-precommit-tools.resolve 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":"internal/scaffold/fullsend-repo/scripts/resolve-precommit-tools.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab3e9f6c6777d7c64af4defdf0360f9e2e7e4b109ed58bc36bbb1c56a264dba"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runMintDeployGCP (cyclomatic 29): cli.runMintDeployGCP has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbb8d1b27a82f037b6ce390982ead240f0baf311a65a905754568f24cc85ca9"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.stageOverriddenSkill (cyclomatic 29): cli.stageOverriddenSkill has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/skill_staging.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc2cb9f86cdaf924500c6582d8a448deea7e5662ea07466ef8915beff36aa3a"}},{"ruleId":"D1","level":"warning","message":{"text":"Service.HandleFetch (cyclomatic 29): Service.HandleFetch has cyclomatic complexity 29 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 4 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":"internal/fetchsvc/service.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c21a12c65bf97acad0444a985c2a98679efaecde3c5963e2b35c8d1d1323c5f"}},{"ruleId":"D1","level":"warning","message":{"text":"Harness.validateForge (cyclomatic 29): Harness.validateForge has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/forge.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2298325c2289548395d934778aa5ad3272953d0599fb71938b6876507d78607"}},{"ruleId":"D1","level":"warning","message":{"text":"Harness.ResolveRelativeTo (cyclomatic 29): Harness.ResolveRelativeTo has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/harness.go"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d8ce649022cb8a323283682f16ec897233d7d98697731302d2a46aab7b2ee3"}},{"ruleId":"D1","level":"warning","message":{"text":"repoEnsurer.deleteLeftoverForkOwned (cyclomatic 29): repoEnsurer.deleteLeftoverForkOwned has cyclomatic complexity 29 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 9 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":"pkg/behaviourtest/drivers/install/ensure.go"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5c1ecf5923a30811f45eb20595da19d7d6123f3c2776af25dbe170644f1436"}},{"ruleId":"D1","level":"warning","message":{"text":"binary.extractSourceTree (cyclomatic 28): binary.extractSourceTree has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/binary/download.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cca46d43caf8500f39dc1c61e2768602f481176b781eccf85370a98d6ff135"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.restrictGitLabEndpointsToForge (cyclomatic 28): cli.restrictGitLabEndpointsToForge has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/gitlab_profile.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f794ff4c2b7bbfbecca210a639f52c29a408f4ae2440bc1a2ebc5280c890cf"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runInferenceGatewayStatus (cyclomatic 28): cli.runInferenceGatewayStatus has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/inference_gateway.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ca4c0927ac14f955934dc6d24da5e06651f656d580ae12c07b5fbee03a0a72"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.do (cyclomatic 28): LiveClient.do has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/client.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b30ef0c8a8f1077135ff102ff81216c9d27c2e433d8d961d514fdf4f123a72"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.convergeSchedules (cyclomatic 28): repos.convergeSchedules has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/converge.go"},"region":{"startLine":2532}}}],"partialFingerprints":{"codehealthFindingId/v1":"22864bbe54222ceacefc219a743603ca74b93f651d123f6a2430d25d9ba177bf"}},{"ruleId":"D1","level":"warning","message":{"text":"gitLabTriggerAccountOp.planAccountSchedules (cyclomatic 28): gitLabTriggerAccountOp.planAccountSchedules has cyclomatic complexity 28 (threshold 15). Of this number, 26 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":"internal/repos/gitlab_trigger_schedules.go"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7964a4f6b55a9a2f9615914cd23d27a1681a7a86ff78e14a79a95ddcb5d061d"}},{"ruleId":"D1","level":"warning","message":{"text":"progressReconciler.taskProgressIdentity (cyclomatic 28): progressReconciler.taskProgressIdentity has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/task_progress_reconciler.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44cf373cdc6aa747d4f74c33dbd5f889e39e6ba04716e7d6e20144e894bd420"}},{"ruleId":"D1","level":"warning","message":{"text":"EventRenderer.Handle (cyclomatic 28): EventRenderer.Handle has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/renderer.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"655dd7518ceafee58f780f34c12b25ff47b99e96f376dcd6a90e8822a8e8edf3"}},{"ruleId":"D1","level":"warning","message":{"text":"tracecontext.NormalizeInstance (cyclomatic 28): tracecontext.NormalizeInstance has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/telemetry/tracecontext/identity.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cc7487d27192da1491f094e027da9e4a707f24003262e9102d5255a0786336"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runAgentSet (cyclomatic 27): cli.runAgentSet 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":"internal/cli/agent.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c07627cbca29200774517663c8ee1f39241b8c6ccee45a2bbe15854494c67a"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.printStatusTable (cyclomatic 27): cli.printStatusTable 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d4f0f74d6e46fbd253457f583d9f1147c2ffbc941710a1969f5d21e18cee4d"}},{"ruleId":"D1","level":"warning","message":{"text":"gcf.bundleFunctionSource (cyclomatic 27): gcf.bundleFunctionSource 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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aeff42aa47a789e05e21aa40a3f030a525d63f3b14ddb77d6db621b8bd49105"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.fetchBaseScriptOrDir (cyclomatic 27): harness.fetchBaseScriptOrDir 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":"internal/harness/compose.go"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33857fdc610859c32c80da537e82144e82f3596005995508dd275b4882b3a1f"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.dispatchWebhookEvents (cyclomatic 27): Poller.dispatchWebhookEvents 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":"internal/poll/webhook_dispatch.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"749019f80f47509e9319f5b201f846a848c7c36da88452ab5668a44b49e729f7"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceAccountTokenClient.managedServiceAccountList (cyclomatic 27): ServiceAccountTokenClient.managedServiceAccountList has cyclomatic complexity 27 (threshold 15). Of this number, 26 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":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a7d33b2e9b8cee6c296ef0dd11f2c3d4abb5c548b0f75c5355d95bb30a3774"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceAccountTokenClient.listServiceAccountTokens (cyclomatic 27): ServiceAccountTokenClient.listServiceAccountTokens 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":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd0e93971803b0db3f2241e6597d22235aa1c7c669921bb83f5ffa1a6ce0238"}},{"ruleId":"D1","level":"warning","message":{"text":"tracecontext.Parse (cyclomatic 27): tracecontext.Parse has cyclomatic complexity 27 (threshold 15). Of this number, 26 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":"internal/telemetry/tracecontext/envelope.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"26aae210a26114abfeb7f9f9ee4ec49f7481d6f8d95b43c5e920e7e9ac1debfd"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.givenURLSourcedCustomHarness (cyclomatic 27): steps.givenURLSourcedCustomHarness 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":"pkg/behaviourtest/steps/url_dispatch.go"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b6dd1548aa0d9e8b87a747a4ef13af75dc3875ca9e9c0350c66e0c2da52b25"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runGatewayRefresh (cyclomatic 26): cli.runGatewayRefresh has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_gateway_route.go"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b73e0c924c8263dd4e9a03ab70701378f7c2a8e3985566937d6b3cf42b60c75"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.fetchBaseFile (cyclomatic 26): harness.fetchBaseFile has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"458510824737296af9187a851f5ce1e4fd8f20fbe6962366455fe3c54b153d19"}},{"ruleId":"D1","level":"warning","message":{"text":"Harness.ValidateFilesExist (cyclomatic 26): Harness.ValidateFilesExist has cyclomatic complexity 26 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 3 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":"internal/harness/harness.go"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"8026e346401aa17c74f84694b36bd20a395e8ff02c547b9d70ae7050a083ca57"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.decodePollerGenerations (cyclomatic 26): repos.decodePollerGenerations has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_poller_generation.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb18d83aa48af482636b41d183af6977c0a003ad79ceaded441ad3f6c35e7027"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.retireSupersededPollerGeneration (cyclomatic 26): repos.retireSupersededPollerGeneration has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_poller_retirement.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"446c8c59536bf02d202e18cca6dfd2f2b45f0fe137bae2b37747ff257b6db35c"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.CleanupGitLabRoleIdentityLocked (cyclomatic 26): repos.CleanupGitLabRoleIdentityLocked has cyclomatic complexity 26 (threshold 15). Of this number, 22 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":"internal/repos/gitlab_roles_cleanup.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a8422106b294dc04a26b55ecfe10ea23d493d0ff87e973cd841ced1d720332"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.HasFullsendEntries (cyclomatic 26): repos.HasFullsendEntries has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlabci.go"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a2c1cd6ced7593dfb632e01607d65d79c78917a7b86943c4ff105b145bd429"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.EnsureManagedConfigDefaults (cyclomatic 26): repos.EnsureManagedConfigDefaults has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/managed_config_writeback.go"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39002f729229c89b6b34e754ff7556c4c2672e2cd503080a966f35d0c5c4759"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceAccountTokenClient.AppendGitLabSuppliedCredentialStatus (cyclomatic 26): ServiceAccountTokenClient.AppendGitLabSuppliedCredentialStatus has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_supplied_provenance.go"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e689ed0ddf2ef50bffe142605d03d15c341d3fc48587eb9b95eb9ca495a2a9a"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.injectFrontmatterSkills (cyclomatic 26): runtime.injectFrontmatterSkills has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/frontmatter_skills.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b5bf32349fa05c4e028291a8ad0970d53bfaa2014df81d6af0c6825c25c755"}},{"ruleId":"D1","level":"warning","message":{"text":"Setup.Run (cyclomatic 25): Setup.Run 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":"internal/appsetup/appsetup.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ac4b4c3fd9a01f5f65c4f98b49c60df6fc72dfe65e8d99845efff08e3e6106"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.submitFormalReviewWithDiffs (cyclomatic 25): cli.submitFormalReviewWithDiffs has cyclomatic complexity 25 (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":"internal/cli/postreview.go"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"3381a5b2d6995b41221b36899852b610320b8811686160c972ba5ab60997eb6c"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.renderJiraSiteProfileFrom (cyclomatic 25): cli.renderJiraSiteProfileFrom has cyclomatic complexity 25 (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":"internal/cli/run_jira.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"951b2e1cd4b7b1b71d09e93b3446c1e9659acf8e8ca5e28d51b61859cae517c9"}},{"ruleId":"D1","level":"warning","message":{"text":"jira.adfMarkdownBlock (cyclomatic 25): jira.adfMarkdownBlock 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":"internal/forge/jira/adf.go"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f154a8217a7512d215f48180e4497e2f10b3ec876a36a78b0069ef56224c37"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.resolveBaseHostFiles (cyclomatic 25): harness.resolveBaseHostFiles 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":"internal/harness/compose.go"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e08694e69cf85c30ea1af1d794c328d29d3144ae641675b3cd34daa9c07e2f1"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabRootCIDispatcherProblem (cyclomatic 25): repos.gitlabRootCIDispatcherProblem 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e6d9ea0db50f92711e88f222a7af5ff8d52454ebeca75bdd42ec3c44de8637"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.convergeGitLabWebhookHook (cyclomatic 25): repos.convergeGitLabWebhookHook 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":2690}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d7393c3a60b498bcaf82ae6b59d69710ab545f8f4192456231ec64153aa4c0"}},{"ruleId":"D1","level":"warning","message":{"text":"resolve.resolveSkillDirURL (cyclomatic 25): resolve.resolveSkillDirURL 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":"internal/resolve/resolve.go"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"1983a5b9224da68d725feb1feb914a691fea81c0887ed0767dec2c9be3e20aaf"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.parseOpenCodeStream (cyclomatic 25): runtime.parseOpenCodeStream 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":"internal/runtime/opencode_progress.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d42327dad1a668466bbca55a250eccd890132c6c590cf251103b37bafbb066"}},{"ruleId":"D1","level":"warning","message":{"text":"sharedOrgLock.join (cyclomatic 25): sharedOrgLock.join 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":"pkg/behaviourtest/drivers/install/orglock.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e9c5cc1767fdced6f761b041e79911f9c76a08f13f653320eb753bd083e662"}},{"ruleId":"D1","level":"warning","message":{"text":"agentnew.Generate (cyclomatic 24): agentnew.Generate has cyclomatic complexity 24 (threshold 15). Of this number, 22 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":"internal/agentnew/generate.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"239b557b1365bc833a2c39efbde8a1fa622ae54d6010cbdc456022a2135d8866"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runIssuesCreate (cyclomatic 24): cli.runIssuesCreate has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/issues.go"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"212133aa6d382c0cdc99dd6f8330cbfca6ca3d1fa2d307a8b9a403f7ede1f7bc"}},{"ruleId":"D1","level":"warning","message":{"text":"config.ReadLegacyTracking (cyclomatic 24): config.ReadLegacyTracking has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/legacy_tracking.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"72019b2b5553c50f88ab0fc5f27225993f920f86b503d2c9fb2685dcc80b66cf"}},{"ruleId":"D1","level":"warning","message":{"text":"evalmeasure.ExportOTLPScores (cyclomatic 24): evalmeasure.ExportOTLPScores has cyclomatic complexity 24 (threshold 15). 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: 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":"internal/evalmeasure/export_otlp.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b92e9e4e3444f3ae48f65727f72125b527c83e342786b1814165467b2808eca"}},{"ruleId":"D1","level":"warning","message":{"text":"jira.resolveTextEscapes (cyclomatic 24): jira.resolveTextEscapes has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/adf.go"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdee3895722e4f72f8bd20ae99b5d1337f2b3e574c8c42d34548cc4d4e2e05b"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.validateOverlayForgeConfigInherit (cyclomatic 24): harness.validateOverlayForgeConfigInherit has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/forge.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a51248f8fa12206a0d8edea9800e6791473ba96e078b59eb323bf938e1f0195"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.LockGitLabProject (cyclomatic 24): repos.LockGitLabProject has cyclomatic complexity 24 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 4 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":"internal/repos/gitlab_roles.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff868ea75d0959e731cbd0dc7dca13b454cf720e5f0ca3613480b3c95dec4aa1"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.valueNode (cyclomatic 24): repos.valueNode has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest_set.go"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"84700ae5474b69bab4d6a8be6db7f1caabc9d59c4e97254c4223ad56fbc70195"}},{"ruleId":"D1","level":"warning","message":{"text":"gitlabJiraPollReconciler.Ensure (cyclomatic 24): gitlabJiraPollReconciler.Ensure has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_jira_poll.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3171aa98cc5c8c867d9ffb859a8b403302c1e7b10c2ccfa88ebb759bd14fc0"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.rewriteFrontmatterSkills (cyclomatic 24): runtime.rewriteFrontmatterSkills has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/frontmatter_skills.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc3ee004242d4abbdb988aab92a37af2ec89b7afd9a3340a07b64ed7d936164"}},{"ruleId":"D1","level":"warning","message":{"text":"PiRuntime.piExecModel (cyclomatic 24): PiRuntime.piExecModel has cyclomatic complexity 24 (threshold 15). 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: 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":"internal/runtime/pi_run.go"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afa99247170a116d6ceab58f3d5b7fc17088b2685ff7376b89a7d3c167f96d6"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.parseDummyAgentTable (cyclomatic 24): steps.parseDummyAgentTable has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/dummy_agent.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b63cb54984e7a675d144d924e9c48585be99afb722830cd8a0b32e85ad08171"}},{"ruleId":"D1","level":"warning","message":{"text":"analyze-transcript._accumulate_stats (cyclomatic 24): analyze-transcript._accumulate_stats has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9894a55cbcda3ec77a2c106b7fc6b78ca47891daf0433075b676db75b3d82da3"}},{"ruleId":"D1","level":"warning","message":{"text":"nextwork.build_queue (cyclomatic 24): nextwork.build_queue has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24e1557617f1a76ccd27ca0464e01c7a0f00096d4a92fd682221f24141ed446"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.scanPluginTree (cyclomatic 23): cli.scanPluginTree has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 8 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 110). 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":"internal/cli/bootstrap_scan.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"72aae806c5492a775a724cd40631c9280bf47ee8f1d3a232939ebc739ab57239"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.newPollCmd (cyclomatic 23): cli.newPollCmd has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 47). 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":"internal/cli/poll.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a198d9d1e116ef41ab3fb0cfdb8c5e5d3abd9507d762fb4625d68e0fdf6442b"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.newReconcileStatusCmd (cyclomatic 23): cli.newReconcileStatusCmd has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to one function literal inside it that branches (line 65). 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":"internal/cli/reconcilestatus.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65f3887fc0c3d165649053d4418fcbbc948cab33bd107275059458fd0ad5cc8"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.resolveOpenAICredential (cyclomatic 23): cli.resolveOpenAICredential 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":"internal/cli/run_openai.go"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"15192bf591aef84975cb3a804bd42c58361034fef659c1a1ca80805373f1ad6d"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveGCFClient.UpdateServiceEnvVars (cyclomatic 23): LiveGCFClient.UpdateServiceEnvVars 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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"378d6dc4ef17488cbc856d67dc072ef35c1ebbf5e5836f7a041ef1b032f3c8df"}},{"ruleId":"D1","level":"warning","message":{"text":"e2eauth.Check (cyclomatic 23): e2eauth.Check 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":"internal/e2eauth/check.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd946829172cbd2d3723a7d5322ca85bfccddbd516a917cf6cfdf4760e91d7d"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.fetchBaseDir (cyclomatic 23): harness.fetchBaseDir 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":"internal/harness/compose.go"},"region":{"startLine":2387}}}],"partialFingerprints":{"codehealthFindingId/v1":"5baeb40cb82c9a411b9f4b1e73ccea198deb3757bbf1885e7851c9437018691e"}},{"ruleId":"D1","level":"warning","message":{"text":"layers.deliverBranchAndPR (cyclomatic 23): layers.deliverBranchAndPR has cyclomatic complexity 23 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 3 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":"internal/layers/commit.go"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbb46a8faf37220eb71070e75a72eb987685ccca6deb51d8d123a84e75fdca3"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.convergeContentDriftFiles (cyclomatic 23): repos.convergeContentDriftFiles 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":"internal/repos/converge.go"},"region":{"startLine":3453}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb72511e8678bcad9351f18f1d9f2c7d5f43de210c3cbd73a3fc5f52ca2b26cb"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.resolveExtendsAdmission (cyclomatic 23): repos.resolveExtendsAdmission 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":"internal/repos/gitlab_trigger_job_templates.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"debb98e0823283323d92f2d88a5fb9c9e1aff501a403e7a12789efca2da3eb9e"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabTriggerOwnerSafety (cyclomatic 23): repos.gitlabTriggerOwnerSafety has cyclomatic complexity 23 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 5 belong 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1338f06bc91a2305501fc72df210071667e9891923ad753c63c4e03cade731d"}},{"ruleId":"D1","level":"warning","message":{"text":"workflowExprParser.parseComparison (cyclomatic 23): workflowExprParser.parseComparison 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":"internal/repos/gitlab_workflow_admission.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"34987274286337fd5392494946365139cd89991d5329628efecd25696731e737"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.mergeAgentProgress (cyclomatic 23): runtime.mergeAgentProgress 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":"internal/runtime/task_progress_reconciler.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e56a914b3435824eeb89d8f37d04744e2bb9eddcc2631150dc3b9c59723822e"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexRuntime.ExtractTranscripts (cyclomatic 23): CodexRuntime.ExtractTranscripts 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":"internal/runtime/codex_transcript.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbcacab580ffa9d8c6c31e01cbce34d5fdb7194213a349f459c043c48436133"}},{"ruleId":"D1","level":"warning","message":{"text":"multiPunctAnnotation.tokenAnnotation (cyclomatic 23): multiPunctAnnotation.tokenAnnotation 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":"internal/sentencetoken/annotate.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3067aff2b203d8c88c7686dc659662b4cb3e0707103c892cf175a6f6567e4e2f"}},{"ruleId":"D1","level":"warning","message":{"text":"gather.classify (cyclomatic 23): gather.classify 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":"skills/user-forum-whats-new/scripts/gather.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac6d22894ae2c16b716fafe47b5bffd2cd6103cde7c1b78fa566c251922a68c"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.profileIssuesCredential (cyclomatic 22): cli.profileIssuesCredential 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":"internal/cli/gitlab_profile.go"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3833c420cd44547ecabf5f320de62dc8731ff0a0fd30534e00f4c10a2924f0"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.ensureOpenAIProvider (cyclomatic 22): cli.ensureOpenAIProvider 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":"internal/cli/run_openai.go"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a62f00401bb948b812cb6a921eb5e4aa2408f5d4d94a243cefb8ad69698da52"}},{"ruleId":"D1","level":"warning","message":{"text":"contentCollector.Result (cyclomatic 22): contentCollector.Result 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":"internal/cli/content_collector.go"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fab5bb5cd7c6d63eb609b31d52da4fbbf2f648b46eca9038301cda19fdfe326"}},{"ruleId":"D1","level":"warning","message":{"text":"e2etest.acquireLock (cyclomatic 22): e2etest.acquireLock 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":"internal/e2etest/lock.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c916e7a119ed42d99e1d4f2028ebd7257ee9912e4c52e5ee1e26432a51f7df9e"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.GetRawFileContentAtRef (cyclomatic 22): LiveClient.GetRawFileContentAtRef 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":"internal/forge/github/github.go"},"region":{"startLine":2368}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2b49817af09ea3f040466bdc89aa5ce899454a5e791e7f52c2623da003ffd8"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.CreatePullRequestReview (cyclomatic 22): LiveClient.CreatePullRequestReview 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":"internal/forge/gitlab/mr.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"031a643b8d181ae3f7f41ab9440a2a80b3e38d7ce236a1b31825a57b27d8dd90"}},{"ruleId":"D1","level":"warning","message":{"text":"vertexauth.prepareGitHubWIF (cyclomatic 22): vertexauth.prepareGitHubWIF has cyclomatic complexity 22 (threshold 15). Of this number, 21 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":"internal/inference/vertexauth/vertexauth.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"7256719579d5246785e764dd1f0807fec1432f5aa2b00aae6dd34ffcf50c29ac"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.removeObsoleteInferenceSecrets (cyclomatic 22): repos.removeObsoleteInferenceSecrets 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":"internal/repos/converge.go"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a810979c9749c6800c4665cf4ca16573ea352f09806d95e320346d684ee2615"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.CheckOrphanVars (cyclomatic 22): repos.CheckOrphanVars 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":"internal/repos/drift.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7d42a4b87b915cdbb900bb45a75a0d1017914a9d9463916d0676af23a98d5b"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.cutOverPollerGeneration (cyclomatic 22): repos.cutOverPollerGeneration has cyclomatic complexity 22 (threshold 15). Of this number, 21 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":"internal/repos/gitlab_poller_cutover.go"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b20473dc15ccf94325ced5a367deaa8992aca8622581970a51292325aac02a1"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.convergeGitLabTriggerAccountLocked (cyclomatic 22): repos.convergeGitLabTriggerAccountLocked 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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3fb7448aae0737d3746bee354a7e28bcd35dfb83bf0e1806c0b2de2f8fa3b4"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.diffLineMatches (cyclomatic 22): repos.diffLineMatches has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlabci_format.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"471d12e70f78dce1fa2f6bfbc6fc1d44b5026c2fcdb3c3dff197b20a58cffedb"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.RemoveFromManifest (cyclomatic 22): repos.RemoveFromManifest has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 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":"internal/repos/manifest_edit.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e9ab9e7b5e77c12d8b07e80ef58cd0a878a4f03f96a2527cde2ac5cc6dc375"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.resolveManifestPath (cyclomatic 22): repos.resolveManifestPath 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":"internal/repos/manifest_set.go"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0a206d5a593801a1bf8afd584a7e94620aaaa01c03bb114b62024b5ccbe6da"}},{"ruleId":"D1","level":"warning","message":{"text":"gitLabTriggerAccountOp.liveDrift (cyclomatic 22): gitLabTriggerAccountOp.liveDrift has cyclomatic complexity 22 (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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d04ffc107efc8a0e383dc29ef5707e95c156d513ceb39c4c1c3ef2fa5814bd"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.piToolsFor (cyclomatic 22): runtime.piToolsFor 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":"internal/runtime/pi_agent.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"75af46edf35f95218a2a24cbb99c05067994245fe38f1b9e91b07bccdcef0ff8"}},{"ruleId":"D1","level":"warning","message":{"text":"DummyPlaybackRuntime.Run (cyclomatic 22): DummyPlaybackRuntime.Run 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":"internal/runtime/dummy_playback.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cf992aae341c2596e4b1a291b6f3e7d2f5a3175da2f61d81b906ea36b0b4f1"}},{"ruleId":"D1","level":"warning","message":{"text":"JiraClient.TransitionIssue (cyclomatic 22): JiraClient.TransitionIssue 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":"internal/tracker/transition.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0906f696be26b5ffc0c20099a337530a0a2feb1caa87451cdcefdf727f217b99"}},{"ruleId":"D1","level":"warning","message":{"text":"slotAllocator.reclaimSlot (cyclomatic 22): slotAllocator.reclaimSlot has cyclomatic complexity 22 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/install/slotgc.go"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eac1a091d5553c3c015d2b9bb890af87d7ec5b2b88953d7df63306fd883a891"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.givenURLSourcedBaseHarness (cyclomatic 22): steps.givenURLSourcedBaseHarness 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":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b138e372dd2db0988ba394b2b671e6dc1518577c3011beeb00ae8174c2f9edc4"}},{"ruleId":"D1","level":"warning","message":{"text":"posttool_chain._handle_failure (cyclomatic 22): posttool_chain._handle_failure 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":"internal/security/hooks/posttool_chain.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8779014ab0282b5f3db5dbc0702b3cd953db08d1515587cb2eaaf5ef964b1f"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 21): main.main has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 5 belong 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":"hack/prove-otlp-scores/main.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"013dc1e9e6b56122056a623202ce7325a85003d8b85bb25198bdb0887c310952"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runDispatch (cyclomatic 21): cli.runDispatch 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":"internal/cli/dispatch.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbb9d1a8ba6a05d6103cce1c187c11eae091b060d250e741cafd50ef9f5c05a"}},{"ruleId":"D1","level":"warning","message":{"text":"config.EffectiveYAML (cyclomatic 21): config.EffectiveYAML 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":"internal/config/effective.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d343940f41f09cdeaf0dc45de8e3c72b220c06c9d66ad59d9a6b69c9c74f8ffa"}},{"ruleId":"D1","level":"warning","message":{"text":"perRepoConfig.validateLocalFields (cyclomatic 21): perRepoConfig.validateLocalFields 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":"internal/config/config.go"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7a5def60fa28820b49e8a1f224f412cc327cf3d42a2bbe7cfa4eacc019552d"}},{"ruleId":"D1","level":"warning","message":{"text":"perRepoConfig.AgentEntries (cyclomatic 21): perRepoConfig.AgentEntries 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":"internal/config/interfaces.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"1987ed0bb12b18eea016ac2a5b05e0c0282f8279d12c05ba92c18dd648016be5"}},{"ruleId":"D1","level":"warning","message":{"text":"envmanifest.collectFromCommand (cyclomatic 21): envmanifest.collectFromCommand 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":"internal/envmanifest/shellexports.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e75d017f060a0a5f4ce2ee419a7b7c68a5cb893fe5d68794f2850eabc68ba3"}},{"ruleId":"D1","level":"warning","message":{"text":"blobJSONReadCloser.Read (cyclomatic 21): blobJSONReadCloser.Read 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":"internal/forge/github/blobstream.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ea8b64b205f38f80b32dbb92710e710e9c335967bb8502ba4b5af9a4c87e01"}},{"ruleId":"D1","level":"warning","message":{"text":"poll.buildEventPayload (cyclomatic 21): poll.buildEventPayload 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":"internal/poll/dispatch.go"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ecc5b5f2dd3ae5e88ae6aa10d8549f6a7aee35a9b96479c006c80c3ec21007"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.applyPersistDeltas (cyclomatic 21): Poller.applyPersistDeltas 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":"internal/poll/state.go"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b73e3dc33d923aff7ba01365a5653dadd676c8612e0aff2f35e9b09f25beed"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.preflightGitLabRoleCleanup (cyclomatic 21): repos.preflightGitLabRoleCleanup 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":"internal/repos/gitlab_roles_cleanup.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65dcca2caa1576ebcbc36d41d19ef4baeb6a8d72d0d44f6e700be6210e8987b"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.triggerVariableOverrideProblemSeen (cyclomatic 21): repos.triggerVariableOverrideProblemSeen 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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4bb317bd3af0e879dad153e8dd857d52b346ef86355db63a267e9e629f919b"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.ConvergeGitLabTriggerSchedules (cyclomatic 21): repos.ConvergeGitLabTriggerSchedules 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":"internal/repos/gitlab_trigger_schedules.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"12090b72a71629c008ca37ad740dc75c5c5258457f58e28b108c395b4732c9f7"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.GitLabWebhookNeedsProvisioning (cyclomatic 21): repos.GitLabWebhookNeedsProvisioning 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"583a7ba74a1d98a2c685382cdea2588e10a22298eaabf33c81232b302fbb2999"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabTriggerProjectSafetyProblem (cyclomatic 21): repos.gitlabTriggerProjectSafetyProblem 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"879ab2759bc067fac4d096ec6f327e699426ab09bf43e71d607e0e635a7f74c0"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.TeardownGitLabWebhookFastPathLocked (cyclomatic 21): repos.TeardownGitLabWebhookFastPathLocked 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"b497f664ae86a348126658cdd4d2484f3453ca71f861e5538e942f8dcd550023"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.removeWorkflowRules (cyclomatic 21): repos.removeWorkflowRules 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":"internal/repos/gitlabci.go"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"1298bef544ab296715ec37bd6090d979befcb5a1b774df192259efab9335d919"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.BuildScaffoldFiles (cyclomatic 21): repos.BuildScaffoldFiles 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":"internal/repos/install.go"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"79645b46d31f5ab84293b575d89d9e873f1bc5da88847ca97af60b183db31b63"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.convergeJiraPoll (cyclomatic 21): repos.convergeJiraPoll 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":"internal/repos/jira_poll.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2600bc7f94d8077b330e7d103fd9ba99435b2dd57f78ca2d00c1abb790ed74"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceAccountTokenClient.needsServiceAccountReplacement (cyclomatic 21): ServiceAccountTokenClient.needsServiceAccountReplacement 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":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bde7d0820a88440e9658b379f88a499b6e1af2285d10d888756b4541ac339c"}},{"ruleId":"D1","level":"warning","message":{"text":"gitLabTriggerAccountOp.containBySinkState (cyclomatic 21): gitLabTriggerAccountOp.containBySinkState 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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"f844735e37825f9ccb3192f148bc20e183a657607394a7afc4f3433950c35c92"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.countCodexChildRollouts (cyclomatic 21): runtime.countCodexChildRollouts has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 5 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":"internal/runtime/codex_subagents.go"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd5850a55c82265627d8d253d85a26481eb78455fa43568f0c7f7d5edeef57b"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.staleAgentSnapshot (cyclomatic 21): runtime.staleAgentSnapshot has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/task_progress_reconciler.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cee1f52dd92656717d8b61f36f1fa1ac116f61852145e6383df0f025655310"}},{"ruleId":"D1","level":"warning","message":{"text":"progressReconciler.status (cyclomatic 21): progressReconciler.status 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":"internal/runtime/status_progress.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdd0d46c3277d08aa74dde01d57d0b29a2321bc213a1fd438cda41bc35094df"}},{"ruleId":"D1","level":"warning","message":{"text":"Driver.emptyMatrixPollOnce (cyclomatic 21): Driver.emptyMatrixPollOnce 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"550f9add3eb708c1993d0b594e9d69571ec39ca2718dea02863a7053afea20ca"}},{"ruleId":"D1","level":"warning","message":{"text":"resolve-precommit-tools.merge_registries (cyclomatic 21): resolve-precommit-tools.merge_registries 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":"internal/scaffold/fullsend-repo/scripts/resolve-precommit-tools.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"894582a7420ed3c46f8009ac41b96fcd2e8d68903892bd577bb33c0c20a0ee17"}},{"ruleId":"D1","level":"warning","message":{"text":"secret_redact_posttool._credential_like (cyclomatic 21): secret_redact_posttool._credential_like has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/secret_redact_posttool.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f577272a7b180aae5d15ecff09ae43428221c49d34a09dbd663eaa3d4ab855"}},{"ruleId":"D1","level":"warning","message":{"text":"nextwork._format_mutation_line (cyclomatic 21): nextwork._format_mutation_line 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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"746020ea0fb4064ce4f9de2fa210456ad45eae0859111d258f0bb34f8025762c"}},{"ruleId":"D1","level":"warning","message":{"text":"nextwork.format_markdown_output (cyclomatic 21): nextwork.format_markdown_output 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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":2548}}}],"partialFingerprints":{"codehealthFindingId/v1":"80da3b1b26eb09c952941aff55e108342ab556260c26c0e86a1f7547db3f22bf"}},{"ruleId":"D1","level":"warning","message":{"text":"nextwork.main (cyclomatic 21): nextwork.main 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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":2761}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd8bfb67c7f585865fcf35508b3bd6db71dcece2b5fa5eb26f37041997406e3"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.bootstrapCommon (cyclomatic 20): cli.bootstrapCommon has cyclomatic complexity 20 (threshold 15). Of this number, 16 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":"internal/cli/run.go"},"region":{"startLine":3420}}}],"partialFingerprints":{"codehealthFindingId/v1":"62865dcaec466383001eeaac160e241ada93cc2d346d8bf57f87df84d01d6220"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.agentsRepoHostTreeFetcher (cyclomatic 20): cli.agentsRepoHostTreeFetcher 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 one function literal inside it that branches (line 8309). 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":"internal/cli/run.go"},"region":{"startLine":8304}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4a7406ae13fd8352e5f2c6ed009dd429a2f2d0960018c9daac1919ffba69bb"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.reseedCredential (cyclomatic 20): cli.reseedCredential has cyclomatic complexity 20 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 7 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":"internal/cli/run_openai.go"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6245ee854a1730c78045ee9e756edce95085629b073e5cd01fa0e2ac5e4d400"}},{"ruleId":"D1","level":"warning","message":{"text":"contentCollector.toolArguments (cyclomatic 20): contentCollector.toolArguments 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":"internal/cli/content_collector.go"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"609e108f76a3d47267fd37c485f4ac61b60e407e3e96c6095832aeceacd08d67"}},{"ruleId":"D1","level":"warning","message":{"text":"config.validateTracking (cyclomatic 20): config.validateTracking 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":"internal/config/issue_targets.go"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"22422919c2793b6efdc17c42ee541ca3194a0cae8820a86a2f97634b943f4f75"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthorizationProvider.UnmarshalYAML (cyclomatic 20): AuthorizationProvider.UnmarshalYAML 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":"internal/config/config.go"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"384ac5920bd07bcbb57144f6c43e26db96a16d1da512e1e7b10e3c5e3550e03b"}},{"ruleId":"D1","level":"warning","message":{"text":"Provisioner.validate (cyclomatic 20): Provisioner.validate 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":"internal/dispatch/cf/provisioner.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"271f2f301ad373759cacf1606bc62913b268cf16773b70b80b320b81304a02cf"}},{"ruleId":"D1","level":"warning","message":{"text":"gcf.bundleEmbeddedMintSource (cyclomatic 20): gcf.bundleEmbeddedMintSource 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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a686544fb2f141e2999c02457fba2a965d30ecc7a8c2f4dfea3af6d0af271c2"}},{"ruleId":"D1","level":"warning","message":{"text":"e2etest.CleanupStaleResources (cyclomatic 20): e2etest.CleanupStaleResources 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":"internal/e2etest/cleanup.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d95e2d6da64cc70458b552107d72afd3a9369e853a82f7ffa82ddbc5f3a626"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.createCommitOnBranch (cyclomatic 20): LiveClient.createCommitOnBranch 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":"internal/forge/github/commit_graphql.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc35d3a02c01821dda736f21e5cc86a28c58744d126991aa44d3aae63da15003"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.ListPullRequestReviewThreads (cyclomatic 20): LiveClient.ListPullRequestReviewThreads has cyclomatic complexity 20 (threshold 15). Of this number, 15 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":"internal/forge/github/github.go"},"region":{"startLine":4527}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f780d81cb76c958e2b3d64f4c1c059cf9af7b73f80e19eb6f5191648a87ec2"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerOwner.resolveSuppliedAccounts (cyclomatic 20): TriggerOwner.resolveSuppliedAccounts has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 4 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":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee13b5d53c2151cc32c756f5da63f3c3e0a62d6c83b2f1c79928337cd8fd55ab"}},{"ruleId":"D1","level":"warning","message":{"text":"gitlabroles.registrationFromFile (cyclomatic 20): gitlabroles.registrationFromFile 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":"internal/gitlabroles/registry.go"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"241066aadc1ebdebed0131a02496570a52e641e791cfa4fca011f6b21f1be4f4"}},{"ruleId":"D1","level":"warning","message":{"text":"mintclient.QueryStatus (cyclomatic 20): mintclient.QueryStatus 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":"internal/mintclient/mintclient.go"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f24552cb34e8b8e7cfd10669efcd2d903c3c1762a152457f877f6f8c35f515d"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.webhookNoteEvents (cyclomatic 20): Poller.webhookNoteEvents 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":"internal/poll/webhook.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d956052d51ada2b0340418638449f1199f8ecd872941d4b7bb5c78467c37bb"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.prepareHandoffPollerOwnedTrigger (cyclomatic 20): repos.prepareHandoffPollerOwnedTrigger 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":"internal/repos/gitlab_poller_cutover.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"17dc9cf2c1fa1fc0566988f2e9ee13063736ebb586c354fb608b9a34a904c7be"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabDispatchInputContractMatches (cyclomatic 20): repos.gitlabDispatchInputContractMatches has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 550). 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":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"dafbb03ec9d6e5299eabdad89ce092ed663850273fbb67448e7217b521c03978"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.probeGitLabWebhookState (cyclomatic 20): repos.probeGitLabWebhookState 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"89afd18a8ea179ad0a00f76f3ee3f9108170db577b781b444d7e2df9c13847f2"}},{"ruleId":"D1","level":"warning","message":{"text":"Manifest.validateConfigSource (cyclomatic 20): Manifest.validateConfigSource 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":"internal/repos/manifest.go"},"region":{"startLine":1983}}}],"partialFingerprints":{"codehealthFindingId/v1":"7331686624d1b7916841568addca7619c02b93a45077f5464c247e12f100164c"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.buildRunCommandWithDigests (cyclomatic 20): runtime.buildRunCommandWithDigests 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":"internal/runtime/claude.go"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"c401bea1bd1cd96542e631b4e5ec3892591f05e4322a3f7c14c44f1c7284f508"}},{"ruleId":"D1","level":"warning","message":{"text":"scaffold.FindStaleVendoredAssets (cyclomatic 20): scaffold.FindStaleVendoredAssets 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":"internal/scaffold/vendorcleanup.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b4009dd7482bd43128df25426088780d6c814c94525a3f76257dde769b94d2"}},{"ruleId":"D1","level":"warning","message":{"text":"statuscomment.ReconcileOrphaned (cyclomatic 20): statuscomment.ReconcileOrphaned 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":"internal/statuscomment/statuscomment.go"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77b302bcdb3c8359b01658d385b970dd02d4f80a8c64a6ccb8486c8e3289039"}},{"ruleId":"D1","level":"warning","message":{"text":"composedDriver.Finalize (cyclomatic 20): composedDriver.Finalize 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":"pkg/behaviourtest/drivers/install/composed.go"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddd1bc96f49598e3d452a09bfc53a2d23781fe781192d11cb7039eaa2b34e51"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.mintStatusFacts (cyclomatic 20): steps.mintStatusFacts 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":"pkg/behaviourtest/steps/mint_status.go"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"9343bc45ac1aad31667c2cdc745d68c0312d555b0f916de3d282b2d1e9ebfe81"}},{"ruleId":"D1","level":"warning","message":{"text":"fullsend-codex-hook.run_script (cyclomatic 20): fullsend-codex-hook.run_script 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":"internal/runtime/codex_hook/fullsend-codex-hook.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"052cea7b323ea0444da3c6cf1642c70420334c3311b53f39d197e89122cff937"}},{"ruleId":"D1","level":"warning","message":{"text":"secret_redact_posttool.content_skips (cyclomatic 20): secret_redact_posttool.content_skips 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":"internal/security/hooks/secret_redact_posttool.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c8347a3c6dc0c739d10656d72d7253d656459fa4e07461678cf58a8f846f1f"}},{"ruleId":"D1","level":"warning","message":{"text":"adr_corner.discussion_points (cyclomatic 20): adr_corner.discussion_points 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":"skills/adr-corner/scripts/adr_corner.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"0345bd82370b2c58892dc6f417ce0580746342760f036d8250418029002526d0"}},{"ruleId":"D1","level":"warning","message":{"text":"artifacts.stripRecord (cyclomatic 19): artifacts.stripRecord 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":"internal/artifacts/telemetry.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da7aba7593538efbe4eea684a4b3718a19d02c3ab7e53065d8fd27b74422ac5"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runAgentNew (cyclomatic 19): cli.runAgentNew 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":"internal/cli/agent_new.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abfe641b4916483b50027e625ebf8f3afddb0fd54ba1c589f9187e5742056c2"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runMintUnenrollRepo (cyclomatic 19): cli.runMintUnenrollRepo 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":"internal/cli/mint.go"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa93a6fdb07252fa88f7436e82ad4d5d5a4eae077ab2f59679befdbf9ca1d81"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runMintDeleteCloudflare (cyclomatic 19): cli.runMintDeleteCloudflare 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":"internal/cli/mint_delete.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1deea7a7551311988c32fc1764feeebc09ea2a3c1aa1c57f15fdc239de19c8"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.forgePointerAttrs (cyclomatic 19): cli.forgePointerAttrs has cyclomatic complexity 19 (threshold 15). Of this number, 18 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":"internal/cli/run_forge_attrs.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0284defc5bf8fb6634b99cea945566f996df6ea892aafe0bb9a9e1631c114615"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runJiraRefresh (cyclomatic 19): cli.runJiraRefresh 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":"internal/cli/run_jira.go"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"917c7cd889abc153d7446575f54341900f3891bb545049ea6345efa3f897810d"}},{"ruleId":"D1","level":"warning","message":{"text":"Provisioner.provisionWithExistingMint (cyclomatic 19): Provisioner.provisionWithExistingMint 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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f7b11e4414743c8c3047384f31a8129298f75e0aa9926cdc35e798959ab799"}},{"ruleId":"D1","level":"warning","message":{"text":"evalmeasure.ScoreFitnessNamed (cyclomatic 19): evalmeasure.ScoreFitnessNamed 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":"internal/evalmeasure/fitness.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fc73a928f9de7a98689064b24c8aa7de342c55255ac765e58d2849f2ad99dd"}},{"ruleId":"D1","level":"warning","message":{"text":"evalmeasure.ScoreRunHealthNamed (cyclomatic 19): evalmeasure.ScoreRunHealthNamed 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":"internal/evalmeasure/runhealth.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c89c0d9d61170513d8c2d0563a64e5e7fe7141d7701ef34659f7e5d8efba101"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.updateOrDeleteNote (cyclomatic 19): LiveClient.updateOrDeleteNote 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":"internal/forge/gitlab/issue.go"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"2725cad8c524aa0f35e58ae4abb21ff53c4df617dcd8761483d15515dff8632c"}},{"ruleId":"D1","level":"warning","message":{"text":"jira.convertBlockNode (cyclomatic 19): jira.convertBlockNode 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":"internal/forge/jira/adf.go"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"9283d936eac09d98cc7904854581f73a8aeabc6f3dafd0ac23e3e75eeb2d30b5"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.fetchBaseSkill (cyclomatic 19): harness.fetchBaseSkill 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":"internal/harness/compose.go"},"region":{"startLine":2184}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb17a35823fad329984307d80f995c884e1110fa331e4cc7b1bfb61fee11cf6d"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.mergeForgeConfigInto (cyclomatic 19): harness.mergeForgeConfigInto 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":"internal/harness/compose.go"},"region":{"startLine":2842}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b335e1b3b823cab3fc68e2c892d3b5245325dd4190adf863353c7ea79bf4d0"}},{"ruleId":"D1","level":"warning","message":{"text":"input.mapIssueCommentEvent (cyclomatic 19): input.mapIssueCommentEvent 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":"internal/harnessdispatch/input/ghaevent.go"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a680373b4008f086384068b6f884d0a8fcd69e60107acb0904f0ce8bfc3f24"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.finalizePendingPollerCutover (cyclomatic 19): repos.finalizePendingPollerCutover 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":"internal/repos/gitlab_poller_cutover.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06dc3988d49ace90891947bb7cb27d916b7ba51c85fbdc3303c5a7d849039f1"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabDispatchConsumerProblem (cyclomatic 19): repos.gitlabDispatchConsumerProblem 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":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"416aa7b2e9279bdfa9b66b0ba8f44a2c63196eb57be4c771d10052da4a6fc1e1"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.jobExecSurfaceProblem (cyclomatic 19): repos.jobExecSurfaceProblem 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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb9122d417911be52ca6c91895d1d1d8ca129221004ed54a25b1d48551c7b6d"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.unevaluableRuleReason (cyclomatic 19): repos.unevaluableRuleReason 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":"internal/repos/gitlab_workflow_admission.go"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be9e3a32ad49ddd66259e5c082f1741d5c251181a222f3e90c96eda7de9323e"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.mergeGitLabCIWithWrapper (cyclomatic 19): repos.mergeGitLabCIWithWrapper 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":"internal/repos/gitlabci.go"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d837225a4af55a0dbe4eab910d55bda1876d704717a5f0ca52d492a53933bd"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.validateManifestManaged (cyclomatic 19): repos.validateManifestManaged 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":"internal/repos/managed_config.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ade2f725562e13a22d7c86d02a18a875e105c42671f9081681d1725cf506178"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.flattenMergeKeys (cyclomatic 19): repos.flattenMergeKeys 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":"internal/repos/manifest_legacy_tracking.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9853db0d6d45745c97cbe9414ad97218e90bc64a5c6cdbd689b65e85a4ca002"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.openAIWIFVariableIdentifiers (cyclomatic 19): repos.openAIWIFVariableIdentifiers 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":"internal/repos/openai_wif.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac0780cca349434d60f0bbc39f4e6781a371a2641443ca2c6a99cf5fd2b37ae"}},{"ruleId":"D1","level":"warning","message":{"text":"Manifest.ExpandGlobsFor (cyclomatic 19): Manifest.ExpandGlobsFor 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":"internal/repos/manifest.go"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af7bc6e297aee39e2cf04cf038e6d8a04bd75eaad7da87a0f50b395fe48ec29"}},{"ruleId":"D1","level":"warning","message":{"text":"ResolvedConfig.applyEffectiveInfrastructure (cyclomatic 19): ResolvedConfig.applyEffectiveInfrastructure 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":"internal/repos/infrastructure.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcc33bb5c304fe1f060f60d50730759604f2effdbce8c2a27c8086a5617580d"}},{"ruleId":"D1","level":"warning","message":{"text":"manifestEditor.prepareSplice (cyclomatic 19): manifestEditor.prepareSplice has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 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":"internal/repos/manifest_set.go"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4eb54993d5b94c9732049c570f043fa5cf3c10b6d428bbab193535bdb4006f7"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.taskProgressMessage (cyclomatic 19): runtime.taskProgressMessage 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":"internal/runtime/task_progress_message.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"8570d92360d551eefe5944a4ba6038861dfac3874f2f242a2094c8d05686996d"}},{"ruleId":"D1","level":"warning","message":{"text":"tokenBasedAnnotation.tokenAnnotation (cyclomatic 19): tokenBasedAnnotation.tokenAnnotation 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":"internal/sentencetoken/annotate.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82288e2d0efd417b17d4268de4ab21926781c8135eb522f0466de759c2115fd"}},{"ruleId":"D1","level":"warning","message":{"text":"Notifier.PostCompletionWithDetail (cyclomatic 19): Notifier.PostCompletionWithDetail 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":"internal/statuscomment/statuscomment.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6bcce226b52a3d385af0c2cd1a2dcd43f9f01c1aa65328763f4b8f5406d4e3"}},{"ruleId":"D1","level":"warning","message":{"text":"Envelope.validate (cyclomatic 19): Envelope.validate 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":"internal/telemetry/tracecontext/envelope.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b847b1b3727d676c87ddc50cd6658a906ad40338fa692bf143c8a5968021d14"}},{"ruleId":"D1","level":"warning","message":{"text":"tracker.transitionFields (cyclomatic 19): tracker.transitionFields 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":"internal/tracker/transition.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a12b9c697d6f72a5eb1fba25c5585efed8308e6e8dda33246a7a4c737b6114"}},{"ruleId":"D1","level":"warning","message":{"text":"behaviourtest.RunSuite (cyclomatic 19): behaviourtest.RunSuite has cyclomatic complexity 19 (threshold 15). Of this number, 18 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":"pkg/behaviourtest/run.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffc0062fe2faba964a8a87c792068af96a2836aa6f2a9f25b0772c6f9aac18d"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.commitLocalHarnessResources (cyclomatic 19): steps.commitLocalHarnessResources 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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"04347dcc2fc84a8c049850d41fd60791a1a96783b76ffabc809a1e3265b1323a"}},{"ruleId":"D1","level":"warning","message":{"text":"mintcore.NewHandler (cyclomatic 19): mintcore.NewHandler 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":"internal/mintcore/handler.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"0017dd475242b83e5b5f8cffdeb56dea94f39d891230b5d4c0ad170f1755620e"}},{"ruleId":"D1","level":"warning","message":{"text":"mintcore.parseTraceparent (cyclomatic 19): mintcore.parseTraceparent 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":"internal/mintcore/tracing.go"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"39915d94d63e1cdf4c816a4be7ce6af43522bd8d76cf7dbf5a53839bf643a423"}},{"ruleId":"D1","level":"warning","message":{"text":"secret_redact_posttool.structural_secrets (cyclomatic 19): secret_redact_posttool.structural_secrets 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":"internal/security/hooks/secret_redact_posttool.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"626d29a4faa84116036a8a96e0b1da33dbaef039151ce044c7b0750e76da59c2"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.bindGitLabCredentialToForgeHost (cyclomatic 18): cli.bindGitLabCredentialToForgeHost 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":"internal/cli/gitlab_profile.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"90661e131ae0af09e8ddb3828596ddd4e909d9c7cd9d5cfd23df40f44e796d61"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.checkGitLabCredentialBinding (cyclomatic 18): cli.checkGitLabCredentialBinding 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":"internal/cli/gitlab_profile.go"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee6e75614e25f6b4e4d3e1de645b1e5569b15444ed832575821b46c99440424"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runIssuesGet (cyclomatic 18): cli.runIssuesGet 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":"internal/cli/issues.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a53f5351aa4dc0ac71e82d02947f37cfb27e2c0811eb97113b5d64e2e06b8e"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runMintDeleteGCP (cyclomatic 18): cli.runMintDeleteGCP 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":"internal/cli/mint_delete.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed396548bf19884860ea81011a29584f344ccca2803239570eec22c43a85f9c"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.newPostReviewCmd (cyclomatic 18): cli.newPostReviewCmd has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 114). 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":"internal/cli/postreview.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a837d6613f48fd3371a6bfcc3936885b6a4800c602542db29ca9645cab2a5cf2"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.sanitizeReviewResult (cyclomatic 18): cli.sanitizeReviewResult 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":"internal/cli/postreview.go"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5c2bb5d61c04355679854690ef4922260fd267acc6a5b4909854bd38235e72"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.newGitLabRoleTokenClient (cyclomatic 18): cli.newGitLabRoleTokenClient has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 142, 42, 116, \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":"internal/cli/repos_gitlab_service_accounts.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"961544ba5b687330ccc177ecc6fefcf1cbc1888f86acc510ec99e6ec2d7a4e06"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.fetchPinnedAgentsRepoFile (cyclomatic 18): cli.fetchPinnedAgentsRepoFile 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":"internal/cli/run.go"},"region":{"startLine":8017}}}],"partialFingerprints":{"codehealthFindingId/v1":"498e9161f5c34db2145e944dafb9e74ae1aaca1dcf143164da1e0d48792bc60d"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.validateGatewayHost (cyclomatic 18): cli.validateGatewayHost 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":"internal/cli/run_gateway_egress.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2abaab608db52f7117d769f6d910b5de9356369bd8b4773c3644ea178d79f201"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.trustedTirithRepoPolicy (cyclomatic 18): cli.trustedTirithRepoPolicy 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":"internal/cli/tirith_repo_policy.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e758107a8edf1807fd1bad5f0cf27e7e31de9db13ad29051a872c3a54ddb55"}},{"ruleId":"D1","level":"warning","message":{"text":"Provisioner.provisionRepoWIFProvider (cyclomatic 18): Provisioner.provisionRepoWIFProvider 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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"804357c9414cf6dc8344fcd96effe3e70c9b747ee9f64fa81a662cf08fe73987"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.doAttempts (cyclomatic 18): LiveClient.doAttempts 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":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5f94736dccdcdcc8d98f26c6e84308c978661a23a1fca6f506525c58723967"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.DoRequest (cyclomatic 18): Client.DoRequest 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":"internal/gcp/client.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4e11ed4e4d8611f7ad07e91e965e96a06c45625cbcd76db283ba4bcf74643c"}},{"ruleId":"D1","level":"warning","message":{"text":"UninstallTokenClient.ReconcileGitLabPollersForUninstall (cyclomatic 18): UninstallTokenClient.ReconcileGitLabPollersForUninstall 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":"internal/gitlablifecycle/uninstall.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d6f0d3e5d42d5cc72214083f7370a6db5af801a5d5af3531a9d3fab763a511"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.webhookMergeRequestEvent (cyclomatic 18): Poller.webhookMergeRequestEvent 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":"internal/poll/webhook.go"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f699e5914168d31de4f4d5a516e9d3ce5ea3674a949f338990cb474d23a6e9d"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.webhookIssueEvents (cyclomatic 18): Poller.webhookIssueEvents 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":"internal/poll/webhook.go"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c01852fde647693f057b4a6ece186b7da31ae8853f2ebf2c23f41278847dbc"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.convergeGitLabRootCIFiles (cyclomatic 18): repos.convergeGitLabRootCIFiles 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":"internal/repos/converge.go"},"region":{"startLine":2853}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaae7c03fa34fb9380b267a850d1fa933500381b83af08a6e20b057ce8f97476"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.checkGitHubJiraPollWorkflow (cyclomatic 18): repos.checkGitHubJiraPollWorkflow 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":"internal/repos/github_jira_poll.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1092de5cad8b7de638b8d30e09cd0a056a381b8849a225a1c7d8b24012a4ba4d"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.revokeRetiringPollerTriggers (cyclomatic 18): repos.revokeRetiringPollerTriggers 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":"internal/repos/gitlab_poller_retirement.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f84182a8456fe2fb6ec7e64731656b4480b6eb3f041ae7382b53df19c09a73"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.cleanupOutgoing (cyclomatic 18): repos.cleanupOutgoing 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. This is NOT this file\u0027s highest cyclomatic complexity: repos.initialDistributionEligible (cyclomatic 21) 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"281133efce50b982adf2fd4214079920788e5fa6d62d671aa64b94d81be4e562"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.suppliedAwareInventory (cyclomatic 18): repos.suppliedAwareInventory 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. This is NOT this file\u0027s highest cyclomatic complexity: repos.initialDistributionEligible (cyclomatic 21) 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f1fe8775108b3b6d74c5f6c51bf05e837db91f7e1f9723c242768581215baa"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.RotateGitLabTriggerAccount (cyclomatic 18): repos.RotateGitLabTriggerAccount 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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":2209}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f58119371698d23c057a4ca951dc7343a407196150dee25293f715ed435e13"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabIncludeAdmits (cyclomatic 18): repos.gitlabIncludeAdmits 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":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"379baef1ca02e49c792a36142c962cb554a4ff571c449771b845423e51d6d813"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.CheckGitLabTriggerDispatchGate (cyclomatic 18): repos.CheckGitLabTriggerDispatchGate 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":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d0ee804bb198d21b94c1bbc01ee5aed7a80cea59c93a335e71d1721e87f3c9"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.evaluateRules (cyclomatic 18): repos.evaluateRules 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":"internal/repos/gitlab_workflow_admission.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22d40cd5f69a31405d8aa5992114a9555b4fd37397b7f099d31a58603b19c7a"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabRootDeclaresDispatchInputs (cyclomatic 18): repos.gitlabRootDeclaresDispatchInputs 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":"internal/repos/gitlabci.go"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf97dbb210c1b2268b2f205ede2ce075c877ffc825b399242f48fdc8dc4a68b"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.parseManifestPath (cyclomatic 18): repos.parseManifestPath 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":"internal/repos/manifest_set.go"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bf7513590e1cbca53725fb26b95a527d8c59d950245b0c0602c44974fa6823"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.checkForgeFields (cyclomatic 18): repos.checkForgeFields 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":"internal/repos/manifest_set.go"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf5333d040b450a515d4e7755cf9fc2d4384f6635cacc2e6b26d513b23a06e4"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.ProbeRepoState (cyclomatic 18): repos.ProbeRepoState 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":"internal/repos/status.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbfc7cbd610c28b9125c866c40e3a92d85c48b4a66d46a3b853b0c68775e298"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.Uninstall (cyclomatic 18): repos.Uninstall has cyclomatic complexity 18 (threshold 15). Of this number, 13 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":"internal/repos/uninstall.go"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d015e7f228eaedc458af6bcc0b6f57a86c933a160b7329d5e30b0c069772d0b"}},{"ruleId":"D1","level":"warning","message":{"text":"gitLabTriggerAccountOp.scheduleOwnershipDrift (cyclomatic 18): gitLabTriggerAccountOp.scheduleOwnershipDrift 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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"66824f7b8d5bf63f4aeb263f00d8f926cb5952fa17a598a043b69824fcf2d996"}},{"ruleId":"D1","level":"warning","message":{"text":"resolve.resolveFileURL (cyclomatic 18): resolve.resolveFileURL 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":"internal/resolve/resolve.go"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac3f3e925b31f9695f5e61df6a39e0588afdf50d3c69372d740fa62580974fb"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.codexTOMLBasicString (cyclomatic 18): runtime.codexTOMLBasicString 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":"internal/runtime/codex_config.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"2664207fb9aefe091553c08957ee1ab85b9e2877ebe522aa982912dd2ef6b064"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.discoverPersonas (cyclomatic 18): runtime.discoverPersonas 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":"internal/runtime/pi_personas.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ad47d03fabd47534f5d415eb72b4704aba0cba5fd1c041166679bb4d81a818"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeRuntime.Bootstrap (cyclomatic 18): ClaudeRuntime.Bootstrap 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":"internal/runtime/claude.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"102e532f0a7d5ebadf7dce39c715bfcacf7001104ba0eec58838fa10a7e3eed9"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexRuntime.foldCodexChildUsage (cyclomatic 18): CodexRuntime.foldCodexChildUsage 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":"internal/runtime/codex_subagents.go"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e150c2f202f4f057703da8fad6be17296d848a763ee3bdb8ff6edc89fc19ef"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodeRuntime.Bootstrap (cyclomatic 18): OpenCodeRuntime.Bootstrap 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":"internal/runtime/opencode_bootstrap.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f04a47e577890093a1db940e00a5e7812ca14454293f7db782a0665c365f4d"}},{"ruleId":"D1","level":"warning","message":{"text":"PiRuntime.piAgentManifestFor (cyclomatic 18): PiRuntime.piAgentManifestFor 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":"internal/runtime/pi_bootstrap.go"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"7315b8b906586445e80a86b5041b2e5c7944b80c56c4da000ea93c42542b9d5b"}},{"ruleId":"D1","level":"warning","message":{"text":"githubactions.extractArtifactZip (cyclomatic 18): githubactions.extractArtifactZip 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ee7e84655ce8dfc2ebbf7ffc772fdb82b41ec07aed3e6d9787a7145a5c8aaa"}},{"ruleId":"D1","level":"warning","message":{"text":"gitlabci.extractArtifactZip (cyclomatic 18): gitlabci.extractArtifactZip 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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe19b86617b7d19eaa3f49c68774aeb015ea37ddb7a9b1414a14edc1a780e58"}},{"ruleId":"D1","level":"warning","message":{"text":"Driver.WaitForWorkflow (cyclomatic 18): Driver.WaitForWorkflow 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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d16a21d7cf7e40f058f2d11176a1079158acc1c905689edbc49ecc8e02c04d6"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.classifyBotRoleResult (cyclomatic 18): steps.classifyBotRoleResult 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":"pkg/behaviourtest/steps/bot_role_probe.go"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"562fe1cec9af93fb51acf8080d53f9eb7f49c773ee6074527fb3c3f5de621d6f"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.collectScenarioRunLogs (cyclomatic 18): steps.collectScenarioRunLogs 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":"pkg/behaviourtest/steps/debuglogs.go"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd51ae0d89cb4f2e857c8a0b6275fdbb18c6904ca917ef440553ec5eb856b134"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.givenIssueFromFixture (cyclomatic 18): steps.givenIssueFromFixture 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":"pkg/behaviourtest/steps/playback.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"206600f07acbf42e875e1bdc0723d8fc1671d52d157845d056920142d8964fb3"}},{"ruleId":"D1","level":"warning","message":{"text":"mintcore.NewTracer (cyclomatic 18): mintcore.NewTracer 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":"internal/mintcore/tracing.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"018d9e52e948cd850ed896dff5bbfa3fd328122acc62cae5f48474fd4b2f3bc0"}},{"ruleId":"D1","level":"warning","message":{"text":"JWKSVerifier.Verify (cyclomatic 18): JWKSVerifier.Verify 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":"internal/mintcore/jwks_verifier.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3f19b74d5ac27d65bd4888cbf6ea5a4bdbe325357bedafe9baa1cba875a610"}},{"ruleId":"D1","level":"warning","message":{"text":"ssrf_pretool._has_command_substitution (cyclomatic 18): ssrf_pretool._has_command_substitution 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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cafdd63dc60b29e2c9f2dbe64d662cb935af7176dd919dda64626ea159b8b35"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runAgentUpdate (cyclomatic 17): cli.runAgentUpdate 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":"internal/cli/agent.go"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"447574734d0eb936fd7797923f58cfb21aacec57f538201bc9053ae62cec33f7"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runAgentRemove (cyclomatic 17): cli.runAgentRemove 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":"internal/cli/agent.go"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"794a22c8df75186ffd92d525335e6efc31fc3f358517845a89e6dbdd538fce61"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.newForeignListCmd (cyclomatic 17): cli.newForeignListCmd 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 one function literal inside it that branches (line 127). 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":"internal/cli/foreign.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"934e73091b423a84747d3b627992932ee63516d026c59badfcbfc6de08c1da41"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.newForeignRevokeCmd (cyclomatic 17): cli.newForeignRevokeCmd 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 one function literal inside it that branches (line 271). 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":"internal/cli/foreign.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cd9c23caeb68adcf247f0577002c6c85ec3123fd2b6ec84d5bf329505ea55c"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.newMintDeployCmd (cyclomatic 17): cli.newMintDeployCmd 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 one function literal inside it that branches (line 591). 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":"internal/cli/mint.go"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78b9b6b45713463635d5f9c86c678ed323f9a0ec7393cfa7b4f3be707957769"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.annotateGitLabRoleLifecycle (cyclomatic 17): cli.annotateGitLabRoleLifecycle 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":"internal/cli/repos_gitlab.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac90a7c2244909d2039cd7f6d8a16e8e47db1f947e6f7785b4f4326e7a11d97"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.verifyGitLabRoleToken (cyclomatic 17): cli.verifyGitLabRoleToken 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":"internal/cli/repos_gitlab_service_accounts.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0497006a945ff508bc9305cd42fbff29cc4e6f0156778f9b7c8d26f037129d93"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.maskSecretLiterals (cyclomatic 17): cli.maskSecretLiterals has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":4787}}}],"partialFingerprints":{"codehealthFindingId/v1":"f672bad8a848478776f71b60746beb8661f85d1016d7d044662f698753ff24fc"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runOpenAIRefresh (cyclomatic 17): cli.runOpenAIRefresh 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":"internal/cli/run_openai.go"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7107e93b64019f1f38e99e97ee49c4e83097872b80f67e2ae42a6eaed2ad87e9"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.loadRunnerSecrets (cyclomatic 17): cli.loadRunnerSecrets 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":"internal/cli/runner_secrets.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5923c3a71ac7a6243aba7b998b3a56a205bb91e7091c76bea96a17585ce84e4d"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.newScanInputCmd (cyclomatic 17): cli.newScanInputCmd 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 one function literal inside it that branches (line 65). 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":"internal/cli/scan.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c864087dc40dd86fbc03cb3ac72e0688f05fb736ead9ecda61e56ff9fb72db3"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveGCFClient.GetServiceTrafficEnvVars (cyclomatic 17): LiveGCFClient.GetServiceTrafficEnvVars 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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1700}}}],"partialFingerprints":{"codehealthFindingId/v1":"399fbad02ae116dbe2ee674b16f9ec2d157d696b1163193008872ee4359f4213"}},{"ruleId":"D1","level":"warning","message":{"text":"envfile.Load (cyclomatic 17): envfile.Load 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":"internal/envfile/envfile.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b2f151e59df9538c470be24b9affc9fdaa761d13ddeca4337099c393c066d2"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.pullRequestFileModes (cyclomatic 17): LiveClient.pullRequestFileModes 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":"internal/forge/github/github.go"},"region":{"startLine":4266}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1339bbe9ab93a83902fe488379ea17c422536f9638a46a6c061bdded05f41b2"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.ListPullRequestFileDiffs (cyclomatic 17): LiveClient.ListPullRequestFileDiffs has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/mr.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab9305979bb2870dea831b68266de6dcb78ed9e78435ddb567f776d228a79fc"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.resolveRootCommitSHA (cyclomatic 17): LiveClient.resolveRootCommitSHA has cyclomatic complexity 17 (threshold 15). Of this number, 12 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":"internal/forge/gitlab/repo.go"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b768f6b89ee352320c060f40daa121726b56f319e3d2105d2de2e45406b680"}},{"ruleId":"D1","level":"warning","message":{"text":"jira.walkInline (cyclomatic 17): jira.walkInline 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":"internal/forge/jira/adf.go"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"704c05e9071f90b9fb0b54bf53624a2c851b1a67323196fbe83d83bb96d0f662"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerOwner.PollerUserID (cyclomatic 17): TriggerOwner.PollerUserID 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":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2580039f24389f91dd8130b084aab777de8c2ba4a6fddb70a74559031416a0d3"}},{"ruleId":"D1","level":"warning","message":{"text":"Registry.add (cyclomatic 17): Registry.add 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":"internal/gitlabroles/registry.go"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dcc76d89cdcd0da161dce1cb2c5018f2f8961a33d6ab745ec5ceba57a540d9"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.fetchBaseScriptDirTree (cyclomatic 17): harness.fetchBaseScriptDirTree 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":"internal/harness/compose.go"},"region":{"startLine":2094}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc667dfaf7a05de2303907ab0749b6c920efbaa841aa2a935a2e287ce95149f6"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.mergeForgeConfig (cyclomatic 17): harness.mergeForgeConfig 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":"internal/harness/forge.go"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0eda7d32f720ddde29316889828dda153742a5c5f57d4dd2c8682bd3518e9bb"}},{"ruleId":"D1","level":"warning","message":{"text":"Harness.Lint (cyclomatic 17): Harness.Lint 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":"internal/harness/lint.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cc6178061a3b377632a01b1230f53476828e28bc050636654ab65a779c06c6"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.resolveEventRoles (cyclomatic 17): Poller.resolveEventRoles 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":"internal/jirapoll/auth.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff34d2f92fd30fbb5fb9a764a6ab1731b3582d3f8296c4ebdc0d5f26280fa59f"}},{"ruleId":"D1","level":"warning","message":{"text":"layers.checkUnsyncedForkFallback (cyclomatic 17): layers.checkUnsyncedForkFallback 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":"internal/layers/commit.go"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c10cd37f65e8fe81e91c8373eb2f67fe07c56791940e69f4e65775f6fcb73c"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.dispatch (cyclomatic 17): Poller.dispatch 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":"internal/poll/dispatch.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cf3bb37bedc07af536350c39cc6d4ef8094ebeec1635963722eb1bd5752536"}},{"ruleId":"D1","level":"warning","message":{"text":"prescript.ParseFile (cyclomatic 17): prescript.ParseFile 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":"internal/prescript/prescript.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a604c24ff6b8072164228f0269ffce5f3c5f8783371242f46a20066f6701e76d"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.checkPresetDrift (cyclomatic 17): repos.checkPresetDrift 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":"internal/repos/config_preset.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f173a5f0aa6a2ea65d3cdc50220020c1f529c531ab3ad6759cb217f48c0e6b"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.revokeGitLabIdentityTokensSkipping (cyclomatic 17): repos.revokeGitLabIdentityTokensSkipping has cyclomatic complexity 17 (threshold 15). Of this number, 16 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":"internal/repos/gitlab_roles_cleanup.go"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0d60a7ab1fed2dd023b5ea6bee0e8e2990380d6c9710540a687ab4c78ec6aa"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.revokeUnsafeTriggerCredential (cyclomatic 17): repos.revokeUnsafeTriggerCredential 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"789095864d8a5a92c3ba63d77293e5594156fdcfcf119bdf2cdbe0943f60b027"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabWrapperForwardsDispatchInputs (cyclomatic 17): repos.gitlabWrapperForwardsDispatchInputs 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":"internal/repos/gitlabci.go"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15975a06e150dce7506329c9747bb1516017dca1164dbc25f35665aaf9ee975"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.validateJiraPollInputs (cyclomatic 17): repos.validateJiraPollInputs 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":"internal/repos/jira_poll.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc108fb6b14947e3019ba37a55546c3ed149dd4c5301c5cbb7137b3fe58b122"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.rejectRemovedConfigSiblings (cyclomatic 17): repos.rejectRemovedConfigSiblings has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d6bfdaf43743e4b9741b85c4bc3a300e3af0ecc24ae466cac98a6be4a851e6"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.hasNullStringElement (cyclomatic 17): repos.hasNullStringElement 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":"internal/repos/manifest_set.go"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef20b25178141c143acb507519350f4542411141a490fd4d386ab2403ff23c77"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.openAIWIFWorkflowProblem (cyclomatic 17): repos.openAIWIFWorkflowProblem 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":"internal/repos/openai_wif.go"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"6554d479c117b131c574519b473b1b71b3bf0a8d0d2283bdd5f3a8ddd1ef59bc"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.extractRawContext (cyclomatic 17): runtime.extractRawContext 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":"internal/runtime/claude_progress.go"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"476a595535b79e6a4e93f5350696577814864dce0d9427f21923253b30397ef2"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeRuntime.Run (cyclomatic 17): ClaudeRuntime.Run 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":"internal/runtime/claude.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5de76c27916af45897e9cfb3dea8850e6bf39417f83e5587ca6f91c4a61837"}},{"ruleId":"D1","level":"warning","message":{"text":"SecretRedactor.Scan (cyclomatic 17): SecretRedactor.Scan 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":"internal/security/redactor.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd00af0b1e0ed54bea33df10827c21a7a1010f50257cbae1cb528d31bf7bf75a"}},{"ruleId":"D1","level":"warning","message":{"text":"SSRFValidator.ValidateURL (cyclomatic 17): SSRFValidator.ValidateURL 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":"internal/security/ssrf.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc86e888aaaed16470d079e1d85d2496b4c0585e51af0e1f26f42c68bfa9bdc"}},{"ruleId":"D1","level":"warning","message":{"text":"sticky.BuildUpdatedBody (cyclomatic 17): sticky.BuildUpdatedBody has cyclomatic complexity 17 (threshold 15). Of this number, 16 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":"internal/sticky/sticky.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d306cac257867d8ba11918b2660cf52501d4d93a875efe7c56e318bde85ce27"}},{"ruleId":"D1","level":"warning","message":{"text":"tracecontext.Admit (cyclomatic 17): tracecontext.Admit 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":"internal/telemetry/tracecontext/envelope.go"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbc458cb4465928b3eb56a2fae4abb2fe328e3b207aac01b7edf1a1b9a11b41"}},{"ruleId":"D1","level":"warning","message":{"text":"Driver.WaitForWorkflow (cyclomatic 17): Driver.WaitForWorkflow 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7a507c2b0be10b8093e7ffa55eff6d6871c644c0c986fef943f4dcdc096f5e"}},{"ruleId":"D1","level":"warning","message":{"text":"Driver.harnessRoundPollOnce (cyclomatic 17): Driver.harnessRoundPollOnce 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14d95c0c8b0885031272a63823914471fac41a235c039513a24e8e6293c40a9"}},{"ruleId":"D1","level":"warning","message":{"text":"traceCollector.Start (cyclomatic 17): traceCollector.Start has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong 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":"pkg/behaviourtest/drivers/install/trace_collector.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e23f9ce8a66ada41ef9214c78a7b2a29615d8530e76d49818946c07cdf8cbe"}},{"ruleId":"D1","level":"warning","message":{"text":"traceCollector.stop (cyclomatic 17): traceCollector.stop 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":"pkg/behaviourtest/drivers/install/trace_collector.go"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"5637fb4c863cf9fc7d13516c6d0eda7997c5387f08a264579aaf781ec66f7f24"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.ensureRunArtifacts (cyclomatic 17): steps.ensureRunArtifacts has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong 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":"pkg/behaviourtest/steps/artifacts.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab62975d3935fce9a30b0870b3997f2372fb561915ee8bf6ae792c35c4d403d8"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.whenMintProbeRequests (cyclomatic 17): steps.whenMintProbeRequests 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":"pkg/behaviourtest/steps/mint_probe.go"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e81e476c4b938984311911ea2f8c51d20342aed7a6b389b6a17a8e685a16116"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.givenRepositoryAgentSettings (cyclomatic 17): steps.givenRepositoryAgentSettings 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":"pkg/behaviourtest/steps/runtime.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d44e953ebdb4fba6572274222276d72f3ba355c5c58b4968af20cd695e03e39"}},{"ruleId":"D1","level":"warning","message":{"text":"mintcore.ParseCustomRolePermissions (cyclomatic 17): mintcore.ParseCustomRolePermissions 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":"internal/mintcore/github.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"acaa5bee77c2fba48499848b2dfcccfce4dd8f29911a4d6131d99b3f3f9769ff"}},{"ruleId":"D1","level":"warning","message":{"text":"ssrf_pretool.validate_url (cyclomatic 17): ssrf_pretool.validate_url 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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f132063231500ca8c5a26a6a5adc0ce596c957b29b85e8fdcfe4057493889e"}},{"ruleId":"D1","level":"warning","message":{"text":"adr_corner.infer_adr_authors (cyclomatic 17): adr_corner.infer_adr_authors has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/adr-corner/scripts/adr_corner.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa14fd15d27a5b8a87b45f7d171581d79694e2846d17770fbe73ee584030b71e"}},{"ruleId":"D1","level":"warning","message":{"text":"Options.Validate (cyclomatic 16): Options.Validate 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":"internal/agentnew/options.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8242086d7266efe268c4cfef4c69e57a227377f5d2ab148d1fad6de45e6746"}},{"ruleId":"D1","level":"warning","message":{"text":"artifacts.prepareMetadata (cyclomatic 16): artifacts.prepareMetadata 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":"internal/artifacts/prepare.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d204f288a7913efed21b0788383817e5e42457a971b09e279bf833bdb4fdc0f"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runAgentList (cyclomatic 16): cli.runAgentList 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":"internal/cli/agent.go"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed714ab0874834d76c4aeafe4d2df2160c63945aa00c08d2f4b2aa76f74559f"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.pinAgentURL (cyclomatic 16): cli.pinAgentURL 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":"internal/cli/agent.go"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38168c29156d32be42c40740a1bfd42524ca4ca224e4cf3eb672e5088cb190c"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.evalMeasureFetchContext (cyclomatic 16): cli.evalMeasureFetchContext 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":"internal/cli/evalmeasure.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"550c73f684dee00fb8d39768161f0a20f01fa86f42359192a49d5db4c7215227"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.validateForgeDestination (cyclomatic 16): cli.validateForgeDestination has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/gitlab_profile.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1440ab3d848f314b01153ec226653b031f6e258a836b8b29fdf26442ea4d2232"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.newInferenceProvisionCmd (cyclomatic 16): cli.newInferenceProvisionCmd has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function literal inside it that branches (line 111). 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":"internal/cli/inference.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf716e5937c8dce937fcf40e446d6832f02d7f5a5f5364bf179beccd936ebebe"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.postReviewContent (cyclomatic 16): cli.postReviewContent 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":"internal/cli/postreview.go"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"74021959abfed3ec98c079ac96d4300e1683ee2de5800222e5d8a0f8f8a6f5a2"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.convergeGitLabDispatchRoute (cyclomatic 16): cli.convergeGitLabDispatchRoute 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, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos_gitlab_trigger_account.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a326f99c01ad976f5fbbc017b3b924364bcf060a6cfc16874d8ec55fb1c7f4"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.planGatewayRoute (cyclomatic 16): cli.planGatewayRoute 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":"internal/cli/run_gateway_route.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"adea195aa6fc8dbdace419d223eab8634c59427af212c9a1953f4f2fbcdc0def"}},{"ruleId":"D1","level":"warning","message":{"text":"Provisioner.ProvisionGitLabWIF (cyclomatic 16): Provisioner.ProvisionGitLabWIF 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":"internal/dispatch/gcf/gitlab_wif.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b7a9d96411924855a58878dc48fc043b814a0ad86658f7730bb1aef7f9a2e8"}},{"ruleId":"D1","level":"warning","message":{"text":"evalmeasure.MeasureAndExport (cyclomatic 16): evalmeasure.MeasureAndExport has cyclomatic complexity 16 (threshold 15). Of this number, 14 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":"internal/evalmeasure/run.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8610b03bfbb1e6ddc2eefa9dd8093e9014b253fb80d9d0bb9a0908a8d558c6bc"}},{"ruleId":"D1","level":"warning","message":{"text":"fetch.CacheFindNewest (cyclomatic 16): fetch.CacheFindNewest 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":"internal/fetch/cache.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad51d6b5f7b0b323725b1a50aa48acf307a5163daeeb297c7d8801828389d7d"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveClient.ListPullRequestFileDiffs (cyclomatic 16): LiveClient.ListPullRequestFileDiffs 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":"internal/forge/github/github.go"},"region":{"startLine":4362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cebbc4328a0e266056df9981c67acbd05d81f016697b9a2b1441dfd6e2b037"}},{"ruleId":"D1","level":"warning","message":{"text":"harnessdispatch.authorizeEvent (cyclomatic 16): harnessdispatch.authorizeEvent 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":"internal/harnessdispatch/auth.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a3aeced8ccb79f9e34b8483f30bb75bd9ae784a230bcee8f9db80d05a8536e"}},{"ruleId":"D1","level":"warning","message":{"text":"Poller.processIssue (cyclomatic 16): Poller.processIssue 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, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/jirapoll/poller.go"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5ae1fe6ce60c1079ac2d76cb8c563c6c7d0a0b34c0bd23f99fa50c75a4a111"}},{"ruleId":"D1","level":"warning","message":{"text":"layers.commitScaffoldViaPR (cyclomatic 16): layers.commitScaffoldViaPR 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":"internal/layers/commit.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3def1646bc3e9a39962c1049c98a88fddd7f047c89694535970949ef5962f1"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.VerifyGitLabPollerCredentials (cyclomatic 16): repos.VerifyGitLabPollerCredentials 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":"internal/repos/gitlab_poller_credential_policy.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc760cae088f41537d915b8da704e1c0e40aecb55f3bcacea7be4ec9368540e"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.rotateProvided (cyclomatic 16): repos.rotateProvided has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: repos.initialDistributionEligible (cyclomatic 21) 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b98ca083d526722e93fa8287456d1e49f825145b8efd730dedd55139ca82fa"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.loadRotationState (cyclomatic 16): repos.loadRotationState 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: repos.initialDistributionEligible (cyclomatic 21) 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e68158f318ea652e8e536e82ce3f3a74a12bf0e191d08c811f84eff9a83cc3"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabManagedSourceAdmissionProblem (cyclomatic 16): repos.gitlabManagedSourceAdmissionProblem 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":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe153e93a94858e730731ed464e4e1fd386b9ef8c4d852294f86c944fdbbc2b"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.expandRuleReferences (cyclomatic 16): repos.expandRuleReferences 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":"internal/repos/gitlab_trigger_job_templates.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d3088fa335f878a7e5c45fecdc7079a02cb510bd1d26043de1e128b204ec0a"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.globalExecProblem (cyclomatic 16): repos.globalExecProblem has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13d2b4e1f13f5af008ca2f4f2eca9d3d0761f89c101c9120fe411f0cd1736cc"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabTriggerOwnerProblemSkipping (cyclomatic 16): repos.gitlabTriggerOwnerProblemSkipping 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"790e0b2a330583072d91d142735427b7d9588688fbcfdc88f3e3e04ed07340dd"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.gitlabWrapperDispatcherProblem (cyclomatic 16): repos.gitlabWrapperDispatcherProblem 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8397f0ff6fe73bf2b79439513e96112b0b505deced75f419a19f75a2c35734"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.GitLabWebhookUsesRetiredTriggerCredential (cyclomatic 16): repos.GitLabWebhookUsesRetiredTriggerCredential 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":"internal/repos/gitlab_webhook_trigger_account.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"608fa1a74282b06e795c2580677e3d719bc2926580f48ed42e31a20ed2d0858e"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.GitLabWebhookTriggerRouteStale (cyclomatic 16): repos.GitLabWebhookTriggerRouteStale 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":"internal/repos/gitlab_webhook_trigger_account.go"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"0236efdb7cb8d8c0310c105acf1f00a634b27ce82fdc50e63cbfef2594cfa938"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.ExpectedScaffoldContent (cyclomatic 16): repos.ExpectedScaffoldContent 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":"internal/repos/install.go"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31caa55b5d9ef2b1746ff8836def1520a4365e6ff2ea8ca32b59f59134fa0a0"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.checkManagedConfigDrift (cyclomatic 16): repos.checkManagedConfigDrift 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":"internal/repos/managed_config_lifecycle.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f4047597464d6744e5796d4df38c75d92fb62401e6dbdd4bbb127c6731b504"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.resolveManifestTarget (cyclomatic 16): repos.resolveManifestTarget 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":"internal/repos/manifest_set.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"631738b2fc1b874d2b14c949453b774b22a0d75eba06dda1d451694991d70e89"}},{"ruleId":"D1","level":"warning","message":{"text":"repos.Status (cyclomatic 16): repos.Status has cyclomatic complexity 16 (threshold 15). Of this number, 14 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":"internal/repos/status.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eed3dd3745c940881014fb6d1ddb4f9ddf58bebdcfc7d29744f3098aad0abd7"}},{"ruleId":"D1","level":"warning","message":{"text":"suppliedPollerGrantProbe.rollback (cyclomatic 16): suppliedPollerGrantProbe.rollback 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":"internal/repos/gitlab_supplied_provenance.go"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa7708789cdb2f8d6beb42864c007f84f443f878deab6099fdac54a86654702"}},{"ruleId":"D1","level":"warning","message":{"text":"gitLabTriggerAccountOp.bootstrap (cyclomatic 16): gitLabTriggerAccountOp.bootstrap 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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"401abc51d4bfc71c77bdb031bcda72f504c70a78e556bcad3cfd2ede55e8ab70"}},{"ruleId":"D1","level":"warning","message":{"text":"scaffold.isFullsendOwnedVendoredPath (cyclomatic 16): scaffold.isFullsendOwnedVendoredPath has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/scaffold/vendorcleanup.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"e857176bc9a288f7a09fa6ef749b2b76be745c04356a587e9ac886e1728be211"}},{"ruleId":"D1","level":"warning","message":{"text":"artifacts.FindOutputFilesByArtifact (cyclomatic 16): artifacts.FindOutputFilesByArtifact has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 49, 90). 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":"pkg/behaviourtest/artifacts/find.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d960f50212833236a211c9bbbb02b405b736b44b37e61ae6ac10dda269209bec"}},{"ruleId":"D1","level":"warning","message":{"text":"Driver.harnessPollOnce (cyclomatic 16): Driver.harnessPollOnce 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6d12a8b577220501810664bea58d7095a69106b3089e8d961335b6210ce3e5"}},{"ruleId":"D1","level":"warning","message":{"text":"Driver.hasSupersedingAgentRun (cyclomatic 16): Driver.hasSupersedingAgentRun 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23920ecadd415ad2084d294a64e2959af368bd4ccd89c58d0be1584c0adf3df"}},{"ruleId":"D1","level":"warning","message":{"text":"Driver.harnessRoundPollOnce (cyclomatic 16): Driver.harnessRoundPollOnce 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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"4210987fe88d46bd2804d5c555ce2541032eded647930876dd57f806eec6923a"}},{"ruleId":"D1","level":"warning","message":{"text":"Driver.failedHarnessPollOnce (cyclomatic 16): Driver.failedHarnessPollOnce 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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a7bd6808e10c79b13fd24f8cb37eb833929d54890463216a2c470e3514d77a"}},{"ruleId":"D1","level":"warning","message":{"text":"retryselect.scenarioLines (cyclomatic 16): retryselect.scenarioLines 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":"pkg/behaviourtest/retryselect/retryselect.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da1c9bd0f71b99e610c2e1a5d4bec1a094abfef84baedc4dcf2d5f712ee33fc"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.collectDispatchDiagnostics (cyclomatic 16): steps.collectDispatchDiagnostics has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/debuglogs.go"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"4448b9359bf2d8026ac28646f4a7ff5c7deedd45ea91b9746b1be36ac5891f71"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.thenHarnessWorkflowLogsContain (cyclomatic 16): steps.thenHarnessWorkflowLogsContain has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c95ba4b94348d2f7b7649089d99b7b1c0d7ad486306108bd9ffc5104bf27643"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.classifyMintProbeResult (cyclomatic 16): steps.classifyMintProbeResult has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/mint_probe.go"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"235fa4d6324c3d8cd1b885f4edfdbf234e2f29e7f14a628a7fb8872318b1ae3f"}},{"ruleId":"D1","level":"warning","message":{"text":"steps.thenPublishedRepoMatchesFixture (cyclomatic 16): steps.thenPublishedRepoMatchesFixture 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":"pkg/behaviourtest/steps/playback.go"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"db82e3610a438ad82e5e3fece2af07a70ffd30aff75f629e321453c9e03276e2"}},{"ruleId":"D1","level":"warning","message":{"text":"mintcore.mintHTTP (cyclomatic 16): mintcore.mintHTTP 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":"internal/mintcore/http_client.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"65dcfc19f4cb0a3acc96cc0327f744202bb632c72fa77d809a2ef6066069997d"}},{"ruleId":"D1","level":"warning","message":{"text":"fullsend-codex-hook.run_post_tool_use (cyclomatic 16): fullsend-codex-hook.run_post_tool_use 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":"internal/runtime/codex_hook/fullsend-codex-hook.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"4654e67186e607a3198b9031b603de6476f1a2de5a643aa78426217f1e1e919f"}},{"ruleId":"D1","level":"warning","message":{"text":"ssrf_pretool._split_command_stages (cyclomatic 16): ssrf_pretool._split_command_stages 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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"2137d7df16edd5304ba83aa40f90bc80a44c564d42d56bf6befcb6fded41015a"}},{"ruleId":"D1","level":"warning","message":{"text":"nextwork.take_over (cyclomatic 16): nextwork.take_over 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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":2103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3fe5b3356e20794f063acd8014bc9843a5ce1b890fc6d6fc9cece182c91e88"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runAgent (cognitive 830): cli.runAgent has cognitive complexity 830 (threshold 15). Drivers by points: if/else 391 (705 pts), loops 46 (78 pts), boolean chains 42, match/switch 3 (5 pts) (nesting depth added 348). Of this number, 745 points are the body\u0027s own statements and 85 belong to 13 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":"internal/cli/run.go"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca717bdba89ede458916fb244c7715318815571e7bac024d674ae7154f70000"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runReposInstall (cognitive 278): cli.runReposInstall has cognitive complexity 278 (threshold 15). Drivers by points: if/else 110 (230 pts), loops 20 (26 pts), boolean chains 20, match/switch 2 (nesting depth added 126). Of this number, 254 points are the body\u0027s own statements and 24 belong to 4 function literals inside it that branch. 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":"internal/cli/repos.go"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5134eb19af5a541ef8dacf90559327c1918ace86312f7123072d0bae2b6b87"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.resolveFromLock (cognitive 228): cli.resolveFromLock has cognitive complexity 228 (threshold 15). Drivers by points: if/else 67 (177 pts), boolean chains 31, loops 15 (18 pts), match/switch 1 (2 pts) (nesting depth added 114). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/lock.go"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22d62ea54499a370628456392ebdc21668ea8eb220c40f1befa02d9d30cd3f9"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.Run (cognitive 221): Poller.Run has cognitive complexity 221 (threshold 15). Drivers by points: if/else 79 (158 pts), loops 20 (31 pts), boolean chains 24, match/switch 3 (8 pts) (nesting depth added 95). Of this number, 208 points are the body\u0027s own statements and 13 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":"internal/poll/poll.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e7f3897211dbd4956ce64b93dedb106a71893f9e697595dea4bccf5da75be6"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.ensureGitLabWebhookFastPath (cognitive 212): repos.ensureGitLabWebhookFastPath has cognitive complexity 212 (threshold 15). Drivers by points: if/else 70 (171 pts), boolean chains 27, loops 5 (11 pts), match/switch 2 (3 pts) (nesting depth added 108). Of this number, 206 points are the body\u0027s own statements and 6 belong to 3 function literals inside it that branch. 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"05be600950648b1c144223f5435db04a429aa1cc5d8e927793c94a704735b7c4"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runPerRepoInstall (cognitive 198): cli.runPerRepoInstall has cognitive complexity 198 (threshold 15). Drivers by points: if/else 99 (173 pts), boolean chains 13, loops 5 (11 pts), match/switch 1 (nesting depth added 80). Of this number, 182 points are the body\u0027s own statements and 16 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":"internal/cli/admin.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0f7efb9d494079884b8e6231cc452a97dc55a5f13eb90fada63aa8d86ceeae"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.Converge (cognitive 197): repos.Converge has cognitive complexity 197 (threshold 15). Drivers by points: if/else 75 (151 pts), boolean chains 21, match/switch 6 (13 pts), loops 8 (12 pts) (nesting depth added 87). Of this number, 138 points are the body\u0027s own statements and 59 belong to 4 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":"internal/repos/converge.go"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"703f3dab1d1817bf6407ca02bb72181d7c27fb5a6455c5292adb291d4aa1f457"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.rotateOneRole (cognitive 189): repos.rotateOneRole has cognitive complexity 189 (threshold 15). Drivers by points: if/else 80 (135 pts), boolean chains 38, loops 6 (14 pts), match/switch 1 (2 pts) (nesting depth added 64). Of this number, 186 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3f9cbb1d49258d8090296354d1237e3535e05308d766cb5a25b4e7ecae2a9f"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeRepo (cognitive 152): repos.convergeRepo has cognitive complexity 152 (threshold 15). Drivers by points: if/else 65 (131 pts), boolean chains 11, loops 5 (10 pts) (nesting depth added 71). 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":"internal/repos/converge.go"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"707926a8ea4332c2058bf9168d6f550437a3fe83fab28f6efb569dae75683e3c"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.parseClaudeStream (cognitive 152): runtime.parseClaudeStream has cognitive complexity 152 (threshold 15). Drivers by points: if/else 35 (115 pts), loops 6 (18 pts), match/switch 5 (16 pts), boolean chains 3 (nesting depth added 103). Of this number, 150 points are the body\u0027s own statements and 2 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":"internal/runtime/claude_progress.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"d154eb77fb197f414450c53c42a43e0dde5116940f344f89ec406cc20b65fc22"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.discoverAllEvents (cognitive 137): Poller.discoverAllEvents has cognitive complexity 137 (threshold 15). Drivers by points: if/else 38 (105 pts), loops 7 (17 pts), boolean chains 15 (nesting depth added 77). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/events.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a34cd1628c77cfee9ce9f62eaed1708e8ee70774b9a12018d3fe5a6e01dfa5"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.parsePiStream (cognitive 135): runtime.parsePiStream has cognitive complexity 135 (threshold 15). Drivers by points: if/else 48 (111 pts), boolean chains 12, loops 4 (6 pts), match/switch 3 (6 pts) (nesting depth added 68). Of this number, 101 points are the body\u0027s own statements and 34 belong to 6 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":"internal/runtime/pi_progress.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf01b8f2d9b452c5e182ce150d03f054c7c4656109d9c53bcab8b2aeb1d19256"}},{"ruleId":"D2","level":"warning","message":{"text":"slotAllocator.Claim (cognitive 131): slotAllocator.Claim has cognitive complexity 131 (threshold 15). Drivers by points: if/else 33 (107 pts), match/switch 6 (18 pts), boolean chains 4, loops 2 (nesting depth added 86). Of this number, 130 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":"pkg/behaviourtest/drivers/install/slotpool.go"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2d171fbee6180a1519e1f09e595c4a64fa62d4c80179a26386404bb9ab72ef"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve.ResolveHarness (cognitive 123): resolve.ResolveHarness has cognitive complexity 123 (threshold 15). Drivers by points: if/else 44 (110 pts), loops 7 (8 pts), boolean chains 5 (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/resolve/resolve.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b485025e09fe5cc7e65a982a64609e39bf5deecb5a47fb77fb635ccebe140d5"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.lockOneAgent (cognitive 122): cli.lockOneAgent has cognitive complexity 122 (threshold 15). Drivers by points: if/else 48 (103 pts), loops 7 (12 pts), boolean chains 4, match/switch 1 (3 pts) (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/lock.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8f112142c7f7d39104ec04d5b38bae0791ab4a67e404cefe9b63c4271fd2d1"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeRefFiles (cognitive 122): repos.convergeRefFiles has cognitive complexity 122 (threshold 15). Drivers by points: if/else 45 (95 pts), boolean chains 19, loops 3 (8 pts) (nesting depth added 55). 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":"internal/repos/converge.go"},"region":{"startLine":2979}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39909439f7fc8c7fad6cae612d1035c1a10025447c093ddad801535e6dd1cb0"}},{"ruleId":"D2","level":"warning","message":{"text":"Provisioner.provisionSelfManaged (cognitive 120): Provisioner.provisionSelfManaged has cognitive complexity 120 (threshold 15). Drivers by points: if/else 57 (98 pts), boolean chains 12, loops 5 (7 pts), match/switch 1 (3 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"18be3f58f04390c8e490a2da3481fe7b6de8acaf678e92641a27257cb3ccdab3"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.CleanupScenario (cognitive 114): steps.CleanupScenario has cognitive complexity 114 (threshold 15). Drivers by points: if/else 56 (95 pts), loops 7 (10 pts), boolean chains 9 (nesting depth added 42). Of this number, 105 points are the body\u0027s own statements and 9 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":"pkg/behaviourtest/steps/cleanup.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d68f96d0a614ceb163d204cb9d3b2b4b794df0b024269affe6fdc77baa2a6dd"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runMintDeployCloudflare (cognitive 108): cli.runMintDeployCloudflare has cognitive complexity 108 (threshold 15). Drivers by points: if/else 59 (84 pts), boolean chains 15, loops 5 (9 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"349f1eaf1af955ea37e1e5ff27abcd9347e09925435ec770c759ac6083ffc583"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.resolveBaseScripts (cognitive 102): harness.resolveBaseScripts has cognitive complexity 102 (threshold 15). Drivers by points: if/else 36 (85 pts), boolean chains 11, loops 4 (6 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef865dd7b780bdb57b74ca8a2ea1797682a91e86d51d4b834d286588b34cbb2"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.ProbeComponentsForAuth (cognitive 102): repos.ProbeComponentsForAuth has cognitive complexity 102 (threshold 15). Drivers by points: if/else 35 (75 pts), loops 9 (14 pts), boolean chains 11, match/switch 1 (2 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/probe.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"300b2ec01a0884b64e4e3422a9a488cc3524021c28eacc7bf27f87f1d5b45d51"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.provisionOwnRoles (cognitive 100): repos.provisionOwnRoles has cognitive complexity 100 (threshold 15). Drivers by points: if/else 36 (95 pts), boolean chains 4, loops 1 (nesting depth added 59). 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":"internal/repos/gitlab_roles.go"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e719889a1d693450e0550376b42a1e791e7698ee64d97466369f3e5dbbc9884"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runGitHubSetupPerRepo (cognitive 97): cli.runGitHubSetupPerRepo has cognitive complexity 97 (threshold 15). Drivers by points: if/else 60 (83 pts), loops 4 (7 pts), boolean chains 6, match/switch 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/github.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"86beaf71189ade1cc6a39548704d2bea89f557c231e8a98baa8e18dfbd218a90"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.resolveBaseResources (cognitive 93): harness.resolveBaseResources has cognitive complexity 93 (threshold 15). Drivers by points: if/else 23 (71 pts), loops 8 (15 pts), boolean chains 7 (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"9744ba67646cf111fb085602b04a1a1ef5a6c7f2d70ed8251c88d695bd6b52f2"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runMintStatus (cognitive 91): cli.runMintStatus has cognitive complexity 91 (threshold 15). Drivers by points: if/else 48 (72 pts), loops 6 (12 pts), boolean chains 7 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1693b8dc560c06a8bcae60727d8cdd2248d1a71b291d2c4718e391355610de"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.doRequest (cognitive 89): LiveClient.doRequest has cognitive complexity 89 (threshold 15). Drivers by points: if/else 28 (73 pts), boolean chains 7, match/switch 2 (6 pts), loops 2 (3 pts) (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b8fd8d70c8ed99482779a8d9c0d57432d6becd6b8f568db319b17f2ad96723"}},{"ruleId":"D2","level":"warning","message":{"text":"Harness.ValidateResourceTypes (cognitive 89): Harness.ValidateResourceTypes has cognitive complexity 89 (threshold 15). Drivers by points: if/else 29 (72 pts), loops 10 (11 pts), boolean chains 6 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/harness.go"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"326e951883dcb7b730f2f205b19055a2c1967450c031da428390464a2713b7ec"}},{"ruleId":"D2","level":"warning","message":{"text":"config.validateAgentEntries (cognitive 87): config.validateAgentEntries has cognitive complexity 87 (threshold 15). Drivers by points: if/else 29 (76 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1fd8ea80c185f6660df2ad30d23a44b778b0d1e52f2ecd694399b5dc12121f"}},{"ruleId":"D2","level":"warning","message":{"text":"Manifest.validate (cognitive 83): Manifest.validate has cognitive complexity 83 (threshold 15). Drivers by points: if/else 36 (70 pts), boolean chains 10, loops 2 (3 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"35065b5ca29df3eb5e0223b0cff386b527971b44f61aa9ccefb57b29cbc27550"}},{"ruleId":"D2","level":"warning","message":{"text":"e2etest.acquireOrg (cognitive 82): e2etest.acquireOrg has cognitive complexity 82 (threshold 15). Drivers by points: if/else 25 (74 pts), loops 3 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/e2etest/testutil.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d2acc1716f07df6a02ab9b068fb1cfc2005199b4caeb4bba5ba54fa9478fb2"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeInstalledServiceAccount (cognitive 82): repos.convergeInstalledServiceAccount has cognitive complexity 82 (threshold 15). Drivers by points: if/else 30 (71 pts), boolean chains 8, loops 1 (3 pts) (nesting depth added 43). 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":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e22555857078b7e879d9a41416cd964d8e8aa97fa7c4720162b9fe5f113c608"}},{"ruleId":"D2","level":"warning","message":{"text":"posttool_chain.main (cognitive 82): posttool_chain.main has cognitive complexity 82 (threshold 15). Drivers by points: if/else 27 (46 pts), error handling 10 (17 pts), loops 2 (8 pts), boolean chains 6, ternaries 1 (5 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/posttool_chain.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce18eaf40cfa7483f23ffe7e2617ba5bf392eff1e73dbac11d7b3e8c25d9c9d1"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListPullRequestReviewThreads (cognitive 80): LiveClient.ListPullRequestReviewThreads has cognitive complexity 80 (threshold 15). Drivers by points: if/else 22 (60 pts), boolean chains 11, loops 4 (9 pts) (nesting depth added 43). Of this number, 70 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":"internal/forge/gitlab/mr.go"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72637094f28bb66a868a11bf2f0e3f3907cb33ac1316e5b32eab8c6434780c3"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.parseCodexStream (cognitive 80): runtime.parseCodexStream has cognitive complexity 80 (threshold 15). Drivers by points: if/else 29 (64 pts), boolean chains 6, loops 3 (6 pts), match/switch 3 (4 pts) (nesting depth added 39). Of this number, 41 points are the body\u0027s own statements and 39 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":"internal/runtime/codex_progress.go"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7496ae29fa8ec68d9be496b9d5c969b6d7071c95ace4d4cbbf83ffbf7afcdc3"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.triggerExtraWorkProblemForSource (cognitive 78): repos.triggerExtraWorkProblemForSource has cognitive complexity 78 (threshold 15). Drivers by points: if/else 22 (55 pts), boolean chains 9, match/switch 4 (8 pts), loops 4 (6 pts) (nesting depth added 39). Of this number, 75 points are the body\u0027s own statements and 3 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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39976e24726b1676f0c4182ca2e465a2dddf78fc2709d48d339c21390bfea26"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.uninstallRepoResources (cognitive 78): repos.uninstallRepoResources has cognitive complexity 78 (threshold 15). Drivers by points: if/else 35 (62 pts), loops 6 (9 pts), match/switch 1 (4 pts), boolean chains 3 (nesting depth added 33). Of this number, 65 points are the body\u0027s own statements and 13 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":"internal/repos/uninstall.go"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"79491b1661faaec58cf1b781a0e59e486622c372a2f180dbe890c32a4445783f"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.revalidateAdditions (cognitive 77): Poller.revalidateAdditions has cognitive complexity 77 (threshold 15). Drivers by points: if/else 20 (62 pts), loops 5 (11 pts), boolean chains 4 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/state.go"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0944f4c58d0a16669d6354fa9e7d111f7f454ed920d88321d1d7d3b0963481d3"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.serveHTTP (cognitive 77): Handler.serveHTTP has cognitive complexity 77 (threshold 15). Drivers by points: if/else 46 (63 pts), boolean chains 7, loops 3 (7 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/handler.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6563ba3c59f5921719b3cfc78d62a161c4e1c64689d58af06b4e6d7cd1cc4f"}},{"ruleId":"D2","level":"warning","message":{"text":"Manifest.validatePlatformRepos (cognitive 76): Manifest.validatePlatformRepos has cognitive complexity 76 (threshold 15). Drivers by points: if/else 27 (65 pts), boolean chains 10, loops 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96a13b9ab27c88960d65cb63ec04b0c598c03be1d3592cdb4316dd69eb8a993"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.DiagnoseGitLabWebhook (cognitive 75): repos.DiagnoseGitLabWebhook has cognitive complexity 75 (threshold 15). Drivers by points: if/else 29 (56 pts), boolean chains 13, match/switch 3 (5 pts), loops 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook_status.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d0d1d043cc9fb50c206ed60507e7b43ce72ca9a01f321569cb806b4356ad76"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceAccountTokenClient.listServiceAccountTokens (cognitive 72): ServiceAccountTokenClient.listServiceAccountTokens has cognitive complexity 72 (threshold 15). Drivers by points: if/else 18 (60 pts), loops 3 (8 pts), boolean chains 4 (nesting depth added 47). 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":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6c29845fa60284c71a29d5ea7c0ff5c8f89dc0bcdd45a2e04a4aadd63ea9c6"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.commitFilesTo (cognitive 71): LiveClient.commitFilesTo has cognitive complexity 71 (threshold 15). Drivers by points: if/else 32 (59 pts), boolean chains 6, loops 5 (6 pts) (nesting depth added 28). Of this number, 69 points are the body\u0027s own statements and 2 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":"internal/forge/github/github.go"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"f574c7edc6f6b0c1cb88e246035ccdeb47ea2d4a1561bc57b7a4040602727034"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.LoadWithBase (cognitive 69): harness.LoadWithBase has cognitive complexity 69 (threshold 15). Drivers by points: if/else 39 (66 pts), boolean chains 3 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c18a1377be84227429c7101ae155058bd5137254cc645e4ff7ef149af29f29"}},{"ruleId":"D2","level":"warning","message":{"text":"e2etest.acquireOrgFromClient (cognitive 68): e2etest.acquireOrgFromClient has cognitive complexity 68 (threshold 15). Drivers by points: if/else 21 (60 pts), loops 3 (4 pts), boolean chains 2, match/switch 1 (2 pts) (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":"internal/e2etest/testutil.go"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"f202813f25370107d7b9f194a8a11e88c5f0efd75b8872287649a353cc247e5c"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.loadBaseChain (cognitive 68): harness.loadBaseChain has cognitive complexity 68 (threshold 15). Drivers by points: if/else 32 (63 pts), boolean chains 5 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"447e966986fee84eafdaabeaeb92817352d728e7d462411ad860136622748b16"}},{"ruleId":"D2","level":"warning","message":{"text":"Harness.validateForge (cognitive 68): Harness.validateForge has cognitive complexity 68 (threshold 15). Drivers by points: if/else 19 (54 pts), loops 5 (10 pts), boolean chains 4 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/forge.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2129ce9789f681e941dcf0a6513120720617ee5d8c6a02594dda81e29ac50cd1"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.executeBehaviourOp (cognitive 68): runtime.executeBehaviourOp has cognitive complexity 68 (threshold 15). Drivers by points: if/else 32 (64 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 33). 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":"internal/runtime/dummy.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5f101d0cc6031b25efd170dd9d69fafb3ae3dd2daef57fa617583e76a9f71a"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.decodeClaudeStatusProgress (cognitive 67): runtime.decodeClaudeStatusProgress has cognitive complexity 67 (threshold 15). Drivers by points: if/else 26 (52 pts), match/switch 5 (11 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 33). 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":"internal/runtime/claude_status_progress.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be9700c7604ca2b96c911a02567dedfc3ba1882df0a430aa790b33e0dd9eac2"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runReposUninstall (cognitive 66): cli.runReposUninstall has cognitive complexity 66 (threshold 15). Drivers by points: if/else 33 (52 pts), boolean chains 6, loops 3 (6 pts), match/switch 2 (nesting depth added 22). Of this number, 60 points are the body\u0027s own statements and 6 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":"internal/cli/repos.go"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d82ec0cd292ea46306074d4dceec39a42224f314b73d2b98476b7204f4da2f8"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveGCFClient.GetServiceRevisionInfo (cognitive 66): LiveGCFClient.GetServiceRevisionInfo has cognitive complexity 66 (threshold 15). Drivers by points: if/else 23 (46 pts), loops 5 (16 pts), boolean chains 4 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1821382809e40654dad93cd8dbd401e354d25f57a899baecbf62d6c046d3517"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.commitFilesImpl (cognitive 66): LiveClient.commitFilesImpl has cognitive complexity 66 (threshold 15). Drivers by points: if/else 26 (55 pts), boolean chains 8, loops 2 (3 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/repo.go"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"63af656fd2db792fd33184640cb00abc21b82afc396acd78eec922d0b7420d64"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexRuntime.Bootstrap (cognitive 66): CodexRuntime.Bootstrap has cognitive complexity 66 (threshold 15). Drivers by points: if/else 37 (56 pts), loops 5 (9 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b099d79717f5fda865b98587423b89d4ad607ae74a0d8204dcbd692887067de1"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runLint (cognitive 65): cli.runLint has cognitive complexity 65 (threshold 15). Drivers by points: if/else 33 (57 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/lint.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e50df1682194dfd7b9ef50c2e93ab2fd332bb006c20195edc2cd58b25b100e4"}},{"ruleId":"D2","level":"warning","message":{"text":"gitLabTriggerAccountOp.planAccountSchedules (cognitive 65): gitLabTriggerAccountOp.planAccountSchedules has cognitive complexity 65 (threshold 15). Drivers by points: if/else 20 (54 pts), loops 5 (8 pts), boolean chains 3 (nesting depth added 37). Of this number, 60 points are the body\u0027s own statements and 5 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":"internal/repos/gitlab_trigger_schedules.go"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf31a223f81449d3acfbb2e292d91f58a5d818f840182ccb0052b92fcde8a278"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabExtraWorkProblem (cognitive 64): repos.gitlabExtraWorkProblem has cognitive complexity 64 (threshold 15). Drivers by points: if/else 29 (57 pts), match/switch 2 (4 pts), loops 2, boolean chains 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"0113ff57df247efe43214a2a7e7f4a8691a8d6d260bf570b2fd191ebb02c36b5"}},{"ruleId":"D2","level":"warning","message":{"text":"gitLabTriggerAccountOp.releaseSchedules (cognitive 64): gitLabTriggerAccountOp.releaseSchedules has cognitive complexity 64 (threshold 15). Drivers by points: if/else 18 (44 pts), loops 7 (11 pts), boolean chains 5, match/switch 1 (4 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_schedules.go"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"504c4028c746053fe2eca44275b9866fc008a1d17609d0f53e08d6ed6a96d994"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.decodeClaudeTaskProgress (cognitive 64): runtime.decodeClaudeTaskProgress has cognitive complexity 64 (threshold 15). Drivers by points: if/else 24 (48 pts), boolean chains 11, match/switch 2 (4 pts), loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/claude_task_progress.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3134dc49859a58a97a2e89d0430c53d95fa8cd17e3a6159b2cd736c994432f7e"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.Install (cognitive 63): repos.Install has cognitive complexity 63 (threshold 15). Drivers by points: if/else 33 (52 pts), boolean chains 6, loops 3 (5 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/install.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c9ff0245979cbbf0cd49bec892ab87c0aeb597b1295ea5aaa4cf613b64221e"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.bootstrapEnv (cognitive 62): cli.bootstrapEnv has cognitive complexity 62 (threshold 15). Drivers by points: if/else 27 (55 pts), boolean chains 5, loops 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":4271}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d1589a1b52e48d45c2c1def10c5b00ee47136194a8c0f2859a855f12855799"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.resolvePersonaModels (cognitive 62): runtime.resolvePersonaModels has cognitive complexity 62 (threshold 15). Drivers by points: if/else 21 (50 pts), boolean chains 6, loops 6 (nesting depth added 29). Of this number, 56 points are the body\u0027s own statements and 6 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":"internal/runtime/pi_personas.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2714f9a5ad3faa3f0bf11d3de21d9cf0ebf14c4adb5ae02b872a0d0567305859"}},{"ruleId":"D2","level":"warning","message":{"text":"nextwork.normalize_item (cognitive 61): nextwork.normalize_item has cognitive complexity 61 (threshold 15). Drivers by points: if/else 13 (33 pts), boolean chains 17, ternaries 4 (9 pts), loops 1 (2 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"079c8b0e2868677e643be5158ef358e63a3b9beceb60262553c013eb21bf5503"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.fetchBaseScriptOrDir (cognitive 60): harness.fetchBaseScriptOrDir has cognitive complexity 60 (threshold 15). Drivers by points: if/else 16 (47 pts), boolean chains 6, loops 2 (5 pts), match/switch 1 (2 pts) (nesting depth added 35). 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":"internal/harness/compose.go"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c34d555b874e15668c4557dabdfc25803acc4a70f1a54c00404e7383595be1f"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.migrateLegacyManifestTracking (cognitive 60): repos.migrateLegacyManifestTracking has cognitive complexity 60 (threshold 15). Drivers by points: if/else 25 (49 pts), boolean chains 8, loops 2 (3 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest_legacy_tracking.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e06efef7d15c2e2b5ef46d9c2d70cbd09009055bfe0139b193fa8b736db2b20"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.planStaleVendoredCleanup (cognitive 60): repos.planStaleVendoredCleanup has cognitive complexity 60 (threshold 15). Drivers by points: if/else 18 (43 pts), loops 7 (10 pts), boolean chains 7 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/stale_vendored.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3703329ffd726022ecab798e20e71988eb132e7fd577f779d161500a889b7c35"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.resolveAgentNewOptions (cognitive 59): cli.resolveAgentNewOptions has cognitive complexity 59 (threshold 15). Drivers by points: if/else 30 (49 pts), boolean chains 9, match/switch 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/agent_new.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc7edaa1549ef3f7faccfd342c7715de4c5b040bd804bfcaba08eeb3125535b"}},{"ruleId":"D2","level":"warning","message":{"text":"UnicodeNormalizer.Scan (cognitive 59): UnicodeNormalizer.Scan has cognitive complexity 59 (threshold 15). Drivers by points: if/else 26 (42 pts), loops 8 (13 pts), boolean chains 4 (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":"internal/security/unicode.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f313a2ad157acde2605c1eee9efbfe70a2f078c7bcfb5e262e3a66b0c6abfc"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.toNormalizedEvent (cognitive 58): Poller.toNormalizedEvent has cognitive complexity 58 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 20, match/switch 3 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/convert.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82d1dd7d5713f0681b29645934929683998d39f2617a10aca86b1cce2cb53a8"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeGitLabWebhookHook (cognitive 58): repos.convergeGitLabWebhookHook has cognitive complexity 58 (threshold 15). Drivers by points: if/else 24 (53 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook.go"},"region":{"startLine":2690}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7c31a4e3f46ba6f8bdea1f3bf0216e40317411d5b2d30136a4d271d10deec1"}},{"ruleId":"D2","level":"warning","message":{"text":"pollerGenerationRun.attemptTrigger (cognitive 58): pollerGenerationRun.attemptTrigger has cognitive complexity 58 (threshold 15). Drivers by points: if/else 36 (51 pts), boolean chains 6, loops 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":"internal/repos/gitlab_poller_generation.go"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac7235163269c70b723fc93796a3e3eb88f4c8abe9cc410133e81e0b23c1faa"}},{"ruleId":"D2","level":"warning","message":{"text":"e2etest.acquireLock (cognitive 57): e2etest.acquireLock has cognitive complexity 57 (threshold 15). Drivers by points: if/else 19 (54 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 36). 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":"internal/e2etest/lock.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4560abf95b707d5c1d5666c9a21c1ee8d459889f69742fcba3bafd6f318c2cb3"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.UnmergeGitLabCI (cognitive 57): repos.UnmergeGitLabCI has cognitive complexity 57 (threshold 15). Drivers by points: if/else 20 (45 pts), boolean chains 8, loops 1 (4 pts) (nesting depth added 28). 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":"internal/repos/gitlabci.go"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e64484ba8d1b599bfc6e6e1e177cfda48f68e8bce7939c59d23a1897215767e"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze-transcript.cmd_network (cognitive 57): analyze-transcript.cmd_network has cognitive complexity 57 (threshold 15). Drivers by points: if/else 18 (39 pts), loops 7 (12 pts), boolean chains 4, ternaries 2 (nesting depth added 26). 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":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a42128cc90a0945376965797b617bafa4abe593a887df7c37a85d4345db6bb2"}},{"ruleId":"D2","level":"warning","message":{"text":"config.applyManagedLayer (cognitive 56): config.applyManagedLayer has cognitive complexity 56 (threshold 15). Drivers by points: if/else 33 (53 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/managed.go"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e16196bb823fe96ba8c89552a7fb9845928f981ecf0783eed2141db7a87e23"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.checkRepoStatus (cognitive 56): repos.checkRepoStatus has cognitive complexity 56 (threshold 15). Drivers by points: if/else 31 (46 pts), boolean chains 6, loops 2, 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":"internal/repos/status.go"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"095a635b15fe9d6d720604ecda551d10c6aec580d022fb9ac7c2ba6e5205c1aa"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexRuntime.Run (cognitive 55): CodexRuntime.Run has cognitive complexity 55 (threshold 15). Drivers by points: if/else 35 (45 pts), boolean chains 10 (nesting depth added 10). Of this number, 51 points are the body\u0027s own statements and 4 belong to 2 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, 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":"internal/runtime/codex_run.go"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"922dff4c37ae344217ddc9adf1e02e8d9eb688c7bc853a1fe292f27e4a7c778a"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceAccountTokenClient.withoutSuppliedLegacy (cognitive 54): ServiceAccountTokenClient.withoutSuppliedLegacy has cognitive complexity 54 (threshold 15). Drivers by points: if/else 19 (42 pts), boolean chains 10, loops 2 (nesting depth added 23). Of this number, 49 points are the body\u0027s own statements and 5 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":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b52a0d4655e5922acf1c77877a85c9a58e52040cb63d8e4601564d6b951eca"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runLockAll (cognitive 52): cli.runLockAll has cognitive complexity 52 (threshold 15). Drivers by points: if/else 26 (41 pts), loops 4 (8 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/lock.go"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"0578090c4cd5ac750a3b6bce2d4f0bc8682d42d83eec2af720ed24d06ae7e412"}},{"ruleId":"D2","level":"warning","message":{"text":"fetch.FetchURL (cognitive 52): fetch.FetchURL has cognitive complexity 52 (threshold 15). Drivers by points: if/else 26 (43 pts), loops 3 (4 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 20). Of this number, 49 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":"internal/fetch/fetch.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0126195a635c6d61c98225d3e7e661ede83dd3773ecb996dcfe215cf3bf53590"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.resolveBaseProfiles (cognitive 52): harness.resolveBaseProfiles has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (36 pts), boolean chains 8, loops 5 (8 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1422acac0bcff1075fa47206739dadca14fc986578f9bb42a9fd7efe6bc1338"}},{"ruleId":"D2","level":"warning","message":{"text":"Manifest.ExpandGlobsFor (cognitive 52): Manifest.ExpandGlobsFor has cognitive complexity 52 (threshold 15). Drivers by points: if/else 13 (41 pts), loops 6 (11 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa5d1b28202d26d9962b8abaf22b2bc02b77ae021c1a2ee65f3e97bd2a7605b"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.validatePiGatewayModelValue (cognitive 52): runtime.validatePiGatewayModelValue has cognitive complexity 52 (threshold 15). Drivers by points: if/else 18 (43 pts), loops 3 (6 pts), boolean chains 2, match/switch 1 (nesting depth added 28). 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":"internal/runtime/pi_gateway.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"67183061e9684a07eb7d7d1a5243feadddfc4187dd60fe9a8a4b5a051d47fb0b"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve-precommit-tools.resolve (cognitive 52): resolve-precommit-tools.resolve has cognitive complexity 52 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 8, loops 4 (8 pts), ternaries 2 (8 pts), error handling 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/scaffold/fullsend-repo/scripts/resolve-precommit-tools.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"668ff974d1878b19ce46e29bb26092f382d1726c6dfa9ad2f5cbc478692733ec"}},{"ruleId":"D2","level":"warning","message":{"text":"blobJSONReadCloser.Read (cognitive 51): blobJSONReadCloser.Read has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (43 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/blobstream.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac50be65ef14d3c957f8b147c9905eb002baa1e113b8a8b4fb7875cc37c823c"}},{"ruleId":"D2","level":"warning","message":{"text":"jira.resolveTextEscapes (cognitive 51): jira.resolveTextEscapes has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (44 pts), boolean chains 6, loops 1 (nesting depth added 31). 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":"internal/forge/jira/adf.go"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c582e31cc606201360a72e8e3a0a452b399ad671e78386ba34679fc4e35d23"}},{"ruleId":"D2","level":"warning","message":{"text":"Harness.Validate (cognitive 51): Harness.Validate has cognitive complexity 51 (threshold 15). Drivers by points: if/else 30 (38 pts), boolean chains 9, loops 2, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/harness.go"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d98d599ee6ae96a5a9843513d7c7abe5e78ad8e45c46159aee6051e29d5e63"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.mintPollerOwnedTrigger (cognitive 51): repos.mintPollerOwnedTrigger has cognitive complexity 51 (threshold 15). Drivers by points: if/else 30 (41 pts), boolean chains 9, match/switch 1 (nesting depth added 11). Of this number, 48 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":"internal/repos/gitlab_webhook_poller.go"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec56885db7884d188abc93feedb1f882edd7821a354cff9f103ee10992550685"}},{"ruleId":"D2","level":"warning","message":{"text":"manifestEditor.plan (cognitive 51): manifestEditor.plan has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (31 pts), boolean chains 9, match/switch 2 (6 pts), loops 2 (5 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest_set.go"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59f23e13bf36af1aa42961766212c00d1fed2a5ef65abf59c5f67958f31ae1a"}},{"ruleId":"D2","level":"warning","message":{"text":"progressReconciler.task (cognitive 51): progressReconciler.task has cognitive complexity 51 (threshold 15). Drivers by points: if/else 24 (33 pts), boolean chains 18 (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":"internal/runtime/task_progress_reconciler.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e5f15d0b14d7dfba0acfc4dc3848bdc41d4245e47a0e26b8479f31ef856ecb"}},{"ruleId":"D2","level":"warning","message":{"text":"tirith_check.check_command (cognitive 51): tirith_check.check_command has cognitive complexity 51 (threshold 15). Drivers by points: if/else 22 (37 pts), error handling 7 (8 pts), boolean chains 3, ternaries 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":"internal/security/hooks/tirith_check.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"448016a51f5337437150fa8d8853b307f2ec4d085de486a935883d1ae8547150"}},{"ruleId":"D2","level":"warning","message":{"text":"binary.extractSourceTree (cognitive 50): binary.extractSourceTree has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (42 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/binary/download.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd0dc9be32ea11174c95dde4595a1e3ea9f7583d702df407c1825b9fc518c2d"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runGatewayRefresh (cognitive 50): cli.runGatewayRefresh has cognitive complexity 50 (threshold 15). Drivers by points: if/else 16 (43 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_gateway_route.go"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f58c6ea7224e6ab75a2ab0b65e7dbbd53dea2c3857ad8c1d0ad8160494812dc"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runJiraRefresh (cognitive 50): cli.runJiraRefresh has cognitive complexity 50 (threshold 15). Drivers by points: if/else 11 (38 pts), loops 3 (6 pts), match/switch 1 (5 pts), boolean chains 1 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_jira.go"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"e616d55cd65c577cb608c083ec086d248623bbdc30f1947fb2992dcf6c360b27"}},{"ruleId":"D2","level":"warning","message":{"text":"config.CheckManagedSafetyGate (cognitive 50): config.CheckManagedSafetyGate has cognitive complexity 50 (threshold 15). Drivers by points: if/else 22 (37 pts), boolean chains 12, loops 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":"internal/config/managed_safety.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb69226e24135e19064cd8d361484300077c61c7f8dfa430a98202e6044f6e27"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.resolveBaseProviders (cognitive 50): harness.resolveBaseProviders has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (38 pts), loops 5 (7 pts), boolean chains 5 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":1626}}}],"partialFingerprints":{"codehealthFindingId/v1":"12327a31dc540938aa557328330d0c3988a4de9986a3e219029647c342d053ad"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.BuildConfigMap (cognitive 50): harness.BuildConfigMap has cognitive complexity 50 (threshold 15). Drivers by points: if/else 22 (39 pts), loops 4 (8 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 22). Of this number, 46 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":"internal/harness/forge.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"717e9be719a62ae2a2ceb3f64312cbf11490e166262b5766032f255a230e256f"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.Run (cognitive 50): Poller.Run has cognitive complexity 50 (threshold 15). Drivers by points: if/else 22 (40 pts), loops 4 (7 pts), boolean chains 3 (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":"internal/jirapoll/poller.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03ad4795b903318d46be81c0d6218dc92aad0012dc77c5d94f87801bc2d405f"}},{"ruleId":"D2","level":"warning","message":{"text":"Event.Validate (cognitive 50): Event.Validate has cognitive complexity 50 (threshold 15). Drivers by points: if/else 28 (41 pts), match/switch 3 (5 pts), boolean chains 4 (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":"internal/normevent/event.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"5866c74cc1dafd32249218c038619b5f89466e2ce342e38e5a15391980e0db02"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceAccountTokenClient.AppendGitLabServiceAccountStatus (cognitive 50): ServiceAccountTokenClient.AppendGitLabServiceAccountStatus has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (32 pts), loops 9 (12 pts), boolean chains 6 (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":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e8c0da96304dc872a1f0ff8822290b16a6774a909db5456026e176bb572386"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runOpenAIRefresh (cognitive 49): cli.runOpenAIRefresh has cognitive complexity 49 (threshold 15). Drivers by points: if/else 11 (38 pts), loops 3 (6 pts), match/switch 1 (5 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_openai.go"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12a86998fc5c5db193558a775a9a929e2f99d9988735e205baa66ea32b42029"}},{"ruleId":"D2","level":"warning","message":{"text":"Harness.ResolveRelativeTo (cognitive 49): Harness.ResolveRelativeTo has cognitive complexity 49 (threshold 15). Drivers by points: if/else 20 (39 pts), loops 7 (9 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/harness.go"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"263344b201d4ef94a4e27cc23d2ef878c067552b451b902ee8d118e45501acd9"}},{"ruleId":"D2","level":"warning","message":{"text":"PiRuntime.Bootstrap (cognitive 49): PiRuntime.Bootstrap has cognitive complexity 49 (threshold 15). Drivers by points: if/else 33 (44 pts), loops 3, 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":"internal/runtime/pi_bootstrap.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4612b4029df71fd8e2824690ed011ad328fb9bad1bceeb41fa1fe0b8c061a191"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.detectChanges (cognitive 48): Poller.detectChanges has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (36 pts), boolean chains 5, loops 3 (4 pts), match/switch 1 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/jirapoll/discover.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a46ff90bcd308486df52d554f1556ad5f4bc958ba51f8221c489a9a753fcb7"}},{"ruleId":"D2","level":"warning","message":{"text":"perRepoConfig.AgentEntries (cognitive 47): perRepoConfig.AgentEntries has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (34 pts), loops 6 (13 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/interfaces.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1974adaaf9a7ae732b0a449a92d96a4a449a457542138419ecefa2cb7ce3ffa"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceAccountTokenClient.DeleteManagedServiceAccounts (cognitive 47): ServiceAccountTokenClient.DeleteManagedServiceAccounts has cognitive complexity 47 (threshold 15). Drivers by points: if/else 20 (35 pts), loops 8 (10 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"456cf77011140b25a907fc658b95469c387d214f4bbe4f0788a74bcc0c15e7e8"}},{"ruleId":"D2","level":"warning","message":{"text":"gitLabTriggerAccountOp.converge (cognitive 47): gitLabTriggerAccountOp.converge has cognitive complexity 47 (threshold 15). Drivers by points: if/else 24 (41 pts), boolean chains 5, 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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a75b6eb2774050c94111a6faff508a987d35b19cbda9a7cd7d2ed4e77fe8e7e"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.resolveCodexChildModels (cognitive 47): runtime.resolveCodexChildModels has cognitive complexity 47 (threshold 15). Drivers by points: if/else 22 (38 pts), loops 5 (6 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":"internal/runtime/codex_personas.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8844c4d40f6ec389b530f33dea94f242722ad6b9ea127157c7437e037f80e64"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.mergeBaseIntoChild (cognitive 46): harness.mergeBaseIntoChild has cognitive complexity 46 (threshold 15). Drivers by points: if/else 31 (34 pts), loops 5 (9 pts), boolean chains 3 (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":"internal/harness/compose.go"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"040e2c5ccd32dc0dcf391d92025c5311c07b1d3e2e46d180480d69378889c63f"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.fetchBaseDir (cognitive 46): harness.fetchBaseDir has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (43 pts), boolean chains 3 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":2387}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f55ab340a7550b0e4e20fafcdc0472f3cb28e8741063c4861fc43bfa224942e"}},{"ruleId":"D2","level":"warning","message":{"text":"sharedOrgLock.join (cognitive 46): sharedOrgLock.join has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (40 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/install/orglock.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7b8059596db4622b4c65c6d1378d24ef9675ef0a5bebc27aa6e2d061f5e51b"}},{"ruleId":"D2","level":"warning","message":{"text":"posttool_chain._handle_failure (cognitive 46): posttool_chain._handle_failure has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (27 pts), error handling 5 (10 pts), loops 2 (8 pts), boolean chains 1 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/posttool_chain.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb34b4a32253cb6ac9d419191f7bfadcee6704db7a3b237a23b24ce1b4971b0d"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.ContainGitLabPoller (cognitive 45): repos.ContainGitLabPoller has cognitive complexity 45 (threshold 15). Drivers by points: if/else 24 (37 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_poller_credential_policy.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7cb472ed38d503a29a42a88c25e3739b6706f8e45de2ad5c2847aae625a265"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.validateManifestManaged (cognitive 45): repos.validateManifestManaged has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (42 pts), loops 2 (3 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/managed_config.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8303773a01638ea3d37d99c2254e6f2d2483748179ee8d720b23c5e0c262f9"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceAccountTokenClient.CreateProjectAccessToken (cognitive 45): ServiceAccountTokenClient.CreateProjectAccessToken has cognitive complexity 45 (threshold 15). Drivers by points: if/else 27 (42 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4adf801a6c3908fbc8a9b0aa43ec5ec34c2d5c78e7c47069a40fbbb7451c1c"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.ValidatePiGatewayModelsFile (cognitive 45): runtime.ValidatePiGatewayModelsFile has cognitive complexity 45 (threshold 15). Drivers by points: if/else 22 (37 pts), loops 5 (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":"internal/runtime/pi_gateway.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"85214e94c9bfe3ed766e5e79e2bfb175d79d41205e7e07d777e987a7b475211a"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.CreatePullRequestReview (cognitive 44): LiveClient.CreatePullRequestReview has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (40 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 25). 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":"internal/forge/gitlab/mr.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d08900878283cd2c213c01b8cc555158e9b4da436aafedf62859eabdf703f9"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.ensureGitLabWebhookAccountRoute (cognitive 44): repos.ensureGitLabWebhookAccountRoute has cognitive complexity 44 (threshold 15). Drivers by points: if/else 23 (35 pts), boolean chains 7, loops 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":"internal/repos/gitlab_webhook_trigger_account.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"035a05a8610abcb1ebb62298e5d21541c265c1af637527d7c687c365fa2f8b37"}},{"ruleId":"D2","level":"warning","message":{"text":"nextwork.build_queue (cognitive 44): nextwork.build_queue has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (31 pts), loops 3 (7 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03b4eee8763f9451c3dd8159d91bf2a2779644c9097beea876c0750b64ea3dc"}},{"ruleId":"D2","level":"warning","message":{"text":"gather.classify (cognitive 44): gather.classify has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 7, loops 4 (6 pts), ternaries 1 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/user-forum-whats-new/scripts/gather.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19e16319ef79a0abab13a2365c05930434bf1e9f6d9a13a737e4c9e2de5b42b"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runAgentRemove (cognitive 43): cli.runAgentRemove has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (33 pts), loops 2 (9 pts), boolean chains 1 (nesting depth added 26). 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":"internal/cli/agent.go"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabe8de73ebf7d94e675ac5f04979d01020f728749ed812cb18897273a9dacfb"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.stageOverriddenSkill (cognitive 43): cli.stageOverriddenSkill has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (37 pts), boolean chains 4, loops 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/skill_staging.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"373d2163d4725548277fc5c9b2f0cab6019b3ceab34458d69f3c11e647d3ce6d"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.do (cognitive 43): LiveClient.do has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (31 pts), match/switch 2 (7 pts), boolean chains 4, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/client.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"071dc160f2175ab7bbc89aec2cb7a3fb3dd1499867e59e4bfd3f9ce0f18fc7e2"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.fetchBaseFile (cognitive 43): harness.fetchBaseFile has cognitive complexity 43 (threshold 15). Drivers by points: if/else 24 (42 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":"internal/harness/compose.go"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8e37a6687ac2e0a1741f6f4924d513d0bd12e2b4b6774a68edc0e6571ce62c"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeScaffoldFiles (cognitive 43): repos.convergeScaffoldFiles has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (32 pts), loops 5 (6 pts), boolean chains 5 (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":"internal/repos/converge.go"},"region":{"startLine":3285}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24ab1b2a4996f140becd616ed38b6e7dc02e5bd82129864fa1d030456433022"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.collectConvergeScaffoldFiles (cognitive 43): repos.collectConvergeScaffoldFiles has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (27 pts), loops 9 (11 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/converge.go"},"region":{"startLine":3775}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b67a4b7c8f6cd4f13efb7dcfacb21dd155dd24b83ff0fabf54beef073f30f9"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.piToolsFor (cognitive 43): runtime.piToolsFor has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (31 pts), loops 3 (7 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_agent.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"9676f84457532e704292f61f0857c04ea440885d5543924df78881608320bf75"}},{"ruleId":"D2","level":"warning","message":{"text":"repoEnsurer.deleteLeftoverForkOwned (cognitive 43): repoEnsurer.deleteLeftoverForkOwned has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21 (37 pts), boolean chains 6 (nesting depth added 16). Of this number, 27 points are the body\u0027s own statements and 16 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":"pkg/behaviourtest/drivers/install/ensure.go"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ef37d910f65c12d6932e9a33c52de7238ab7e0920b95ca2db8a86191cf264b"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze-transcript._accumulate_stats (cognitive 43): analyze-transcript._accumulate_stats has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (36 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"072d8c7fdf2a62a4c2e440d83c507d84ffc5d95f1ab88353df6ecee303a08581"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.newReconcileStatusCmd (cognitive 42): cli.newReconcileStatusCmd has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (37 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 18). None of this is in the body itself: all 42 points belong to one function literal inside it that branches (line 65). 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":"internal/cli/reconcilestatus.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b3984946308f54a250c7ce038d3b6878b3a3f6ee9459fba55504229f9967dc"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.triggerVariableOverrideProblemSeen (cognitive 42): repos.triggerVariableOverrideProblemSeen has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 3 (7 pts), boolean chains 5 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e3c5e485b71c198f3aec1cf97a8f004946550fad58f976c461410677e4dcfa"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.HasFullsendEntries (cognitive 42): repos.HasFullsendEntries has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 4 (8 pts), boolean chains 5 (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":"internal/repos/gitlabci.go"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1f8c7a3427752c8ebecfe17d0cef1acbe0fef682472dab717a782ed17aa8b7"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.BuildScaffoldFiles (cognitive 42): repos.BuildScaffoldFiles has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (36 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/install.go"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a301ef80b1d85a05282ddc2a6151e78b07b6fad68390bc6e8c1495721b2b7e"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runMintDeployGCP (cognitive 41): cli.runMintDeployGCP has cognitive complexity 41 (threshold 15). Drivers by points: if/else 27 (39 pts), boolean chains 1, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"c810d9de872783b25080864073a1c0b8200e0ed781c41c87498be0942b981d8d"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.printStatusTable (cognitive 41): cli.printStatusTable has cognitive complexity 41 (threshold 15). Drivers by points: loops 12 (19 pts), if/else 8 (16 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 17). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"236c8cbf8ee3e31f6bb062e3a29e1e5ef348c3dce43867cdd82bb1bab362ddae"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.updateOrDeleteNote (cognitive 41): LiveClient.updateOrDeleteNote has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 5 (9 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/issue.go"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55b6bca648acd9e3820e73e2c9c6b7e8291720848001353ecdf30b264d44f8e"}},{"ruleId":"D2","level":"warning","message":{"text":"layers.deliverBranchAndPR (cognitive 41): layers.deliverBranchAndPR has cognitive complexity 41 (threshold 15). Drivers by points: if/else 25 (40 pts), boolean chains 1 (nesting depth added 15). 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":"internal/layers/commit.go"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fd3306e5b765a2e8d4d131f01aaf0d4260ed92ad9ce1722ca80178c28a6648"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.dispatchWebhookEvents (cognitive 41): Poller.dispatchWebhookEvents has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 4, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/webhook_dispatch.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ed04082cf6d15ffa72c1db22049a97dc76f65f3148b10169d0505b372e41aa"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeSchedules (cognitive 41): repos.convergeSchedules has cognitive complexity 41 (threshold 15). Drivers by points: if/else 20 (30 pts), loops 6 (10 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":"internal/repos/converge.go"},"region":{"startLine":2532}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72baac13463ac24744cbd495d127399310bc48ca890c929a7eabfdc12384e66"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.diagnoseGitLabTriggerAccount (cognitive 41): repos.diagnoseGitLabTriggerAccount has cognitive complexity 41 (threshold 15). Drivers by points: if/else 24 (33 pts), loops 2 (4 pts), boolean chains 3, match/switch 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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"db345d6f66031aaf1f0fbf15097304b026ee7331810078716f4b5ae05b8aebc1"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.parseDummyAgentTable (cognitive 41): steps.parseDummyAgentTable has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 3, match/switch 1 (3 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/dummy_agent.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a152906982a41bbbd2a71a7ff07137d947cc4f4187115ea3fcfef9a1293499"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze-transcript.cmd_conversation (cognitive 41): analyze-transcript.cmd_conversation has cognitive complexity 41 (threshold 15). Drivers by points: if/else 7 (28 pts), ternaries 2 (10 pts), loops 2 (3 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2a57bbff1018b4b8c59a7ea7268fa9210d0e49636a2a3c5c4037bc4a696117"}},{"ruleId":"D2","level":"warning","message":{"text":"nextwork.classify_issue (cognitive 41): nextwork.classify_issue has cognitive complexity 41 (threshold 15). Drivers by points: if/else 25 (32 pts), boolean chains 9 (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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d8add0aad670d8bc3e2db923596ad66029b89a99c3932ea8c358585dc7c0f1"}},{"ruleId":"D2","level":"warning","message":{"text":"artifacts.stripRecord (cognitive 40): artifacts.stripRecord has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 3 (6 pts), boolean chains 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":"internal/artifacts/telemetry.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a61165dbcc48bc9551feb6d7d83cc206c219accba4e87b5bfd720eb668f293"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.validateOverlayForgeConfigInherit (cognitive 40): harness.validateOverlayForgeConfigInherit has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (32 pts), loops 4 (5 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":"internal/harness/forge.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"91747d29b8bb29f758113e668c8643bae0ce5f84d0806f28c2289fb0e833029e"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.removeObsoleteInferenceSecrets (cognitive 40): repos.removeObsoleteInferenceSecrets has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (34 pts), boolean chains 3, loops 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":"internal/repos/converge.go"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"4265aec94e93c7a0afdba0a6011ca39e7a6323f94902ff19b6fee4777968b5d1"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.removeWorkflowRules (cognitive 40): repos.removeWorkflowRules has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (32 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlabci.go"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"83609bd4e1797cb4c3d65d132fb754ac6583cedcd80a7acaf3f3127d93e5dcfd"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.EnsureManagedConfigDefaults (cognitive 40): repos.EnsureManagedConfigDefaults has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (33 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/managed_config_writeback.go"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28330ee2622e4735558834b89e15636eafde415e6d434d6b99f3d2adb9f5465"}},{"ruleId":"D2","level":"warning","message":{"text":"gitlabJiraPollReconciler.Ensure (cognitive 40): gitlabJiraPollReconciler.Ensure has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20 (35 pts), loops 2 (3 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":"internal/repos/gitlab_jira_poll.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"771d60fbb808ae19e5b4c9ccd16a22daf2be44d819562a312147aa2295efa175"}},{"ruleId":"D2","level":"warning","message":{"text":"PiRuntime.Run (cognitive 40): PiRuntime.Run has cognitive complexity 40 (threshold 15). Drivers by points: if/else 24 (31 pts), boolean chains 5, loops 2 (3 pts), match/switch 1 (nesting depth added 8). Of this number, 36 points are the body\u0027s own statements and 4 belong to 2 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, 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":"internal/runtime/pi_run.go"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"270d740f4cfc28cb750cf23f2838120c58ec5e623595b8189dfc92819f195ce4"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runAgentSet (cognitive 39): cli.runAgentSet has cognitive complexity 39 (threshold 15). Drivers by points: if/else 22 (34 pts), loops 2 (4 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":"internal/cli/agent.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d4ccf77b4e3ede6ddc943a66721718f16aeb2aedc89e5ba379072496bf8f30"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.routeBuiltinAgent (cognitive 39): cli.routeBuiltinAgent has cognitive complexity 39 (threshold 15). Drivers by points: if/else 29 (34 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/dispatch_route.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a8f086cf27075ae02e89d8813d6dba6c9ace7902769d2f3ce6cd167255cdab"}},{"ruleId":"D2","level":"warning","message":{"text":"gitfetch.FetchTree (cognitive 39): gitfetch.FetchTree has cognitive complexity 39 (threshold 15). Drivers by points: if/else 30 (35 pts), boolean chains 4 (nesting depth added 5). Of this number, 29 points are the body\u0027s own statements and 10 belong 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":"internal/gitfetch/gitfetch.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"424ed9a363a58bee44d258bc63e546ad13ddee0c98f4f8ded5a268b30f09329a"}},{"ruleId":"D2","level":"warning","message":{"text":"Harness.ValidateFilesExist (cognitive 39): Harness.ValidateFilesExist has cognitive complexity 39 (threshold 15). Drivers by points: if/else 20 (33 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 14). Of this number, 36 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":"internal/harness/harness.go"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"03640e80297718b3b58dc37489a01a1824b42a297bb4bbd57038165b1945b1fb"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabWebhookReadiness (cognitive 39): repos.gitlabWebhookReadiness has cognitive complexity 39 (threshold 15). Drivers by points: if/else 26 (33 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 8). 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf58f1572052dd639a7f548e2325e46d7466021c2d7da88fdcb7efa4c65e132"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.parseOpenCodeStream (cognitive 39): runtime.parseOpenCodeStream has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (27 pts), match/switch 2 (5 pts), loops 2 (4 pts), boolean chains 3 (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":"internal/runtime/opencode_progress.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce84e4eb640197d85bf6712d6c0f383c5a90d8cb52db685ef62a792ffc3468c"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.settleHarnessDispatchCount (cognitive 39): Driver.settleHarnessDispatchCount has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 10, loops 2 (4 pts), 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea668e2a4a840d7ed8f85ae6c680245aa04bfe6a7464ac16d9b76a2c7fdb058"}},{"ruleId":"D2","level":"warning","message":{"text":"Setup.Run (cognitive 38): Setup.Run has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23 (36 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/appsetup/appsetup.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"412f023dfd1a62ec2e072dcad8cd087871c43b857e15a3f3e6bde6b9e5e251a5"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.scanPluginTree (cognitive 38): cli.scanPluginTree has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (31 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 17). Most of this is not in the body itself: 6 of the 38 points are its own statements and the rest belongs to one function literal inside it that branches (line 110). 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":"internal/cli/bootstrap_scan.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21bdde38be29b7a41700cf46c07e3934ccf6f60cc932dceb0cfce4442b05251"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.sanitizeReviewResult (cognitive 38): cli.sanitizeReviewResult has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (33 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/postreview.go"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"0583ea0d506eef958d07826b441ef6e5fb596cacebcbf46a5dd2fd8b7290522c"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.mintAgentTokenAtLevel (cognitive 38): cli.mintAgentTokenAtLevel has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 5, loops 4, match/switch 1 (3 pts) (nesting depth added 10). Of this number, 31 points are the body\u0027s own statements and 7 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":"internal/cli/run.go"},"region":{"startLine":7646}}}],"partialFingerprints":{"codehealthFindingId/v1":"906e3dbcd7d0b5f50f955a293ba4d75fe92e233e619ab32c6689eeeec712432f"}},{"ruleId":"D2","level":"warning","message":{"text":"Service.HandleFetch (cognitive 38): Service.HandleFetch has cognitive complexity 38 (threshold 15). Drivers by points: if/else 26 (36 pts), boolean chains 2 (nesting depth added 10). Of this number, 32 points are the body\u0027s own statements and 6 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":"internal/fetchsvc/service.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7deff65e22ce7d10a33151b4e335523bc29175dbff4bbf92fbb0737336e1aea"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListPullRequestReviewThreads (cognitive 38): LiveClient.ListPullRequestReviewThreads has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 18). Of this number, 33 points are the body\u0027s own statements and 5 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":"internal/forge/github/github.go"},"region":{"startLine":4527}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b85f8e21438bbe8880ab5973a3b222ed294476d4e34cc7fe8c02a390ac27f6"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.flattenMergeKeys (cognitive 38): repos.flattenMergeKeys has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 5 (9 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest_legacy_tracking.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"701f4f3992fce61f7b096251214da63fc99aeb06de7fcd8099e127a83b236dcd"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.editManifestValue (cognitive 38): repos.editManifestValue has cognitive complexity 38 (threshold 15). Drivers by points: if/else 26 (33 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 8). 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":"internal/repos/manifest_set.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad341016a91c06691d99daa549dddc1db531200601eb8889579f3f74a87b847"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceAccountTokenClient.AppendGitLabSuppliedCredentialStatus (cognitive 38): ServiceAccountTokenClient.AppendGitLabSuppliedCredentialStatus has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 4, loops 2, match/switch 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_supplied_provenance.go"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97764793b1c1d3cc5eba73a9aa30bc2ea399e37dac7d4c284cecb8bfb1624e4"}},{"ruleId":"D2","level":"warning","message":{"text":"progressReconciler.taskProgressIdentity (cognitive 38): progressReconciler.taskProgressIdentity has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 12, loops 1 (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":"internal/runtime/task_progress_reconciler.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3a65c261d9839b2bd36cbfbb8d4c653083125066b22d69851749c8a0b8177f"}},{"ruleId":"D2","level":"warning","message":{"text":"gcf.bundleFunctionSource (cognitive 37): gcf.bundleFunctionSource has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23 (35 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8ff76c988749456caa5cc150123eb84bd24b822ec9e1730b85d1df0eb9679a"}},{"ruleId":"D2","level":"warning","message":{"text":"mintclient.QueryStatus (cognitive 37): mintclient.QueryStatus has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (33 pts), boolean chains 4 (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":"internal/mintclient/mintclient.go"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"a751a1dfb258977f90ae5f65c542fc1e3c27b13bdaa864980d8069a2066364eb"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.preflightGitLabRoleCleanup (cognitive 37): repos.preflightGitLabRoleCleanup has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 7 (14 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":"internal/repos/gitlab_roles_cleanup.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b933698a77a995296119fc53720f4a7cf56006749003ac14d933f672dd709d"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.decodeGitLabTriggerAccountState (cognitive 37): repos.decodeGitLabTriggerAccountState has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 19, if/else 14, match/switch 2 (3 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f78ca2b50d6e004db9a4cb9b7060836fcfe66ae43e29d9888b5692cf136ecc2"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.buildPiRunCommand (cognitive 37): runtime.buildPiRunCommand has cognitive complexity 37 (threshold 15). Drivers by points: if/else 26 (30 pts), boolean chains 6, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_run.go"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c434bedaf573b419c220836394556439bf7a460373915bbacf2e66af8e9e53"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexRuntime.ExtractTranscripts (cognitive 37): CodexRuntime.ExtractTranscripts has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (33 pts), boolean chains 3, 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":"internal/runtime/codex_transcript.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d9015d91dd66e86f6214d2d16ca444bde4cef686b1b7e985887be929ff2893"}},{"ruleId":"D2","level":"warning","message":{"text":"artifacts.prepareMetadata (cognitive 36): artifacts.prepareMetadata has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (32 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/artifacts/prepare.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a018d11a0d23e9d84caf87a3f6c2f2984468aea2e5728844aee7e0ec59b7bd1d"}},{"ruleId":"D2","level":"warning","message":{"text":"config.validateTracking (cognitive 36): config.validateTracking has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 5 (10 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/issue_targets.go"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b1aa31552c97c52837f14b3f79ea6c6f8ad4458acabdccaa7386c44fac5a1c"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.CleanupGitLabRoleIdentityLocked (cognitive 36): repos.CleanupGitLabRoleIdentityLocked has cognitive complexity 36 (threshold 15). Drivers by points: if/else 21 (32 pts), boolean chains 3, loops 1 (nesting depth added 11). Of this number, 31 points are the body\u0027s own statements and 5 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":"internal/repos/gitlab_roles_cleanup.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb108a7490059056b38604a95676284575f8a659405e8f341a52e5d85ef31c9"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve.resolveSkillDirURL (cognitive 36): resolve.resolveSkillDirURL has cognitive complexity 36 (threshold 15). Drivers by points: if/else 25 (36 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":"internal/resolve/resolve.go"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c43b0e3f6502c906ebbd59430b5038c5e8a6d22b558ba5e547d37998c013d3"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.harnessPollOnce (cognitive 36): Driver.harnessPollOnce has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (32 pts), boolean chains 3, loops 1 (nesting depth added 21). 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"27176a9cae22b335d675befa11729eaa930dcac501f3c5085f7312112155d362"}},{"ruleId":"D2","level":"warning","message":{"text":"nextwork.classify_pr (cognitive 36): nextwork.classify_pr has cognitive complexity 36 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 10 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"071295af6a0a8053f461467b166bfa12041bec99e72fed4829e4ea8aeb2c25bd"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.profileIssuesCredential (cognitive 35): cli.profileIssuesCredential has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 8, loops 2 (4 pts), 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":"internal/cli/gitlab_profile.go"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21a3054d0647fa0c45d0b1dea06c86d361cdb846e835d3b4b6f5657446479ad"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.createCommitOnBranch (cognitive 35): LiveClient.createCommitOnBranch has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (29 pts), loops 3, match/switch 1 (2 pts), boolean chains 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":"internal/forge/github/commit_graphql.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ed6819342faa8f7df1604d2860b62555401b2357f7f1fd6c26adf5b73329c8"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.resolveBaseHostFiles (cognitive 35): harness.resolveBaseHostFiles has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (6 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":"internal/harness/compose.go"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd81983b9edc305076e5956175aadfdaf9dcd3d3bfe46ee53f40de3d08aeb733"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.fetchBaseSkill (cognitive 35): harness.fetchBaseSkill has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 3 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":2184}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fa1e09b90726d913791813688507ed260fb24e53ac2eec5ff6470ca1c7b05a"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.RotateGitLabRoleCredentials (cognitive 35): repos.RotateGitLabRoleCredentials has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 5, match/switch 2 (3 pts), loops 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23d30ee0a16e4968e031e7c222b4a10f686dc582be003871c60876c86901072"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.resolveExtendsAdmission (cognitive 35): repos.resolveExtendsAdmission has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_job_templates.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d77d48e46e0b8ac768d1eae34316a0731ebcb09bd191bb537117b5d318912aa"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.parseManifestPath (cognitive 35): repos.parseManifestPath has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest_set.go"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"0375684e1a767c1e2a5e99a4f56739d18562c5689344389a9a341b665f368fe1"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.openAIWIFVariableIdentifiers (cognitive 35): repos.openAIWIFVariableIdentifiers has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (5 pts), boolean chains 4, match/switch 1 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/openai_wif.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a8c277055a383f09e5a2571d55e140536722ef5d43afb05a5c5c69d240352e"}},{"ruleId":"D2","level":"warning","message":{"text":"workflowExprParser.parseOperand (cognitive 35): workflowExprParser.parseOperand has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 9, loops 3 (6 pts), match/switch 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_workflow_admission.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0396d5d4521e2a6cda0fa683dd0b7cc1f6c165f90969b5d078bab3f08d408e0"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve-precommit-tools.merge_registries (cognitive 35): resolve-precommit-tools.merge_registries has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 6, loops 2 (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":"internal/scaffold/fullsend-repo/scripts/resolve-precommit-tools.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9cb5a0b22fbaaf5dead0754bcd78a955f24d547656e6252327e055ca06344f"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.bootstrapCommon (cognitive 34): cli.bootstrapCommon has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (34 pts) (nesting depth added 13). Of this number, 30 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":"internal/cli/run.go"},"region":{"startLine":3420}}}],"partialFingerprints":{"codehealthFindingId/v1":"2368311061def6ed8f791abc757883ff6f204d77ec6fb31043fe65ba5597fd81"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.ensureOpenAIProvider (cognitive 34): cli.ensureOpenAIProvider has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 4 (7 pts), boolean chains 3 (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":"internal/cli/run_openai.go"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba4ef093d5509c910745b60294294d86355cc5c91db27ba65819aa293ba67a0"}},{"ruleId":"D2","level":"warning","message":{"text":"envmanifest.shellCommands (cognitive 34): envmanifest.shellCommands has cognitive complexity 34 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 9, loops 3 (7 pts), match/switch 2 (6 pts) (nesting depth added 14). Of this number, 31 points are the body\u0027s own statements and 3 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":"internal/envmanifest/shellexports.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e130376bd9974b1e9ea6fef21b64db74d864babd4e995954f638972140004950"}},{"ruleId":"D2","level":"warning","message":{"text":"input.mapIssueCommentEvent (cognitive 34): input.mapIssueCommentEvent has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 2, match/switch 1 (nesting depth added 16). 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":"internal/harnessdispatch/input/ghaevent.go"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c76bbffcffe5eb6c401b5593acc8885fe35a331c84cbe768cf4389c0c0c5e26"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.LockGitLabProject (cognitive 34): repos.LockGitLabProject has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (28 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 14). Of this number, 30 points are the body\u0027s own statements and 4 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":"internal/repos/gitlab_roles.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08ce9d0163a839f312a58d25a5a7c2c1d894259292c3f85973e8d323a8c19fa"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.RemoveFromManifest (cognitive 34): repos.RemoveFromManifest has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (26 pts), loops 5 (7 pts), boolean chains 1 (nesting depth added 12). Of this number, 29 points are the body\u0027s own statements and 5 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":"internal/repos/manifest_edit.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"235feaab3b7eba03d99584d31f753ac06d5842e5a82ea222a01a6e93a37cc9e4"}},{"ruleId":"D2","level":"warning","message":{"text":"manifestEditor.prepareSplice (cognitive 34): manifestEditor.prepareSplice has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 2 (5 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 19). Of this number, 24 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":"internal/repos/manifest_set.go"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"1228ca82475423d57b964ccc5c17baecd9f6472857ab4c8154d9a6f6726e6740"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.injectFrontmatterSkills (cognitive 34): runtime.injectFrontmatterSkills has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (26 pts), loops 5, boolean chains 3 (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":"internal/runtime/frontmatter_skills.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"da60a1154af884f593657733f4a657148d9fea54d9ac278f1aac6cfde7f59246"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenCodeRuntime.Run (cognitive 34): OpenCodeRuntime.Run has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (26 pts), boolean chains 7, match/switch 1 (nesting depth added 3). Of this number, 33 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, 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":"internal/runtime/opencode_run.go"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"b348ff77a756df3cf71fbb6b9366cf4d5bd808a4e549292dae9489dd685a3cf0"}},{"ruleId":"D2","level":"warning","message":{"text":"EventRenderer.Handle (cognitive 34): EventRenderer.Handle has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (32 pts), boolean chains 1, match/switch 1 (nesting depth added 15). 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":"internal/runtime/renderer.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f546682a9a8c7dc4b30714fb2841715245a542448b90d643d9fb1c8f0b59b4"}},{"ruleId":"D2","level":"warning","message":{"text":"SecretRedactor.Scan (cognitive 34): SecretRedactor.Scan has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 7 (13 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/redactor.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4dc5035ccc9805e159a72f771bf3744edd4769d20a443ef859b8dcd3342a38"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.describeDispatchRuns (cognitive 34): steps.describeDispatchRuns has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 8, loops 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":"pkg/behaviourtest/steps/debuglogs.go"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"9179646373c71b02d751d14ba20e1df369d2aef11ea0b20d1c54c3995675308b"}},{"ruleId":"D2","level":"warning","message":{"text":"ssrf_pretool._has_command_substitution (cognitive 34): ssrf_pretool._has_command_substitution has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 4, 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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83cbab1ed1ee045cf204375e6ef96b76d6b7a9a587a0b7ac37f66fd2aab8963"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.pinnedSetupFlags (cognitive 33): cli.pinnedSetupFlags has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 13 (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":"internal/cli/github.go"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"0543433f0fd5399280bbf642ae112282e410fa36b9569a8a542010f648b2854d"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.submitFormalReviewWithDiffs (cognitive 33): cli.submitFormalReviewWithDiffs has cognitive complexity 33 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 5, loops 1 (2 pts) (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, 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":"internal/cli/postreview.go"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3efe391e308620bec7d6094e24e7bcf2333f25e41e20d5ef4bc191eb28a383"}},{"ruleId":"D2","level":"warning","message":{"text":"config.ReadLegacyTracking (cognitive 33): config.ReadLegacyTracking has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 8 (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":"internal/config/legacy_tracking.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94bac8fa6baaac6e2e8530a274c5f57bbf35ad1b76edc37577f06637959749e"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthorizationProvider.UnmarshalYAML (cognitive 33): AuthorizationProvider.UnmarshalYAML has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"80231e5f176dc4c7e8c538e01bf8e03f1d48b21a5647e1b884edc966242c74af"}},{"ruleId":"D2","level":"warning","message":{"text":"e2eauth.Check (cognitive 33): e2eauth.Check has cognitive complexity 33 (threshold 15). Drivers by points: if/else 21 (32 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":"internal/e2eauth/check.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"11602cc3416439639edc177c03d26d25945ccec6df3050701baf6380f1d1b185"}},{"ruleId":"D2","level":"warning","message":{"text":"e2etest.CleanupStaleResources (cognitive 33): e2etest.CleanupStaleResources has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18 (27 pts), loops 3 (6 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":"internal/e2etest/cleanup.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8704ebf3f8426b8c5dca104b849dcb7f4511b34d3f615605bba7eced612c5c17"}},{"ruleId":"D2","level":"warning","message":{"text":"jira.adfMarkdownBlock (cognitive 33): jira.adfMarkdownBlock has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (30 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 17). 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":"internal/forge/jira/adf.go"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f110359decde58a69691df947f329337e1663605470af3d74e1ece534928cc9"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabDispatcherTemplateProblem (cognitive 33): repos.gitlabDispatcherTemplateProblem has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 9, match/switch 2 (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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9eaa81fe30cdf3f81bf28793e6d4bc362e3c31b83c119ff1cf22969dda9b43"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.diffLineMatches (cognitive 33): repos.diffLineMatches has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 6 (10 pts), boolean chains 8 (nesting depth added 11). Of this number, 30 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":"internal/repos/gitlabci_format.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f23bdc3446a5528fd9e5e9ade1897e6c0ed8599a8c1d2a86d4c2c1bf3fbd1e"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.openAIWIFWorkflowProblem (cognitive 33): repos.openAIWIFWorkflowProblem has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 6 (14 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/openai_wif.go"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb7c1adfa16f6c041712a738d5f66fd563178f89e484adf4e252724a43b54bd"}},{"ruleId":"D2","level":"warning","message":{"text":"agentnew.Generate (cognitive 32): agentnew.Generate has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 4, boolean chains 3, match/switch 1 (2 pts) (nesting depth added 10). Of this number, 29 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":"internal/agentnew/generate.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e371abd33dd5eb8337a1cf3ef1e318ed3fa5efa0b4af754d69eaf18548b1833"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.bindGitLabCredentialToForgeHost (cognitive 32): cli.bindGitLabCredentialToForgeHost has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 1, loops 1 (nesting depth added 15). Of this number, 31 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":"internal/cli/gitlab_profile.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"283584ed2781a61653e45d45b5e3f23a3ea0fd4e464b7381917e8850141b888a"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runIssuesCreate (cognitive 32): cli.runIssuesCreate has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/issues.go"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"257bd13c3937f3f49fcab070d1ddc886a343bc3d30f43f247688848dcd1de9f4"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.rewriteFrontmatterSkills (cognitive 32): runtime.rewriteFrontmatterSkills has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/frontmatter_skills.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9083e0dd2e574f2637471ee37d0bfdd1347188b5742517fdcb2e0af62538b194"}},{"ruleId":"D2","level":"warning","message":{"text":"Notifier.PostCompletionWithDetail (cognitive 32): Notifier.PostCompletionWithDetail has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 3 (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":"internal/statuscomment/statuscomment.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b303b103174bc4c6f1291a419aae6ed737760caa46ee2262e729dd105e7a59ca"}},{"ruleId":"D2","level":"warning","message":{"text":"mintcore.ParseCustomRolePermissions (cognitive 32): mintcore.ParseCustomRolePermissions has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 5 (12 pts), boolean chains 3 (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":"internal/mintcore/github.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb48f5ef441cdd411d9a99edeab73f312398714042d7744126c04afe1d3841b"}},{"ruleId":"D2","level":"warning","message":{"text":"nextwork._format_mutation_line (cognitive 32): nextwork._format_mutation_line has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 8 (19 pts), if/else 7 (9 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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b48e02e8abc54a664ad31849e394dec371694383757fac5babe566644879c45"}},{"ruleId":"D2","level":"warning","message":{"text":"nextwork.main (cognitive 32): nextwork.main has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (20 pts), error handling 3 (5 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":2761}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd678aecf6465d099962c42e08c67bc6a311d381d277294979ad29f987f56dfc"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.revalidateRemovals (cognitive 31): Poller.revalidateRemovals has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/state.go"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbcd695ca15a78b7591a02f0a69ca2038086d833fab092b9e41b3254765ad46"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.activatePipelineSchedules (cognitive 31): repos.activatePipelineSchedules has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/converge.go"},"region":{"startLine":2754}}}],"partialFingerprints":{"codehealthFindingId/v1":"6219acf1367db4c09b3a19d3f9d69b6e0e497be983c8f0d73d06758224322d8c"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabTriggerOwnerProblemSkipping (cognitive 31): repos.gitlabTriggerOwnerProblemSkipping has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 2 (5 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook.go"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71cc8e3871fb2e0bbfe8833a96f67dc8895c3fdf81fd7553bae71d1ae70a666"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabRootCIDispatcherProblem (cognitive 31): repos.gitlabRootCIDispatcherProblem has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07ca368433c21e572526c0a1e731c6db9d2c6cc530e18d4833dc86ba3570fba"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeJiraPoll (cognitive 31): repos.convergeJiraPoll has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 3, loops 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":"internal/repos/jira_poll.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d550cbc32b8c34a3304523f9a2a11cb7e217e4e8bc94b335966c99fa67df520b"}},{"ruleId":"D2","level":"warning","message":{"text":"gitLabTriggerAccountOp.scheduleOwnershipDrift (cognitive 31): gitLabTriggerAccountOp.scheduleOwnershipDrift has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 2, loops 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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce62f68cfbb22a0d4af768fae6e3796706c7f15d357591bbee68c94357b1e64"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.mintStatusFacts (cognitive 31): steps.mintStatusFacts has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 6 (10 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":"pkg/behaviourtest/steps/mint_status.go"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"4644ab82c113f2cf9d9efd9fec9bfcdf3ed980678df134c0f10a6156bfc6f670"}},{"ruleId":"D2","level":"warning","message":{"text":"mintcore.NewHandler (cognitive 31): mintcore.NewHandler has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 6 (8 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":"internal/mintcore/handler.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0595d3c80867d9b1aa637e44d863bfdcd8ed5ae0a701809efcc28709c11640"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze-transcript.cmd_audit (cognitive 31): analyze-transcript.cmd_audit has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 5 (11 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"254031b4888d88238c04930af0eb2afe72758cc2de32ae40319413565c174ffd"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.maskSecretLiterals (cognitive 30): cli.maskSecretLiterals has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 6 (13 pts), boolean chains 4 (nesting depth added 14). Of this number, 27 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":"internal/cli/run.go"},"region":{"startLine":4787}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb60865c05feeea14dc138cb5b12258627930a78343584c50369eec35224b07c"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.resolveOpenAICredential (cognitive 30): cli.resolveOpenAICredential has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_openai.go"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"767b9800df48a6db51e6d89b36ec5f4acce03d8ac51d3f9eccdc54bc97e5e3a3"}},{"ruleId":"D2","level":"warning","message":{"text":"contentCollector.Result (cognitive 30): contentCollector.Result has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 4, boolean chains 3 (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":"internal/cli/content_collector.go"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"500bd71f5876179cac56b8ee82cca454c4a1862015994d43298515ec99def1fc"}},{"ruleId":"D2","level":"warning","message":{"text":"envmanifest.collectFromCommand (cognitive 30): envmanifest.collectFromCommand has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 5 (9 pts), boolean chains 2, match/switch 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":"internal/envmanifest/shellexports.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4daf1e5f985b1a39e4f30fee9dbef5969d82157ff16ec2635cb3f47601098529"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListPullRequestFileDiffs (cognitive 30): LiveClient.ListPullRequestFileDiffs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 3 (5 pts), boolean chains 3 (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":"internal/forge/github/github.go"},"region":{"startLine":4362}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8e8a434317f3e8e5a09960cfb2dff4a63838716492e2b9eec508e68c2d8674"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.doAttempts (cognitive 30): LiveClient.doAttempts has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (21 pts), match/switch 2 (7 pts), boolean chains 1, 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":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"0728a374653b45c0e027a8ee6476241ea9c75ab5812edb0c596d1f11f4e30d98"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.CheckFileContentDrift (cognitive 30): repos.CheckFileContentDrift has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 2 (4 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":"internal/repos/drift.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"443fa64b83f257e4022d2747d60907a36499032f7a3105d69ad478d02163efc4"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.suppliedAwareInventory (cognitive 30): repos.suppliedAwareInventory has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 5 (9 pts), boolean chains 3 (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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"0347e421ed376a3efbdb84bbbfa0f0e319abf40e6adfdb0386d36de47221071e"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.GitLabWebhookNeedsProvisioning (cognitive 30): repos.GitLabWebhookNeedsProvisioning has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook.go"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e963ed359007c04db88ac582111fa366590f084e3a07646c8aae256884bb2ff"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.resolveManifestPath (cognitive 30): repos.resolveManifestPath has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 7, match/switch 2 (5 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest_set.go"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"456ba5d6b179a25d16e33017c7e2d4e037edbf55c7e8d378ce139a8e942de6dd"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.checkForgeFields (cognitive 30): repos.checkForgeFields has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 3 (6 pts), boolean chains 3, match/switch 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":"internal/repos/manifest_set.go"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1c16dfd47d8f25a97658a0e47e55bd75464f6720f06cda437e5b29213b80dd"}},{"ruleId":"D2","level":"warning","message":{"text":"workflowExprParser.parseComparison (cognitive 30): workflowExprParser.parseComparison has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 7, loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_workflow_admission.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"926b8b7a74b1b6e3fb3b7e2cd2797cc03cdc971bddf9a495a46d2852476876e2"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.buildRunCommandWithDigests (cognitive 30): runtime.buildRunCommandWithDigests has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (27 pts), 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":"internal/runtime/claude.go"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee3837c0eb5b5bef100879f58ec828d5bb8871c1582692dac87569ffbfdcf42"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.countCodexChildRollouts (cognitive 30): runtime.countCodexChildRollouts has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (6 pts), boolean chains 5, match/switch 1 (nesting depth added 12). Of this number, 26 points are the body\u0027s own statements and 4 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":"internal/runtime/codex_subagents.go"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"51964dbed9bf011ad0c7bc954f8dbe4b77797eccafffdbc2e78c354bee3e3ca1"}},{"ruleId":"D2","level":"warning","message":{"text":"scaffold.FindStaleVendoredAssets (cognitive 30): scaffold.FindStaleVendoredAssets has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/scaffold/vendorcleanup.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f312bd677a05571f89550108ae6c5043b51d93f9b94a11c29e5c4e2d9fafadcf"}},{"ruleId":"D2","level":"warning","message":{"text":"SSRFValidator.ValidateURL (cognitive 30): SSRFValidator.ValidateURL has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (27 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/ssrf.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"23897b3c7c0324a45785cc95700182eb7ae79e2eae1f862a981de3806015a120"}},{"ruleId":"D2","level":"warning","message":{"text":"multiPunctAnnotation.tokenAnnotation (cognitive 30): multiPunctAnnotation.tokenAnnotation has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 8 (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":"internal/sentencetoken/annotate.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c2d6f0e8e2eb8262f7070787730af4eaa4d492564d185a9fb306bb7fed10ba"}},{"ruleId":"D2","level":"warning","message":{"text":"tracecontext.NormalizeInstance (cognitive 30): tracecontext.NormalizeInstance has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 10, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/telemetry/tracecontext/identity.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6a59cd8cb9d81232fc2bec675a8c8676b99066425e8f95dbd76f2568e6d4cf"}},{"ruleId":"D2","level":"warning","message":{"text":"JiraClient.TransitionIssue (cognitive 30): JiraClient.TransitionIssue has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 4, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tracker/transition.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72154dc4b655105b05b1cc0358131eb462fab03a347ee0cf2e8fe509debd099"}},{"ruleId":"D2","level":"warning","message":{"text":"nextwork.apply_trivial_actions (cognitive 30): nextwork.apply_trivial_actions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 5, ternaries 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f20f5903cfe6c5319a9fb063f45a773fa11b20142356f5ef7709972828552de"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runAgentList (cognitive 29): cli.runAgentList has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (27 pts), loops 2 (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":"internal/cli/agent.go"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f416eecdaa24fca3398fc826c7808d3389c009ef58950d946da921113752cd"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.pinAgentURL (cognitive 29): cli.pinAgentURL has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/agent.go"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b273a58047509ffddd0c202b847c36454d4a9d1357eac9cdbed2afb56806569"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runInferenceGatewayStatus (cognitive 29): cli.runInferenceGatewayStatus has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19 (21 pts), match/switch 4, boolean chains 3, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/inference_gateway.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9d4f5928cfd67fb0f4417bda02a3b7d92f73039d6ba9b89e4d9b008aae4e51"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runMintDeleteCloudflare (cognitive 29): cli.runMintDeleteCloudflare has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19 (27 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":"internal/cli/mint_delete.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d72871ff843ab1576f1ad2e9a0109e3b1c83aeba28f72f33384b198ac6f995c"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.newScanInputCmd (cognitive 29): cli.newScanInputCmd has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 10). None of this is in the body itself: all 29 points belong to one function literal inside it that branches (line 65). 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":"internal/cli/scan.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"66da139ec406dcb608398864689001c1442841376795e289dd4cc08b18fc93bb"}},{"ruleId":"D2","level":"warning","message":{"text":"Provisioner.ensureWIFPoolAndProvider (cognitive 29): Provisioner.ensureWIFPoolAndProvider has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 3 (9 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"5def652f1c665e876d7c320f4e4bcf05471ed9937ba9cf9332eb1c120d6e4c54"}},{"ruleId":"D2","level":"warning","message":{"text":"evalmeasure.ParseTelemetryFile (cognitive 29): evalmeasure.ParseTelemetryFile has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 6 (13 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":"internal/evalmeasure/parse.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8c6d61f919f14e030868f0c0157bff751f8b3b91da4b60078c096f24a378af"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.retryCommitWithoutStartSHA (cognitive 29): LiveClient.retryCommitWithoutStartSHA has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 2 (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":"internal/forge/gitlab/repo.go"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a2db78ad47951c24e664c7f862114764047c5b78b186b2636edd2e7922a2e8"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceAccountTokenClient.managedServiceAccountList (cognitive 29): ServiceAccountTokenClient.managedServiceAccountList has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 9, loops 1 (nesting depth added 7). Of this number, 28 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":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6be60c3c0827cc35dbeaaca28cbed3bc0a6f6e1a750f8576d2994f830df1824"}},{"ruleId":"D2","level":"warning","message":{"text":"DummyPlaybackRuntime.Run (cognitive 29): DummyPlaybackRuntime.Run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/dummy_playback.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2ff1461ade86fe17ac9d77e934dee015f90cc178d1808275ba1a715a52b266"}},{"ruleId":"D2","level":"warning","message":{"text":"tracecontext.Parse (cognitive 29): tracecontext.Parse has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22 (27 pts), boolean chains 1, match/switch 1 (nesting depth added 5). Of this number, 28 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":"internal/telemetry/tracecontext/envelope.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81724418efe213cc7c1a78377ab27ef18567df79a5a70f677e8ec8490e62339"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.failedHarnessPollOnce (cognitive 29): Driver.failedHarnessPollOnce has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 3, loops 1 (nesting depth added 14). 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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5acc3b99984e74b4cea8f3ccd86d98f3c04fa500c857f11704142768ed83eb"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.collectScenarioRunLogs (cognitive 29): steps.collectScenarioRunLogs has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 3 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/debuglogs.go"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d4c9c6fda3bfd9418eb28a054a392f4e06ab16ed2e4c6cc247de24959c9ee9"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.givenURLSourcedCustomHarness (cognitive 29): steps.givenURLSourcedCustomHarness has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21 (24 pts), boolean chains 3, loops 2 (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":"pkg/behaviourtest/steps/url_dispatch.go"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a581227d4580d98a23d3202ff5300dbc568c2c890c023619e83a51c1353d4b41"}},{"ruleId":"D2","level":"warning","message":{"text":"fullsend-codex-hook.run_post_tool_use (cognitive 29): fullsend-codex-hook.run_post_tool_use has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 5, loops 1, ternaries 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":"internal/runtime/codex_hook/fullsend-codex-hook.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b103f40f6020554f71c320d77ae086960c724b31429158dc6ce156d9bf65022"}},{"ruleId":"D2","level":"warning","message":{"text":"ssrf_pretool._parse_egress_allowlist (cognitive 29): ssrf_pretool._parse_egress_allowlist has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (20 pts), error handling 2 (7 pts), boolean chains 1, loops 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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8090a677685b0dfeca01a793591e047b704b614c43ee064b482fb62ef3181f"}},{"ruleId":"D2","level":"warning","message":{"text":"nextwork.format_markdown_output (cognitive 29): nextwork.format_markdown_output has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (16 pts), loops 5 (10 pts), boolean chains 3 (nesting depth added 7). 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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":2548}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c332a81bd7088e50392148e378c97b9c2639a9b04c5eed3e1914257c261d401"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runAgentNew (cognitive 28): cli.runAgentNew has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 6 (9 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":"internal/cli/agent_new.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"925af1b21742f799b122945a8e8122d9e9d96a194dd18af037d659587bba0c86"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runIssuesGet (cognitive 28): cli.runIssuesGet has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (23 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/issues.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d83148caf9a107f570affdc714e7210cd5d29307b8887e59025ac632f697fd"}},{"ruleId":"D2","level":"warning","message":{"text":"contentCollector.toolArguments (cognitive 28): contentCollector.toolArguments has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 4, match/switch 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":"internal/cli/content_collector.go"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a233033ac8baf8916866ff6deb5bc13b3820a10c571999ee7ce31b6a6e19c2"}},{"ruleId":"D2","level":"warning","message":{"text":"perRepoConfig.validateLocalFields (cognitive 28): perRepoConfig.validateLocalFields has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 3, loops 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":"internal/config/config.go"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cca6a0b8d7fb1500c2c482835ebe2472d81eba4afcb83abcc91c43766a2efac"}},{"ruleId":"D2","level":"warning","message":{"text":"evalmeasure.ExportOTLPScores (cognitive 28): evalmeasure.ExportOTLPScores has cognitive complexity 28 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 3, loops 2 (nesting depth added 5). Of this number, 27 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":"internal/evalmeasure/export_otlp.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13ca19316ac9b64e4bd85f3ae43d340179d8dfb0148da9842bd5ebebf14537b"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerOwner.noPollerMember (cognitive 28): TriggerOwner.noPollerMember has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 3 (6 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":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"186122a23a57e5d1fb1c1900159dfbbdcaedd1622d15399ffe38bda2621a36e2"}},{"ruleId":"D2","level":"warning","message":{"text":"poll.restoreSharedFailureMirrors (cognitive 28): poll.restoreSharedFailureMirrors has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/state.go"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dea0fe5788d47e33d6f0e73185563b1468349ca8448d743c3bdd4d241a1a16c"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeContentDriftFiles (cognitive 28): repos.convergeContentDriftFiles has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 4, loops 3 (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":"internal/repos/converge.go"},"region":{"startLine":3453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd890d32817080954a99f4b83c0a1011f41cfc7342d3f0c1cb3590f75a4d51b"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.CheckOrphanVars (cognitive 28): repos.CheckOrphanVars has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 5 (7 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/drift.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"886cb9f55189cd6b89326984797387a3274ab235d48648e2f5b79ffb235d0090"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.retireSupersededPollerGeneration (cognitive 28): repos.retireSupersededPollerGeneration has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21 (25 pts), boolean chains 2, match/switch 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":"internal/repos/gitlab_poller_retirement.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff0aca8336e3fda7398a45f41ff6e4c13ce993575ba991bf664fed1f3c1aff6"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.cleanupOutgoing (cognitive 28): repos.cleanupOutgoing has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 4, 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0c297659b1170dc1bfbe34cfe672979581b481fc1697a0790f5c8e79a8af0c"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.PreflightProposedManagedSafety (cognitive 28): repos.PreflightProposedManagedSafety has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (27 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/managed_config_writeback.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e0d498b824347769ccf87b836cc29c521acf82a92bd2a629a4224a227f9817"}},{"ruleId":"D2","level":"warning","message":{"text":"statuscomment.ReconcileOrphaned (cognitive 28): statuscomment.ReconcileOrphaned has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 5, loops 1 (2 pts), 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":"internal/statuscomment/statuscomment.go"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"97768ce0e69ab6fb5d2d4dea5a8af1d3db9124d5cb943c27734220995b07a5ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.WaitForWorkflow (cognitive 28): Driver.WaitForWorkflow has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 2 (4 pts), boolean chains 2, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e257c61360e80c38799ab5df9dfa712b968977bc62f5e54a65b58c22e0349d"}},{"ruleId":"D2","level":"warning","message":{"text":"traceCollector.stop (cognitive 28): traceCollector.stop has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/install/trace_collector.go"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d61fa51017272b4f5ccae784764e7acb2e9d96b08907508d9f017412e34af00"}},{"ruleId":"D2","level":"warning","message":{"text":"ssrf_pretool._split_command_stages (cognitive 28): ssrf_pretool._split_command_stages has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2cfe1d551e7fcef9e60ec08fb97e671162e12477e99360407024c803b225808"}},{"ruleId":"D2","level":"warning","message":{"text":"main.extractEvents (cognitive 27): main.extractEvents has cognitive complexity 27 (threshold 15). Drivers by points: loops 6 (21 pts), if/else 1 (6 pts) (nesting depth added 20). 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":"hack/prove-otlp-scores/main.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6e87a4ffd9e606ebbadc396ae762f7ebf90891c603393343593623095327d9"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.restrictGitLabEndpointsToForge (cognitive 27): cli.restrictGitLabEndpointsToForge has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 5, loops 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":"internal/cli/gitlab_profile.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4115793392f71cd3dd04e0543bb44d98f40d4b672197bbf0855c595bcc393c0"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runMintDeleteGCP (cognitive 27): cli.runMintDeleteGCP has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (23 pts), loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint_delete.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"80efd12bbcc57c4aa3764f639c2520b72caad69520c814b5492812a2aa342f64"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.reseedCredential (cognitive 27): cli.reseedCredential has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 3, boolean chains 2, match/switch 1 (2 pts) (nesting depth added 10). Of this number, 15 points are the body\u0027s own statements and 12 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":"internal/cli/run_openai.go"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6e467e2c1caed25223eee1e230f6f909273b9e6fc4806869f79fd137af7f53"}},{"ruleId":"D2","level":"warning","message":{"text":"evalmeasure.ScoreFitnessNamed (cognitive 27): evalmeasure.ScoreFitnessNamed has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4, 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":"internal/evalmeasure/fitness.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6134be623ac6837ea8b7299645b3712f5fb2fff713d2945fbc43e70780be1f9c"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.decodePollerGenerations (cognitive 27): repos.decodePollerGenerations has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 7, 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":"internal/repos/gitlab_poller_generation.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f9f7aca11a337ac21dc5e532884c0d369dce29726c44497685a2abca237cce"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.loadRotationState (cognitive 27): repos.loadRotationState 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff311b651b89e9727f25335b5f2e937887a76f288e31e01e21c0b355daaf9b7b"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.TeardownGitLabWebhookFastPathLocked (cognitive 27): repos.TeardownGitLabWebhookFastPathLocked has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 7, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook.go"},"region":{"startLine":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"696bfca263840a7913e5e6cb701ed1446a66b97c8e0a3d685a1bd3d74304f118"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.resolveManifestTarget (cognitive 27): repos.resolveManifestTarget has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (23 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest_set.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5451ff501578e5d5871f004fddae4615d8b2142275603bc356be098ab0fdc55"}},{"ruleId":"D2","level":"warning","message":{"text":"Manifest.UndeclaredSelectors (cognitive 27): Manifest.UndeclaredSelectors has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 3 (6 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":"internal/repos/manifest.go"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"5327a4b8c873df824f1b6d5112a48740b36ce1e9b690e9d2f416509b4ed8b944"}},{"ruleId":"D2","level":"warning","message":{"text":"githubactions.extractArtifactZip (cognitive 27): githubactions.extractArtifactZip 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a514f2c8f344e1a60d75c6ab52fcf8b506b7cb1e0cdf16a7dae82456409487a"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.downloadArtifactAfter (cognitive 27): Driver.downloadArtifactAfter has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (17 pts), match/switch 2 (5 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"82919b5f69800814623f6b22c90fec83b240ad153cf08e909c9b851478f86e69"}},{"ruleId":"D2","level":"warning","message":{"text":"gitlabci.extractArtifactZip (cognitive 27): gitlabci.extractArtifactZip 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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b36c391caecacbe314658d5efa07362028251a55a49ce754c424f7a6e73e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"artifacts.stripSpan (cognitive 26): artifacts.stripSpan has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/artifacts/telemetry.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e28705be441a28a206333caa0a9c6c974b67ae58acbb984463e5576a41ba84"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runDispatch (cognitive 26): cli.runDispatch has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 2, match/switch 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/dispatch.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"613e9efdce70d99927c6384cfa9fb5b83ae73891796f42c3e7d7e94614c475ed"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.newForeignRevokeCmd (cognitive 26): cli.newForeignRevokeCmd has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19 (26 pts) (nesting depth added 7). None of this is in the body itself: all 26 points belong to one function literal inside it that branches (line 271). 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":"internal/cli/foreign.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd32ea390a5bd293c0c4e96b3c3420ef6b88625706f1bc132f3cab6eebbf392c"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.annotateGitLabRoleLifecycle (cognitive 26): cli.annotateGitLabRoleLifecycle has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 4, 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":"internal/cli/repos_gitlab.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84fa413fcddf9a862ad815ac99087446858c212437a7db4c6896120000e8a9f"}},{"ruleId":"D2","level":"warning","message":{"text":"Provisioner.provisionWithExistingMint (cognitive 26): Provisioner.provisionWithExistingMint has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 2, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f706439e72f3748529608bbee244ab817d35e83bcc2a68f69e81d92ec86a8d"}},{"ruleId":"D2","level":"warning","message":{"text":"envfile.Load (cognitive 26): envfile.Load has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 3, 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":"internal/envfile/envfile.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abed30924a0a1452893b288f1abc8d32d29500cb19e3e29cf577c8d8ff05f18"}},{"ruleId":"D2","level":"warning","message":{"text":"evalmeasure.MeasureAndExport (cognitive 26): evalmeasure.MeasureAndExport has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). Of this number, 24 points are the body\u0027s own statements and 2 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":"internal/evalmeasure/run.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3354128e36ab6a16ca2d1ab8a794a916f07f8fb2526fe27764507e8216a0b41"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.DoRequest (cognitive 26): Client.DoRequest has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (7 pts), boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gcp/client.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"57850d9cbf9c5aebcd3f0ff023281c12c779978448083b7efd771488e0c17e2d"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.MergeDuplicateSkillOverrides (cognitive 26): harness.MergeDuplicateSkillOverrides has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 7 (12 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":"internal/harness/skill_entry.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1a56230bf238899cf6d3986bb55e2082f7833e1b7194f3e76c5e178c44f75d"}},{"ruleId":"D2","level":"warning","message":{"text":"Harness.ValidateAllowedRemoteResources (cognitive 26): Harness.ValidateAllowedRemoteResources has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 3 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/harness.go"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d806c70795f117a2f7857a3a7c09a87280b3ad704da10807ce02bb0440c9dfa7"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginformat.PiArgsProblem (cognitive 26): pluginformat.PiArgsProblem has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/pluginformat/pi.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"0474c5b1c310d406a90208608ba180d7187154cf381f746eba0ebd88ee72051c"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeGitLabRootCIFiles (cognitive 26): repos.convergeGitLabRootCIFiles has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (25 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":"internal/repos/converge.go"},"region":{"startLine":2853}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cc29fbcc8763ade43379ab6bd4aaaf9eac963810d20a27c6d5cb805608e887"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.probeGitLabWebhookState (cognitive 26): repos.probeGitLabWebhookState has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 4, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b27ac79e8d3f829431877c5ffd83bc38b9c41f3a20170cbb6e17b477c00369"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.rejectRemovedConfigSiblings (cognitive 26): repos.rejectRemovedConfigSiblings has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (9 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 12). Of this number, 21 points are the body\u0027s own statements and 5 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":"internal/repos/manifest.go"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb78f9376c714282dab39c2db5e6eb65ded217f8e6f4290954acba3d33572e4"}},{"ruleId":"D2","level":"warning","message":{"text":"PiRuntime.piAgentManifestFor (cognitive 26): PiRuntime.piAgentManifestFor has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (20 pts), loops 2 (4 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":"internal/runtime/pi_bootstrap.go"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"706348e468c4e123c5b9a4a90eb31f059d6a8e26e52db735809eb9802ab0ef39"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.WaitForWorkflow (cognitive 26): Driver.WaitForWorkflow has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 2 (4 pts), boolean chains 2, loops 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d8ca8888126008245710bea1c0c6e617df7577fc2c6bc7e041f6f1053c36b2"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.harnessRoundPollOnce (cognitive 26): Driver.harnessRoundPollOnce has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd7afe9afc69991afd884caf34dc0058b7f1f4bcfa9cddb1dc2b087a0dc33f1"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.failedHarnessPollOnce (cognitive 26): Driver.failedHarnessPollOnce has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 1, loops 1 (nesting depth added 14). 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1660}}}],"partialFingerprints":{"codehealthFindingId/v1":"87fc16e06200e0f35c4687572b8652099b9d0559fd694c86bc74cec08782e55e"}},{"ruleId":"D2","level":"warning","message":{"text":"retryselect.scenarioLines (cognitive 26): retryselect.scenarioLines has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 4 (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":"pkg/behaviourtest/retryselect/retryselect.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8ec2687cab35f5c5145106bcc2422ab329b5afd52c3226bc652098c64f9992"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.parseMintStatusOutput (cognitive 26): steps.parseMintStatusOutput has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (22 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/mint_status.go"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad83d381a723287c97f3c42fa477985d42e19120eced48f7ab144b8d1e37fe5"}},{"ruleId":"D2","level":"warning","message":{"text":"ssrf_pretool._find_unquoted_separators (cognitive 26): ssrf_pretool._find_unquoted_separators has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c44634486321b1f4708c262fbed497e0e0d5047657114e9f148620ea2786c52"}},{"ruleId":"D2","level":"warning","message":{"text":"adr_corner.discussion_points (cognitive 26): adr_corner.discussion_points has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 6, loops 5 (6 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/adr-corner/scripts/adr_corner.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"200a528bf451ef469c749632853df1815bd5e7da15823d5174f8e144b79ce4bd"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 25): main.main has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 2, loops 1 (nesting depth added 4). Of this number, 18 points are the body\u0027s own statements and 7 belong 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, 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":"hack/prove-otlp-scores/main.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"45009161632f942abb3e608e9b953a0092d0432af2d43dec8dca4eb702f600ae"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.renderJiraSiteProfileFrom (cognitive 25): cli.renderJiraSiteProfileFrom has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 6, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_jira.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"8557f121d4f59d3fed25b0f60b4027543c29bba3ad2104d6980c74dd6fb36d39"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.refreshOpenAIProvider (cognitive 25): cli.refreshOpenAIProvider has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_openai.go"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10fd92daa32e2888f4a0cc195901677c2ea7486a34b68bc9ff55526818900c4"}},{"ruleId":"D2","level":"warning","message":{"text":"gcf.addDirToZipRooted (cognitive 25): gcf.addDirToZipRooted has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 2, 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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c99619014c5ebc62577bf378f931a78eff865f5cd38f4c79ecfb4504051b1d"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.pullRequestFileModes (cognitive 25): LiveClient.pullRequestFileModes has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":4266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0345b6f0af7dda884eaab96000b8fccd8b9c4c635d21dfb18a79c5dab65fc30e"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.mergeForgeConfigInto (cognitive 25): harness.mergeForgeConfigInto has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":2842}}}],"partialFingerprints":{"codehealthFindingId/v1":"5630f4e397a1730e4363e33f6dccdecc340dcc28dc08a830b0bf6493b15e14c7"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeGitLabTriggerAccountLocked (cognitive 25): repos.convergeGitLabTriggerAccountLocked 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"923090614fa637eba0d1fca77aa624b2af54dfb0cbd125c82323735cedaf8257"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.expandRuleReferences (cognitive 25): repos.expandRuleReferences has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (22 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":"internal/repos/gitlab_trigger_job_templates.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9251770e952ce32ec2cc86b3e9321fb98cb98ec3e36195ddb8447870b1ee0b5"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabTriggerOwnerSafety (cognitive 25): repos.gitlabTriggerOwnerSafety has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 7, loops 3 (4 pts) (nesting depth added 4). Of this number, 21 points are the body\u0027s own statements and 4 belong 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"5815add81d8e96ad3e667c34dbbf1db55c6d00519d91179862d32578747e0baf"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.evaluateRules (cognitive 25): repos.evaluateRules has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (5 pts), boolean chains 4, 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":"internal/repos/gitlab_workflow_admission.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2f0295cf73faba7472d22bd91d28f3fdf41d09a642d30ecff712e2d0f0fb07"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.hasNullStringElement (cognitive 25): repos.hasNullStringElement has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (6 pts), boolean chains 4, match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest_set.go"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc71da0316298b9b93107ae912742bd3998119ec4f4b7d0a71022a23bd199ce3"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.RenderPiGatewayConfig (cognitive 25): runtime.RenderPiGatewayConfig has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_gateway.go"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"516b303b42c0f4860e73b108980db3a211fe22c19f60e106a09f233c4c0c6fae"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.discoverPersonas (cognitive 25): runtime.discoverPersonas has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_personas.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2473c64fd088db3bf0f6d7cd79503fb381df70d40c47f51f147d06a5c4247c"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.taskProgressMessage (cognitive 25): runtime.taskProgressMessage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (23 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":"internal/runtime/task_progress_message.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e91a4bf90adea8dd43f8c819c2744b85ec7143082cf84554f22a5fa340f2f15"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.harnessPollOnce (cognitive 25): Driver.harnessPollOnce has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 3, loops 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"9183456b04e5bbbb6c6f53d1a7ead3160eeffd8dc12e4122124471daa9f4a719"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.harnessRoundPollOnce (cognitive 25): Driver.harnessRoundPollOnce has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ff2e0c829357d6d94b1099a21b46c4e9b7eccf073199a9b1a0789ed4ee1fad"}},{"ruleId":"D2","level":"warning","message":{"text":"behaviourtest.RunSuite (cognitive 25): behaviourtest.RunSuite has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (25 pts) (nesting depth added 7). Of this number, 24 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":"pkg/behaviourtest/run.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7f03a490e93129313bc60586e9adb6e68993e160dbbd76d8d69f3166336a1f"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.roundDisposition (cognitive 25): steps.roundDisposition has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/playback.go"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39dad628c73972798f23fc30fa6fe337a321f4baa98ad67269f8d5ba4637f7b"}},{"ruleId":"D2","level":"warning","message":{"text":"mintcore.validateCustomRoleLevels (cognitive 25): mintcore.validateCustomRoleLevels has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (6 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":"internal/mintcore/github.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12ffd9f83c0d106c8269ca998371c7192ed444dddfecd5764d410927787b15e"}},{"ruleId":"D2","level":"warning","message":{"text":"secret_redact_posttool.structural_secrets (cognitive 25): secret_redact_posttool.structural_secrets has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 8, loops 3 (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":"internal/security/hooks/secret_redact_posttool.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d75d18fd66b6976a84b4e78f6bfe3f504a06a2b7871166142828f73f6b9ad8"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runMintUnenrollRepo (cognitive 24): cli.runMintUnenrollRepo has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a469718c12549c708319fc1ab04331f14727bc9bef4c3c856d1f0655c319589"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.newPollCmd (cognitive 24): cli.newPollCmd has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (20 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 3). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to one function literal inside it that branches (line 47). 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":"internal/cli/poll.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"52df39090f1a3452b318221001880a02b798ae9224fe88b065008ce88fba73e4"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.agentsRepoHostTreeFetcher (cognitive 24): cli.agentsRepoHostTreeFetcher has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 7). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to one function literal inside it that branches (line 8309). 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":"internal/cli/run.go"},"region":{"startLine":8304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f5aa3daecb52fccfe2745ce6746f918014a20ddfc88cff48218f6e49dcdfea"}},{"ruleId":"D2","level":"warning","message":{"text":"gcf.bundleEmbeddedMintSource (cognitive 24): gcf.bundleEmbeddedMintSource has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 3, 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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfbf647ae56be5a1a989832b5f40a9a255d631e53838c402b913c62eccfafda"}},{"ruleId":"D2","level":"warning","message":{"text":"evalmeasure.ScoreRunHealthNamed (cognitive 24): evalmeasure.ScoreRunHealthNamed has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3, match/switch 1 (3 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":"internal/evalmeasure/runhealth.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"72214631796b2b54354d4bc5b8cd9f67247360d5ee929c0ba16f08c57402c891"}},{"ruleId":"D2","level":"warning","message":{"text":"jira.walkInline (cognitive 24): jira.walkInline has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (21 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/adf.go"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"217d2ce8ae95d24b269b127c539723882be62df80cdd95c42934b549194033d7"}},{"ruleId":"D2","level":"warning","message":{"text":"poll.buildEventPayload (cognitive 24): poll.buildEventPayload has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/dispatch.go"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"3094d6241d58b153af98386417a2505a1f543b8d3f5d77e10d5d5b5b2dfa5d4c"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.globalExecProblem (cognitive 24): repos.globalExecProblem has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 3 (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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"2edd752cb81156c1fe16a8712a42ecbc3d9dd7db6baac4260968ca4676a6394f"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.revokeUnsafeTriggerCredential (cognitive 24): repos.revokeUnsafeTriggerCredential has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 1 (2 pts), boolean chains 1, 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3923d625b8fbc768ec25617b33f2a4a4246eecbf44e666288421570da03fc2"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.Uninstall (cognitive 24): repos.Uninstall has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 4 (5 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 8). Of this number, 15 points are the body\u0027s own statements and 9 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":"internal/repos/uninstall.go"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a75c76183344126297c99c7b4d0c48ea42a78f0956e72cbf5a4738930abec3"}},{"ruleId":"D2","level":"warning","message":{"text":"gitLabTriggerAccountOp.removeAccount (cognitive 24): gitLabTriggerAccountOp.removeAccount has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":2052}}}],"partialFingerprints":{"codehealthFindingId/v1":"7633049c40fa374c73e660ba59bbd207dbd39e4bf5ac9839381ed66980528d7e"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.maskRuntimeSecretLiterals (cognitive 24): runtime.maskRuntimeSecretLiterals has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 6 (11 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/progress_text.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f189816eac3e5599ec6c2f46510e08855c6ed8ac989fa4f1f116638d1caf389b"}},{"ruleId":"D2","level":"warning","message":{"text":"PiRuntime.piExecModel (cognitive 24): PiRuntime.piExecModel has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 7, match/switch 1 (nesting depth added 1). 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: 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":"internal/runtime/pi_run.go"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d31214a687c2108cc8a6d0fecf835a02cdb6c65278a80e87f9e106009bf526"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.givenURLSourcedBaseHarness (cognitive 24): steps.givenURLSourcedBaseHarness has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a5658e513fe0541674bf02e8897b534869794d095d521daec7b85f88cd8c21"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.commitLocalHarnessResources (cognitive 24): steps.commitLocalHarnessResources has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a2dffc9102d676bba45b1a40191fdd52991464ce84287910796aa7f1d5e187"}},{"ruleId":"D2","level":"warning","message":{"text":"ssrf_pretool._has_output_redirection (cognitive 24): ssrf_pretool._has_output_redirection has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfb388a47535df2c840528a89e859510a488e533f1376e8aa538554328b7cd6"}},{"ruleId":"D2","level":"warning","message":{"text":"Setup.ensureInstalled (cognitive 23): Setup.ensureInstalled has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 pts), match/switch 1 (2 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":"internal/appsetup/appsetup.go"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea05e58b190644fb0972908320d78e682231bf694f36aaa5ece527fcbfb86510"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.repinSourceURL (cognitive 23): cli.repinSourceURL has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (23 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":"internal/cli/agent.go"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0a9d779623573077b370342dd7b65307d99fd1cae943e9cbd2de7966c4f899"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.newForeignListCmd (cognitive 23): cli.newForeignListCmd has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 4 (6 pts) (nesting depth added 7). None of this is in the body itself: all 23 points belong to one function literal inside it that branches (line 127). 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":"internal/cli/foreign.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"157aacc19bb9a4b8f43fe87180ceb2f039c322999c2dd2fe7ea348d77535c3f6"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.setupGitLabPipelineSchedules (cognitive 23): cli.setupGitLabPipelineSchedules has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos_gitlab.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f76c970437c24142ca75c6d64be5f87526a122273a794d207cbad0a5fffda53"}},{"ruleId":"D2","level":"warning","message":{"text":"openAIReplyDoc.serviceAccountFor (cognitive 23): openAIReplyDoc.serviceAccountFor has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 5 (10 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/inference_openai.go"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee94569cda0b9326657a82781ad811157f368e638bb7f26f0217defe2431cca1"}},{"ruleId":"D2","level":"warning","message":{"text":"config.EffectiveYAML (cognitive 23): config.EffectiveYAML has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (20 pts), loops 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/effective.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce32264c5ba35347f7a8d10e894f124f9fe998bba9aadc28d9fac10bfe41bc3"}},{"ruleId":"D2","level":"warning","message":{"text":"config.ValidateGatewayCompat (cognitive 23): config.ValidateGatewayCompat has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/inference_gateway.go"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2577238a622760ca1a8b845d641b7c02dea1f1bbf97c478bd49e7dd992fb38e"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveGCFClient.trySetIAMBinding (cognitive 23): LiveGCFClient.trySetIAMBinding has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2b9e3bc3a2f97beb7680c180e04961c5d3b96f48d977a01cbe8a9cdafed628"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.GetIssueComment (cognitive 23): LiveClient.GetIssueComment has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 9). Most of this is not in the body itself: 8 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 336). 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":"internal/forge/gitlab/issue.go"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"a108f5ef5cb279c843478e643eea5e271c4ae46d6859d1c90b294ba86ae02e81"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerOwner.resolveSuppliedAccounts (cognitive 23): TriggerOwner.resolveSuppliedAccounts has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 5). Of this number, 19 points are the body\u0027s own statements and 4 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":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f0a8e1f85f0269fda0b42a9f495360388a85d45d702bf1543177a2321906e0"}},{"ruleId":"D2","level":"warning","message":{"text":"gitlabroles.registrationFromFile (cognitive 23): gitlabroles.registrationFromFile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 2, boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlabroles/registry.go"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb529dc14d62d31ddb210f3ad5e5b067ec39613af5b97acbd6af6a4d248634c"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.ValidateSkillOverrides (cognitive 23): harness.ValidateSkillOverrides has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (19 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/skill_entry.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"617cb754ae78f6008a9e5798e2b0b6aa530c88de35bde9003c9a81f807450e5a"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.resolveEventRoles (cognitive 23): Poller.resolveEventRoles has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, loops 2, 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":"internal/jirapoll/auth.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7a3ee794ada06578ae6a76d11afea8a3b3fe72065a0b22bf17444ff6d9b531"}},{"ruleId":"D2","level":"warning","message":{"text":"layers.commitScaffoldViaPR (cognitive 23): layers.commitScaffoldViaPR has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (23 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":"internal/layers/commit.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"df95c317aea4362d18f7a9685bbd06d6d28889b99ed19edc9ac2c1a457e199a0"}},{"ruleId":"D2","level":"warning","message":{"text":"layers.checkUnsyncedForkFallback (cognitive 23): layers.checkUnsyncedForkFallback has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/layers/commit.go"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9076b4414564957d5ba93a7bf2c865f9068e28c8128d003c26fbb9e42f85e6"}},{"ruleId":"D2","level":"warning","message":{"text":"poll.mergeLabelStateAgainst (cognitive 23): poll.mergeLabelStateAgainst has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 5 (8 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":"internal/poll/state.go"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f01e5b6795fb58e7783be1f8337e9962d86eabf58dbd9f020692ad95172f061"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.applyPersistDeltas (cognitive 23): Poller.applyPersistDeltas has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/state.go"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"14057fe8087c060c979cdfed0d7c5f6cc69d44d43899ab826907fe832cbf7740"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.persistWithCAS (cognitive 23): Poller.persistWithCAS has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 1 (2 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":"internal/poll/state.go"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c3889b5fd6119280e5aef663c1e4be09f98320d7bce428fc83a1d87e75e906"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.BuildWebhookEvents (cognitive 23): Poller.BuildWebhookEvents has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/webhook.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c986f5dd2bf4b8ddb764f36ecd0a074f9fd543d958e8fdceebfb4144e35963f"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.webhookNoteEvents (cognitive 23): Poller.webhookNoteEvents has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 2, match/switch 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/webhook.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3ab178d76c7928fa021f05b3ab87c559d84b2597dcfca72921600e82360ef4"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.revokeGitLabIdentityTokensSkipping (cognitive 23): repos.revokeGitLabIdentityTokensSkipping has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 4, loops 1 (nesting depth added 7). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_roles_cleanup.go"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46d80112007990153744c3c623df2a0598e0dd46663dc331cbf5ad9347bc742"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.RotateGitLabTriggerAccount (cognitive 23): repos.RotateGitLabTriggerAccount has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 4 (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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":2209}}}],"partialFingerprints":{"codehealthFindingId/v1":"708d76d0882911e95effd683587c9ed19f5e5536c99e213bf2f584510a53d5f5"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.CheckGitLabTriggerDispatchGate (cognitive 23): repos.CheckGitLabTriggerDispatchGate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (23 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":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"949db3b5716abe41cb9aa8be73b66fb3630a86a326147afd1fda2c65e30693bf"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabTriggerProjectSafetyProblem (cognitive 23): repos.gitlabTriggerProjectSafetyProblem has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 3, loops 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, 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d913c6146582bc64d4a423f4637acb672618f73ab55b0983c0a839147541e0"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.mergeSpecInputs (cognitive 23): repos.mergeSpecInputs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (21 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":"internal/repos/gitlabci.go"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93e546a17cc11588c4fab6e47ed98b66233d35e33149087bc4f4630aa9181ad"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.preflightManagedConfigRepos (cognitive 23): repos.preflightManagedConfigRepos has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/managed_config_writeback.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bc6b67cf417c95fa3ac723848970c3e574353c8155e2c65a1b3797fa63f69b"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.valueNode (cognitive 23): repos.valueNode has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest_set.go"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"932ed1ef445dba4e2c5483e8084301f415fe168b36d5a00ed49b995f81e84c1b"}},{"ruleId":"D2","level":"warning","message":{"text":"gitLabTriggerAccountOp.bootstrap (cognitive 23): gitLabTriggerAccountOp.bootstrap has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (22 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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"b058f4805c0f01c24ad73cfa6ce77fcaae9f911fa41e6fd7f925b698236c11c1"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.extractRawContext (cognitive 23): runtime.extractRawContext has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/claude_progress.go"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e4ac030ddec4efedb727a35d4dd2300420ca9fa9743867f4b0f03d517d7f63"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRuntime.Run (cognitive 23): ClaudeRuntime.Run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/claude.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"a362f35d86710d67c033dbf6efa418906724a777576a7ce072ff10f395011a9e"}},{"ruleId":"D2","level":"warning","message":{"text":"sentencetoken.tokenizeWords (cognitive 23): sentencetoken.tokenizeWords has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3, 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":"internal/sentencetoken/word.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad2083a1f9f8e2bb23c21180d3ecfc7e16400cc6f0883e6000457a4a367a123"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.hasSupersedingAgentRun (cognitive 23): Driver.hasSupersedingAgentRun has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 6, 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc1a7b64c78eabc4d6f19ad5c53e65f29336e8fa4de5877ecd5e80feaa64247"}},{"ruleId":"D2","level":"warning","message":{"text":"sharedOrgLock.leave (cognitive 23): sharedOrgLock.leave has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 1, loops 1, match/switch 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":"pkg/behaviourtest/drivers/install/orglock.go"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bafd961e67bf6a1ceb97de23c70be7a1ec3d35798572d7edbf1e8b6c02df9a"}},{"ruleId":"D2","level":"warning","message":{"text":"fullsend-codex-hook.run_script (cognitive 23): fullsend-codex-hook.run_script has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 6, ternaries 2 (3 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/codex_hook/fullsend-codex-hook.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aeae7bb1372de389174856760a50859b2efc17173d80cf5bac25fb2aab72944"}},{"ruleId":"D2","level":"warning","message":{"text":"unicode_posttool.scan_text (cognitive 23): unicode_posttool.scan_text has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/unicode_posttool.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9163e0bfb46d2c1e3216918c956f8c1d6c24ffca49be7b7b528aecb045ebf32"}},{"ruleId":"D2","level":"warning","message":{"text":"binary.ExtractFullsendFromTarGz (cognitive 22): binary.ExtractFullsendFromTarGz has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 3, 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":"internal/binary/download.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"0559259ae600afd3c94454b8cbf2d95b3b064a1821a0d76aa2f01febb526ade4"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runAgentUpdate (cognitive 22): cli.runAgentUpdate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (22 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/agent.go"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4835102d44078451e6fff3dfe8af38d100a11cb1bb51a4209ce7735532e6f2c"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runInferenceStatus (cognitive 22): cli.runInferenceStatus has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (21 pts), 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, 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":"internal/cli/inference.go"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca83088bdcbd44a6fe3c6cc14378ca8a46f73d640037d5f154f307d38671f2c"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.validateGatewayHost (cognitive 22): cli.validateGatewayHost has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_gateway_egress.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0774417f13ff7bc6484a550e1e4906f498eb1340fd58d341e5cafc5025fc759"}},{"ruleId":"D2","level":"warning","message":{"text":"Provisioner.Provision (cognitive 22): Provisioner.Provision has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (21 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":"internal/dispatch/cf/provisioner.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e7c6959ce44c38375ccc7fe873d30df5c07d03d5d19ef1e0fcfb785aa3f0a8"}},{"ruleId":"D2","level":"warning","message":{"text":"Provisioner.validate (cognitive 22): Provisioner.validate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 7 (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":"internal/dispatch/cf/provisioner.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe2242afe89f3dab6d0f3b579e41749d8e4cec907dfa0b1bc3174e3df1c0cfc"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveGCFClient.UpdateServiceEnvVars (cognitive 22): LiveGCFClient.UpdateServiceEnvVars has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, loops 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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"405d38fd83aa9d7c0432f6e1d851b8bf3e89295f214e31abdb2981537ed31b71"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.listDirContents (cognitive 22): LiveClient.listDirContents has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (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":"internal/forge/github/github.go"},"region":{"startLine":2466}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74a0fef9782622a95aa3cfbbf80dc2ed97205634ff349bd12008c3af10a2631"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.GetWorkflowRunLogs (cognitive 22): LiveClient.GetWorkflowRunLogs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 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":"internal/forge/github/github.go"},"region":{"startLine":5132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cb48f4a30885f1fd77d80926bf8b686a887c42426b7c5aead6f6cd4221b7c4"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListDirectoryContents (cognitive 22): LiveClient.ListDirectoryContents has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/repo.go"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2efc7bf56181c488cf68699b7056236cb0380fdadca0b188c6ce721c6eeabda"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListProjectServiceAccounts (cognitive 22): LiveClient.ListProjectServiceAccounts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 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":"internal/forge/gitlab/service_accounts.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa4b620719a17bd2f097032c9ad0bad81d1a7461a779b019c3e9bfbf31f036b"}},{"ruleId":"D2","level":"warning","message":{"text":"UninstallTokenClient.ReconcileGitLabPollersForUninstall (cognitive 22): UninstallTokenClient.ReconcileGitLabPollersForUninstall has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3, loops 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlablifecycle/uninstall.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08f5a31f99ca3862b9889f6478610f4db16f9d42a2b2bcee8feb5dfdca99336"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.resolveActorRoles (cognitive 22): Poller.resolveActorRoles has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/jirapoll/poller.go"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"546ddc3a8b7168db264a433a7e5bb249518f2a9da6f6752481366f055c1a28bd"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginformat.PiLoadProblem (cognitive 22): pluginformat.PiLoadProblem has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/pluginformat/pi.go"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f375ce0372ce54184fda3f5f5dffb228b73048eb03cf6616998f4194aac1a32b"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.detectNewLabels (cognitive 22): Poller.detectNewLabels has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 4 (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":"internal/poll/state.go"},"region":{"startLine":1764}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b017bb8466c7fbe865ead6658b32bf8fcadaef4456a1a9beff21490df61a38"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.checkGitHubJiraPollWorkflow (cognitive 22): repos.checkGitHubJiraPollWorkflow has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (20 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":"internal/repos/github_jira_poll.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"089a9f4ee4054769ecdf218be4dd08389339f42f85d112f403c8716fa4a16d18"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.prepareHandoffPollerOwnedTrigger (cognitive 22): repos.prepareHandoffPollerOwnedTrigger has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (20 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":"internal/repos/gitlab_poller_cutover.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9c346b04ac277b3e3dd8e0715d0fc2209ebab70ef5b55192b1919bafc3bfc1"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.rotateProvided (cognitive 22): repos.rotateProvided has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (22 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e392c6252d3cc03e017d949fbf61681d1de94bcdf154fc7631585367f1c22b6"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabDispatchConsumerProblem (cognitive 22): repos.gitlabDispatchConsumerProblem has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 4, match/switch 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":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2b9a76ec0cb36d9bf174410a81c3e2eaaa60f38b355e21badfdae9747d7643"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.unevaluableRuleReason (cognitive 22): repos.unevaluableRuleReason has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, match/switch 1 (2 pts), 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":"internal/repos/gitlab_workflow_admission.go"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"c649397a890b3601178fe6d4fbc8ba4f7bb4b94d79a3112ff56c0426cd6c7ffb"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabWrapperForwardsDispatchInputs (cognitive 22): repos.gitlabWrapperForwardsDispatchInputs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlabci.go"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fc83d67069e4d9051db3242c0c1fb4387b29a08df76219de82a468e2f643c7"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.Status (cognitive 22): repos.Status has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 7). Of this number, 18 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":"internal/repos/status.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ea86e8b1909d1e9d350ceb7320bf31b40e33e3baa39e6b60330c5422be5279"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceAccountTokenClient.needsServiceAccountReplacement (cognitive 22): ServiceAccountTokenClient.needsServiceAccountReplacement has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, loops 3 (4 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":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f0ae412b0c297066dffd2c2e07eaba6bdcc684fffe396bac3476e89f6af1b1"}},{"ruleId":"D2","level":"warning","message":{"text":"ResolvedConfig.applyEffectiveInfrastructure (cognitive 22): ResolvedConfig.applyEffectiveInfrastructure has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 5 (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":"internal/repos/infrastructure.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"76991c7d5cd89e7f600e8f869fd0315c953467254535b59e65d1f82580dbf739"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve.resolveFileURL (cognitive 22): resolve.resolveFileURL has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (22 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/resolve/resolve.go"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e8d870a1293f6b5ddc24ea2501d31ae9a059ce0130f2aea1e1e7491d041cd0"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.decodeCommentPath (cognitive 22): runtime.decodeCommentPath has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/dummy_playback.go"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee677ff47d102a87d0ea0e4f4aa6f183af0419d7f398783f6aa856230735df0"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.rejectDuplicateJSONKeys (cognitive 22): runtime.rejectDuplicateJSONKeys has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 11). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function literal inside it that branches (line 290). 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":"internal/runtime/pi_gateway.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e140c682f8f0c7b570fb434768892ceac389d3d14f0a058549ebb1e8b1b7c13"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRuntime.Bootstrap (cognitive 22): ClaudeRuntime.Bootstrap has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (21 pts), loops 1 (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":"internal/runtime/claude.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c1b69dac8aad48566436a4c8ac1517e02a20bd42a4317758e9ca49ac751ee9"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexRuntime.foldCodexChildUsage (cognitive 22): CodexRuntime.foldCodexChildUsage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (21 pts), loops 1 (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":"internal/runtime/codex_subagents.go"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"0690a3a869cb8129d58a2b3ca1b2829ab3980697f5d1fd399d68a440bb1439d1"}},{"ruleId":"D2","level":"warning","message":{"text":"progressReconciler.status (cognitive 22): progressReconciler.status has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 5 (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":"internal/runtime/status_progress.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8422998d38fd6d063bec0436e1ef7f25bba2d6f24a36aff2c6e1f57e2fb86ab1"}},{"ruleId":"D2","level":"warning","message":{"text":"sticky.BuildUpdatedBody (cognitive 22): sticky.BuildUpdatedBody has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 4, boolean chains 1 (nesting depth added 6). Of this number, 21 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":"internal/sticky/sticky.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"26482b6bee24b553d1c78b1c9a4f54db1d6e0511df80e08eb77273baf0ef4bf2"}},{"ruleId":"D2","level":"warning","message":{"text":"artifacts.FindOutputFilesByArtifact (cognitive 22): artifacts.FindOutputFilesByArtifact has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 7). Most of this is not in the body itself: 9 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 49, 90). 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":"pkg/behaviourtest/artifacts/find.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"be81bdabb20f3ea9851ce651426574fc1cdf9898b7676196c6721d5aaa88147b"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.emptyMatrixPollOnce (cognitive 22): Driver.emptyMatrixPollOnce has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8f406256a5cce564d06871660e6259b1b704f39f66a99a30098de1d7139029"}},{"ruleId":"D2","level":"warning","message":{"text":"composedDriver.Finalize (cognitive 22): composedDriver.Finalize has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 4 (5 pts), match/switch 2, 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":"pkg/behaviourtest/drivers/install/composed.go"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3702d6718f7f0dcd55c1acc9a827a7283bf53a4f7d82776c74e19a2ccc920f9"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.thenPublishedRepoMatchesFixture (cognitive 22): steps.thenPublishedRepoMatchesFixture has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/playback.go"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"957bba12a3bc87e70e95f187836fda397d2bc7b67fa69762cab8f6c252ec2dfa"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.givenRepositoryAgentSettings (cognitive 22): steps.givenRepositoryAgentSettings has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 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":"pkg/behaviourtest/steps/runtime.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d812672e30e813666f24d4e4e9fa15eef392352fa9f21bd657d91ba25ffb354"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze-transcript.normalize_pi_message (cognitive 22): analyze-transcript.normalize_pi_message has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2, 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":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a2b94f26f24dcd1cd563fa59122ae6f9857f3742475246b8f27de3c8dce7e6"}},{"ruleId":"D2","level":"warning","message":{"text":"GhFetcher._pulls_for_linking (cognitive 22): GhFetcher._pulls_for_linking has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c65cdffd7890b8ae71b4111cdb4363201e56f5bae679a0223c62aa30e0b0c6"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.newForeignAllowCmd (cognitive 21): cli.newForeignAllowCmd has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18 (21 pts) (nesting depth added 3). None of this is in the body itself: all 21 points belong to one function literal inside it that branches (line 40). 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":"internal/cli/foreign.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b7088242018c0fc2db51a65ebf4aeea6e56755d60791e8b215353039ef4d00"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.convergeGitLabDispatchRoute (cognitive 21): cli.convergeGitLabDispatchRoute has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 3 (nesting depth added 6). Of this number, 20 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":"internal/cli/repos_gitlab_trigger_account.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7d05dc2f656b26c17238d3e60c55a2f57fb5892770721a7777cb8bb9df8a03"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.fetchPinnedAgentsRepoFile (cognitive 21): cli.fetchPinnedAgentsRepoFile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 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, 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":"internal/cli/run.go"},"region":{"startLine":8017}}}],"partialFingerprints":{"codehealthFindingId/v1":"7602c8dd2f3679527a33f81fb5552ccdf5030e1c0b6fd9acaabc17b56c159bd8"}},{"ruleId":"D2","level":"warning","message":{"text":"config.decodeManagedConfig (cognitive 21): config.decodeManagedConfig has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 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":"internal/config/managed.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17024bf0b568f380e5bfbc380f2f98c9123e10a49124bc3bf5c3ed5a13264e2"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveGCFClient.GetServiceTrafficEnvVars (cognitive 21): LiveGCFClient.GetServiceTrafficEnvVars has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (15 pts), loops 3 (5 pts), 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, 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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1700}}}],"partialFingerprints":{"codehealthFindingId/v1":"469ea0d99e7b67ada0b8bdf85a07e32c776876092635f7528f0dc525ef25db41"}},{"ruleId":"D2","level":"warning","message":{"text":"FakeClient.ListPullRequestFileDiffs (cognitive 21): FakeClient.ListPullRequestFileDiffs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (8 pts) (nesting depth added 13). 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":"internal/forge/fake.go"},"region":{"startLine":2114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9aa38c66333b351208e77bd17baddc2e16bb58eebee97e99e9566e2184e956"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListRepoPullRequests (cognitive 21): LiveClient.ListRepoPullRequests has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/mr.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"0618d2a3fc1013b7bdf32a3cf1256f75ada3558d590af343e8b3e33b77ae1298"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.resolveRootCommitSHA (cognitive 21): LiveClient.resolveRootCommitSHA has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3, loops 1 (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 5 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":"internal/forge/gitlab/repo.go"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"3107aa3fd1c1c3c918d2dcba078a542a71efacc11e54162b1816c68c52033b59"}},{"ruleId":"D2","level":"warning","message":{"text":"jira.escapeMDLineStarts (cognitive 21): jira.escapeMDLineStarts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (5 pts), boolean chains 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":"internal/forge/jira/adf.go"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae6e09bff893431ac6471e5aecc57aae320c8e6bd7bbf61ecb3fc8273ed7db7"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerOwner.pollerUserIDs (cognitive 21): TriggerOwner.pollerUserIDs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, loops 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":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9175831c337a81f0a27dbbf3b2d294b0ce1871b0e12b2c7fc4e2ef04bbfb697"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry.add (cognitive 21): Registry.add has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3, boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlabroles/registry.go"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d07bece27e8bc879cae189161f0af1fcbac9d1853dd6fcd79c843800186b72"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.fetchBaseFileFromPinnedTree (cognitive 21): harness.fetchBaseFileFromPinnedTree has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (19 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":"internal/harness/compose.go"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd02ec0dcb41165a7acbfa8e16c2d2d49725f321976a293170f8bf633703662"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.mergeForgeConfig (cognitive 21): harness.mergeForgeConfig has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), loops 1 (2 pts), boolean chains 1 (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":"internal/harness/forge.go"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"58460c0b8172d0c66cd5ae6288b7178b6645bce1dfcda25410a7de56ecab4c11"}},{"ruleId":"D2","level":"warning","message":{"text":"Harness.Lint (cognitive 21): Harness.Lint has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/lint.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b53aad3589d0f93aea26b512864cd4ee8d1d7f06785bef859c6838703bbb411"}},{"ruleId":"D2","level":"warning","message":{"text":"vertexauth.prepareGitHubWIF (cognitive 21): vertexauth.prepareGitHubWIF has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21. Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"internal/inference/vertexauth/vertexauth.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c363cd95db2e08ce273b9e43638a02a21abe2b826b7c10c6502342f5b61def35"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.processIssue (cognitive 21): Poller.processIssue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 1 (nesting depth added 6). Of this number, 20 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":"internal/jirapoll/poller.go"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97fc4cce39c18facb39ce73992a5ff6b770966338003b30faf78b67edf52400"}},{"ruleId":"D2","level":"warning","message":{"text":"poll.encodeJiraEventPayload (cognitive 21): poll.encodeJiraEventPayload has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/jira_dispatch.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"74625a896d99b17fa1750bc97e33429500b2b2f64e376cb6e3012ada8ca61bb5"}},{"ruleId":"D2","level":"warning","message":{"text":"prescript.ParseFile (cognitive 21): prescript.ParseFile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 1, loops 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":"internal/prescript/prescript.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8940266043efb8003f6905f5cc488eb7792d34d640efb79d08525f985a5538f8"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.rejectDuplicateJSONKeys (cognitive 21): repos.rejectDuplicateJSONKeys has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 10). Of this number, 19 points are the body\u0027s own statements and 2 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":"internal/repos/gitlab_poller_generation.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1167eeafe57eaa7155c4de53c601a2561675e9f8a1df032e6d3512c2ecbe955"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.GitLabWebhookTriggerRouteStale (cognitive 21): repos.GitLabWebhookTriggerRouteStale has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 3 (4 pts), boolean chains 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":"internal/repos/gitlab_webhook_trigger_account.go"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbf2a443e2315c88023f1143b569e94bf2468042e6f9b79fff678d74fa10542"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabRootDeclaresDispatchInputs (cognitive 21): repos.gitlabRootDeclaresDispatchInputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlabci.go"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa7e1300318fde510f8268a0ea75d20a42b1858fcf4a4d42b8ab70c5c00e0b2"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.applyStaleVendoredPlan (cognitive 21): repos.applyStaleVendoredPlan has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/stale_vendored.go"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"20340638e36c8103daa3f84ae4b8b96e3a238b672879ec3cf9f3c9649d5fdb03"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceAccountTokenClient.containOwnedRole (cognitive 21): ServiceAccountTokenClient.containOwnedRole has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"df02d0189a24c0e69e2050337915ca6cdbd09ec44327635e769a2dc7b3e9be89"}},{"ruleId":"D2","level":"warning","message":{"text":"gitLabTriggerAccountOp.removeProtectedRefResources (cognitive 21): gitLabTriggerAccountOp.removeProtectedRefResources has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (21 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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":1992}}}],"partialFingerprints":{"codehealthFindingId/v1":"529008b8b7d731857c8800444938ba640fcfa573f1c1a23c7ef4e9235039b84a"}},{"ruleId":"D2","level":"warning","message":{"text":"Envelope.validate (cognitive 21): Envelope.validate has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 1, match/switch 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":"internal/telemetry/tracecontext/envelope.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb14d440d9261071a949f46a59a53d55b41fa55e8f2f8986bec99a1ab18cf299"}},{"ruleId":"D2","level":"warning","message":{"text":"retryselect.Select (cognitive 21): retryselect.Select has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 4 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/retryselect/retryselect.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6a7f34999de5794c319e921a0fe5621109f48a0990743530159a4b5d304be8"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.waitForMintProbeRun (cognitive 21): steps.waitForMintProbeRun has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3, boolean chains 2 (nesting depth added 7). Of this number, 14 points are the body\u0027s own statements and 7 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":"pkg/behaviourtest/steps/mint_probe.go"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4b94e7df43acb2188a0bd9723cbdf1f82b97c44499fff28b758997efdd6713"}},{"ruleId":"D2","level":"warning","message":{"text":"mintcore.mintHTTP (cognitive 21): mintcore.mintHTTP has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/http_client.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f13119b1cf0d9665c225a678b3ff7ae132cf2f4064f9e4fc2a2d2fb1fdabae"}},{"ruleId":"D2","level":"warning","message":{"text":"secret_redact_posttool.content_skips (cognitive 21): secret_redact_posttool.content_skips has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5, error handling 2 (3 pts), ternaries 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/secret_redact_posttool.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"027d6b48a88ebc591acfa2c256b4c73aea57644c46f7803d2ff003a2453e0209"}},{"ruleId":"D2","level":"warning","message":{"text":"secret_redact_posttool._credential_like (cognitive 21): secret_redact_posttool._credential_like has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/secret_redact_posttool.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e008ed0a876b48af93fdafac3fbbd3daa8cf1a162a36d494810a6720903126c"}},{"ruleId":"D2","level":"warning","message":{"text":"Setup.handleExistingApp (cognitive 20): Setup.handleExistingApp has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 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":"internal/appsetup/appsetup.go"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7a51e288f318ef1cd6d68dd7c996897a478331e7507a32687c15881a630606"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.artifactRunSource (cognitive 20): cli.artifactRunSource has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (19 pts), 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":"internal/cli/prepareartifacts.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"3161aa4a495becd74862bda47fc9db85cb6b40df747d25e796e238add5fad162"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.loadRunConfig (cognitive 20): cli.loadRunConfig has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"614b3e06b5d398da2f2d5b24908cceb692e94dbeb8894eac8f2c27e1afa33857"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveGCFClient.CreateWIFProvider (cognitive 20): LiveGCFClient.CreateWIFProvider has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"848d297fb53219bb55decc78cf26512bb14da442ffa1b91537f4e099b0d529fa"}},{"ruleId":"D2","level":"warning","message":{"text":"fetch.CacheFindNewest (cognitive 20): fetch.CacheFindNewest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/fetch/cache.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"76beeee7fd598133615eda7c3a17adcaf69ed8c6e7987a7fb4b71d5eee52ec36"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.GetRawFileContentAtRef (cognitive 20): LiveClient.GetRawFileContentAtRef has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":2368}}}],"partialFingerprints":{"codehealthFindingId/v1":"a401b36de06f445c36afffa6558bcd2608905c9c5768aeed7667aa949d369346"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListInheritedRepoVariables (cognitive 20): LiveClient.ListInheritedRepoVariables has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, loops 2 (nesting depth added 6). Of this number, 13 points are the body\u0027s own statements and 7 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":"internal/forge/gitlab/ci.go"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c70daa21ae1afd6c73e6c82c1f024a4a2b5ff67c162776806a48f8d5e9a6e9c"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.resolveBaseForgeAndOverlays (cognitive 20): harness.resolveBaseForgeAndOverlays has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 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":"internal/harness/compose.go"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68c748a0b88c251620c9b83d4ae595b3eb3f3adce36af3bcc0c5899a93848f4"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.mergeSkills (cognitive 20): harness.mergeSkills has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (6 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":2690}}}],"partialFingerprints":{"codehealthFindingId/v1":"3596bf9c610072fe3a6ff83d7c2c2652022d879898d4808de695504e7c59cd89"}},{"ruleId":"D2","level":"warning","message":{"text":"Harness.HasURLReferences (cognitive 20): Harness.HasURLReferences has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 5 (6 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":"internal/harness/harness.go"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"12844a0b11f78aceb9b22f42c3b4b4fc058ec110ff245e0bf9527bcf9178f6d0"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.discoverSlashCommands (cognitive 20): Poller.discoverSlashCommands has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 3, 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":"internal/poll/events.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9fbe71db2fa5b4f6e1b39f7fbafc71abc3dae347c6d78517ca4124e0d681ac"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.revalidateReconcile (cognitive 20): Poller.revalidateReconcile has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3, match/switch 1 (2 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":"internal/poll/state.go"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b2502484ed76dfc48f781fee6e7486c49531ef0288fe79af5762bd2c3e0d89"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.finalizePendingPollerCutover (cognitive 20): repos.finalizePendingPollerCutover has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, loops 1 (2 pts), 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":"internal/repos/gitlab_poller_cutover.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"1258d5f23b7985ec6993cc4f15d8b54fe42d58635b949e255238257537cc1644"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.revokeRetiringPollerTriggers (cognitive 20): repos.revokeRetiringPollerTriggers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, loops 3, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_poller_retirement.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddc295310e3f1166af85488babc5f7243668b1425202706a295e690789b3314"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabIncludeAdmits (cognitive 20): repos.gitlabIncludeAdmits has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02e041cf047fb4a365e9831a6b1f874022273dd4eb4d831f22ffa5ff63cbad4"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.jobExecSurfaceProblem (cognitive 20): repos.jobExecSurfaceProblem has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6, 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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc13fdcc2f7666b98f6831db4eed5d41c7d09640d34c28e5fa002dfdd4b13764"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabInheritedVariableScan (cognitive 20): repos.gitlabInheritedVariableScan has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (4 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":"internal/repos/gitlab_variable_scopes.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"571c1b4abeb668c5d3e659e4f1db0c6d3eb8c0a3004e07ef3890c03a34afb62a"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.verifyGitLabWebhookActiveToken (cognitive 20): repos.verifyGitLabWebhookActiveToken has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook.go"},"region":{"startLine":2474}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a3496efa532760c7d9b0899bacaf43a304d395addb8c6394107429db19368d"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.GitLabWebhookUsesRetiredTriggerCredential (cognitive 20): repos.GitLabWebhookUsesRetiredTriggerCredential has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook_trigger_account.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"7365b02d9367e7e0e4ddaa10ca3396dc0e36f949edbff72262be9a508d80fd62"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.mergeGitLabCIWithWrapper (cognitive 20): repos.mergeGitLabCIWithWrapper has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 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":"internal/repos/gitlabci.go"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0545be7954462150e6315db0cb1706c6c1c0304b1dfceaa62d0ea8a0160bde9"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.checkManagedConfigDrift (cognitive 20): repos.checkManagedConfigDrift 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":"internal/repos/managed_config_lifecycle.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"88890678d19ad63f03a0b2bb09edd14eed015a8cf278647cc0fd363ab3b6a922"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.carveOutGlobEntry (cognitive 20): repos.carveOutGlobEntry has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest_edit.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc36e6f4bba4480c0fc4261464d58b64efbc21f34303d8cf1442c08648eed4ce"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.ProbeRepoState (cognitive 20): repos.ProbeRepoState has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/status.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e14f3628f2514f9e2f421e4398ac0a15b6b8d89369245099cde48c92871f23"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceAccountTokenClient.ConfirmOutgoingTokenInactive (cognitive 20): ServiceAccountTokenClient.ConfirmOutgoingTokenInactive has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (5 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":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0f2fba40361bc5ef017c2da41f6db81606fc9fef047940ef7fcc528fcefba8"}},{"ruleId":"D2","level":"warning","message":{"text":"gitLabTriggerAccountOp.containBySinkState (cognitive 20): gitLabTriggerAccountOp.containBySinkState has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34cf9e992fd302ca037f0dd07ff09b861848c083158640c07279c6bf49c9f29"}},{"ruleId":"D2","level":"warning","message":{"text":"gitLabTriggerAccountOp.liveDrift (cognitive 20): gitLabTriggerAccountOp.liveDrift has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 3 (4 pts), boolean chains 2, loops 1 (2 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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"14beffec168e75f4a3a8c4f8a18d3266c74bd96e871105f7fcfb24dc6a6c3561"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve.resolveSkillTransitiveDeps (cognitive 20): resolve.resolveSkillTransitiveDeps has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2, 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":"internal/resolve/resolve.go"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2b163eebd38a371178ee51263ebde5a87639c53ad39b0bcde2fd9bd00ca6dc"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.codexTOMLBasicString (cognitive 20): runtime.codexTOMLBasicString has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/codex_config.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff0918a0b47bce77a468726dd34e000d06e09573ec5768dd279909889c9417d"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.piChildSpecResolver (cognitive 20): runtime.piChildSpecResolver has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3, boolean chains 1 (nesting depth added 7). Of this number, 14 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":"internal/runtime/pi_personas.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9712d7f63b849612ba744be92a8ffeedcca93f2762020d53006a63af4a57fde"}},{"ruleId":"D2","level":"warning","message":{"text":"tokenBasedAnnotation.tokenAnnotation (cognitive 20): tokenBasedAnnotation.tokenAnnotation has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 6 (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":"internal/sentencetoken/annotate.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c268a85800c9e533c9e6dc81d8d1e7439b40c793495ab17f21a4ac00b8be69c"}},{"ruleId":"D2","level":"warning","message":{"text":"install.buildPoolDriver (cognitive 20): install.buildPoolDriver has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (nesting depth added 7). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 323, 353). 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":"pkg/behaviourtest/drivers/install/composed.go"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3989e2dd2bc9f488eb012613d6ef6a1b81daccbaa794bdc51f5e5434b69a811"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.ensureRunArtifacts (cognitive 20): steps.ensureRunArtifacts has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 1 (nesting depth added 4). Of this number, 18 points are the body\u0027s own statements and 2 belong 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":"pkg/behaviourtest/steps/artifacts.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01c260a4b8f2a85f1e23e2f1f017692fd926b84450b03db11635e44a33f54b8"}},{"ruleId":"D2","level":"warning","message":{"text":"adr_corner.infer_adr_authors (cognitive 20): adr_corner.infer_adr_authors has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, loops 6 (8 pts), if/else 2 (4 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/adr-corner/scripts/adr_corner.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7b5be2f41fb5cfec69fcbf1f21dc346c0d5bff99916454eb15802027d62e9a"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze-transcript._check_block_error (cognitive 20): analyze-transcript._check_block_error has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"7258919bf06b55d81f6bc13a8a6b09db1172be1bfeb9463e60a36ec99817ac5f"}},{"ruleId":"D2","level":"warning","message":{"text":"GhFetcher.is_in_merge_queue (cognitive 20): GhFetcher.is_in_merge_queue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 4, loops 1 (4 pts) (nesting depth added 10). 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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1798}}}],"partialFingerprints":{"codehealthFindingId/v1":"66abe8d3c10ecfe871887701e3a05059f841ed17a1ad55e6f12a709a5f320ead"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.newInferenceProvisionCmd (cognitive 19): cli.newInferenceProvisionCmd has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2, match/switch 1 (nesting depth added 5). None of this is in the body itself: all 19 points belong to one function literal inside it that branches (line 111). 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":"internal/cli/inference.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bbb5f3e64c02b02885d6d6a9a76ad4706281528aa12b91e789429b7ce681c8"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.newPostReviewCmd (cognitive 19): cli.newPostReviewCmd has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 2 (nesting depth added 3). None of this is in the body itself: all 19 points belong to one function literal inside it that branches (line 114). 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":"internal/cli/postreview.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f35a03b718f02afb01ee3b9077a04dde275f77f1709459c510316ac4d285d4"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.maybeRotateGitLabRoles (cognitive 19): cli.maybeRotateGitLabRoles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos_gitlab.go"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"798460f6ca3be9ee75798a0f162a56153e37693d3ba8f86c709ff89cb38210ce"}},{"ruleId":"D2","level":"warning","message":{"text":"evalmeasure.costToolsTurnsDetail (cognitive 19): evalmeasure.costToolsTurnsDetail has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/evalmeasure/fitness.go"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ac6a3f782ec0c7843b53c40d524cd5715dab195a7deaa57fc8f1215d897640"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListProjectActiveJobs (cognitive 19): LiveClient.ListProjectActiveJobs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (LiveClient.ListProjectPipelineSchedules) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/service_accounts.go"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab8c0c56276fe8da9efe4b0d1d02798f63fcc4e77a9117735e9e63ad01be58b"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListProjectPipelineSchedules (cognitive 19): LiveClient.ListProjectPipelineSchedules has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (LiveClient.ListProjectActiveJobs) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/service_accounts.go"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01c5f88ba34c000297fc54c5157dde49f864ab370134cb8de4d1594b9a09c61"}},{"ruleId":"D2","level":"warning","message":{"text":"gitlabroles.CheckRegisteredReadiness (cognitive 19): gitlabroles.CheckRegisteredReadiness has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlabroles/readiness.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0aa81fefeaac1abc156ce4182e10434241c8028e99f455fbb4dfed77d8a161"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry.resolveReuse (cognitive 19): Registry.resolveReuse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlabroles/registry.go"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"98aef8f2af534f3255ee1efd141fcffd4299830613fe6c285a5f17577b2f05ca"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.fetchBaseScriptDirTree (cognitive 19): harness.fetchBaseScriptDirTree has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (19 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":2094}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5379356dbf60fbbf55d9e5170f3b29fb8c5feda41fd7c93455fb422f0b30442"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvConfig.mergeEnvFrom (cognitive 19): EnvConfig.mergeEnvFrom has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/harness.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"23623a8431851bd2e93b4bb20bf6419ea20be0177c96f0b9d7b9cab04831b706"}},{"ruleId":"D2","level":"warning","message":{"text":"layers.commitViaPR (cognitive 19): layers.commitViaPR has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (19 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/layers/commit.go"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"844a62911f2b6683d6299607142089326ca30667dd6630ab9bd60392332477b6"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginformat.extensionAutoEntries (cognitive 19): pluginformat.extensionAutoEntries has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/pluginformat/pi.go"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2c33fb0bf44765eddbba26f8f5f2fd49aa5e8cbe7d9e9d51b76d10ebfcc3d5"}},{"ruleId":"D2","level":"warning","message":{"text":"poll.mirrorFailureCount (cognitive 19): poll.mirrorFailureCount has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (4 pts), boolean chains 3 (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":"internal/poll/legacy_mirror.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcd81f524388bd60ee8d99eaca72cae28a4fe8eebf2beca4b11a06343571585"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.webhookIssueEvents (cognitive 19): Poller.webhookIssueEvents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, match/switch 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":"internal/poll/webhook.go"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"8892e5d199c97d6b8a657980dbb22b0d0a4121b97dfebe31628339e693faf802"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.cutOverPollerGeneration (cognitive 19): repos.cutOverPollerGeneration has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3, loops 2, match/switch 1 (nesting depth added 1). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"internal/repos/gitlab_poller_cutover.go"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ff6add85c6d5b52ea0095d75e79259e9ad1414a26f8e3a0869b7e5ce91c186"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabDispatchRouteScaffoldProblem (cognitive 19): repos.gitlabDispatchRouteScaffoldProblem has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"58246156860b265004765110a17074e009da8d43c4fe597c6dc3e99ef4e7a2c5"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabManagedSourceAdmissionProblem (cognitive 19): repos.gitlabManagedSourceAdmissionProblem has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4, 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":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a2023753a2d914bd537cd2c1c3236ce19216cf06926491ac4610d1be2a55ce"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.ConvergeGitLabTriggerSchedules (cognitive 19): repos.ConvergeGitLabTriggerSchedules has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17 (18 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":"internal/repos/gitlab_trigger_schedules.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4dc58f250852ce5036f22c7b04f488159cc130a58c6f8931d6bec15326d3da"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabEffectiveWorkflowProblemForEnv (cognitive 19): repos.gitlabEffectiveWorkflowProblemForEnv has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"db68f9909b18fff0f99102b89a17aab64338e494e414b2f7b52ae01bbed31360"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.mergeWorkflowRules (cognitive 19): repos.mergeWorkflowRules has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlabci.go"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"027221bfae39159ebc379ce38e945341bfdb5d1dbdbc11ac60d399dee63a7661"}},{"ruleId":"D2","level":"warning","message":{"text":"suppliedPollerGrantProbe.rollback (cognitive 19): suppliedPollerGrantProbe.rollback has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, loops 2 (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":"internal/repos/gitlab_supplied_provenance.go"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38214dd7573bb28adfc2e7515b731ec12504e616fe33a0b6e07e16fa6a8fc8e"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.validateOpenCodePermissionPolicy (cognitive 19): runtime.validateOpenCodePermissionPolicy has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/opencode_integrity.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6dee54e81f28b8f8e44f5d0c7a9d72ea6f18e5ccf03873d61b1cc24eb2e066"}},{"ruleId":"D2","level":"warning","message":{"text":"PiRuntime.ExtractTranscripts (cognitive 19): PiRuntime.ExtractTranscripts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (2 pts), boolean chains 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":"internal/runtime/pi_transcript.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5180b7c07147744475a2ce9e6793deb4038265de8025eee77100ecfa45064e4"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.transitionFields (cognitive 19): tracker.transitionFields has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tracker/transition.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cd5c7c6801b64930d839b6a181ef0e59f6f642dec785ec83ec825c07c3afcf"}},{"ruleId":"D2","level":"warning","message":{"text":"common.RunGitHubSetupWithOpts (cognitive 19): common.RunGitHubSetupWithOpts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/install/common/setup.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91809bbb8d5b7b6f3b0d83bb57b18073532fa2cbdf20563f34de162cd71302f"}},{"ruleId":"D2","level":"warning","message":{"text":"repoEnsurer.doEnsure (cognitive 19): repoEnsurer.doEnsure has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (19 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/install/ensure.go"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6b69348f07fb3f0e7f9ce157808d30ea3d84fca4ba82026416c3f64bdd4037"}},{"ruleId":"D2","level":"warning","message":{"text":"slotAllocator.reclaimSlot (cognitive 19): slotAllocator.reclaimSlot has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, match/switch 2 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 4 belong 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":"pkg/behaviourtest/drivers/install/slotgc.go"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"f228683ec949c48e3fe30b68b476f9b73aa88a6ac826ceb335a39ea7b145d116"}},{"ruleId":"D2","level":"warning","message":{"text":"suite.afterScenario (cognitive 19): suite.afterScenario has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4 (nesting depth added 6). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 125). 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":"pkg/behaviourtest/suite/init.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"023db88740db3fa178ab731344790534a41154232aac1fb56045749458622d8e"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.resolveBotRole (cognitive 19): Handler.resolveBotRole has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (19 pts) (nesting depth added 5). Of this number, 18 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":"internal/mintcore/bot_role.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac1f427c06e4ce6e2578e5f9557971906afb04817779dfe10cadf8ea3e9f49d"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.lookupInstallation (cognitive 19): Handler.lookupInstallation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/handler.go"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0936b7e8ea48ce7874e415c28eb79880783d852ec5543fe94befd7320a88662"}},{"ruleId":"D2","level":"warning","message":{"text":"hook_io.apply_text (cognitive 19): hook_io.apply_text has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (6 pts), boolean chains 3, loops 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":"internal/security/hooks/hook_io.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"544a75ef64406640ffcbc9c1869875ad318391c2263efc96c377d459c789943c"}},{"ruleId":"D2","level":"warning","message":{"text":"ssrf_pretool.validate_url (cognitive 19): ssrf_pretool.validate_url has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 3, boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec5735252348e5d0e4d6d372598a380f00383ba019d2bcde93b771775039957"}},{"ruleId":"D2","level":"warning","message":{"text":"ssrf_pretool._is_in_text_pattern_context (cognitive 19): ssrf_pretool._is_in_text_pattern_context has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (19 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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"3525f32b29fae56ad6b694ecb533ee2f9f157bfb60b5892236c7d618e1c153fc"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze-transcript.cmd_search (cognitive 19): analyze-transcript.cmd_search has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), ternaries 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e08785025ae53dc48c4c6c45bbdf0f9dc458c23be54d22413d226e471199e2f"}},{"ruleId":"D2","level":"warning","message":{"text":"nextwork.resolve_threads (cognitive 19): nextwork.resolve_threads has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":2273}}}],"partialFingerprints":{"codehealthFindingId/v1":"194bc831235a61e321d69fb7d040cd611a26e62344251606f88be7d7223de9ee"}},{"ruleId":"D2","level":"warning","message":{"text":"agentnew.ExpandTrigger (cognitive 18): agentnew.ExpandTrigger has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agentnew/trigger.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cf5a4c2904aef46910dcb6d98434a298a70171a1621490a594230ba13ee98b"}},{"ruleId":"D2","level":"warning","message":{"text":"Setup.recoverPEM (cognitive 18): Setup.recoverPEM has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 1 (nesting depth added 4). 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, 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":"internal/appsetup/appsetup.go"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6d03f488ce4120b0dd880570dd125c082bce231c27568d7e25af27597a9b0b"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.evalMeasureFetchContext (cognitive 18): cli.evalMeasureFetchContext has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"internal/cli/evalmeasure.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"af31f0df0147a6ba40ba890b0a7f77833609815c93dea14fcfe87e201ca023f4"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.newInferenceOpenAIRequestCmd (cognitive 18): cli.newInferenceOpenAIRequestCmd has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 5). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 140). 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":"internal/cli/inference_openai.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e625eff11fb9289fbf7d87f8100edcc13c841b94ccffde6f65d785978af52bf9"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.resolveImportIDs (cognitive 18): cli.resolveImportIDs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (18 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":"internal/cli/inference_openai.go"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b1b19b360903c672b31affcf28492560d71b553aeca5a81e02d42bc4f28c64"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runInferenceOpenAIStatus (cognitive 18): cli.runInferenceOpenAIStatus has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/inference_openai.go"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c9d67b0a1917b2beb0935707c3107cd4354c35faaa265f3ca0f2cd9e180fde"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.selectLintAgent (cognitive 18): cli.selectLintAgent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (4 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":"internal/cli/lint.go"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8caa94e0d618a313b7526397543b296f6289d5972cd02f378317e2cfde32e2"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.newMintDeployCmd (cognitive 18): cli.newMintDeployCmd has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 5). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 591). 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":"internal/cli/mint.go"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f31dba539adaf7f370d6f058788f0fdb15c44447244ff2200855dd4a13f817"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.postReviewContent (cognitive 18): cli.postReviewContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 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":"internal/cli/postreview.go"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ea1812f321805cc576801766165d3bda2b1a8675fb7ba864966a47f02c3154"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.setupActionsVertexCredentials (cognitive 18): cli.setupActionsVertexCredentials has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, match/switch 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":"internal/cli/run.go"},"region":{"startLine":5575}}}],"partialFingerprints":{"codehealthFindingId/v1":"7898f86bf5285cf87a124e9e4e46b09480ddac3bfcce7305696e633e3d6c400e"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.scanOutputFiles (cognitive 18): cli.scanOutputFiles has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 6766). 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":"internal/cli/run.go"},"region":{"startLine":6756}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f16876d773db81e3c3a7bb85e5c2d35eb5faff7bfcb0df1ab8f3ea4690e508"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.loadRunnerSecrets (cognitive 18): cli.loadRunnerSecrets has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2, match/switch 1 (2 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":"internal/cli/runner_secrets.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"006dacb3d4ad5c563a05b109dd70a73742eb9ef628a4867a0447ee3e0236d323"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.trustedTirithRepoPolicy (cognitive 18): cli.trustedTirithRepoPolicy has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 4 (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":"internal/cli/tirith_repo_policy.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b087c1c31c28b080ebd4a59c0ac890d53d27df782d752478a22df746ac005d"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceGatewayConfig.Validate (cognitive 18): InferenceGatewayConfig.Validate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, 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":"internal/config/inference_gateway.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8995be34c51a577f9d6cfd536d2f3af16b6b563ee9f3dfd046fca3e33726ec4"}},{"ruleId":"D2","level":"warning","message":{"text":"JiraTrackingConfig.UnmarshalYAML (cognitive 18): JiraTrackingConfig.UnmarshalYAML has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/issue_targets.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38102564d2c922d17a71fea20ca67e9db35fdb101872645a7ed666d74725e01"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveGCFClient.waitForIAMOperation (cognitive 18): LiveGCFClient.waitForIAMOperation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":2097}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbf3920ec1f221a521f9a55e92abf210b4f625b8482af2494a75a4ec7eb3bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"Provisioner.ProvisionGitLabWIF (cognitive 18): Provisioner.ProvisionGitLabWIF has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gitlab_wif.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"101f42595bc3808c04ef77e591a76fe1962c5ec026487fff9474646aabac95ba"}},{"ruleId":"D2","level":"warning","message":{"text":"Provisioner.ProvisionWIF (cognitive 18): Provisioner.ProvisionWIF has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2, 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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d573979629989e545516c2194986f5b0fdaf96f0eefa1a9280b55ef85f08b7f"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.CreateForkInOrg (cognitive 18): LiveClient.CreateForkInOrg has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (18 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":"internal/forge/github/github.go"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcd5994c84293a06b1b64dcfe9d4037c6972dcee2d217059848cde403fda3d1"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.listVariableNames (cognitive 18): LiveClient.listVariableNames has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/ci.go"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"caabccc56547bb0726e5a8bc19fa09f4653407e3131fd9d8f6a94feced26ff8f"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListWorkflowRunsSince (cognitive 18): LiveClient.ListWorkflowRunsSince has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/ci.go"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dce630c24bbfbe0f295514b1bfd6ea5c8662cf85a7405a538e1e7d2ebfa016a"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.GetWorkflowRunLogs (cognitive 18): LiveClient.GetWorkflowRunLogs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 pts), 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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef69560e6a3135eeb0a0b0fa1b2ce0b5386111b713dae90b1311021a311d796a"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListPipelineTriggerTokens (cognitive 18): LiveClient.ListPipelineTriggerTokens has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/hooks.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1738cc653673914cd6e678b22aa07bf5fe902c2ffee7823f4ee1000cf788ee"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListPullRequestFileDiffs (cognitive 18): LiveClient.ListPullRequestFileDiffs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/mr.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be44275e7ad49967ea25cfaa5f4067ec0dcfc4dfc71095f8235f35105592bfc"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListPullRequestReviews (cognitive 18): LiveClient.ListPullRequestReviews has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/mr.go"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"38def40dd3a120296876e5cc99eb0b346becad9f4bf8dc10f933161ca229b5d5"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.collectTreeDirEntries (cognitive 18): LiveClient.collectTreeDirEntries has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/repo.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"4691637e984312049f4561c003f77678646ea743fd836bb6a9ff83b2fa3c88e2"}},{"ruleId":"D2","level":"warning","message":{"text":"jira.tryDetailsExpand (cognitive 18): jira.tryDetailsExpand has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 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":"internal/forge/jira/adf.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea441fd8ce9e1ff3feb57b21ce9de4463fd24acc7336448651f979df67c3146"}},{"ruleId":"D2","level":"warning","message":{"text":"jira.convertBlockNode (cognitive 18): jira.convertBlockNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 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":"internal/forge/jira/adf.go"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f2d6e307e8379c7a4e9eaba68d3f355de26a6236896a43914ad575a528ee6a"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.fetchBaseURL (cognitive 18): harness.fetchBaseURL has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (18 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":"internal/harness/compose.go"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d191e2498970f10c0f74ba447353a3f267a188742363a21d129ba9740ac8fe"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillEntry.UnmarshalYAML (cognitive 18): SkillEntry.UnmarshalYAML has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 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":"internal/harness/skill_entry.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"26334e0b17ff4364a489234e6d085441d4336653fe4ae141e6031521fdfe8f37"}},{"ruleId":"D2","level":"warning","message":{"text":"input.mapGitHubWebhook (cognitive 18): input.mapGitHubWebhook has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, 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":"internal/harnessdispatch/input/ghaevent.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4efb34e284d8e8b88debfbaedb673ea98d6aba801c85c6203a4915479c1054"}},{"ruleId":"D2","level":"warning","message":{"text":"pluginformat.extensionManifest (cognitive 18): pluginformat.extensionManifest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/pluginformat/pi.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea1cff3ce4d068bd618626a135a46a45057b85c82a65f07eacf9d95ba8c9746"}},{"ruleId":"D2","level":"warning","message":{"text":"poll.SeedGitLabPollStateBranches (cognitive 18): poll.SeedGitLabPollStateBranches has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/state.go"},"region":{"startLine":1988}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78c6818bc60386b7189065f5deaa32aa5209de2b32bbd4bc6d3ffcc2e6c5aa9"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.webhookIssueLabelEvents (cognitive 18): Poller.webhookIssueLabelEvents has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (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":"internal/poll/webhook.go"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3232f68ea116bbeb4030fdde3f907389958c7c2a8a2b73f2e70e9ce7ec5ce61"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.checkPresetDrift (cognitive 18): repos.checkPresetDrift has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/config_preset.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"99162938219b58e56c6d01c42f2f652e3082f2e40834bf9b9e5268b1912a30e4"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.requireGitLabVariableFreeSchedules (cognitive 18): repos.requireGitLabVariableFreeSchedules has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 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":"internal/repos/gitlab_pipeline_var_restriction.go"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a42a03e12f9ceb31c4dacb3eaa65ccffaa545c7ae90ae3cf304f2ce21504623"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.VerifyGitLabPollerCredentials (cognitive 18): repos.VerifyGitLabPollerCredentials has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_poller_credential_policy.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d37a283c1333e48987e22ada0c0e604323bdc958b91dfbba4d51cdc60db1302"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.currentWebhookTriggerEvidence (cognitive 18): repos.currentWebhookTriggerEvidence has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, loops 1 (nesting depth added 6). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 283). 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":"internal/repos/gitlab_poller_retirement.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e637fec4f330c4cd32320162d94b460699a937e32437ed0beb7ea6fa4a2cfe7d"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.extraGitLabRoleUninstallVars (cognitive 18): repos.extraGitLabRoleUninstallVars has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 4). Of this number, 11 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. 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":"internal/repos/gitlab_roles.go"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad40fe6a54997d56ae553f8aa0b56c9c0f7984846c754eec5ab9d671f7e479a"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabJobRunsShippedScript (cognitive 18): repos.gitlabJobRunsShippedScript has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (4 pts), boolean chains 3 (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":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5aa0ec9364e3619c5b3e5b7c074fd35bbb938affaadc4a54188637acde78b46"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.unknownFieldError (cognitive 18): repos.unknownFieldError has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 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":"internal/repos/manifest_set.go"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"e766dc1605a7d94c7cfbca9f0c41cc2f1ddf7399bbe3567556313162b90236ba"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.filterRepos (cognitive 18): repos.filterRepos has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/status.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a3b13cbaaa67227ede06166a8c7708372ff5056dd6bca0056d752f3078227c"}},{"ruleId":"D2","level":"warning","message":{"text":"mergeLookup.findInMergeSources (cognitive 18): mergeLookup.findInMergeSources has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f18ace3ca537c36f2c234ab90c5b8abe3b8e5cfde69e2434e9fa6d361d69841"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.piToolContext (cognitive 18): runtime.piToolContext has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 7). Of this number, 15 points are the body\u0027s own statements and 3 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":"internal/runtime/pi_progress.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3d437d06c5407ba2d3fe66dde46ca2e2f26486d0905c6c4fc7f60c8159ad31"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenCodeRuntime.Bootstrap (cognitive 18): OpenCodeRuntime.Bootstrap has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16 (17 pts), 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":"internal/runtime/opencode_bootstrap.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d681cb077e0dbf399e3b0517b0b5d317f9d4aa342b0d506412d81581775a9d85"}},{"ruleId":"D2","level":"warning","message":{"text":"slotAllocator.collectOrg (cognitive 18): slotAllocator.collectOrg has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/install/slotgc.go"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"1681c165f923026b9ad980bea550b4d53bdc24572f7de9e579018fe49f2e51fe"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.thenHarnessWorkflowFailsReporting (cognitive 18): steps.thenHarnessWorkflowFailsReporting has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 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":"pkg/behaviourtest/steps/branch.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"812aab442e00603aab1c7ad2fa9c2df50512681ff33d05fbd69ead2bc939866e"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.givenIssueFromFixture (cognitive 18): steps.givenIssueFromFixture has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3 (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":"pkg/behaviourtest/steps/playback.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f717360160878852732bf47eda05ff7914565d69b5ef7ac7430cdc68f03a591"}},{"ruleId":"D2","level":"warning","message":{"text":"graceBudget.grant (cognitive 18): graceBudget.grant has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/debuglogs.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cac350ef115ec409bd39b1b1d90c12b07bb7cd0f729ef3022071062b0f1d12d"}},{"ruleId":"D2","level":"warning","message":{"text":"mintcore.NewTracer (cognitive 18): mintcore.NewTracer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/tracing.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d862841df055703600a6d7e9e3d9a19786184cb3347a5aebe279040318aba67"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.harnessDeclaresOpenAIProvider (cognitive 17): cli.harnessDeclaresOpenAIProvider has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/agent_openai.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae5939c66c9ea17011cec594779df2c23f8a6ad5a7eb8064246d152349f61c1"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.listRepoForeign (cognitive 17): cli.listRepoForeign has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (6 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":"internal/cli/foreign.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"395337f851ae27f08e7bc06bd9390883fc6c6f78c5020babc4abf24aae2f8c16"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.resolveForeignTarget (cognitive 17): cli.resolveForeignTarget has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 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":"internal/cli/foreign.go"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6747dc9c216a36fbb8e5728cf8e9ecfac6cfa42ac0130040b06c5d6991f8c9"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runGitHubSet (cognitive 17): cli.runGitHubSet has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 2, loops 1 (2 pts), match/switch 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/github.go"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"33460e4f979a3d48f14c261bf170c446474e58c9c7a0232c95eed9218b61beaa"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runMintSetupRemoveRole (cognitive 17): cli.runMintSetupRemoveRole has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (17 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint_setup.go"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a1931711e661e8410c74e243f070f1a562df0ff5718998eaed5f713d09b4e4"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.buildPersonaManifest (cognitive 17): cli.buildPersonaManifest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 6). Of this number, 15 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":"internal/cli/persona_manifest.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce722ea509857fae1a9d8836e776310bb93d72c1ba6305b78bc5600f6999cf3"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.personaPassThrough (cognitive 17): cli.personaPassThrough has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1 (2 pts) (nesting depth added 5). Of this number, 15 points are the body\u0027s own statements and 2 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":"internal/cli/persona_manifest.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0808f717d5e2d8068cdc2238310c0b435bb81d131bd4b2af53bf0163c316d2d9"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.resolvePostReviewClient (cognitive 17): cli.resolvePostReviewClient has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/postreview.go"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b29fb4a1afd1246d9b91eb8c763afea3dc9353a951938769a49daa06eb3c492"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.detectRepoVisibility (cognitive 17): cli.detectRepoVisibility has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/prepareartifacts.go"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1aa8ba9595525049f0ccd2260793be49ec5e7cf9265f21b11b0eb9b8d33704"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.newGitLabRoleTokenClient (cognitive 17): cli.newGitLabRoleTokenClient has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 3 (nesting depth added 1). None of this is in the body itself: all 17 points belong to 4 function literals inside it that branch (lines 142, 42, 116, \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":"internal/cli/repos_gitlab_service_accounts.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc287aaa02ec321cdf5be33b8517697c4fb239be872b981f408622b3f4aa42a1"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.resolveWorkItemID (cognitive 17): cli.resolveWorkItemID has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":5090}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d863249480cf0949ad03ab8591ef938ff964a703d1a5ad929f87f6465598731"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.scanRepoContextFiles (cognitive 17): cli.scanRepoContextFiles has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, loops 1 (nesting depth added 3). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 6668). 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":"internal/cli/run.go"},"region":{"startLine":6657}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a117581f5a2209b88223af79755ecf0018d4afbff36a2555e1f5e42160e0b4"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.resolveAgentSource (cognitive 17): cli.resolveAgentSource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 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":"internal/cli/run.go"},"region":{"startLine":7901}}}],"partialFingerprints":{"codehealthFindingId/v1":"45966fab302dd9494e1cae8a2148755491393ef850a5f673eeb77b8678a8b569"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.forgePointerAttrs (cognitive 17): cli.forgePointerAttrs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, match/switch 1 (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"internal/cli/run_forge_attrs.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30238400786ddbff7c55cab12cfec3762c12c48e947af8745559b5ca71bbdf2"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.resolveJiraMintCloudID (cognitive 17): cli.resolveJiraMintCloudID has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 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":"internal/cli/run_jira.go"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"edad323d2d4d0c085449b3c729b601aa0ebd57df39cbe2d29e17eeb11deaf6d8"}},{"ruleId":"D2","level":"warning","message":{"text":"toolSpanTracker.Handle (cognitive 17): toolSpanTracker.Handle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 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":"internal/cli/tool_spans.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1577cf2c5dff2cd4a5a889f0e65850e7dea42b3c2d0d0523f2a59dcbcc9ea80f"}},{"ruleId":"D2","level":"warning","message":{"text":"config.clonePerRepo (cognitive 17): config.clonePerRepo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 1 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/managed.go"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfaa51241c752c58ae517262408aa338b94190393f1a92124218db42c53c98dc"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveGCFClient.trySetCloudRunInvoker (cognitive 17): LiveGCFClient.trySetCloudRunInvoker has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (3 pts), 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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"053a1ecdab1e3d76d6baf34d2f8d20361f7369749975761b0aaa67142d0f32a5"}},{"ruleId":"D2","level":"warning","message":{"text":"Provisioner.Provision (cognitive 17): Provisioner.Provision has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7be243c6dc276118b774f2e81c707dde2853b8953ca634a2a1551a6c70db66e"}},{"ruleId":"D2","level":"warning","message":{"text":"evalmeasure.decodeAny (cognitive 17): evalmeasure.decodeAny has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 3 (6 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/evalmeasure/parse.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86cfb8d5346393fc261277edd55605b7c163b1626b77a9d131c92f60857d3c1"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListOrgRepos (cognitive 17): LiveClient.ListOrgRepos has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"0950c6a5a39b57f8331cfe201c5fd6b7c06c24056718ed5bd45ebf27b886e313"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.MergeChangeProposal (cognitive 17): LiveClient.MergeChangeProposal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 1, 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":"internal/forge/github/github.go"},"region":{"startLine":4758}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a4de731ff324eac23a3a9f95abdb12b9ab99fc3aac849eb90ee83da2a88a8e"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListRepoVariables (cognitive 17): LiveClient.ListRepoVariables has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/ci.go"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"522140f97d4d054a0d6ecd2cde0dece900aebcd5bfd438f8e67cc4fef7a22739"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListPipelineSchedules (cognitive 17): LiveClient.ListPipelineSchedules has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/ci.go"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0a4e027474807d99cfefe50762ed2b8b20b86285fd37506d6e466893711d97"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.postInlineComments (cognitive 17): LiveClient.postInlineComments has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/mr.go"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea58a60c1a8e6a1de0cc4edcd7a9987cff9ef7c728f70a6572f55c15ea7db758"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListOrgRepos (cognitive 17): LiveClient.ListOrgRepos has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/repo.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ff21b48215a5c4f70b131d92a383da8d973f1ab5387e98d5f290b94692366e"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListProjectMembers (cognitive 17): LiveClient.ListProjectMembers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), 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":"internal/forge/gitlab/service_accounts.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d3760229bb25944d8232abf1fd13deb1a109461df9dc1bd15b172ffd85bff0"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.GetProjectRoleActors (cognitive 17): LiveClient.GetProjectRoleActors has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/client.go"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bbd639edf77bf6bc4325012c059eb2f25c057590552f140429207292493782"}},{"ruleId":"D2","level":"warning","message":{"text":"gitlabroles.DiagnoseLifecycle (cognitive 17): gitlabroles.DiagnoseLifecycle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlabroles/lifecycle.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee757df595224ff1508d671a79d6d1d9d0c1ec1ffb94eba37661769bc8a0506"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.LoadProviderDefs (cognitive 17): harness.LoadProviderDefs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, 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":"internal/harness/harness.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbd25c25bf476248a23358ad3ac097def1ba550df4557f5ade3be67fa1bccf5"}},{"ruleId":"D2","level":"warning","message":{"text":"Harness.validateSecurity (cognitive 17): Harness.validateSecurity has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (7 pts), if/else 5 (6 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/harness.go"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"5698b1b82ed8ba9e4591fa0c0a67e79e18c0d2d18acbb28fef3f22cb1381f896"}},{"ruleId":"D2","level":"warning","message":{"text":"Harness.resolveSkillSourcesWithin (cognitive 17): Harness.resolveSkillSourcesWithin has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3, boolean chains 1 (nesting depth added 5). Of this number, 11 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":"internal/harness/harness.go"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3567b557541ddaf07f95c685b1a04c8dddd6884656725ad249d7a272c44178c"}},{"ruleId":"D2","level":"warning","message":{"text":"Harness.ValidateRunnerEnvSites (cognitive 17): Harness.ValidateRunnerEnvSites has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 6 (8 pts), boolean chains 1 (nesting depth added 4). Of this number, 13 points are the body\u0027s own statements and 4 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":"internal/harness/harness.go"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd74f6a2a0d16d3b30faf85a448b0e07951ad2441aff9b7a41cd0058f516bff"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.dispatch (cognitive 17): Poller.dispatch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 1, match/switch 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":"internal/poll/dispatch.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"779b2beeb9ea574402c24a4d960df740a0e3cb027a9f8e57fca3d29bea47c887"}},{"ruleId":"D2","level":"warning","message":{"text":"preset.fetchHTTPSWithTLSConfig (cognitive 17): preset.fetchHTTPSWithTLSConfig has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 5). Of this number, 14 points are the body\u0027s own statements and 3 belong 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":"internal/preset/preset.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c69809cb90c3d4d3b8fdaa5f8269ee377354d6d00cd98dd395e700fd079777"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.suppliedCredentialTokens (cognitive 17): repos.suppliedCredentialTokens has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 3, match/switch 1 (2 pts), 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1866}}}],"partialFingerprints":{"codehealthFindingId/v1":"7909b2ca44a769f4ed03d1d1af38bf388cd4d128c5c7697e94c7afc58b01f8a2"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.applyAdministratorEnrollmentProof (cognitive 17): repos.applyAdministratorEnrollmentProof has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (4 pts), boolean chains 3 (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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47e2e778be4026aac2f04e3986921de6c520978e71a0bff71a2f26528039c41"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.revokePollerOwnedManagedTriggers (cognitive 17): repos.revokePollerOwnedManagedTriggers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, loops 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook_poller.go"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"842828367ad9e0fd27f8410fdbf5201b2dbbaaef98e6c322701f864b1e1be9bb"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.ExpectedScaffoldContent (cognitive 17): repos.ExpectedScaffoldContent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5 (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":"internal/repos/install.go"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2eff5535cfd311d70ba3c709ff8015aeee48657bc8f8318fafa99c654dc0d50"}},{"ruleId":"D2","level":"warning","message":{"text":"gitLabTriggerAccountOp.revokeOwnedTriggers (cognitive 17): gitLabTriggerAccountOp.revokeOwnedTriggers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 1 (nesting depth added 6). Of this number, 16 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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5e6cac04977a23a9f0ba754b420c178a60c76af286396dbb570620ef63ee9e"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.parseClaudeToolSpecs (cognitive 17): runtime.parseClaudeToolSpecs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_agent.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ff5b885d9b28adefe74c7a7223a93141b3fa80b09548fcae91d3c29a6bd959"}},{"ruleId":"D2","level":"warning","message":{"text":"telemetry.sanitizeError (cognitive 17): telemetry.sanitizeError has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (17 pts) (nesting depth added 9). 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":"internal/telemetry/telemetry.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34828d2e705e51a338c0957c88092ce99f72db6b17ed892a7c307ddebf95d47"}},{"ruleId":"D2","level":"warning","message":{"text":"tracecontext.Admit (cognitive 17): tracecontext.Admit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, loops 2 (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":"internal/telemetry/tracecontext/envelope.go"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd988aebc577350ec0297822da0953af810b6a20dff81b18ae30a4ed97f7a5b"}},{"ruleId":"D2","level":"warning","message":{"text":"repoEnsurer.installFullsend (cognitive 17): repoEnsurer.installFullsend has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 7). Of this number, 15 points are the body\u0027s own statements and 2 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":"pkg/behaviourtest/drivers/install/ensure.go"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e65b074d87628c544310fd32cba65376435b30f40dff28b02aab3cb5da2f06"}},{"ruleId":"D2","level":"warning","message":{"text":"traceCollector.Start (cognitive 17): traceCollector.Start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 1 (nesting depth added 1). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"pkg/behaviourtest/drivers/install/trace_collector.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0e0693713adc7686361a0a815b0a88052b8ec5930dff5543603338c4a341d8"}},{"ruleId":"D2","level":"warning","message":{"text":"behaviourtest.writeCompletionReport (cognitive 17): behaviourtest.writeCompletionReport has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (17 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":"pkg/behaviourtest/report.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c5026d8b67c234cb42fedb910a9523a0062306e60a2a47ee68d2ce36b3555d"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.whenMintProbeRequests (cognitive 17): steps.whenMintProbeRequests has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16 (17 pts) (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":"pkg/behaviourtest/steps/mint_probe.go"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"86dd487605dfdcd2b176e712c9fa87eb04bd1b2ff12187f6664e6235974845e9"}},{"ruleId":"D2","level":"warning","message":{"text":"mintcore.RolePermissionsForLevel (cognitive 17): mintcore.RolePermissionsForLevel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (7 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":"internal/mintcore/github.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36a3d6b7e10016b83e1ad65a7df82ef0e176a76c6263dc37c259765a2959e62"}},{"ruleId":"D2","level":"warning","message":{"text":"JWKSVerifier.Verify (cognitive 17): JWKSVerifier.Verify has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17. 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":"internal/mintcore/jwks_verifier.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92cc8dc7a08b6241e1d6e5bd89b5e0a4bfaf9a0bed43c51ff19db31932db057"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze-transcript.detect_file_type (cognitive 17): analyze-transcript.detect_file_type has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (3 pts), boolean chains 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":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"6898569d6e23544b3640d00834eba052c5ff659c7dde6ee89f35c5e64857a2f5"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze-transcript.cmd_tools (cognitive 17): analyze-transcript.cmd_tools has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcce8fafff0c5d00afa0a623d05b2976223cbf8abe2782044c61fa0a2aba7e6"}},{"ruleId":"D2","level":"warning","message":{"text":"Options.Validate (cognitive 16): Options.Validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4 (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":"internal/agentnew/options.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb96db922045028aa2ea890efb8504acf5a986d1441d23929550185610330a2"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runAgentAdd (cognitive 16): cli.runAgentAdd has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"internal/cli/agent.go"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"f557e66c4ac3a60ee7dfbf16aade481321c8387f4569ec41b3bebe65d9d4cdcf"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.checkGitLabCredentialBinding (cognitive 16): cli.checkGitLabCredentialBinding has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, 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":"internal/cli/gitlab_profile.go"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7689d5a09aa71a58ed34c31e649aca61c34fb0ce9a9acecc5ff61b1860b284"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.durableCredentialWriteWarnings (cognitive 16): cli.durableCredentialWriteWarnings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 2, loops 2, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/provider_profile_report.go"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"04caec781e32b134932ce26b8451db4282b9ae28fe892a195d365d52b1cf9f41"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.reconcileFailedGitLabWebhookSafety (cognitive 16): cli.reconcileFailedGitLabWebhookSafety has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos.go"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"424beb18bf8ed879e3fc950975887040eb71198166992c0b6b51a07a2279d598"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.planGatewayRoute (cognitive 16): cli.planGatewayRoute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 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":"internal/cli/run_gateway_route.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad3b20c025c98423a6c69eb8708f7f800784173176d27c738ecd91c240d8b74"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.prepareVendorFiles (cognitive 16): cli.prepareVendorFiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), loops 1 (nesting depth added 2). 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: 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":"internal/cli/vendor.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a12a4aed543d333f1f16b92fb58d8bb97952fddc717cec4165c67d6ae6f0e24"}},{"ruleId":"D2","level":"warning","message":{"text":"config.artifactsRelaxations (cognitive 16): config.artifactsRelaxations has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/artifacts.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"6464ff861f6e7fa1d8a9b45c746869951bb69b63e67dd19fd104846dfb447c75"}},{"ruleId":"D2","level":"warning","message":{"text":"Provisioner.waitForReady (cognitive 16): Provisioner.waitForReady has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 1 (2 pts), 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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5433a0dfc5894a24fa8ca0943966029244897306ca6bb0889e85d3593fae335"}},{"ruleId":"D2","level":"warning","message":{"text":"Provisioner.provisionRepoWIFProvider (cognitive 16): Provisioner.provisionRepoWIFProvider has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"1428287882d931cd23e8001d8af876a2e8cf92d9b38810250ac197d86539e5d6"}},{"ruleId":"D2","level":"warning","message":{"text":"e2etest.tryCreateLock (cognitive 16): e2etest.tryCreateLock has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 1 (3 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":"internal/e2etest/lock.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3c29cf18a11a6a2a4147b0617fc2d9b312d824cea00e89f39acd8c50add0b8"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClient.ListServiceAccountPATs (cognitive 16): LiveClient.ListServiceAccountPATs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/service_accounts.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1b81b29db50ecd16511f7239114d51c92c6344a35589a524c163c5c8d9c671"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerOwner.PollerUserID (cognitive 16): TriggerOwner.PollerUserID has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 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":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d688c3a84397c679ba32219270788e0194e68113cd096b70c272ad8b7e1e958"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerOwner.SuppliedPollerUserID (cognitive 16): TriggerOwner.SuppliedPollerUserID has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"6130d96e8208369c2c1ddbd7cc41c8627d31ee6884249235bef6959f99b7f46b"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.DiscoverRemoteAgents (cognitive 16): harness.DiscoverRemoteAgents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (nesting depth added 5). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/discover_remote.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"98728572f6334f99be5b5aa325f41ff51e888a8351aba9be1d9693b74ca77635"}},{"ruleId":"D2","level":"warning","message":{"text":"Poller.webhookMergeRequestEvent (cognitive 16): Poller.webhookMergeRequestEvent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, match/switch 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/webhook.go"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"052a3c0a8a9cc2043da7317208f7f0340635f4887bdeee8803ebb050e2808c9b"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeVariables (cognitive 16): repos.convergeVariables has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), 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":"internal/repos/converge.go"},"region":{"startLine":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"908f3b938c7b2bd3a60f6047b40dd891714c7216cbe1a3028fdfd335641daf8b"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.convergeSecrets (cognitive 16): repos.convergeSecrets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/converge.go"},"region":{"startLine":2377}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c53d7d6a00c7c635e77ef550c6ad72cacabc6af0df91f2e8b2d613f1596679"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.checkGitLabJiraOAuthSupport (cognitive 16): repos.checkGitLabJiraOAuthSupport has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_jira_poll.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2597dc38ff0fcfe9a34775e76738db67483b886b410ea48ea9711c16df1d9eb"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.ManagedGitLabRoleAccountNames (cognitive 16): repos.ManagedGitLabRoleAccountNames has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_managed_account_names.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"043820bbc461a13d758a8243a6f3779d4c7a28fa99a8f9dc451a9c203b3ff95a"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.secretLeak (cognitive 16): repos.secretLeak has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (nesting depth added 6). Of this number, 13 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":"internal/repos/gitlab_roles.go"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"5021d1f747e516ad4cc40541842fdb58d8c76c3a96610f9e1dc15bccf8aee9f5"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.secretLeakRotate (cognitive 16): repos.secretLeakRotate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (nesting depth added 6). Of this number, 13 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b672e0363637ea25039a27e1dd0ff30a0557ebc7e6e93ee76eb8b8f4639851f2"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabJobAdmits (cognitive 16): repos.gitlabJobAdmits has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b013b97b91c4c42eb2f24a76b7f48e55eeaddc1ca651693efe4e3c8c777c16e"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabRetiredPublishedSafetyProblems (cognitive 16): repos.gitlabRetiredPublishedSafetyProblems has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, 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":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bb450305f4392138dd09c057409eac1558a4763d3edf1f6f32b008c14f5c50"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.gitlabWrapperDispatcherProblem (cognitive 16): repos.gitlabWrapperDispatcherProblem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba12c3aa72b174e99395c77b151a393a211d60041d745fe81a2cc4dbc02c0a1"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.validateJiraPollInputs (cognitive 16): repos.validateJiraPollInputs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/jira_poll.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52d0b37f1ba66014412ec681923f21e6ad9ea5b439ccfa788780e632f2ead4e"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.lookupManifestEntry (cognitive 16): repos.lookupManifestEntry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 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":"internal/repos/manifest.go"},"region":{"startLine":1583}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2b897a0066b1744455da8c0a0a7dfa7649ac5924a7355a73c11974bcd296a8"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.probeResidualOpenAIWIF (cognitive 16): repos.probeResidualOpenAIWIF has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 1 (2 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":"internal/repos/openai_wif.go"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"033fc8c09e5112be3c63efcd93cd7c4a690a843359e49c432488e799a6f0df3b"}},{"ruleId":"D2","level":"warning","message":{"text":"repos.openAIWIFCallerServes (cognitive 16): repos.openAIWIFCallerServes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/openai_wif.go"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d1e136f6714d2d7d9bd5b4f25646822b576024ded7114c0ec41933cc12cdad"}},{"ruleId":"D2","level":"warning","message":{"text":"Manifest.validateConfigSource (cognitive 16): Manifest.validateConfigSource has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":1983}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29a8e7aa260a7633bfd81be7839a8880c93e8994d507b2b917190f9d3d6f6e6"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.trustedRulesFor (cognitive 16): runtime.trustedRulesFor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/opencode_bootstrap.go"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"7792a27bbf0d3941bec227bdb91613c09b56b31c8d3ca19455a01b9e44e79101"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.mergeAgentProgress (cognitive 16): runtime.mergeAgentProgress has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/task_progress_reconciler.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c15fee349b620b3496cbe7741e341b757f829e5f0be315c42c26b13050aadd"}},{"ruleId":"D2","level":"warning","message":{"text":"Notifier.analyzeTimeline (cognitive 16): Notifier.analyzeTimeline has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/statuscomment/statuscomment.go"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5859c5e9c7ae2bf8956716d1c96374c6855a0214e89ace79da06f6267bb6dac"}},{"ruleId":"D2","level":"warning","message":{"text":"telemetry.validateHeaders (cognitive 16): telemetry.validateHeaders has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), 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":"internal/telemetry/telemetry.go"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29d4a43ca6a0b3de07f9e0705fe9ea3959e9bd62fca3c03fbb877073862d45d"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.AssertNoWorkflow (cognitive 16): Driver.AssertNoWorkflow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (3 pts), match/switch 1 (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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"8adc7c21eaf595c8ebbcf4871cf885dd129a3b0f73fde7fc8ae3fffac7259be2"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.AssertNoWorkflow (cognitive 16): Driver.AssertNoWorkflow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (3 pts), match/switch 1 (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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c8daaec75d902f4625a151cc024249df2c9a81c33330144efcd011489e14a8"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.downloadArtifactAfter (cognitive 16): Driver.downloadArtifactAfter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"3831bd5874488899f5ce537dd3841ac3d14a25efbecfd12a9b5c436781ad0c58"}},{"ruleId":"D2","level":"warning","message":{"text":"composedDriver.provision (cognitive 16): composedDriver.provision has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 pts) (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 2 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":"pkg/behaviourtest/drivers/install/composed.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5bfbdecef17ac5bccc1cdc78cc2c55f2c842854102c513d35ce0616c0fed63"}},{"ruleId":"D2","level":"warning","message":{"text":"repoEnsurer.awaitDeletion (cognitive 16): repoEnsurer.awaitDeletion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 1 (3 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":"pkg/behaviourtest/drivers/install/ensure.go"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fa836052d7a3d7f3156b64207caebb7492248f4b9fc9e480f582b2c16d6104"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.classifyBotRoleResult (cognitive 16): steps.classifyBotRoleResult has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, match/switch 2 (4 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/bot_role_probe.go"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"858a146fd8be3f50836e69499da04d816f9353111e3bb12748739ea6128a9eb4"}},{"ruleId":"D2","level":"warning","message":{"text":"ssrf_pretool._has_substitution (cognitive 16): ssrf_pretool._has_substitution has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, 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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf010706c2aad459937c79bc5e3ac01a9a8f3c241f73be4081da74c5186a2d1"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze-transcript._parse_source (cognitive 16): analyze-transcript._parse_source has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2877e4848c4460cdbb45bef579ad008bfe9209efdf4ceb72caff91d2f2f2dd1"}},{"ruleId":"D2","level":"warning","message":{"text":"nextwork.is_completed_triage_stale (cognitive 16): nextwork.is_completed_triage_stale has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"614771c1e48a7dc85e836393de968dc78edee9b410c729ff8e58a4a44b29ca18"}},{"ruleId":"D2","level":"warning","message":{"text":"nextwork.take_over (cognitive 16): nextwork.take_over has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 5, ternaries 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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":2103}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc26bfadc9dff11769300fabadc5dec333ca3b81148e761457bb1878180b8f6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.runAgent: FunctionTooLong \u2014 runAgent runs 1496 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1396 over it, 14.96\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":"internal/cli/run.go"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f47ef8acdbd64636b72bbf6f1037ee2b9ec17f04583d5a782b31f664c84c6bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/run.go: FileTooLong \u2014 4376 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3876 over it, 8.75\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":"internal/cli/run.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c4b42d51fe57658744db02e3f2b9ea108e8a0aef7b68b38d614aa1b052bdac"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiveClient: ClassTooLong \u2014 2743 significant lines (blank, comment-only and punctuation-only lines excluded), 183 methods, 175 blocks, lines 46-5802. The bar is 400 significant lines; this is 2343 over it, 6.86\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c9bb69152c6c7d0da8698f2427dd1cf8898ebd64e43042fa4594d670c25eec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/github.go: FileTooLong \u2014 3374 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: LiveClient (175 blocks, 46-5802). The bar is 500 significant lines; this is 2874 over it, 6.75\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e1e04b11b6aa15df7cca89af372a305e0d2d3faefbaa3f13503754be0bee5c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiveClient: TooManyMethods \u2014 198 methods, declared across 8 files: gitlab/ci.go (66), gitlab/repo.go (44), gitlab/issue.go (25), gitlab/mr.go (25), \u002B4 more file(s). The bar is 30 methods; this is 168 over it, 6.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":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5495d5486be376a6cb7ed362d866f9193013c5ab9f98c5dd291c25047339d2c9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiveClient: TooManyMethods \u2014 183 methods, declared across 2 files: github/github.go (179), github/commit_graphql.go (4). The bar is 30 methods; this is 153 over it, 6.10\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. Most of these members implement forge.Client (129 of 183 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33f0e98000d16606c00d8239848f04af5ec714201cd79eeafc3d2480b8d5a8d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FakeClient: ClassTooLong \u2014 1969 significant lines (blank, comment-only and punctuation-only lines excluded), 142 methods, 143 blocks, lines 214-3375. The bar is 400 significant lines; this is 1569 over it, 4.92\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":"internal/forge/fake.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e93a4f7c015c6f8178695f38a05b69ad8a00d1e3fcba333eb106c4c2bb3c464"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FakeClient: TooManyMethods \u2014 142 methods. The bar is 30 methods; this is 112 over it, 4.73\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":"internal/forge/fake.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af983e777dba6061d241b583c91cd47d12951b94d9a89c0b98c2620c23ca376"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FakeClient: TooManyMethods \u2014 142 methods. The bar is 30 methods; this is 112 over it, 4.73\u00D7 the bar. Most of these members implement forge.Client (129 of 142 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/fake.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad71e3db676609203c734c8d3b3f85b633a1413f9264139dc3fa9e7a61beb18c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.runReposInstall: FunctionTooLong \u2014 runReposInstall runs 461 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 361 over it, 4.61\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":"internal/cli/repos.go"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7961406282b2f8ede1f3b4e067edc7dcea413e691cb0bc9467c83761fae3160"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: FakeClient: TooManyFields \u2014 138 stored fields beside 142 methods. The bar is 30 stored fields; this is 108 over it, 4.60\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":"internal/forge/fake.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"490d83f02bdd4c14f90849b7a753787d6041676b3fa00e33a14bf2f30d02dd42"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repos/converge.go: FileTooLong \u2014 2150 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1650 over it, 4.30\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":"internal/repos/converge.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c32dd48846f05b75eb81945855d534185884582913b83cdf28ad4132cf04b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/nextwork.py: FileTooLong \u2014 2129 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1629 over it, 4.26\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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5796b3c44bf8dd1fa4e3ec38ca9a0bda36d7b13936ed8207392e620dcdc6cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forge/fake.go: FileTooLong \u2014 2121 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: FakeClient (143 blocks, 214-3375). The bar is 500 significant lines; this is 1621 over it, 4.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":"internal/forge/fake.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7aa5ac1a4373cb1ead9620863c3cdf46ac41f15e19532bd3bae93e73ee1b452"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.Converge: FunctionTooLong \u2014 Converge runs 406 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 306 over it, 4.06\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":"internal/repos/converge.go"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f70e718ffb1c22e20d2352a5d45e825d51a21a9762f4105812bd96075058e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.runPerRepoInstall: FunctionTooLong \u2014 runPerRepoInstall runs 393 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 293 over it, 3.93\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":"internal/cli/admin.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"3150e50b9582542fed7dbd5a95a2fee42779881897b5f04a6d1c98f803394729"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Poller.Run: MethodTooLong \u2014 Run runs 353 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 253 over it, 3.53\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":"internal/poll/poll.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f214388e4f87001dbaf472286354f437a9f9d9a8fa622ea33b328d1f94b6b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.rotateOneRole: FunctionTooLong \u2014 rotateOneRole runs 345 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 245 over it, 3.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9335f5937926cfd2fdb6a9a0f0bf2bf45990914100ffeda117db018d01ea13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/compose.go: FileTooLong \u2014 1546 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1046 over it, 3.09\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":"internal/harness/compose.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e50a113afc872f6ae15ac42cd0d92cf7310cadffacc3a340ffc1e9046343fcf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiveGCFClient: ClassTooLong \u2014 1145 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods, 43 blocks, lines 226-2187. The bar is 400 significant lines; this is 745 over it, 2.86\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"323954a9c9cc5420e34f211a84907a35ebe2ddc009287552f0f1a1615736e765"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.convergeRepo: FunctionTooLong \u2014 convergeRepo runs 281 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 181 over it, 2.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/converge.go"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d8cf7240fa793b8dc60c2327437c479e0559276d3291b53124ef7037569e1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repos/gitlab_webhook.go: FileTooLong \u2014 1399 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 899 over it, 2.80\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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c07d8ca61a8c9831abcb97d98bcb46ca0a6673f24d4b64aeb35f0dc89402e8b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: World: TooManyFields \u2014 82 stored fields beside 3 methods. The bar is 30 stored fields; this is 52 over it, 2.73\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":"pkg/behaviourtest/world/world.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"21097b76d9b1112e7179e33eea1efcb7074293dca7135501bfb23eda9ec30488"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.resolveFromLock: FunctionTooLong \u2014 resolveFromLock runs 272 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 172 over it, 2.72\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":"internal/cli/lock.go"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ed584f5f871db9f51097fde058c8defded1d712d2b6c153a4475f42d121278"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/mint.go: FileTooLong \u2014 1344 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 844 over it, 2.69\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":"internal/cli/mint.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3cc21ae9a76758254e996e6eee1dc2b64e732e45468a5b9d30236b47cfa6a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runtime.parsePiStream: FunctionTooLong \u2014 parsePiStream runs 260 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 160 over it, 2.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_progress.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ad0319f291678e901682db94716df55357b6ffe1e6d9228da62ad02a4ccd49"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gcf/gcp.go: FileTooLong \u2014 1272 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: LiveGCFClient (43 blocks, 226-2187). The bar is 500 significant lines; this is 772 over it, 2.54\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b97954a6c4f16f819cccb3a05c53abb1d2c558e06e67e2bff0a3a78ec83977a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gcf/provisioner.go: FileTooLong \u2014 1232 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: Provisioner (45 blocks, 219-2264). The bar is 500 significant lines; this is 732 over it, 2.46\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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1afb8e9052cddf3f578ec1d7bf0f44da497c16c1c8ae94989cabd276f27a34"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.ensureGitLabWebhookFastPath: FunctionTooLong \u2014 ensureGitLabWebhookFastPath runs 237 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 137 over it, 2.37\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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b88992693a0eb128818e978e0a1695a435dc67121eebc1669addf150251ba99"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repos/gitlab_trigger_account.go: FileTooLong \u2014 1170 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: gitLabTriggerAccountOp (47 blocks, 372-2104). The bar is 500 significant lines; this is 670 over it, 2.34\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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44129a248b4b7a65869dbf3d14549a1667b7fd0e00c4c4f188787fcb014ca7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repos/gitlab_roles_rotate.go: FileTooLong \u2014 1156 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 656 over it, 2.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7701236851c4c28f29b9deb5184b4bdca88e7d98504617afe3497c0d58666ab5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gitlab/ci.go: FileTooLong \u2014 1137 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: LiveClient (66 blocks, 24-2013). The bar is 500 significant lines; this is 637 over it, 2.27\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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d546e31a2739cbcb3941f9ea20c70f9932dbee9cedc187b2579dedc8156086"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runtime.parseClaudeStream: FunctionTooLong \u2014 parseClaudeStream runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.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":"internal/runtime/claude_progress.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"61271d7ceac6808839a9a78f77a411c7f25510307513ca531d1c0bf75e2876d7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Poller.discoverAllEvents: MethodTooLong \u2014 discoverAllEvents runs 219 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 119 over it, 2.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/events.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a43076979ffeb53e99c50b6ee2fd70d7d2c275944762fc58841125bb3fd57df"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: gitLabTriggerAccountOp: TooManyMethods \u2014 64 methods, declared across 3 files: repos/gitlab_trigger_account.go (46), repos/gitlab_trigger_schedules.go (16), repos/gitlab_trigger_account_status.go (2). The bar is 30 methods; this is 34 over it, 2.13\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c15ba950666ae07f7b5e16b3f6ae027e33493f5d03ac854768636bf869341f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.runMintDeployCloudflare: FunctionTooLong \u2014 runMintDeployCloudflare runs 213 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 113 over it, 2.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"da22b9a50417a2e0d2153e0b3b41bb88213228ac6c4ed2304c9360fc4fa597e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.runGitHubSetupPerRepo: FunctionTooLong \u2014 runGitHubSetupPerRepo runs 211 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 111 over it, 2.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/github.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99eaeca6aeaa22d8126877c8734b0e5aba445afa3d703c67f3189433de7141b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/repos.go: FileTooLong \u2014 1026 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 526 over it, 2.05\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":"internal/cli/repos.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55769528912b7979239f845a298b0a39a15fe24c65e641b0a2ad125c8d14534d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Poller: TooManyMethods \u2014 61 methods, declared across 8 files: poll/state.go (29), poll/events.go (10), poll/webhook.go (7), poll/convert.go (6), \u002B4 more file(s). The bar is 30 methods; this is 31 over it, 2.03\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":"internal/poll/poll.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdea5fa8af235c64707c3db3f4426db1086c53e6eb0a5cc56aede82fb6a5ae6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: poll/state.go: FileTooLong \u2014 1004 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 504 over it, 2.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/state.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b09e4dab40ae5678645dda4fba4da085b6d9b48588f90a8b931a35ff5f2226"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: githubactions/githubactions.go: FileTooLong \u2014 1001 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: Driver (36 blocks, 73-2078). The bar is 500 significant lines; this is 501 over it, 2.00\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e630cf32364397a08493f8b8ad87ca0c1b8c80b1b13c173e00a873288cb04474"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Provisioner: ClassTooLong \u2014 791 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods, 45 blocks, lines 219-2264. The bar is 400 significant lines; this is 391 over it, 1.98\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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8c4bc9d0e21dd520e7ffcd337f0f224f9a9a8846b09d7f6c29be0b85833f7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repos/manifest.go: FileTooLong \u2014 973 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 473 over it, 1.95\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":"internal/repos/manifest.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0044ff07ea53efc0c180c979824aab2068063f79c3dc4c6b04a0a7ceb4f902c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repos/gitlabci.go: FileTooLong \u2014 964 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 464 over it, 1.93\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":"internal/repos/gitlabci.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"396d5a012cfa4defd4af74263d467223d72e951513818b365ccd040015c6e133"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: slotAllocator.Claim: MethodTooLong \u2014 Claim runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\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":"pkg/behaviourtest/drivers/install/slotpool.go"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2462bd9916e32f8af4af1fcb9069509cd3fafc14e1c5a073399303a8192d2fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.lockOneAgent: FunctionTooLong \u2014 lockOneAgent runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\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":"internal/cli/lock.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bf7168d2a211329502cea7b3225f98af0b0366417e848b27e284f82a06057c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: perRepoConfig: TooManyMethods \u2014 57 methods, declared across 3 files: config/interfaces.go (48), config/config.go (6), config/artifacts.go (3). The bar is 30 methods; this is 27 over it, 1.90\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec62715e11a0bb767b4d2a468bea110dce951c5ca82505cf9eb12d9aab6e9560"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.convergeRefFiles: FunctionTooLong \u2014 convergeRefFiles runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\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":"internal/repos/converge.go"},"region":{"startLine":2979}}}],"partialFingerprints":{"codehealthFindingId/v1":"8380e255b196e8439bcd6f1120f7353bb7ab3b811af9b6e14e6ad7e87f5cfd54"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: gitLabTriggerAccountOp: ClassTooLong \u2014 732 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods, 47 blocks, lines 372-2104. The bar is 400 significant lines; this is 332 over it, 1.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"c229e75c7a116cff68717f06965ed9cd3c22496691095e5991614187fd6dd04d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.uninstallRepoResources: FunctionTooLong \u2014 uninstallRepoResources runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\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":"internal/repos/uninstall.go"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4352bf38dabc39f6654666d7488fd95b03b80ed60155582fb6e193893e044af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/admin.go: FileTooLong \u2014 912 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 412 over it, 1.82\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":"internal/cli/admin.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54942b8405a3f382586e9f46724e5a530062b13702d8bd9efad8ad64e1602b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/lock.go: FileTooLong \u2014 908 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 408 over it, 1.82\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":"internal/cli/lock.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"620669a4995e8b9ab82684879083692626a4fd08e18bca35b3a2682959f25124"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.runMintStatus: FunctionTooLong \u2014 runMintStatus runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\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":"internal/cli/mint.go"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"2275bafd0ffdf9f314d99f155c12118464693a5637cc4f033dbc012af3780b10"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TriggerOwner: TooManyMethods \u2014 53 methods, declared across 4 files: gitlablifecycle/trigger_owner.go (36), gitlablifecycle/poller_handoff.go (9), gitlablifecycle/trigger_account.go (5), gitlablifecycle/poller_retirement.go (3). The bar is 30 methods; this is 23 over it, 1.77\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2cee9a1d95bddf697ccfe70b6d2c6200f3fd6f5778a0b16b005141a8346ca1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Provisioner.provisionSelfManaged: MethodTooLong \u2014 provisionSelfManaged runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"0824df5c29da4f79d54069b005564f0942ab96bfb38bba8a7a5355d12352cadc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repos/manifest_set.go: FileTooLong \u2014 872 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 372 over it, 1.74\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":"internal/repos/manifest_set.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d85569c825f65979e9631268eebd04d59214538b48deb150e485af34667a60"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Handler.serveHTTP: MethodTooLong \u2014 serveHTTP runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/handler.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7546605e4d7507d2b16e0a105759989194275e021f506717b7a1888df0241a48"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gitlab/repo.go: FileTooLong \u2014 852 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: LiveClient (44 blocks, 68-1557). The bar is 500 significant lines; this is 352 over it, 1.70\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":"internal/forge/gitlab/repo.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"971ff2c4786381317ba44c30bacaf509e36e854b1304978bd96b0a913641c0dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: steps.CleanupScenario: FunctionTooLong \u2014 CleanupScenario runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/cleanup.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae63ebcf9c612dff48ce4843c9c1fe2e2eddd5c9186ed3f4b7fa821e1243fbee"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.ProbeComponentsForAuth: FunctionTooLong \u2014 ProbeComponentsForAuth runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\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":"internal/repos/probe.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"86247f1ac40a3371f70fe250f179bcb7b71c1b8ddd7233098daf992ba7bd82c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: resolve.ResolveHarness: FunctionTooLong \u2014 ResolveHarness runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\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":"internal/resolve/resolve.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"1290b88928190119b312f299f5939c31dc2697a6e7219fa80fb578e1b8bd7407"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: slotAllocator: TooManyMethods \u2014 47 methods, declared across 2 files: install/slotpool.go (27), install/slotgc.go (20). The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/install/slotpool.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1fbe2af8c93531870b55b57f11cfb4e5457f4e3186bb15dee05b744ddc2dbe"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Driver: ClassTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods, 36 blocks, lines 73-2078. The bar is 400 significant lines; this is 217 over it, 1.54\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab64534a0cf1df762d1ec516a15656d9231222869c37fd9c593bd2eb19a820d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.provisionOwnRoles: FunctionTooLong \u2014 provisionOwnRoles runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_roles.go"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaf27723c283beb609224edf79d7273ca671fcd7c23fe29a81041b1803ed9f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jira/adf.go: FileTooLong \u2014 766 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 266 over it, 1.53\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":"internal/forge/jira/adf.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c83816b3d5c3f627cec2e9e72058f4652e08dd6c251d4a17ab143013815640"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Provisioner: TooManyMethods \u2014 45 methods, declared across 2 files: gcf/provisioner.go (44), gcf/gitlab_wif.go (1). The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c098e09da0f26dd441a04dc741a920d6af7d5ba83b8da37c06176b968bde306"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runtime.decodeClaudeStatusProgress: FunctionTooLong \u2014 decodeClaudeStatusProgress runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/claude_status_progress.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6521597b088e8ce39a0cdd78d9ec53b2b9dd33cace01516574d2e5ef5acc5e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gitlab/mr.go: FileTooLong \u2014 748 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: LiveClient (24 blocks, 23-1259). The bar is 500 significant lines; this is 248 over it, 1.50\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":"internal/forge/gitlab/mr.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5c25ce3c2d040a948f3f18f0318d8855487738c207df6f53b643b7fbfcc8c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: analyze-transcript/analyze-transcript.py: FileTooLong \u2014 742 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 242 over it, 1.48\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":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc8f3db08812bba11d7c777ffab5cb47d68a2226809bcfd5eb565303a2eb801"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/harness.go: FileTooLong \u2014 738 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: Harness (22 blocks, 247-1396). The bar is 500 significant lines; this is 238 over it, 1.48\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/harness.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac3c2f9299fe042b696aab5da37f1644b47a215f414c8795b43c8413cd89a4f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UnicodeNormalizer.Scan: MethodTooLong \u2014 Scan runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"internal/security/unicode.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f96b4a1b01b9bcf9334f87f3a63fc43a766ebbfafa19b602508976fbc922614"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiveGCFClient: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. Most of these members implement gcf.GCFClient (32 of 42 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf9b99ea10445ca0603bde12e35deea03d124bbf272b736f578c967c4575b6e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveClient.commitFilesTo: MethodTooLong \u2014 commitFilesTo runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.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":"internal/forge/github/github.go"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7684fa9fd28e9aee408ad892fe97fe3d66c9398cf0c387450a5eec469b1285d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.runLint: FunctionTooLong \u2014 runLint runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"internal/cli/lint.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24443d8645be7e42df262dea5e95a4083499315b1c824fe09ffb658e48ab6d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/github.go: FileTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 175 over it, 1.35\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":"internal/cli/github.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5eb0b204e03b3265f5e847fc32c49a264d7e32bb1bd0e12a23ca03608f12922"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.runReposUninstall: FunctionTooLong \u2014 runReposUninstall runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\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":"internal/cli/repos.go"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e20b8df4dfceadbcaca1000ba233c093a3e6f2aaac5621a00f46b365637610"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveClient.ListPullRequestReviewThreads: MethodTooLong \u2014 ListPullRequestReviewThreads runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"internal/forge/github/github.go"},"region":{"startLine":4527}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab830f08793ff7f42520e5ced53fea1c2b868acab1b11f6fc53ab7eb1ebca557"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexRuntime.Run: MethodTooLong \u2014 Run runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/codex_run.go"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"21282d4534d72bb2c9238a24de0319e84cefc6234d5db161262905362d43ac48"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveClient.ListPullRequestReviewThreads: MethodTooLong \u2014 ListPullRequestReviewThreads runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/mr.go"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"685ebc16a743f80a64132af4a7349a06285bde6a19f95f8b92a976408e6d12bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: install/slotpool.go: FileTooLong \u2014 654 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: slotAllocator (28 blocks, 283-1184). The bar is 500 significant lines; this is 154 over it, 1.31\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":"pkg/behaviourtest/drivers/install/slotpool.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a72a43212ca212bc8e8c98f2251e32e836f69b8257f9c50fee9975d4f3917f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexRuntime.Bootstrap: MethodTooLong \u2014 Bootstrap runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed7a9b908710cb00357644553534444b872ba96107557251b85f0cbab86d4bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hooks/ssrf_pretool.py: FileTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 136 over it, 1.27\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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47837dce2de1f10501af2bb073c0ac2f3ae5f28289c20a762848ad484a6bab4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness.resolveBaseScripts: FunctionTooLong \u2014 resolveBaseScripts 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":"internal/harness/compose.go"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d27292d0fc2ea8842a3e656c2c16c2606addd85a3e3db8cc7cbcf8def49ed0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Harness: TooManyFields \u2014 38 stored fields beside 35 methods. The bar is 30 stored fields; this is 8 over it, 1.27\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":"internal/harness/harness.go"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d04a11315fae1ff7f09c6e3072db304c54f170a88af8f4c35fdb2c60959965"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/run_openai.go: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 132 over it, 1.26\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":"internal/cli/run_openai.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca780c9e602e3507502e5f2e99856d002e9111755a857fa83c8411139a62021"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.checkRepoStatus: FunctionTooLong \u2014 checkRepoStatus 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":"internal/repos/status.go"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9def3a7eae68e2f19bccb4e9357552ab26f6d17379b672ded21cf1b4691970"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runtime.executeBehaviourOp: FunctionTooLong \u2014 executeBehaviourOp 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":"internal/runtime/dummy.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf3d2f921957c32763e04c3f1972f6749fb6eafafefd3d9e54a1b26d24601ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forge/forge.go: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 122 over it, 1.24\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":"internal/forge/forge.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b71b86160b9b6253bea2585f65370637264f28224e32f8fe396e53be45dddfe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/agent.go: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 121 over it, 1.24\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":"internal/cli/agent.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a51e16518f0f145b5f1fe7ba9756389926147a20eee5389c777cf2faa109809"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mintcore/github.go: FileTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 115 over it, 1.23\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":"internal/mintcore/github.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa77e766133d8d63db2b5d861e3832ee914c378fd78d976f071dbfd4cc2b24f1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Harness: ClassTooLong \u2014 486 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods, 22 blocks, lines 247-1396. The bar is 400 significant lines; this is 86 over it, 1.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/harness.go"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d512772058bfaf79db7febb0609274d20ec81a4bdb109cd8f9bb35ba6e2e6bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/claude.go: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 101 over it, 1.20\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":"internal/runtime/claude.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbb4813e46a2d9c6401b8ef3acd7c4e74d17753f8bafe1f882c7f7111c73c37"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CodexRuntime: TooManyMethods \u2014 36 methods, declared across 6 files: runtime/codex.go (11), runtime/codex_bootstrap.go (10), runtime/codex_gateway.go (6), runtime/codex_transcript.go (5), \u002B2 more file(s). The bar is 30 methods; this is 6 over it, 1.20\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":"internal/runtime/codex.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d1b88467b938ff5390e9aa3dab03fb978bb4d32b651af1d799fcc472118ff9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Driver: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b38b9fbff1ac4bbcf1c415f0edbb5f2b568a9d635212091bccaff5237d5267a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: appsetup/appsetup.go: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: Setup (20 blocks, 130-1031). The bar is 500 significant lines; this is 100 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/appsetup/appsetup.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd515e2c6b62908f81f8ab55cd7171ecf8853663a7b01eb31f70da65c7719c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.runInferenceGatewayStatus: FunctionTooLong \u2014 runInferenceGatewayStatus runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"internal/cli/inference_gateway.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fab72e72d07991735e4f6a2b98b614905ee366df04aa2cfcd524759b7a856a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mintcore/tracing.go: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 95 over it, 1.19\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":"internal/mintcore/tracing.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"370fc61fdfa30e0d55af6bbfe8ee9ba730dbb5879c8ee476f76b8c6badecc573"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/config.go: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 94 over it, 1.19\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":"internal/config/config.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55f5c9b7f232b4454852d318af718c59d65dc567702cb1ab21eb7ba1fa99b1c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Manifest: ClassTooLong \u2014 475 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods, 28 blocks, lines 111-2026. The bar is 400 significant lines; this is 75 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4dc669e7093891ee3d439679adca91bdf0ab4aac3db8a797f5a46396d8cc880"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: slotAllocator: ClassTooLong \u2014 470 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods, 28 blocks, lines 283-1184. The bar is 400 significant lines; this is 70 over it, 1.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/install/slotpool.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b7dd5239db540886193b6dd067bda2d37c806d1875205370cf4d79c417f1a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveGCFClient.GetServiceRevisionInfo: MethodTooLong \u2014 GetServiceRevisionInfo 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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d35fc31beab6ab9b9a3bbbe0bf38c21f4bfb207f1815917519252efa05b8516"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Harness: TooManyMethods \u2014 35 methods, declared across 7 files: harness/harness.go (21), harness/forge.go (4), harness/lint.go (4), harness/plugin_spec.go (2), \u002B3 more file(s). The bar is 30 methods; this is 5 over it, 1.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":"internal/harness/harness.go"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"7087b0d064d8c6657cdb5ba6b8ea1a6c49231e6a01f30218b656900d5899c0dc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: TaskProgressEvent: TooManyFields \u2014 35 stored fields beside 1 method. The bar is 30 stored fields; this is 5 over it, 1.17\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":"internal/runtime/event.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7100f1237be447a873595601a14aba718d4dd66028f5609844656151d07dc4f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: reposInstallConfig: TooManyFields \u2014 35 stored fields. The bar is 30 stored fields; this is 5 over it, 1.17\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":"internal/cli/repos.go"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"a845f6ed71a09a30c111229a29fc8d29011f94cb70ba6bee3683211b265e7ddd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.convergeContentDriftFiles: FunctionTooLong \u2014 convergeContentDriftFiles runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/converge.go"},"region":{"startLine":3453}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d560f3ac43fd4cadc1ec35234a8028aa751c31c100bfcf49af313fa016fcd28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gitlabci/gitlabci.go: FileTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: Driver (24 blocks, 53-814). The bar is 500 significant lines; this is 77 over it, 1.15\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49907335bebb9db773210ecd4eabc5011f998835cca0631744ba2f64c82f165"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cf/provisioner.go: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 72 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/cf/provisioner.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88804d1cab944ba8faeb3402fe1255d54bfae73371bf3972743b8c88ed66484"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness.loadBaseChain: FunctionTooLong \u2014 loadBaseChain runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"417c90906b9a49319de21d7519cbe72d37bccd36b3d046ce9583a94f0ea27ea2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.convergeSchedules: FunctionTooLong \u2014 convergeSchedules runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/converge.go"},"region":{"startLine":2532}}}],"partialFingerprints":{"codehealthFindingId/v1":"01555422605046a18b5028bc402021ca3474c01afe0aee9dd7f6626453adfcbb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mintcore/handler.go: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: Handler (16 blocks, 65-933). The bar is 500 significant lines; this is 69 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/handler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1986496b0286a6526b479224ecff98c300cc4fd55af41afb094ecadb77784b57"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/inference_openai.go: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 66 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":"internal/cli/inference_openai.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae064606a25580c5b712fac4908151480d9fb907781256220b04547d380acf6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.DiagnoseGitLabWebhook: FunctionTooLong \u2014 DiagnoseGitLabWebhook runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook_status.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9fb6b196b1a465cc9ce41adfc5754b593bfa32a9a7c152f61e7558d4d4c820"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runtime.buildPiRunCommand: FunctionTooLong \u2014 buildPiRunCommand runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_run.go"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab33bb3c71b48e868595ef5e0d21c560ff5eeede3d49dd2cf9b17238aa1fcce0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Handler: ClassTooLong \u2014 451 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods, 16 blocks, lines 65-933. The bar is 400 significant lines; this is 51 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/handler.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d8720e7593d1590e047cdf0d73ebde8b6b79cacfb3bb4e7abe7243ca869d97"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.newReconcileStatusCmd: FunctionTooLong \u2014 newReconcileStatusCmd 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":"internal/cli/reconcilestatus.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4780e1fa6b36ba3e41a5d088c53c188e4830f15acc4b4cdd9d5932250268a8b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness.LoadWithBase: FunctionTooLong \u2014 LoadWithBase 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":"internal/harness/compose.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac25ca4628444ab9c8ecfe44123335f107b558408a5c4ad603def871ba6f95e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/dummy.go: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 58 over it, 1.12\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":"internal/runtime/dummy.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27969e114e237c54f27d193cafcb96296799b326917678fc6b9390a08752c556"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: fakeGCFClient: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. Most of these members implement gcf.GCFClient (32 of 33 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/fakeclient.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"560b6a253b97eb4259dba355eee384495fde2655e1d896346357837811dcdb64"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/postreview.go: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 50 over it, 1.10\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":"internal/cli/postreview.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55c5afa6cdda75ce7b9c209c0099d10eaa509ef125b3b685f13396668dfb16d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jira/client.go: FileTooLong \u2014 543 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: LiveClient (29 blocks, 27-1029). The bar is 500 significant lines; this is 43 over it, 1.09\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":"internal/forge/jira/client.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8fa3af379afe2013de27de5c67764a5df0c415c76f83961e7816c75939f97b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: codex_hook/fullsend-codex-hook.py: FileTooLong \u2014 543 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 43 over it, 1.09\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":"internal/runtime/codex_hook/fullsend-codex-hook.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6aeb4c84fe5f0c0dce94977453c4ec533000d34825cdfc48da0fdadf1e09db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/issues.go: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 42 over it, 1.08\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":"internal/cli/issues.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d518223c9f3986accf71c674d7a6deb399b31924f479ff0e3cd9fae4df1f16"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: layers/commit.go: FileTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 41 over it, 1.08\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":"internal/layers/commit.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e374c5bb125391322e7cb9c60feaf89e7d38e9807da4bc5402dd6997b527baf2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Setup: ClassTooLong \u2014 432 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods, 20 blocks, lines 130-1031. The bar is 400 significant lines; this is 32 over it, 1.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/appsetup/appsetup.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8ff341c2ce31ac834afbe32620b037332ccce311aa36bda803af918e3e8c8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repos/gitlab_service_accounts.go: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: ServiceAccountTokenClient (18 blocks, 55-1097). The bar is 500 significant lines; this is 40 over it, 1.08\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":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde58258a20795e9b4878cdc44c15159a0152d292365f57c38f5721e37f85ecd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: pollerGenerationRun.attemptTrigger: MethodTooLong \u2014 attemptTrigger runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_poller_generation.go"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"7315cc355af9505a174ee322ad949439775e875fa0d9b3553075a34b18f47196"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TriggerOwner: ClassTooLong \u2014 430 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods, 37 blocks, lines 35-927. The bar is 400 significant lines; this is 30 over it, 1.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa05af42c73e86d53ac52342a1f49a925ab51faaa15539b4cf6ffe960501d14"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: steps/debuglogs.go: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 36 over it, 1.07\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":"pkg/behaviourtest/steps/debuglogs.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ba82be4a915876c8d1a938ccc59cfc3f1fb1440bcfac0cd61f1a01dd4c107d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: steps/mint_probe.go: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 31 over it, 1.06\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":"pkg/behaviourtest/steps/mint_probe.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d564aeaf578a87e2e44177fe25ae01ca9dbf2ffe2a5a8f78e7e728751e7b4232"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ServiceAccountTokenClient: ClassTooLong \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods, 18 blocks, lines 55-1097. The bar is 400 significant lines; this is 24 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1328df940118922fdf726af04e2e02bf81a624439b37646467d022b799cd6ff0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.newPollCmd: FunctionTooLong \u2014 newPollCmd runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.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":"internal/cli/poll.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9b21b096985cbd8bb16a4ecdc5e3254d3bdc52cd05a6a4ed83d9a1ac6088ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.runMintDeployGCP: FunctionTooLong \u2014 runMintDeployGCP runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6102c6b08be2f9d902dd7ae4e2d94e9df66e0758078370f1454c3e7bdc1d5c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.convergeJiraPoll: FunctionTooLong \u2014 convergeJiraPoll runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/jira_poll.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf2f465ef0b9620ac1863065926561ae45552412c578f788daa3d708d1d6c58"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Manifest: TooManyMethods \u2014 31 methods, declared across 3 files: repos/manifest.go (27), repos/managed_config.go (3), repos/manifest_legacy_tracking.go (1). The bar is 30 methods; this is 1 over it, 1.03\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":"internal/repos/manifest.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b70bc17d863007a7ee294d28f3983ddb21c669cb94db17305d5efef1296f1f0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Driver: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/scm/github/github.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51d4b14502103022e61ffbcd0a22c7018998000e9ff9e3e820d58564c903c78"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: InstallConfig: TooManyFields \u2014 31 stored fields. The bar is 30 stored fields; this is 1 over it, 1.03\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":"internal/repos/install.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"067416445801405bb46155b0b7da5475a78de4d09cadb45d31c9c8787a2eab86"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repos/gitlab_trigger_dispatch_gate.go: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 12 over it, 1.02\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":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78287d374b83d972d6fea4a3382f6980bbae29a01d932c283905cab5e7ca6bf3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: repos.mintPollerOwnedTrigger: FunctionTooLong \u2014 mintPollerOwnedTrigger 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":"internal/repos/gitlab_webhook_poller.go"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7558a8907a49e3280bb2f3c2c7b2944d955ae13bcb0e4564c39ca67e6d21f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/claude_progress.go: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1 over it, 1.00\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":"internal/runtime/claude_progress.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4480d0e70d729451fb2af89f898c8f50e1b9b10a7cf560bd68ec4c1fe194f436"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/pi_run.go: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1 over it, 1.00\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":"internal/runtime/pi_run.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2850e4a42ce4ea31597dca9523b06bc9967d879019513765755fa6d854d31cd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 33 shared lines): internal/cli/inference.go:67-177 | internal/cli/inference.go:328-387 | internal/cli/inference.go:585-649 \u2014 These 3 members are variants of one another: a block of 33 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/inference.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"6450b838c7f417b6a4929f81ba7d280c26463030f70a4341144d97ff7d1d05cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 5 shared lines): internal/harness/compose.go:2094-2179 | internal/harness/compose.go:2272-2341 | internal/harness/compose.go:2481-2550 \u2014 These 3 members are variants of one another: a block of 5 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":2094}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98b1e7a8fc9c1f127394784f826ea9f6f4be3b8c3301d212c969c1d21297cfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (49 shared lines): internal/e2etest/testutil.go:128-286 | internal/e2etest/testutil.go:294-393 \u2014 These two members are variants of one another: 49 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/e2etest/testutil.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f953b017bf2239347efb9730b9414ce8ca67c1b26ef9967cf7689c8ce6e4fd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (44 shared lines): internal/cli/foreign.go:35-119 | internal/cli/foreign.go:266-357 \u2014 These two members are variants of one another: 44 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/foreign.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cc7784b75ae8f3524bbb0a474d14d53d94da9be9b9784bf8b2a586099e2bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (31 shared lines): internal/harness/forge.go:69-135 | internal/harness/forge.go:156-210 \u2014 These two members are variants of one another: 31 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/forge.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e225d9252d61b0eb3c136c754f60a726ca929a4653a191b788da848d32cdd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): internal/cli/mint.go:755-908 | internal/cli/mint.go:1289-1344 | internal/cli/mint.go:1450-1506 | internal/cli/mint.go:2109-2189 | internal/cli/mint.go:2191-2271 | internal/cli/mint.go:2273-2344 | internal/cli/mint_delete.go:118-247 | internal/cli/mint_setup.go:42-130 | internal/cli/mint_setup.go:132-183 \u2014 These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"42299f63a922615c5fda8ae09943916fec7b89f0d1e1d77e4af7767ff013e6a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1248-1273 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1387-1409 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1632-1655 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1905-1937 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:437-462 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:528-550 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:652-675 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cc275dc6b9cf049e6324f64869d8aad986e43f6cb68f60a43e9bbd2db9d1ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/cli/agent.go:214-320 | internal/cli/agent.go:390-450 | internal/cli/agent.go:512-598 | internal/cli/agent.go:721-808 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/agent.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c0855c3456b743b6ce44af0ff32aa262feffe663a870fd68160aeca75aab2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/dispatch/gcf/provisioner.go:358-393 | internal/dispatch/gcf/provisioner.go:396-411 | internal/dispatch/gcf/provisioner.go:415-454 | internal/dispatch/gcf/provisioner.go:458-494 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b00f1b9119992d8b9c1cf94bd22145826406a13f58ba0cfa9a0dad923a37db"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/runtime/claude.go:485-549 | internal/runtime/codex_run.go:519-754 | internal/runtime/opencode_run.go:426-551 | internal/runtime/pi_run.go:1056-1142 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/claude.go"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ed92bb6525513ccbf9240a78a88cf64a2b5018e54040394829caea7d97c80a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1281-1377 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1660-1716 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:468-518 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:680-735 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"509422be0635d43944c48ed192b1d27b91e43e9f4d492cc742be7ec7a0e60cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/security/hooks/canary_posttool.py:52-68 | internal/security/hooks/canary_pretool.py:43-59 | internal/security/hooks/context_suppress_posttool.py:108-125 | internal/security/hooks/tool_allowlist_pretool.py:36-52 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/canary_posttool.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82d247adf5cce026c2ec0f6a3b8a3c325335ab0cf3dda9cf447c6a684b81031"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (105 corresponding lines): pkg/behaviourtest/steps/base_dispatch.go:73-177 | pkg/behaviourtest/steps/url_dispatch.go:265-408 \u2014 These two members are one piece of code written twice and then edited apart: 105 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67adc9b95a08d3d223e5de1f6451317a8d0657c03fa32c165fe18e9a7b9f322"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 44\u002B corresponding lines): pkg/behaviourtest/steps/dispatch.go:23-72 | pkg/behaviourtest/steps/jirapoll.go:110-156 | pkg/behaviourtest/steps/runtime.go:32-75 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 44 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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b323178e64c2e7c11e67956b5c0fb3c7349ec3ff125869d7c91a856db6512b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (75 corresponding lines): pkg/behaviourtest/steps/bot_role_probe.go:241-315 | pkg/behaviourtest/steps/mint_probe.go:369-450 \u2014 These two members are one piece of code written twice and then edited apart: 75 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/bot_role_probe.go"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b710b6ff2da7c86ccef1950f30e541b494bec458cb428aafb597cf459ca3f955"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): internal/dispatch/gcf/gcp.go:1001-1075 | internal/dispatch/gcf/gcp.go:1105-1171 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09b89459c06e060555707a0661095df3da5fb6a7d624de3ec5dc39e5fafc756"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): internal/harness/compose.go:2184-2259 | internal/harness/compose.go:2387-2476 \u2014 These two members are one piece of code written twice and then edited apart: 76 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":2184}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfea139843c1526108b5addacf826cf7e2de8a0b0a70ef1f0bd857da7553eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): pkg/behaviourtest/steps/dispatch.go:199-255 | pkg/behaviourtest/steps/dispatch.go:273-329 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e833641c2b39d5da223f1d627b17394685d7dc22a072a3f55c47465ccb623a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 72\u002B corresponding lines): internal/harness/compose.go:1455-1526 | internal/harness/compose.go:1533-1619 | internal/harness/compose.go:1626-1716 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 72 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":"internal/harness/compose.go"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"938bf04a0637c6654b8ec110bc14c92e884803df6bbcc3834a1715bed48bbe20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): internal/cli/run_jira.go:678-745 | internal/cli/run_openai.go:1151-1251 \u2014 These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_jira.go"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41a5a26a4c5a11821af6ac96fc8200ed0e4be0e7d9d0fb83356f8b32685940e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:121-176 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:147-219 \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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbafd37db3b1233197f32cf476115852940c4c969a566a55be6d79afadf63395"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): internal/harness/compose.go:2842-2914 | internal/harness/forge.go:377-438 \u2014 These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":2842}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7d7d9ccc87b80fe2799200f263e2be8cd8707567263d1ad9fa340e0bbb59f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): internal/dispatch/gcf/gcp.go:658-708 | internal/dispatch/gcf/gcp.go:713-764 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c42ca5f404dba19cebb80811f3896bf4394c30935d3480a8dd993658630ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): internal/mintclient/mintclient.go:191-256 | internal/mintclient/mintclient.go:265-339 \u2014 These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintclient/mintclient.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a68a2d931d89ebb2361ce65c799d7d1e50e6c06b90dcf7b4ea34d7982a965d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 60\u002B corresponding lines): internal/cli/issues.go:557-639 | internal/cli/issues.go:653-716 | internal/sticky/sticky.go:55-114 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 60 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":"internal/cli/issues.go"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b3219c313e2ee258f643053e0e875e788eced6666177f13c263d9a616c7785"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1431-1516 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:570-636 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6b872fc414df26195b814224a92733eb99ab7a0d5c44bd6b27ab25dd610ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): internal/forge/url.go:36-109 | internal/forge/url.go:218-277 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/url.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5910efe5c54296c5eed69dcc823532f73e074804c99f4ff9ed862ea74dce894b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): internal/mintcore/handler.go:690-731 | internal/mintcore/handler.go:792-833 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/handler.go"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b45fb663de93bcb05832f9366e53cf1e0c1cdbf1e0770db63612e255ff3d8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): internal/harness/discover.go:28-81 | internal/harness/discover_remote.go:24-76 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/discover.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac27f65a34b72c8a52b2c514d218298cb079de357f289248eae46124ad41102"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): internal/dispatch/gcf/provisioner.go:651-695 | internal/dispatch/gcf/provisioner.go:1752-1789 \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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5ae07c7a37a6f6afbb176536abcd66e8166754cfd427f292de5ceb4cadab2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): internal/runtime/claude.go:561-611 | internal/runtime/opencode_transcript.go:24-62 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/claude.go"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"652b492bb0140b7c0772e64ee31260fe722c3997e64222b4cd9cd7826e1673e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): internal/preset/preset.go:126-162 | internal/repos/manifest.go:574-610 \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":"internal/preset/preset.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"610a608046afc5e5706e40f6604b631bc22e56d9206f74c9b891dfbda4e0bfec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): internal/forge/github/github.go:3783-3832 | internal/forge/gitlab/issue.go:95-143 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":3783}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d9e84f78cab936003652f30ae3937c0fffa87c26a2f50625ce3df2c914f6b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): pkg/behaviourtest/steps/gateway.go:41-71 | pkg/behaviourtest/steps/jirapoll_transport.go:159-181 | pkg/behaviourtest/steps/mint_probe.go:160-179 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/gateway.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7ce5796b6bd28c91235f178d218f52d4407d68e331c588c742d105865c0342"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): internal/dispatch/gcf/gcp.go:1337-1389 | internal/dispatch/gcf/gcp.go:1393-1444 | internal/dispatch/gcf/gcp.go:1448-1487 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abc809f26991fac31069f04831b492016979f28107b8ec1250fb034042dc6ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): internal/harnessdispatch/input/ghaevent.go:132-170 | internal/harnessdispatch/input/ghaevent.go:220-267 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harnessdispatch/input/ghaevent.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68771c23a9ee70c91595a2ffe1cae24890725215931ccc1ee40676ccab65d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): internal/dispatch/gcf/gcp.go:433-473 | internal/dispatch/gcf/gcp.go:1208-1245 \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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c6e6d70a33bace187bbc74476bc92c369e5b15d4c5f7263db86baf6c5a5622"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): internal/cli/checkprotectedbranch.go:44-100 | internal/cli/resolvemrsource.go:75-138 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/checkprotectedbranch.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"0063cb021ad34c4a5ed6a0ac6532dccaea4af43840092c55d4729b2dbe6ecd1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): internal/dispatch/gcf/provisioner.go:1706-1747 | internal/dispatch/gcf/provisioner.go:1792-1833 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"9400aba681bd538fb90b9b506571df5f86cf2ab0aeddaa671e05be388a6cc1b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): internal/dispatch/gcf/gcp.go:1816-1857 | internal/dispatch/gcf/gcp.go:2051-2092 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e878bd87b23c64bc4cac1505f5d920d0b892bf560bae64c28d13aa7df03751"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): internal/forge/github/github.go:1173-1220 | internal/forge/gitlab/repo.go:157-206 \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":"internal/forge/github/github.go"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd0e8cdbb18fd69b282368b7c9737c87846f0b1e0bf65282e5484616fa50b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): internal/mintcore/github.go:681-717 | internal/mintcore/github.go:727-756 | internal/mintcore/github.go:759-788 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 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":"internal/mintcore/github.go"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c475501bb72dda14f459eef86375c04165dbb3c3a7720cec83231c5e9b7f863"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): pkg/behaviourtest/steps/base_dispatch.go:37-66 | pkg/behaviourtest/steps/base_dispatch.go:182-216 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7c403f4cfb5368c82a3c45d727e6c85b7f51d4f5f8971b0e8300e274a40a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): internal/repos/gitlab_trigger_consumer.go:246-287 | internal/repos/gitlab_webhook.go:1373-1415 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0e9b6290aa05377715c76c2323199a589d6fd8d1ecaf91160d9436afaa5e45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): internal/forge/github/github.go:1483-1517 | internal/forge/github/github.go:1522-1557 \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":"internal/forge/github/github.go"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"98498fc2e93047db0d3ed60ad9da6c2f8b63122cf9104f22ffac6b4e47295403"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): internal/celtrigger/celtrigger.go:47-78 | internal/harness/trigger.go:45-84 \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":"internal/celtrigger/celtrigger.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a131f2d059b58c72841e2169e8a28a250ae47fcb4df8656d9cd345bd624bc24d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): internal/security/hooks/canary_posttool.py:72-113 | internal/security/hooks/canary_pretool.py:63-93 \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":"internal/security/hooks/canary_posttool.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8791dcf9f0f722b97cd2fbdc5c9194646a2cf7b51d05787072bb6e5f10e398c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): internal/repos/gitlabci.go:800-849 | internal/repos/gitlabci.go:1025-1066 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlabci.go"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb5f8d2c30c4a2d1fde759e4df4523d058423b70563bdc213ec0c8421df2ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): internal/cli/inference.go:202-236 | internal/cli/inference.go:271-318 \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":"internal/cli/inference.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c1762cecefdf2c0905366f94fd5c26f981ba2033f408695313ca920182dae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): pkg/behaviourtest/drivers/install/ensure.go:572-602 | pkg/behaviourtest/drivers/install/ensure.go:614-651 \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":"pkg/behaviourtest/drivers/install/ensure.go"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ade6c52489f54193652b1d79de079f57da2a7a527d97ef62995716954dc4ac1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): internal/mintcore/handler.go:733-765 | internal/mintcore/handler.go:837-869 \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":"internal/mintcore/handler.go"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a20bded35a3cffdbb203c03d62ff7730e8e0c4d50ddf6c1f0dce348d0c3db97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/cli/bootstrap_scan.go:200-225 | internal/cli/bootstrap_scan.go:227-257 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/bootstrap_scan.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9eb1eb9f86fb4b5543682cca108c11c6adecaa96f4810074a4362db6d86486"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 32\u002B corresponding lines): internal/forge/gitlab/service_accounts.go:121-154 | internal/forge/gitlab/service_accounts.go:203-234 | internal/forge/gitlab/service_accounts.go:327-363 | internal/forge/gitlab/service_accounts.go:379-414 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/service_accounts.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"49901c87d25610940af1b3d6eb166ff3bde934f7ba45e4439aa534a9e4462f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): internal/repos/remote_scaffold.go:70-109 | internal/scaffold/installfiles.go:37-75 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/remote_scaffold.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50bcafc549e32e9d3425f6993f3e35cf0e8280d59f51cc41480bfb7ef973f24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): internal/harness/harness.go:134-168 | internal/resolve/resolve.go:100-124 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/harness.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"62300e466ea14db7dd38d8c53a1bfb3db3285da2342dbce1b21edf169530aab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): internal/forge/github/github.go:4838-4868 | internal/forge/github/github.go:4929-4967 \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":"internal/forge/github/github.go"},"region":{"startLine":4838}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2b3290cfd47c45c6531e9e55ec11e637bf1ca7268a4b44477e7bab31ac9c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): internal/dispatch/gcf/gcp.go:788-814 | internal/dispatch/gcf/gcp.go:817-840 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01eee34e0a29eee7c236bd1f5fd039580cf8947ee6abe13bcc68b8051754e69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): internal/forge/gitlab/deploy_keys.go:75-102 | internal/forge/gitlab/service_accounts.go:285-311 \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":"internal/forge/gitlab/deploy_keys.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ee9b8d07d66b3ec89ea4389e662e120572847b77269bd536ada65743662b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): internal/gitlabroles/readiness.go:63-90 | internal/gitlabroles/readiness.go:311-335 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlabroles/readiness.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3eecb17b0f3e2e816cc7ccf604a48b8465484eb6bd20e77295fc0b3100b334"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): pkg/behaviourtest/steps/runtime.go:467-502 | pkg/behaviourtest/steps/runtime.go:514-553 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/runtime.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"12102be4bd101ffc30c6179250811f37fc995302659639be7af179c30722891f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/repos/gitlab_trigger_schedules.go:172-197 | internal/repos/gitlab_trigger_schedules.go:312-345 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_schedules.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5198329283dc04a6aeae75e9a09cc12b9ee1df8f208c4daf50cd596ccf2be030"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): pkg/behaviourtest/steps/dispatch.go:596-617 | pkg/behaviourtest/steps/fork.go:380-413 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d022f11a40ca27c9ee871835cfc0c38d95d329dda00106d1927b06cfe17e5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): pkg/behaviourtest/steps/playback.go:279-303 | pkg/behaviourtest/steps/playback.go:851-880 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/playback.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"763695a8208e6d097ed6c91a83be29b1e40d0a8c969938f8ccd7c9569000ddbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/cli/run.go:8443-8464 | internal/harness/registry.go:84-107 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":8443}}}],"partialFingerprints":{"codehealthFindingId/v1":"d355a211f6b38b736eb4f6ee9b5917df28d4a53bced70c4b6be5ce73ffa3c35c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): internal/poll/legacy_mirror.go:152-182 | internal/poll/state.go:220-250 \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":"internal/poll/legacy_mirror.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0e95383ecc9881a8e0a4e7c21d11cea85047b4a153f24b574fe7cf3999e77a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): internal/forge/github/github.go:3518-3555 | internal/forge/github/github.go:3558-3588 \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":"internal/forge/github/github.go"},"region":{"startLine":3518}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcdaa3e99ae3ff46bb88a52ac73770ee441e300aaa704439a953e042a95a56e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 29\u002B corresponding lines): internal/forge/gitlab/ci.go:1817-1845 | internal/forge/gitlab/ci.go:1853-1888 | internal/forge/gitlab/deploy_keys.go:124-154 | internal/forge/gitlab/deploy_keys.go:199-237 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/ci.go"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"1168a84a1fa05f76548509bc5e8c2c2a918fb376e8d2b1cd1afb624062332689"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): internal/forge/gitlab/ci.go:1698-1721 | internal/forge/gitlab/ci.go:1725-1750 | internal/forge/gitlab/ci.go:1759-1789 | internal/forge/gitlab/hooks.go:228-251 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/ci.go"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"0538ce95b2ddd21ad82600cbf74113e1ad938b242b2dfd08636807e1ba65f6ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): internal/forge/gitlab/issue.go:197-239 | internal/forge/gitlab/issue.go:242-272 | internal/forge/gitlab/issue.go:277-304 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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":"internal/forge/gitlab/issue.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"5446db2ff111dbb44473652fef16e5376e1fc8b49cf74a27679db0357c818da1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): internal/dispatch/gcf/gcp.go:257-288 | internal/dispatch/gcf/gcp.go:313-340 \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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"f045cb70cba3a876bce495e941d286bbfff4ed0b489ac326e69d42bac4816c18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): internal/runtime/codex_bootstrap.go:516-543 | internal/runtime/codex_bootstrap.go:626-654 \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":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ae4055005c7e6b9a3151ea4751ee7fc02b0078753ba23829dfe1a7a306f190"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 31\u002B corresponding lines): internal/forge/github/github.go:3835-3873 | internal/forge/github/github.go:3891-3929 | internal/forge/github/github.go:4109-4139 | internal/forge/github/github.go:4483-4521 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":3835}}}],"partialFingerprints":{"codehealthFindingId/v1":"14aa2b6a6057e967f83b20552952b0c7bb326a79dd68d7bdb293f4f820203177"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/repos/converge.go:461-481 | internal/repos/converge.go:2189-2209 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/converge.go"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"205cf7df406c8301cc0f7e986b44264fcd6d1a5460357e3e4d8fc93d5d3c62fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): pkg/behaviourtest/steps/dispatch.go:138-164 | pkg/behaviourtest/steps/owners.go:117-141 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb7fa3f4e78668f6d8ef3ebffd76b93231f30aa25adb7bb92b6f8003ada16d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/forge/fake.go:2853-2878 | internal/forge/fake.go:2884-2909 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/fake.go"},"region":{"startLine":2853}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae51268f25247606562d6d02c3ff3e481004ed86c27abf7fcccd3fd38c58e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): internal/forge/github/github.go:3938-3964 | internal/forge/github/github.go:3967-3997 \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":"internal/forge/github/github.go"},"region":{"startLine":3938}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d73c46ce6b4f02fe1bfa7e65000c8b6cc6efaa2a7aafa1f0755ed0a2c7e795"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): internal/forge/github/github.go:1229-1264 | internal/forge/github/github.go:1268-1303 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"b454b4d829a79bc2538036f706077ff78294e27d836e64c401f1e6363f62dbe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): internal/forge/gitlab/ci.go:1449-1475 | internal/forge/gitlab/ci.go:1980-2007 \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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d53ba619c2dd72cab7e59845e8bb91c7269c69f39024fb7f17d204ad2e9aed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): internal/scaffold/vendormanifest.go:172-199 | internal/scaffold/vendormanifest.go:204-244 \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":"internal/scaffold/vendormanifest.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"61df69f800d7c047fe6fef1666c89fa3967fae6d9abfdd66a6b79d2232d8ac1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): pkg/behaviourtest/steps/playback.go:489-516 | pkg/behaviourtest/steps/playback.go:545-568 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/playback.go"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"679f16c1585b3ea121a3b33e0e9161478302e5f02f7f2966f05adf72b457ef32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): internal/cli/run.go:7293-7331 | internal/cli/tirith_repo_policy.go:65-100 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":7293}}}],"partialFingerprints":{"codehealthFindingId/v1":"132d10887586870cc15c06491333d0dbcc8cb8b7340a8ae5f273b242c6a33b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): internal/forge/fake.go:3040-3064 | internal/forge/fake.go:3066-3090 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/fake.go"},"region":{"startLine":3040}}}],"partialFingerprints":{"codehealthFindingId/v1":"6632a8c8db5ff732f9b1afb2d4f08bd7d59e11fa33653d02f4d23510bbfbfa89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): internal/repos/gitlab_poller_generation.go:647-665 | internal/repos/gitlab_webhook_poller.go:746-767 \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":"internal/repos/gitlab_poller_generation.go"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"d891dcbcd90ccc2b35f827930a2429327f275dd90aef0f8f48e35f35c751ccba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/scaffold/vendorcontent.go:86-111 | internal/scaffold/vendorcontent.go:113-148 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/scaffold/vendorcontent.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"151a1db129873f2d2be52410ddbe8a1124b44eeada1644e2d564d3e9071ee59d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/forge/github/github.go:2247-2267 | internal/forge/github/github.go:2326-2346 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":2247}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e06c8a4f29287d92631f0cac39a6be2cbeee9b0808a99ecbd5802234a7eb212"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/forge/jira/client.go:722-744 | internal/forge/jira/client.go:878-900 \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":"internal/forge/jira/client.go"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b985eaf48ebfad0bb438a2278972a8bb8e399c463bf391503c9192a66b4eeab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): internal/repos/gitlab_trigger_consumer.go:171-192 | internal/repos/gitlab_trigger_dispatch_gate.go:771-789 | internal/repos/gitlab_trigger_jobs.go:517-544 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 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":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6e8093ff4a9965487fca83012cd8f8e3021fed778fd509bd8432122783e8e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/runtime/codex_bootstrap.go:661-679 | internal/runtime/pi_bootstrap.go:1005-1021 \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":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d934687c7d1a6213710583f67b0498f51815374c172701d9ed2c9c737f54fe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): internal/dispatch/cf/cloudflare_api.go:229-253 | internal/dispatch/cf/cloudflare_api.go:284-308 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/cf/cloudflare_api.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"37fe8811bb12f5d5994d29742c3b7885f285e429e2a57e49a9a7f0f5dfd4a14f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): internal/cli/inference_gateway.go:88-129 | internal/cli/inference_openai.go:806-844 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/inference_gateway.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"15015e090cc1f144ba28e0ed37140c2d170c89d20a06cbf82d1004b2821af287"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): internal/forge/gitlab/ci.go:1138-1171 | internal/forge/gitlab/ci.go:1181-1207 \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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5e283588f2c74d6ad4db4efc3bea685e5d7f68f74f89e1d820b1bb8770cb21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 27\u002B corresponding lines): internal/forge/gitlab/poll.go:62-88 | internal/forge/gitlab/poll.go:92-118 | internal/forge/gitlab/poll.go:124-162 | internal/forge/gitlab/poll.go:166-192 | internal/forge/gitlab/poll.go:196-222 | internal/forge/gitlab/poll.go:227-253 | internal/forge/gitlab/poll.go:257-283 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/poll.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6133f39a2b95d843d073a3fc4a1599f6af52c07a92623d5ddbcf87cbf69383"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go:159-191 | pkg/behaviourtest/drivers/install/repopool_cfmint_stage.go:157-185 \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":"pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22bf80e8a6692e502e6f6e3b48dbad67027474fe8294e1a6f0b07ba6f57ad33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): pkg/behaviourtest/report.go:293-314 | pkg/behaviourtest/steps/debuglogs.go:1019-1036 \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":"pkg/behaviourtest/report.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fdd56aa335444a2622d11882bb4c417721ff926908444c989c76b40e7a77f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): internal/dispatch/gcf/gcp.go:291-309 | internal/dispatch/gcf/gcp.go:343-365 | internal/dispatch/gcf/gcp.go:767-785 | internal/dispatch/gcf/gcp.go:843-862 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6aefaabc7e2220ce3e2f206cebb02f63b12319ef9a55fe29be98b83550066f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/poll/state.go:624-647 | internal/poll/state.go:1421-1442 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/state.go"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ae434eb48aa9a51174136eca21babb75261588ca192911f61d16b0fbb9e597"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 20\u002B corresponding lines): pkg/behaviourtest/steps/dispatch.go:78-101 | pkg/behaviourtest/steps/dispatch.go:106-128 | pkg/behaviourtest/steps/dispatch.go:172-197 | pkg/behaviourtest/steps/owners.go:267-287 | pkg/behaviourtest/steps/reaction.go:62-81 | pkg/behaviourtest/steps/url_dispatch.go:147-169 | pkg/behaviourtest/steps/url_dispatch.go:174-196 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc16e1345f8ce92ad967d7153e2193402a85a933d6ba4ea53fe44d90d9d81a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/cli/reconcilestatus.go:217-242 | internal/cli/run.go:7169-7189 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/reconcilestatus.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fe3ce4b1a8aa1661a7c61fba6810fe4a65c7dd9936ccbbd0d51ca15dc7838d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): internal/forge/github/github.go:4233-4254 | internal/forge/github/github.go:4336-4357 | internal/forge/gitlab/mr.go:275-304 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":4233}}}],"partialFingerprints":{"codehealthFindingId/v1":"758b06c20cf1a071cd014108583631247c42ca2e2fc5e2b791bdb0e99810fa9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): internal/runtime/dummy.go:223-247 | internal/runtime/dummy_playback.go:88-106 \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":"internal/runtime/dummy.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8e5f8cb8ab3503cb2a359d9e37057db56bd6cac81e3b660891fb22d86c6129"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): internal/actorcache/actorcache.go:71-94 | internal/normentity/id.go:39-62 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/actorcache/actorcache.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c043d8322fe0cbed8b00b5ae391787491d5f9ce863b5a5d201152a0e04fd23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/forge/fake.go:3212-3237 | internal/forge/fake.go:3314-3339 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/fake.go"},"region":{"startLine":3212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff02ff1af925df8460500c6db39c89850b0ed8c9a6191d283118c110d64b68e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): internal/artifacts/measurements.go:31-54 | internal/artifacts/telemetry.go:55-81 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/artifacts/measurements.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8313e0b3f60160ddf7f73f06a90357f7a7d81ce881a664fc202465eec2ec4f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:325-354 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:249-274 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff21d2884da731ab4faba9c289bdea5c26d07f70c00b38ad5080998b8904296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/cli/issues.go:981-1005 | internal/sticky/sticky.go:172-192 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/issues.go"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55899e1b4a0a34c9a955efa7b98eaf1fcd22a876fbabde2124944c98c9a2a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/forge/gitlab/repo.go:1006-1034 | internal/forge/gitlab/repo.go:1041-1056 \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":"internal/forge/gitlab/repo.go"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"150121a4ddb7257387d5f44da0f536187238537dcec2bf4907312f13223884a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): internal/cli/agent.go:55-92 | internal/cli/agent.go:110-146 \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":"internal/cli/agent.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ea7d5dbaa00e34552153616fc263d340def748a20b90db02a56adeacaf7968"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/forge/gitlab/gitlab.go:289-304 | internal/forge/jira/client.go:500-515 \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":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e2ea90c3ca54791e0ac2c2de78ff331404b0e0ebc00e4c3f7103306c214ad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/forge/github/github.go:4063-4078 | internal/forge/github/github.go:4086-4101 \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":"internal/forge/github/github.go"},"region":{"startLine":4063}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d7fd37a45de29ad401f9025778085df188867c259d89e919a6a46671661a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): pkg/behaviourtest/steps/url_dispatch.go:94-113 | pkg/behaviourtest/steps/url_dispatch.go:123-142 \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":"pkg/behaviourtest/steps/url_dispatch.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa548634408920395ff40dc990401c2e8f62714f6ecf40b87ac5b3ef95652dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/cli/run.go:6868-6887 | internal/evalmeasure/find.go:136-157 \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":"internal/cli/run.go"},"region":{"startLine":6868}}}],"partialFingerprints":{"codehealthFindingId/v1":"70319a37e51e0137f837ab919d2c17aa58dc25698cf337db446644a3838ac8ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/dispatch/gcf/gcp.go:882-905 | internal/dispatch/gcf/gcp.go:972-994 \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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff542e66aef12c14b1ed094b08534530500913b8cb92e94ffeea7737a8a7d1ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/forge/gitlab/ci.go:821-840 | internal/forge/gitlab/ci.go:891-913 \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":"internal/forge/gitlab/ci.go"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b12b90c80736938b48ef07171db327b5a1143a9fccc2359248079e7e546436"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): pkg/behaviourtest/steps/fork.go:96-116 | pkg/behaviourtest/steps/fork.go:126-148 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/fork.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f58f6fd345487799315b8636f94ba3faeed74b64221a105beff4c9b76f85dd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): internal/fetch/audit.go:23-41 | internal/security/trace.go:112-131 \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":"internal/fetch/audit.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc90c12ff3682ccf7318f3499fdba66e029b15da7647e7e1e6d6f7a803bd61b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/jirapoll/convert.go:233-257 | internal/poll/convert.go:266-288 \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":"internal/jirapoll/convert.go"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdab002254685fe8ef8e732b307b91ade36781572507009ab8cbc9a8b5c06b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): internal/poll/legacy_mirror.go:129-149 | internal/poll/state.go:191-213 | internal/poll/state.go:347-366 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/legacy_mirror.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fd74d3051c84204959ee3eb3641c5830a6667abb7a77b32ddbb7c7f03fdb2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): internal/forge/fake.go:743-764 | internal/forge/fake.go:766-787 | internal/forge/fake.go:1234-1256 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/fake.go"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acb87c3cdf35bc0515193064951957d218198fe74a95ec73bda40d2cfb4683d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/cli/run.go:7197-7222 | internal/cli/run.go:7229-7250 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":7197}}}],"partialFingerprints":{"codehealthFindingId/v1":"213886075755fb03ddc781425d36865a34519c6762abf592828cebde5985fc13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): internal/forge/fake.go:1851-1869 | internal/forge/fake.go:1872-1890 \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":"internal/forge/fake.go"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"3300fe3933e358a443ed91e460371f8228c6cb05d13535264a12e7dba4ce430a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:20-87 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:18-67 \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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"959c6d95c94df4a98e1f5395311363918f99a7ec2a08ba0ceab49573cf4316ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:739-759 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:788-814 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"caba1e3ef85ad7150fc9c17c5ca60c2f5d62cbbb05d397707e0d4cf05625c595"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/repos/manifest.go:1238-1257 | internal/repos/manifest.go:1261-1283 \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":"internal/repos/manifest.go"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6570168acadd7d8554e5792bc67614dc52b4b7818e78959cd5e613608cc1b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): pkg/behaviourtest/steps/forge_state.go:80-95 | pkg/behaviourtest/steps/forge_state.go:99-114 \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":"pkg/behaviourtest/steps/forge_state.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a60748acbfd81e54a555724e9e4a40e6aaaf6aef710ab475df49ad7d415c43c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): internal/cli/run.go:8801-8830 | internal/sandbox/sandbox.go:2670-2688 \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":"internal/cli/run.go"},"region":{"startLine":8801}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e328b144264fbf718784d7959df6cda909ed4c8608fc6ee2e7c44ac608abda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/artifacts/telemetry.go:212-233 | internal/artifacts/telemetry.go:236-257 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/artifacts/telemetry.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2be531d0e88403be2ca55a6f372487e12d3561e4ee41898e6e9197bd6d01f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/poll/state.go:1480-1500 | internal/poll/state.go:1521-1545 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/state.go"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3fa3d3b78a8aab1b031e8d40642158f1ebab0f5332901a101f9efbca9e69c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:917-930 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:130-143 \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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1418b9fbef42649276a3289d87b025cefdd4e13fa8b4b0308cce3d72a1d9649"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): pkg/behaviourtest/steps/fork.go:280-306 | pkg/behaviourtest/steps/fork.go:332-357 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/fork.go"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dab1c8480bf1e8bd7c217bf993c97eb9b0aec2161f21d3092c2f176011cbe45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/repos/status.go:564-584 | internal/repos/status.go:588-604 \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":"internal/repos/status.go"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebe655c3b419874e37656988aaead50b99ef84ef92bfbe8841b5cf652f477ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/runtime/codex_progress.go:737-756 | internal/runtime/pi_transcript.go:192-216 \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":"internal/runtime/codex_progress.go"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"46209f758fb430757c2e3f898ba7f6db0e3f674326577d5a0db49c46943ed55e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/fetch/fetch.go:336-357 | internal/gcp/client.go:229-254 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/fetch/fetch.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a006cfa125cac5ce8a3a08d817117169b9d9cc41a87691eefeed5fc89fafaf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/runtime/codex_bootstrap.go:487-511 | internal/runtime/pi_bootstrap.go:951-965 \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":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"8562861b768f42981548cf5d7a0a1459b38321e7340bdf4b0d2aa60e01a8ee8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): internal/cli/run_gateway_route.go:724-744 | internal/cli/run_jira.go:749-765 | internal/cli/run_openai.go:1263-1279 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_gateway_route.go"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f939ab13b0412561e675075c5c5d0419cf0ab9470f64c9581d282f0a4cb3719"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/forge/fake.go:1258-1279 | internal/forge/fake.go:1281-1301 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/fake.go"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebe1428dbc7eaa46363714663f680244da564c8a78acfa0cb1bc146bd1695c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): internal/repos/preflight_read_cache.go:97-113 | internal/repos/preflight_read_cache.go:116-132 | internal/repos/preflight_read_cache.go:135-151 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/preflight_read_cache.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fbf3286792206d8c92600e329636e1e88e5f113a60da4c9f18ce4a6b1e7054"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/cli/gitlab_profile.go:651-660 | internal/repos/manifest_legacy_tracking.go:324-334 \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":"internal/cli/gitlab_profile.go"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f5887aec752df2938fe1cdb0a3b4cecb2413b56a21dc6d1031f21d3c2934cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/envmanifest/schema.go:248-259 | internal/envmanifest/schema.go:261-272 \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":"internal/envmanifest/schema.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c96c76d273fb101317fa6757fa4a5400bef072846c8f07148116d88070aadf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/evalmeasure/export_local.go:18-41 | internal/evalmeasure/export_local.go:68-83 \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":"internal/evalmeasure/export_local.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"279eb323839222e1f37b1d4ef0542457957f5e0fd7beb52a640fb6d8ab7df79c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/forge/gitlab/poll.go:37-56 | internal/forge/gitlab/repo.go:345-361 \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":"internal/forge/gitlab/poll.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e35df27429d2f5d559dc522ebce3fa0b1a493418f070c45b084ea84b8f5912"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): skills/nextwork/scripts/nextwork.py:1208-1220 | skills/topissues/scripts/topissues.py:318-334 \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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aeff172041659676d832d6ac4450adae1c83f07ca8b532398a1ba09c7954405"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/forge/fake.go:2610-2632 | internal/forge/fake.go:2636-2653 \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":"internal/forge/fake.go"},"region":{"startLine":2610}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d971f57c94260d3d998b7ac7bbd9f3c268301ae9d98cba628131307695155e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/cli/deploy_identity.go:58-72 | internal/cli/tirith_repo_policy.go:197-209 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/deploy_identity.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6baddca10041ffbe2d073e44027c6c7727d708fa3f472d4e289b70c5c77e51d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:378-401 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:306-322 \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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d69651b7e328eb9fe3581c104c9217c186ea76532ac3826c1eaa325b3f462d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/cli/postreview.go:881-897 | internal/cli/postreview.go:903-915 \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":"internal/cli/postreview.go"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fa5330aaee0dcff4d0d4e96f0c9efcfaa72525ec4b66bd00b70fcfd08d533a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/evalmeasure/types.go:98-119 | internal/evalmeasure/types.go:122-143 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/evalmeasure/types.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bb9b5cbca6fc4fe04a0a9adf8aca8124eb451a2d9937efcb6a28f4dece42fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/forge/jira/client.go:818-829 | internal/forge/jira/client.go:915-926 \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":"internal/forge/jira/client.go"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d409171a4a67dd57f353daadefc2eb1ef76916dae94f15886d5ecd32728e88b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/runtime/dummy.go:284-295 | internal/runtime/dummy_playback.go:293-304 \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":"internal/runtime/dummy.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd16fd5e71e90151b4489cc5242dffb50908e6933135ed0b38cc23ed4810cfec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): internal/forge/gitlab/ci.go:1956-1973 | internal/forge/gitlab/hooks.go:39-52 | internal/forge/gitlab/service_accounts.go:98-117 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/ci.go"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a24cd7ba735aaf5f3b68c744d809137d9acc986d598f6a30eb7904fa3aa9052"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/forge/gitlab/hooks.go:212-224 | internal/forge/gitlab/hooks.go:258-270 \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":"internal/forge/gitlab/hooks.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5ee509f68a076516237053f97af9daa1be60f0a6fae44f7ba789d3734d0331"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/repos/manifest.go:1666-1686 | internal/repos/manifest.go:1702-1724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"8804653d8dc60064363277e324eedf5431d2585ff0c53b37c47e0b8c5a7d869a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): internal/runtime/claude_transcript.go:40-59 | internal/runtime/codex_transcript.go:281-296 | internal/runtime/opencode_transcript.go:75-90 | internal/runtime/pi_transcript.go:159-174 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/claude_transcript.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"022b5eebb683ad12ae1d623aa80a53dc2a53e5c2540639528b6ebe2d052bd8e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/cli/run.go:8469-8484 | internal/cli/run.go:8486-8501 \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":"internal/cli/run.go"},"region":{"startLine":8469}}}],"partialFingerprints":{"codehealthFindingId/v1":"939be2470be30225b7e41d506043b7dcb8db43c3d26262c4f56139549129e249"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/mintcore/github.go:846-861 | internal/mintcore/github.go:866-881 \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":"internal/mintcore/github.go"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e88196567c55cd262fe0a5cf2eb99976760ed618e6241f49c7d869cc0ba76f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/harness/compose.go:2571-2588 | internal/harness/compose.go:2595-2612 \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":"internal/harness/compose.go"},"region":{"startLine":2571}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2f0dc5e614f18e67a43a9624d8fee152478ba2bddd18410e9f8e367573e365"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/forge/fake.go:916-930 | internal/forge/fake.go:932-949 \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":"internal/forge/fake.go"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a7b9e47257a84d82ce67d3209ba247785aa5e44777e6fa4f345ec50faa982d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/runtime/dummy.go:312-325 | internal/runtime/dummy_playback.go:320-336 \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":"internal/runtime/dummy.go"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a34e97030123425bfccb799abf56f5244ce4648628a1c9c100c75b17235dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): internal/security/hooks/ssrf_pretool.py:643-669 | internal/security/hooks/ssrf_pretool.py:673-707 \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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab476bb09cec1767cbc75a1df227a721a36280edc8e45fb2e6b734167ebbc2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:694-708 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:720-737 \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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee554b49f50b0258a434d2181abb2a47212de15035e857be8d0e5267d8c96737"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): pkg/behaviourtest/steps/reaction.go:83-101 | pkg/behaviourtest/steps/reaction.go:103-117 \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":"pkg/behaviourtest/steps/reaction.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"97aa64879aba29aad32c79b239466cf9abca7e776f845975754e78272c9b8429"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): internal/forge/github/github.go:3308-3322 | internal/forge/github/github.go:3375-3389 | internal/forge/github/github.go:5452-5472 \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":"internal/forge/github/github.go"},"region":{"startLine":3308}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7e6f3704f075555587f0c269da757e2ef4a6b2e7c6ac20b14ea9641c87a394"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/forge/gitlab/ci.go:776-795 | internal/forge/gitlab/ci.go:798-811 \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":"internal/forge/gitlab/ci.go"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1947d1fe341a0a7b46465dd29e5904970f51ba4c39869cd6679194a8f7baf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/forge/gitlab/poll.go:438-453 | internal/forge/gitlab/service_accounts.go:254-269 \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":"internal/forge/gitlab/poll.go"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c763130b490e344272605d93bcc9d618a6facf2cc8ddcd306c293b9655d4d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/cli/github.go:858-881 | internal/repos/config_preset.go:72-91 \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":"internal/cli/github.go"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"282690bfda7e5c807e17af8c9a0814a845faef9bc2a08127fba70e96b4d315da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/forge/fake.go:2271-2287 | internal/forge/fake.go:2697-2718 \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":"internal/forge/fake.go"},"region":{"startLine":2271}}}],"partialFingerprints":{"codehealthFindingId/v1":"700e571aa824ad968b021639f6743d64a22d92c4386100bb7b8630316802b72e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): internal/forge/github/github.go:3424-3435 | internal/forge/github/github.go:3479-3490 | internal/forge/github/github.go:5476-5487 | internal/forge/github/github.go:5621-5632 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":3424}}}],"partialFingerprints":{"codehealthFindingId/v1":"917d677588e60ac007175a415ca9ea17896d5ff8899a3c950f42ff00ee7ba492"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/repos/gitlab_trigger_job_templates.go:39-49 | internal/repos/gitlabci.go:324-336 \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":"internal/repos/gitlab_trigger_job_templates.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"affa990f40e2a7cc387f607078cf392a40a7c5bddfaefd83f769f0afc8812ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/runtime/codex_run.go:760-769 | internal/runtime/pi_run.go:1367-1374 \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":"internal/runtime/codex_run.go"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"170c302d0e69da63410f234ddafd46261bfd99f3333a381b464b52193fbad71e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): internal/cli/run_jira.go:662-667 | internal/cli/run_openai.go:318-325 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_jira.go"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"d060d91a2fe09542ea0121f9007793dbb8d0088fbd03b280af90ddbe2233c90d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/forge/fake.go:1892-1913 | internal/forge/fake.go:1915-1931 \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":"internal/forge/fake.go"},"region":{"startLine":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"54aa8451d6e5bd032edcaed2277519eb37cc859ba70068d9498bbccaf2f5d2e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/forge/fake.go:2342-2354 | internal/forge/fake.go:2372-2384 \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":"internal/forge/fake.go"},"region":{"startLine":2342}}}],"partialFingerprints":{"codehealthFindingId/v1":"989c240cd5c209dfe8d8639d798a4b26e9b8a9f38256c4416bdc75530be25a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/repos/gitlab_trigger_account.go:1220-1236 | internal/repos/gitlab_trigger_account.go:1616-1630 \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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cfab6510be5f80c0e30f735aac3171e879921139d2ab3a7346e9e27d62af2a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/repos/manifest.go:1858-1874 | internal/repos/manifest.go:1878-1891 \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":"internal/repos/manifest.go"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93805d1adf5a9b0fdb5ea0bf5f3fc5ff9050df572f86a9d4819d8fe426944b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): internal/forge/gitlab/ci.go:232-248 | internal/forge/gitlab/ci.go:292-304 | internal/forge/gitlab/ci.go:355-371 | internal/forge/gitlab/ci.go:520-532 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/ci.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e99651182bf9872895e3cff8226708b8c286154daa4ef772bcecfe5c7785cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/repos/gitlab_webhook_status.go:283-295 | internal/repos/status.go:542-554 \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":"internal/repos/gitlab_webhook_status.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"a842f43a9d32baa73f3db1ae232838278d62ce50c9f1bdb70521c90d721a178e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): skills/nextwork/scripts/nextwork.py:1247-1254 | skills/topissues/scripts/topissues.py:338-349 \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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"072c1950cb1e0dded9f0bf82df22c7f679822575ad5edcd68c467157831eed26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/dispatch/gcf/gitlab_wif.go:93-105 | internal/mintcore/wif.go:16-30 \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":"internal/dispatch/gcf/gitlab_wif.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca76f391860d97b58eade024c5d9576557a3c758dc8d98e574f33cf98d59fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/forge/gitlab/repo.go:698-713 | internal/forge/gitlab/repo.go:805-818 \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":"internal/forge/gitlab/repo.go"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6316d1b84cc0f96a5d74a2f69c02f5c9e5e2b2a7f29ee11caabc4cc65f2422c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/harness/harness.go:1377-1396 | internal/urlutil/urlutil.go:61-80 \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":"internal/harness/harness.go"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"5712ef45f2021ea0fc106783e78ba6b4a4b13e9863e291b45c585da8b6d234c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/repos/gitlab_jira_poll.go:229-242 | internal/repos/gitlab_trigger_schedules.go:597-606 \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":"internal/repos/gitlab_jira_poll.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4ff7ada5f29773dd654c28eabb9e90e0dafb7aa62c2a81809a13b76a122d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): pkg/behaviourtest/steps/gateway.go:203-217 | pkg/behaviourtest/steps/runner_secrets.go:78-92 \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":"pkg/behaviourtest/steps/gateway.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3629d9e9be8214d9f32358c58646eb40ee8f487c2266798a61edb129def66f35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/cli/repos_gitlab.go:474-486 | internal/gitlablifecycle/trigger_account.go:108-118 \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":"internal/cli/repos_gitlab.go"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"210272bd96561c05a772ef11a97a2fa6ddd24f0c6fb37129ff271e62a15491bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/forge/github/github.go:2677-2689 | internal/forge/gitlab/repo.go:677-688 \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":"internal/forge/github/github.go"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb589fd523bb892c9ae1641a48731180a23cb48ea2e82703c9fcdf29c672e2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/poll/state.go:1688-1705 | internal/poll/state.go:1709-1729 \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":"internal/poll/state.go"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"15601d04cced49ae6e4de825a97ced1a08da733d5bb7aa3ac8188650f7bd7b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/repos/gitlabci.go:1366-1381 | internal/repos/gitlabci.go:1385-1400 \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":"internal/repos/gitlabci.go"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73c2741416db66214b295e28adaf26d08f2a76536e3b9a404b800c44c2d312e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): pkg/behaviourtest/steps/dispatch.go:407-424 | pkg/behaviourtest/steps/dispatch_count.go:19-36 \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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"65513e9f535aa410f76be5530e4202da3d72a8e9b67be4a8357ce75f881a5514"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/cli/issues.go:883-904 | internal/cli/issues.go:924-940 \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":"internal/cli/issues.go"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"4549cd23f054834c4e34d135fad3a2e5c685c7b190e680fad044fd08777dc7ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): internal/forge/fake.go:846-867 | internal/forge/fake.go:1414-1432 \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":"internal/forge/fake.go"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7383d20a98bc0c37ce762ef96957629bf56b5f75d73318ccd12a538f9d6522b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/forge/github/github.go:3680-3692 | internal/forge/gitlab/issue.go:181-192 \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":"internal/forge/github/github.go"},"region":{"startLine":3680}}}],"partialFingerprints":{"codehealthFindingId/v1":"409990e5c101b39376f18f4e14f5adacbe9a7e7a605f8d9b10472233db832c50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/repos/gitlab_pipeline_access.go:187-204 | internal/repos/gitlab_poller_retirement.go:338-355 \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":"internal/repos/gitlab_pipeline_access.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc70b504bf4f35590d298b7519247cfb789ae4b3534e857fd572d8ca2f763fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): internal/repos/gitlabci.go:1068-1081 | internal/repos/gitlabci.go:2016-2027 | internal/repos/manifest_set.go:1226-1237 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlabci.go"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee29e83e87dae2f6a1813fe666ce466013ddbb5e14fa9ab7d4b3383b2297336"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): pkg/behaviourtest/drivers/install/slotgc.go:280-289 | pkg/behaviourtest/drivers/install/slotpool.go:1077-1086 \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":"pkg/behaviourtest/drivers/install/slotgc.go"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb94ec66d7a5526c8f18fc5c302545c305bec5452f8e6d08de59d4c66b0fb74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/cli/lock.go:193-203 | internal/cli/orgconfig.go:68-79 \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":"internal/cli/lock.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f62ad36ec2e3feabc4fecefb04816bb3e94f5f67db485ba4d554a67faa0a461"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/envmanifest/schema.go:309-330 | internal/runtime/opencode_bootstrap.go:337-352 \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":"internal/envmanifest/schema.go"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a76fd59ed553dfd4f71e345a70a3961604634b9c3519c83602dd06e3b50b958"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 14\u002B corresponding lines): internal/forge/fake.go:1791-1804 | internal/forge/fake.go:2021-2036 | internal/forge/fake.go:2048-2061 | internal/forge/fake.go:2063-2078 | internal/forge/fake.go:2089-2102 | internal/forge/fake.go:2181-2194 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/fake.go"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48af2dd98ed5c24ec0bb25dbf06089453265ab414c2774cb047b2e7a6882183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/runtime/codex_bootstrap.go:381-396 | internal/runtime/pi_bootstrap.go:472-487 \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":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"66917fb13b1c7f8cae494f25bc896e079b854b4961adcedc70fa4926560f2eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): skills/adr-corner/scripts/adr_corner.py:452-464 | skills/topissues/scripts/topissues.py:399-418 \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":"skills/adr-corner/scripts/adr_corner.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"124822aa0917306a00d8d840b12a2ae9ffccff282d6adeea4bd83fd8552f58d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): internal/cli/run.go:6175-6186 | internal/prescript/prescript.go:307-323 | internal/runtime/codex_run.go:68-79 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":6175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6001cf935f44b8bac3f636100e676de4b8f99e40965991ef822cc687e5099ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/e2etest/testutil.go:545-555 | internal/e2etest/testutil.go:558-572 \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":"internal/e2etest/testutil.go"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9068c0b25ce83fbf1a574fcc16de49431dd3cee694540f86c5e39ee4ddd018b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): internal/repos/gitlab_pipeline_access.go:376-394 | internal/repos/gitlab_pipeline_access.go:400-420 \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":"internal/repos/gitlab_pipeline_access.go"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8086a033b9cfdb46e2f41bccafebee0fd14322919f9019ca562b8c1f9799c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/dispatch/gcf/provisioner.go:1133-1146 | internal/dispatch/gcf/provisioner.go:1150-1165 \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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"4373d9377faac416360b9e65c7d8e774087fde24b7fc37b97cc6787f22f2896b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): internal/envmanifest/manifest.go:81-93 | internal/repos/converge.go:2023-2037 | internal/repos/gitlab_roles_rotate.go:2004-2015 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/envmanifest/manifest.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d6483ae36524fb75046bbb9e69d7e4a114cfe2c80a98238e1dda7e5d29a387"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/cli/runner_secrets.go:334-347 | internal/cli/runner_secrets.go:487-503 \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":"internal/cli/runner_secrets.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ffe838b7a59d202114f0902011bffda9c3e36f2b122a68eb793baa1f31731d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/repos/gitlab_webhook.go:83-94 | internal/repos/gitlab_webhook.go:1752-1766 \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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"1390b9d23dde17115761c7c9f57c0d88fa4ade7ac153939aafb429dad1d9ffc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/forge/jira/client.go:805-813 | internal/forge/jira/client.go:904-912 \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":"internal/forge/jira/client.go"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd40255dcd23c2d1ab793157cbd7aaad0b5562531f4be3d92d42a164eade48a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/repos/gitlab_webhook.go:1893-1904 | internal/repos/gitlab_webhook_poller.go:237-251 \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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1893}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df2acb4fa24ca0cc62a264006cc7c50bb87179d34221dbc7c56542b073b82de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): pkg/behaviourtest/steps/actors.go:106-119 | pkg/behaviourtest/steps/actors.go:126-139 | pkg/behaviourtest/steps/actors.go:162-174 | pkg/behaviourtest/steps/actors.go:177-187 | pkg/behaviourtest/steps/actors.go:222-235 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/actors.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05b640907f521be093ed79de59f9aa6766e5943d544c6c199d265e051fa4d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/forge/fake.go:2668-2681 | internal/forge/fake.go:3344-3360 \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":"internal/forge/fake.go"},"region":{"startLine":2668}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e662580810fad0b0e9a5743d2343d4ef5a6a849c3685990ace2ff7e96270cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/runtime/dummy_playback.go:634-641 | internal/runtime/dummy_playback.go:645-652 \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":"internal/runtime/dummy_playback.go"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00051b8b45d01f27359d2094c3b6dee60f4517ebc55983ce4887a439bc7bbe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/layers/layers.go:104-114 | internal/layers/layers.go:146-159 \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":"internal/layers/layers.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f1c3d0e6efa7428a279598143a246752f00ee6992bd5d5dc8dacfb4c377997"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): skills/adr-corner/scripts/adr_corner.py:468-478 | skills/adr-corner/scripts/adr_corner.py:499-509 | skills/topissues/scripts/topissues.py:353-367 | skills/topissues/scripts/topissues.py:378-395 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/adr-corner/scripts/adr_corner.py"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb89d752da1a7b4db87f978be3c65744b9d22f2c749fd62c7a2ae42ad1b8b72d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/cli/agent.go:94-108 | internal/cli/agent.go:148-162 \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":"internal/cli/agent.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c68d7d481ccc597724e38611cb7eec32bc77a562e953c65dbb0ff5ceabb831"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): pkg/behaviourtest/drivers/jiramock/server.go:455-470 | pkg/behaviourtest/drivers/jiramock/server.go:472-494 \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":"pkg/behaviourtest/drivers/jiramock/server.go"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4b407470782560236e6268e36255d1e9175002ef1371aa7659989702ff081e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/cli/gitlab_profile.go:686-695 | internal/repos/managed_config_adoption.go:99-110 \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":"internal/cli/gitlab_profile.go"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dce749844d646f9b11c35a1955ca4b9cd2e06d5b9ac3657135f41099f82f8d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/cli/repos_gitlab.go:336-345 | internal/cli/repos_gitlab.go:399-410 \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":"internal/cli/repos_gitlab.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"860f41decbac2e8599f78e777833a052e8131ee8df599dd9b454efe603d01bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): internal/cli/repos_gitlab.go:462-468 | internal/cli/repos_gitlab_service_accounts.go:301-307 | internal/gitlablifecycle/trigger_account.go:68-74 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos_gitlab.go"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2aa2708fb473f2b689e85cd21899b74e4e186a558a7c9e062b51d518e363f03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/forge/fake.go:1523-1535 | internal/forge/fake.go:1603-1618 \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":"internal/forge/fake.go"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc36445acc3889201d1a37620083ccd0052f67c435d757065864fe767053e378"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): internal/gitlablifecycle/trigger_account.go:143-155 | internal/gitlablifecycle/trigger_account.go:159-171 | internal/gitlablifecycle/trigger_owner.go:797-809 | internal/gitlablifecycle/trigger_owner.go:813-825 | internal/gitlablifecycle/trigger_owner.go:915-927 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlablifecycle/trigger_account.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3e6b80b12e4328f22e5f802646cdbee1eee738eab2cb5c10434ffe9d6c355d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/gitlablifecycle/trigger_owner.go:293-303 | internal/gitlablifecycle/trigger_owner.go:447-457 \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":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"923f1f5dbe1e5d55899bf1f55e5886848d7bad3577a6378af6a06ffcd9ef6726"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/tracker/forge_client.go:87-101 | internal/tracker/jira_client.go:210-221 \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":"internal/tracker/forge_client.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2044beda785fdfd63139f7ceae4f80807dbc7b538310060de20cc8cfd92ab9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/config/config.go:951-1021 | internal/config/config.go:1130-1147 \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":"internal/config/config.go"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"f380cf84a738ae5ec9993c59baf0c51c4348dd84d5847802d57d3ba7d5403d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/forge/gitlab/ci.go:1371-1380 | internal/forge/gitlab/ci.go:1479-1491 \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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aeda28c068c7fbd7ab4cd332408d5d8ea7b1d61c35210c5202b9e0271513101"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/poll/state.go:1855-1868 | internal/poll/state.go:1880-1893 \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":"internal/poll/state.go"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"458047b40f4a4ee156a168a1ffbc188502de3aa08572e9dd7bf3c29836956af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:286-305 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:307-323 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:873-889 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:901-917 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5296470558990725b50f8df29562ad44aa82f96cfd1b088b80cac0b795f6071"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1552-1559 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:640-647 \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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67ea811b69505f55cc4525d516423d3ff07f55336fd63a20715dfdb09b375bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/cli/run.go:8241-8252 | internal/cli/run.go:8279-8290 \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":"internal/cli/run.go"},"region":{"startLine":8241}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb49497a2d89aab780eb6ef83b18d35954e4ca0de7c196a4a74304c6f720ceb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/config/managed_safety.go:290-307 | internal/forge/fake.go:1778-1789 \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":"internal/config/managed_safety.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0850e1cbe29c5a3ecf8854645083fba3e7502ef2e4344069580fd9225537c03c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): internal/forge/gitlab/issue.go:146-154 | internal/forge/gitlab/issue.go:159-173 | internal/forge/gitlab/mr.go:407-415 | internal/forge/gitlab/service_accounts.go:181-189 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/issue.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2f4db047f0359fb2f1921e4819ac62dcf967a0fd930752c1fb39c44fc4b2ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/security/redactor.go:204-245 | internal/security/redactor.go:247-269 \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":"internal/security/redactor.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02577512a96a249ad75d7c02ea7c78da6c96d5e9e39e653e9f8c78ce00a7de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): pkg/behaviourtest/steps/bot_role_probe.go:407-418 | pkg/behaviourtest/steps/mint_probe.go:683-694 \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":"pkg/behaviourtest/steps/bot_role_probe.go"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"39cef326eea6ed5bc576cfa023bdc434a5af63408ce122419d881c160d6e7716"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/cli/run.go:3739-3749 | internal/cli/run.go:4991-5000 \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":"internal/cli/run.go"},"region":{"startLine":3739}}}],"partialFingerprints":{"codehealthFindingId/v1":"365c56f6cd608225abb8edc1af050b80a9822c147d40f61929089343abd820f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): internal/tracker/forge_client.go:126-136 | internal/tracker/forge_client.go:140-150 | internal/tracker/forge_client.go:188-198 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tracker/forge_client.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4197a6aeb397945538582069e8c6469cb4b85e87d2381a36e4d04fd889d505"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:525-541 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:543-556 \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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"7167a90b23c7c665f20c2ec00cad679fbece9b6783b693abbad4e36c4531f796"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/cli/run_openai.go:627-640 | internal/cli/run_openai.go:647-659 \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":"internal/cli/run_openai.go"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3d41ca9489f13f8403b20bc591bbb6ba94ae14cfeafdab3ea88905de8b82f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/statuscomment/statuscomment.go:300-308 | internal/statuscomment/statuscomment.go:314-322 \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":"internal/statuscomment/statuscomment.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe6667624d3f9aa3eaff5e5c8f89608c771991ca74dc54871bd4ceb54c3a528"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/evalmeasure/export_otlp.go:347-358 | internal/evalmeasure/export_otlp.go:360-371 \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":"internal/evalmeasure/export_otlp.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e98b676e80ef2738931c7410a8b548ed5007070f5da4173f7cd705bab62e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/forge/gitlab/gitlab.go:406-415 | internal/forge/github/github.go:1133-1142 \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":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f069811dece393ed01e22e3c033237918acf3f3eb1c427ef8533ad0260d4a7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/dispatch/gcf/provisioner.go:1401-1408 | internal/dispatch/gcf/provisioner.go:1410-1417 \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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8f5d28ddbaa0c6814f744104484e2c2b5159708c5390218326a749e81265cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/forge/gitlab/ci.go:177-186 | internal/repos/gitlab_roles.go:320-331 \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":"internal/forge/gitlab/ci.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b92b270760ab0b61bfb4a85fbce973a11a6d2185651eac141608686bb5c6693"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/repos/gitlab_poller_generation.go:431-443 | internal/repos/managed_config.go:98-108 \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":"internal/repos/gitlab_poller_generation.go"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f4ec85f20548597d6d3dcc8b4aa100711381b94aa39297b74c6253e8b26d56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/cli/mint.go:145-157 | internal/runtime/pi_personas.go:596-610 \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":"internal/cli/mint.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9ae515c5b02d6e6ee68d3a48c6cecb227b5fc43323bf51fd77ba77547f1025"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/telemetry/fileexporter.go:316-325 | internal/telemetry/fileexporter.go:327-338 \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":"internal/telemetry/fileexporter.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"47649734a9b0a108ab54d9eea14393e1394f25d51a37a91043f11ecccac94c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/dispatch/gcf/gcp.go:955-964 | internal/gcp/client.go:208-216 \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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4eab8cef2477551eb89e20e746248c0fa67863a38fe114d58a88fbbb59c04d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/forge/github/github.go:923-932 | internal/forge/gitlab/gitlab.go:373-382 \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":"internal/forge/github/github.go"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"e185677ad43895d1ddaf6cad93ae86375634918b774ee93c441b37c589891414"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/forge/gitlab/deploy_keys.go:107-116 | internal/forge/gitlab/service_accounts.go:30-36 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/deploy_keys.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"edeeb613a17d638b252adb0279e5d61a9b48192927371b478243d9d039582f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/forge/jira/client.go:832-838 | internal/forge/jira/client.go:929-936 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/client.go"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c75c1ac18763837a8ce72ca9560075610f0ef697c716a55bd0e93ab84764d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): internal/repos/gitlab_account_deletion_safety.go:12-17 | internal/repos/gitlab_poller_credential_policy.go:14-20 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_account_deletion_safety.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3705fb0ed38462cd90c11fb079ace32448ef8c55fd1edcef25b6b80efc4484a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/repos/install.go:735-747 | internal/repos/install.go:749-759 \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":"internal/repos/install.go"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a2d1d77a3e702efec9f645b5113fe695d3b27d7ef5d78190154eb7266d8bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/cli/admin.go:191-204 | internal/repos/managed_config.go:476-488 \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":"internal/cli/admin.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dc3983d7aa535c8c2a13a9273d3a51fea0fae9773236447bd6cf86d26d24f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/repos/gitlab_trigger_jobs.go:111-124 | internal/repos/gitlab_webhook.go:1419-1432 \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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee8726e1db7dd615c59451b4abee008d544a1c7ca5bc75938a519895d6bfbc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/repos/gitlab_webhook.go:382-392 | internal/repos/gitlab_webhook_trigger_account.go:244-254 \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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3d54886b2f248365167b2065f05049c5d2dfe8531d6270883a25ed73c819e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): internal/cli/agent_openai.go:96-104 | internal/cli/run.go:7957-7965 | internal/config/agents.go:8-16 | internal/config/managed_safety.go:333-341 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/agent_openai.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"341b7f3670d3779877d8e77464112da4967374482399d1c385027ab3aaecbc9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/cli/issues.go:1011-1024 | internal/sticky/sticky.go:147-160 \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":"internal/cli/issues.go"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f9c0d0ef80a958d30737c31a2695c0dfa8359b23be7d0d3b208fa8418ae19e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/cli/persona_manifest.go:214-223 | internal/cli/run.go:6092-6101 \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":"internal/cli/persona_manifest.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fde065a6f1a790b928818f1c36b6eec0b6f789ecf968544fa40580056f79ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/normentity/id.go:27-36 | internal/actorcache/actorcache.go:60-68 \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":"internal/normentity/id.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4e38ffce37327f202148b9ebe302cc9d5843c2bf63b3e4cfcaf507f5f710d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/dispatch/cf/provisioner.go:172-178 | internal/dispatch/gcf/provisioner.go:186-192 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/cf/provisioner.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fec6d27da129c76bbdd45f57c6d339f40347bb95ed04ac500250b76534903f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/layers/layers.go:131-143 | internal/runtime/pi_personas.go:691-702 \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":"internal/layers/layers.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c0a4cddda93efb299ec5a54a6cb84c2433c9239a28dbc126f5c29e39acc5cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): pkg/behaviourtest/drivers/scm/parse.go:9-15 | internal/cli/resolvemrsource.go:67-73 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/scm/parse.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0654904671c9a0fb4896600288e52b8265577936f0a28f0c17e908d9f98b94fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): pkg/behaviourtest/steps/dispatch.go:619-625 | pkg/behaviourtest/steps/fork.go:417-424 | pkg/behaviourtest/steps/triage.go:201-215 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"279a812a7188db8427780781dc9afb900a9451ab03ceb513c54bc4f41a5e8db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/tracker/forge_client.go:105-116 | internal/tracker/jira_client.go:240-248 \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":"internal/tracker/forge_client.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e933b3ecd2b4a14d9b1998ccb9e5cf1009530292dc03e951ef41c4ea9609be5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): internal/mintcore/config.go:10-21 | internal/mintcore/foreign.go:19-30 | pkg/behaviourtest/drivers/env/env.go:48-56 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/config.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcac355645cb110eae54d02c305a37d082d3c795f3849cc98b9d606d1150603"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/repos/gitlabci.go:2032-2041 | internal/repos/openai_wif.go:193-202 \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":"internal/repos/gitlabci.go"},"region":{"startLine":2032}}}],"partialFingerprints":{"codehealthFindingId/v1":"77903dfe78e515a8905c5a7c51e451eed224460c2300f1fe9fbb975aabb325e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/cli/gitlab_profile.go:640-647 | internal/config/config.go:433-440 \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":"internal/cli/gitlab_profile.go"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"4020f1a36bd2f893159586ee2326a22bc2925118dd4cf09b6990737209cfbab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/cli/run_gateway_egress.go:223-232 | internal/cli/run_jira.go:318-327 \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":"internal/cli/run_gateway_egress.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac7dd25b254a18eef8f491965e41755c6fb3d1fe8b4570e7f227ed2656c3f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/forge/github/github.go:1145-1152 | internal/forge/gitlab/gitlab.go:417-424 \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":"internal/forge/github/github.go"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91399a8f0c151c5d7c8ae3034e706c800abf6037b96540ceed079867ecb227d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:237-246 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:832-841 \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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a3241622d5118d71a315dcae2fb4a08fca0e1cc8351d35606b47637d73796e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/cli/dispatch_route.go:122-129 | internal/harness/forge.go:58-65 \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":"internal/cli/dispatch_route.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe298b71623bdc7fc26f5f474b43119611f32daf355cced7a7b138e2c0e254e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/forge/gitlab/hooks.go:100-106 | internal/forge/gitlab/service_accounts.go:158-164 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/hooks.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba20ec7daf674c98eb9ffa0c84997ed6765a30d483589d09bf81d7e79d2f1bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/sticky/sticky.go:338-355 | internal/cli/run.go:4608-4617 \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":"internal/sticky/sticky.go"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"897a94ec7f1ef30c224bcf52abe58c0845aea59b99289320cdba4a72a5474cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): pkg/behaviourtest/steps/bot_role_probe.go:514-520 | pkg/behaviourtest/steps/mint_probe.go:807-813 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/bot_role_probe.go"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6e5cc5241db2336e747abebee832cca964f71a0a50e811e0f76ab09eb65714"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/cli/runner_secrets.go:321-330 | internal/mintcore/handler.go:896-908 \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":"internal/cli/runner_secrets.go"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ae836c6cfbdfe00ec3c26aefb9c1fe14db33e6ecef17f56ef99228043231bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/poll/webhook.go:606-613 | internal/runtime/pi_progress.go:187-194 \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":"internal/poll/webhook.go"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9a932755ca21e97824747fa66a63b03ee0f491c3a089f4a7afc433cbf91d78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/repos/gitlab_poller_retirement.go:265-271 | pkg/behaviourtest/drivers/install/mint_groups.go:101-107 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_poller_retirement.go"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03faa3efb5fb6ef963cbee831385fd9663834e809271ebc6f6e565c24f94d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): pkg/behaviourtest/drivers/install/common/setup.go:351-360 | pkg/behaviourtest/steps/mint_probe.go:573-585 \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":"pkg/behaviourtest/drivers/install/common/setup.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"deee111927578439e6878f016ba41e6d3e22e148352ffc7ebac051adf7d6276b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/binary/download.go:225-232 | pkg/behaviourtest/steps/cleanup.go:438-445 \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":"internal/binary/download.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e34e8537122fe5f36dcda1f265aa743770aa7b070b9a49e4a6cd0c2f1e7b07b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): internal/cli/fetchserver.go:86-92 | internal/repos/gitlab_roles.go:206-212 | internal/repos/gitlab_webhook.go:1852-1858 | pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go:226-232 | pkg/behaviourtest/steps/mint_probe.go:483-489 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/fetchserver.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f2260e12bb3c0c7c9e0162ae1817f7cd5f2c016c96c1deba1317308fdc2866"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/cli/skill_staging.go:96-105 | internal/harness/skill_entry.go:120-129 \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":"internal/cli/skill_staging.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f730ec5297339a9be7964ed67440df61ddd9a9a557cb109d3703a096d6340419"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): internal/config/legacy_tracking.go:301-305 | internal/repos/gitlabci.go:1360-1364 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/legacy_tracking.go"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9160df351b74741790d8860a701b549b04e9748425d8989976a1ac33f9c2ca98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): internal/runtime/pi_edit_repair.go:54-58 | internal/runtime/pi_run.go:963-970 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_edit_repair.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"08257b8ec7b615d7d03af1ecd58c2ed731e1162c522cf4f64f0b293781d71bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/cli/agent.go:972-980 | internal/config/managed_safety.go:312-320 \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":"internal/cli/agent.go"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3517f653635debb0eba05da1ebde8993b2ce943c4dab92c9fe5c60225a2f0e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/forge/gitlab/gitlab.go:263-271 | internal/forge/jira/client.go:469-477 \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":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a8299fbee705ac0b81bcc32b2071cc8bd46dfe9ed20f77c8af6b6224ae6511"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/harnessdispatch/enumerate.go:137-143 | internal/harnessdispatch/killswitch.go:6-12 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harnessdispatch/enumerate.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23097e556b075defdedf6ea34c99db4e2afcee3351cbd7218018e719e76b9b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/poll/convert.go:371-379 | internal/repos/gitlab_roles_rotate.go:1994-2002 \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":"internal/poll/convert.go"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"54740292b33bbc33499dd10c47f6f1bb268f6f7ef9f48ea89bbc23b4b868118d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): internal/appsetup/appsetup.go:669-674 | internal/repos/gitlab_webhook.go:2658-2663 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/appsetup/appsetup.go"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"f025a85251a911992c28d97ccc080a7c5b9ba00fc0b1d5bc4d01331ba5106e7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go:133-150 | pkg/behaviourtest/drivers/install/repopool_cfmint_stage.go:137-148 \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":"pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4022fbec1ca2dda17806259bddc894357b204ebddf07da7f028be9825bfd4a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/behaviourfail/behaviourfail.go:139-146 | internal/cli/run_openai.go:177-184 \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":"internal/behaviourfail/behaviourfail.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ea535ad552f3e10287ae014feacb9b20250158f50679ab1854b59f47cce03c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/cli/admin.go:1263-1271 | internal/mintcore/github.go:999-1005 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/admin.go"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7f2c0e47a546d9c480bf4f4d981f64bcc78137596b44f1eb94c9d92e8142a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/evalmeasure/types.go:164-172 | internal/repos/gitlab_roles_rotate.go:1951-1959 \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":"internal/evalmeasure/types.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"364e30eba8a38848e1c9e5f3d998c83682b7ddf6c900d0a97d14636763afa3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/jirapoll/poller.go:78-85 | internal/mintcore/bot_role.go:47-56 \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":"internal/jirapoll/poller.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76ae6dfd389d501cc37cf2015b37974902657fbe0b1327f2b84ba410a191d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/repos/manifest.go:1894-1904 | internal/repos/ref_ops.go:254-264 \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":"internal/repos/manifest.go"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8be7795f1909eb14a4c94448097e69362e3bfb794496337320e68227ff5859"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/runtime/claude_progress.go:709-718 | internal/runtime/opencode_progress.go:11-19 \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":"internal/runtime/claude_progress.go"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fcb295bf3233efda0cbcbeb26774209aee0ce31f61d0882a0992acd3556a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/agentnew/spec.go:36-42 | internal/harness/harness.go:524-530 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agentnew/spec.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"92513c2120a9feddb2bf3ee7bbca340508d7d7eb009cc3ce4b327f8e11aba7e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/cli/admin.go:159-165 | internal/e2etest/auth.go:70-76 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/admin.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c3d04808ef48c502821228f88e2cb4305f970ff260b6e61c0d360563f75c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/cli/run.go:367-373 | internal/cli/run_overrides.go:146-152 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee0ca7116120c7729dca290af178f9d69049e308d5bc45f62283936a98ae40f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): internal/repos/manifest_set.go:452-454 | internal/runtime/dummy_playback.go:573-575 \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":"internal/repos/manifest_set.go"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89b6d9c6a1ef075a700d38724f3d7328f35151f0f31ef740ea662018005b142"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): internal/cli/run_gateway.go:104-107 | internal/runtime/codex_gateway.go:150-153 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run_gateway.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dade82b577692f8b5f25f36e765116765d8b11f62a7128d2cf3e8a099044fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): internal/cli/dispatch_botrole.go:67-72 | internal/harnessdispatch/auth.go:116-120 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/dispatch_botrole.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"88487b4c173d4abe801e72e37570c0d7acd9543a9865f220d888eec994c055d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/dispatch/gcf/provisioner.go:1178-1188 | internal/repos/gitlab_roles_rotate.go:1831-1841 \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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8193469afbf630dcccd787b939367dc287cf282f52ae92665ce2aa7f86310f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): internal/cli/run_gateway_route.go:224-226 | internal/cli/run_jira.go:421-423 \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":"internal/cli/run_gateway_route.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65ad89f8202d4e3fc5e8d5c5305863f5bb5116ce07c5cf54ceaed1cf432e32e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201353 lines \u00D7 2): internal/e2etest/testutil.go:141-193 | internal/e2etest/testutil.go:222-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/e2etest/testutil.go:140\u0060 calls \u0060logf\u0060 and \u0060internal/e2etest/testutil.go:221\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":"internal/e2etest/testutil.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"90572ab3dda28711fa5e78adafc4ac653e0939481332cdac45600373a2fefacb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201339 lines \u00D7 2): internal/cli/run_jira.go:680-704 | internal/cli/run_openai.go:1157-1195 \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 \u0060internal/cli/run_jira.go:680\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":"internal/cli/run_jira.go"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f94cfa2a98442262c8fef7ec3ece97b9d02aa179d47e3a1d0f07696e4d99815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 2): internal/forge/jira/adf.go:867-903 | internal/jirapoll/discover.go:439-476 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/adf.go"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"8251c925ff0181b96c15dd4b5ff699ed8a55b64f509fa6dcd403eef759e55781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:587-655 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:920-988 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"87be2c81e14bb3fa15a1d3363a867f5fed28296fd8574e18762d07ffc7d410a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): internal/resolve/resolve.go:570-605 | internal/resolve/resolve.go:678-713 \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":"internal/resolve/resolve.go"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4653dfb65288490e179eb9d3d69143c7f083d7203686050ad9f86bc2f9a534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): internal/repos/gitlab_roles.go:865-897 | internal/repos/gitlab_roles_rotate.go:2126-2158 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_roles.go"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"0058a855811a18dc2f14aa79721bbdbbb6b880a150f1ef11c59651b37ec108e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201331 lines \u00D7 2): internal/runtime/codex_bootstrap.go:132-162 | internal/runtime/pi_bootstrap.go:205-232 \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":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbba6a03cdb8e42febe148b514c8666784197b9a94f89c0668feec616e64bfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): internal/cli/foreign.go:40-68 | internal/cli/foreign.go:271-299 \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 \u0060internal/cli/foreign.go:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/cli/foreign.go:300\u0060 calls \u0060label\u0060 and \u0060internal/cli/foreign.go:70\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":"internal/cli/foreign.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e49a7c4160c8fbadbf82163f1b73e5e5285a29a24552c339a6f0bcf11c5f174"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): internal/dispatch/gcf/gcp.go:660-686 | internal/dispatch/gcf/gcp.go:714-740 \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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ea7c62b16964ae85831983ed250b88359ecb9258137e88525cb67329384879"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): internal/e2etest/testutil.go:305-330 | internal/e2etest/testutil.go:355-380 \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 \u0060internal/e2etest/testutil.go:305\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, \u0060internal/e2etest/testutil.go:304\u0060 calls \u0060logf\u0060 and \u0060internal/e2etest/testutil.go:354\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":"internal/e2etest/testutil.go"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"34364456adb29e7e683e6838785e7da5447dbf50b710342b1af1f92a097e5147"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): internal/e2etest/testutil.go:262-286 | internal/e2etest/testutil.go:373-393 \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 \u0060internal/e2etest/testutil.go:262\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/e2etest/testutil.go:261\u0060 calls \u0060logf\u0060 and \u0060internal/e2etest/testutil.go:372\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":"internal/e2etest/testutil.go"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8cff605e8009ae35424a612dae4c4eb01c00df64adc85e15b40cfdd3acb06d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): internal/harness/compose.go:2205-2229 | internal/harness/compose.go:2418-2440 \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 \u0060internal/harness/compose.go:2205\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":"internal/harness/compose.go"},"region":{"startLine":2205}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a69a773c67c67d77bfa76a37d34b4b6bc5d37ea5e7c70372889756025c7ffa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): pkg/behaviourtest/drivers/scm/github/github.go:132-155 | pkg/behaviourtest/drivers/scm/gitlab/gitlab.go:123-146 \u2014 \u0060pkg/behaviourtest/drivers/scm/github/github.go\u0060 and \u0060pkg/behaviourtest/drivers/scm/gitlab/gitlab.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 53 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/drivers/scm/github/github.go:132\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":"pkg/behaviourtest/drivers/scm/github/github.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"101bbf44ae2d359c4b8f82f9ad9655e230212a6ed68abe106c6ae2dbe04a49bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): internal/config/interfaces.go:807-829 | internal/config/interfaces.go:840-862 \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":"internal/config/interfaces.go"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"1841f13ee802bf1c695fa6ccee40a8adcbb79a4dcba250357f77f20a1863179f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): internal/fetch/fetch.go:337-357 | internal/gcp/client.go:232-254 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/fetch/fetch.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a231dab52d9187a58347c9e793a2690d46a02e26cf75c7f4774830624d3198"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): internal/cli/mint.go:2125-2145 | internal/cli/mint.go:2207-2227 \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":"internal/cli/mint.go"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"93fb4baf8813f264cc4fe79fb29942dde6563ce101727ce98144df09e5556048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): internal/e2etest/testutil.go:201-221 | internal/e2etest/testutil.go:332-352 \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 \u0060internal/e2etest/testutil.go:201\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, \u0060internal/e2etest/testutil.go:194\u0060 calls \u0060logf\u0060 and \u0060internal/e2etest/testutil.go:330\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":"internal/e2etest/testutil.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de2d7a0a53baebc5a1f1564f015c14ed49f1bfdd5037a6f488c262b82c66792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): internal/harness/compose.go:1103-1123 | internal/harness/compose.go:1306-1324 \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 \u0060internal/harness/compose.go:1103\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":"internal/harness/compose.go"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdba7b34ea67274c9850cc9da38a2f7440c0fbd5a62d54e9fc9e61ec8c15b13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): pkg/behaviourtest/steps/dispatch.go:209-231 | pkg/behaviourtest/steps/dispatch.go:284-306 \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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"bead92d44d7d3d381098587eec51ba4b38abddff230c694ae32890dda50d25d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): internal/cli/poll.go:107-126 | internal/cli/poll.go:249-267 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"internal/cli/poll.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"05aba680ecdf5192a82e2e33ccbde267ee5a8341bc91df8813d7b71fcff1e009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:777-796 | internal/dispatch/gcf/provisioner.go:953-972 \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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4eca9559b816376b17c6115f231bf1f16e16db217f9bbbea2d9be46e1db6e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): pkg/behaviourtest/steps/base_dispatch.go:232-251 | pkg/behaviourtest/steps/dispatch.go:300-319 \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":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb5f93f53deedf192c1e2c4ac437146fe7e6907aab83d53dbd3b7bb8a99a275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): internal/actorcache/actorcache.go:73-91 | internal/normentity/id.go:41-59 \u2014 before extracting anything, compare \u0060internal/actorcache/actorcache.go\u0060 and \u0060internal/normentity/id.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/actorcache/actorcache.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"49acb829cc5b402d752434a1c8f5f26afa6a7a22541b1b002e2fa7863ff30bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): internal/cli/run.go:6869-6887 | internal/evalmeasure/find.go:140-157 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/evalmeasure/find.go:140\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":"internal/cli/run.go"},"region":{"startLine":6869}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cfe8189cf42a9ead8a7b4e9ee199acf668f56ef73e366fed7e125604df5b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:997-1015 | internal/dispatch/gcf/provisioner.go:1052-1070 \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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"0316f42279880d3b2dd49814b58d5f20cf4d5d6c64b422df9a11ba658f1123bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): internal/mintcore/handler.go:734-752 | internal/mintcore/handler.go:838-856 \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":"internal/mintcore/handler.go"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"328480314f66f61108386615e319e0b59c86331b3e6205dc5d239b33176ed6a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1388-1406 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:529-547 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fee0aaa4d31129193c74fe1109cd9e2dbd28ba46ae606a8a49c33aa3f51a1a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/cli/agent.go:513-530 | internal/cli/agent.go:722-739 \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":"internal/cli/agent.go"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2674593ee5e7509133bb8f922be8e8accfe232818adac60e12731269b8d490"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/cli/repos_gitlab.go:536-553 | internal/cli/repos_gitlab.go:579-596 \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":"internal/cli/repos_gitlab.go"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dee23ccc3d5ec22b64dde630ad226947d7a1613bad946eedea92075c1960d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/mintcore/handler.go:714-731 | internal/mintcore/handler.go:816-833 \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 \u0060internal/mintcore/handler.go:714\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":"internal/mintcore/handler.go"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35f558051035e5c951c4ea31b17f72542ef2441fb41d26e8c4b8e5bb291005c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): internal/mintcore/jwks_verifier.go:127-143 | internal/mintcore/sts_verifier.go:114-131 \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 \u0060internal/mintcore/jwks_verifier.go:127\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/jwks_verifier.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"912b455eabe2bd8847f5d833f84fd38aa327d314b7761d6a9fa2965f681f572d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/preset/preset.go:132-149 | internal/repos/manifest.go:580-597 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/preset/preset.go:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/preset/preset.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8042310b0da4762f7a71005d6e42ff15ec6ef362f9767d3c0970b92b9eecdd0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): pkg/behaviourtest/steps/playback.go:281-298 | pkg/behaviourtest/steps/playback.go:852-869 \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 \u0060pkg/behaviourtest/steps/playback.go:281\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":"pkg/behaviourtest/steps/playback.go"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca28a79f0a64caf58b8e63bcf239887e3926eb99c559b9f5280f32bf23be553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): internal/cli/foreign.go:187-202 | internal/cli/foreign.go:248-264 \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 \u0060internal/cli/foreign.go:248\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/foreign.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c86de091cbd3737f41916a7ba7b5510c6690e011d68c2fa464294c8a1409df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/cli/github.go:859-875 | internal/repos/config_preset.go:73-89 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/github.go"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6022e8b92820f1db9f8ebe4b61b157fd58370cc3e7d59e320d914c5e269004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): internal/dispatch/gcf/gcp.go:1701-1716 | internal/dispatch/gcf/gcp.go:1863-1879 \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 \u0060internal/dispatch/gcf/gcp.go:1701\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"d126adbcc9c90aa1bb9c345274914f8dedb4649a8a9d5932898e988c7ccad653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/forge/fake.go:748-764 | internal/forge/fake.go:771-787 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/forge/fake.go:748\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":"internal/forge/fake.go"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f76779f713c215bc0a86ab9a217f36502c37224b1f80496e9eb9fbc68ccb50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/jirapoll/convert.go:234-250 | internal/poll/convert.go:267-283 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/jirapoll/convert.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc563fc53d4a5e77d6097fe17a2bd74938140b407dbe323cfef91d0226555850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/mintcore/handler.go:693-710 | internal/mintcore/handler.go:795-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":"internal/mintcore/handler.go"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee459cb1c3d125858b51db4b3d0b7115bfbea8f10570a3a372550f6f77a8ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): internal/runtime/claude.go:575-591 | internal/runtime/pi_transcript.go:99-113 \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 \u0060internal/runtime/claude.go:575\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/claude.go"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"a880fc3226cd258e38610b847def8c82edbfc2be3c324f0a063ebf237347a29e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): pkg/behaviourtest/steps/base_dispatch.go:241-256 | pkg/behaviourtest/steps/dispatch.go:235-250 | pkg/behaviourtest/steps/dispatch.go:309-324 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e718dd9c5b0853e389113d333055b8cbcaf4bc5b3865631a898fc0411d5bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): internal/forge/gitlab/hooks.go:113-125 | internal/forge/gitlab/poll.go:359-374 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/hooks.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb00cd53c3f253492de2f620587b5be89991ed65e8ae0fa25a40a86a827cce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): internal/harness/compose.go:2881-2896 | internal/harness/forge.go:408-421 \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 \u0060internal/harness/compose.go:2881\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":"internal/harness/compose.go"},"region":{"startLine":2881}}}],"partialFingerprints":{"codehealthFindingId/v1":"984ec6b20aa6b61d6c56784aa1a59c21d64114453fc06abc18c7c2caf3e726e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): internal/repos/gitlab_trigger_schedules.go:173-188 | internal/repos/gitlab_trigger_schedules.go:313-328 \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 \u0060internal/repos/gitlab_trigger_schedules.go:173\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":"internal/repos/gitlab_trigger_schedules.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"f919f9a28b6af9bcb76cca25bdeef587c8f8120c1faea8f6320ef9200537ab16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): internal/harness/compose.go:1112-1126 | internal/harness/compose.go:1160-1173 | internal/harness/compose.go:1224-1237 | internal/harness/compose.go:1313-1327 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/harness/compose.go:1112\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":"internal/harness/compose.go"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acf83ad621a80d6263f255d4613c4393c0794a7cded4ba779ea5fa3ede1abcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): internal/harness/compose.go:1339-1353 | internal/harness/compose.go:1376-1390 | internal/harness/compose.go:1412-1426 \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 \u0060internal/harness/compose.go:1339\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7e4fc46ab1ed9e14867b899ec6f6f64cee97fc15f21e9d3671bf43daac8485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 3): internal/runtime/codex_bootstrap.go:132-146 | internal/runtime/opencode_bootstrap.go:71-83 | internal/runtime/pi_bootstrap.go:205-216 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/runtime/codex_bootstrap.go:150\u0060 calls \u0060validateAgentNameMatch\u0060, \u0060AgentName\u0060 and \u0060internal/runtime/opencode_bootstrap.go:84\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":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb731b2086bb9801df2461eb43f6b9dffc7f2af4baae07627219ad323eb7fa8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/actorcache/actorcache.go:99-113 | internal/normentity/id.go:67-81 \u2014 before extracting anything, compare \u0060internal/actorcache/actorcache.go\u0060 and \u0060internal/normentity/id.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"internal/actorcache/actorcache.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9a15e26b366bc56bac109b2b71b4eedb54f38631e1a7b6425495f9c7cdef80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/cli/mint.go:2153-2167 | internal/cli/mint.go:2235-2249 \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 \u0060internal/cli/mint.go:2153\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":"internal/cli/mint.go"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8d55e028f30b3baeed86905906fd7e64c52d513ed3bad56702f3a06f8b821e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/config/managed.go:268-282 | internal/repos/manifest_set.go:854-868 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/managed.go"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab818036b0d0067a189fbc8a046f705f7004c632aa939f94caf3dbb174c729b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): internal/dispatch/gcf/gcp.go:1042-1056 | internal/dispatch/gcf/gcp.go:1139-1152 \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 \u0060internal/dispatch/gcf/gcp.go:1042\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d5a22ed0fb3b160c9f4df5a3dccd8837d55e08e5222517bd30c7783336df80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): internal/forge/github/github.go:2253-2267 | internal/forge/github/github.go:2333-2346 \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 \u0060internal/forge/github/github.go:2253\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":"internal/forge/github/github.go"},"region":{"startLine":2253}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bcd9bcdc412e7b5ca55d91bfc65c2533b6d83e93ffc8af8b4d6810f07d4621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/scaffold/vendorcontent.go:87-101 | internal/scaffold/vendorcontent.go:121-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/scaffold/vendorcontent.go:87\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":"internal/scaffold/vendorcontent.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66f2e69d2b5af8fcea9fef7a392ace82b639a192b50a4ffd3056dce789424b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:203-217 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:857-871 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6f71bb878e6801fc7a0329adb8e7bad4887c80ab80f986e448e46204743f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:404-418 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:288-302 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5296de0b5d63f88fdf0aadd2aab5d82db29c45fdc891afb86144e981114183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1255-1269 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:444-458 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1255\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e70ccf4ab41d571f7d008afa18ae89eed4c73115e4a445195806c9e78f2dfdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/behaviourtest/steps/dispatch.go:139-153 | pkg/behaviourtest/steps/dispatch.go:173-187 \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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a54486ed5362b9b160c3f708ccbc4c0e74a3904944151bbf83eda74cf4155d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 4): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1249-1262 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1633-1644 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:438-451 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:653-664 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1249\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"410fd7d862b7a2a3892025c437d5b91b53b698f1cba9d4072e47757403d43a72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): internal/forge/github/github.go:1769-1782 | internal/forge/github/github.go:2014-2027 | internal/forge/github/github.go:2549-2562 \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 \u0060internal/forge/github/github.go:1769\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":"internal/forge/github/github.go"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2abfb65ec1e7b280075dd4b7d5907bbb96fc8ff8b3761d011ceebe44cbf1b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): internal/harness/compose.go:968-979 | internal/harness/compose.go:2868-2881 | internal/harness/forge.go:396-408 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/harness/compose.go:968\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":"internal/harness/compose.go"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f946d0f51eec7e68ad9fc2dc88d82b277bcbb250ed4657cdca7c17669e1035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/cli/reconcilestatus.go:227-240 | internal/cli/run.go:7174-7187 \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 \u0060internal/cli/reconcilestatus.go:227\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/reconcilestatus.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f924b4f54fa814797192872afe0d75c6800cd868d6dd01d5c578d5a6bd7a3f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/forge/github/github.go:1498-1511 | internal/forge/github/github.go:1538-1551 \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 \u0060internal/forge/github/github.go:1498\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":"internal/forge/github/github.go"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ab9d17b7d3aa1aec4153fc9501ec19a2edc8a9ffe53a042c16a91d15d89727"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/forge/gitlab/gitlab.go:290-303 | internal/forge/jira/client.go:501-514 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39e8a82d575de5919a50e5e9f312346bcf2a9aee0b3f6f57b7df6c1e0cf68e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/forge/gitlab/issue.go:444-457 | internal/forge/gitlab/issue.go:474-487 \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 \u0060internal/forge/gitlab/issue.go:444\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":"internal/forge/gitlab/issue.go"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"698c77662bdcf5d706be34202ca71095bc73bf52165e7a4a0863a8d2ca91ae63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/harnessdispatch/input/ghaevent.go:150-163 | internal/harnessdispatch/input/ghaevent.go:247-260 \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 \u0060internal/harnessdispatch/input/ghaevent.go:150\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":"internal/harnessdispatch/input/ghaevent.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4b0ee269e59dd098aa4f3b1cf8b1ee3357226a26ca8620a68527c562ccbb7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/repos/gitlabci.go:1368-1381 | internal/repos/gitlabci.go:1387-1400 \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 \u0060internal/repos/gitlabci.go:1368\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlabci.go"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d681e973064db241d486ae05f5d696654402090bcfb16be4a15f57d39dd434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/runtime/claude.go:505-518 | internal/runtime/pi_run.go:1071-1084 \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 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":"internal/runtime/claude.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8b68577319b481aff54f9065259e09d2a333f04a622f339db76ceac3d11ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/runtime/codex_progress.go:743-756 | internal/runtime/pi_transcript.go:201-214 \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 \u0060internal/runtime/codex_progress.go:743\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":"internal/runtime/codex_progress.go"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"30813817a9ca018630a5bad04d536f38478947a8d2d2048ea53c5fdf89434f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:292-305 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:310-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:292\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87bca671513ecb9f0692b3c457a3e1af0d57b16204b4555b3cb9b23193340ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): pkg/behaviourtest/steps/base_dispatch.go:240-252 | pkg/behaviourtest/steps/dispatch.go:234-246 | pkg/behaviourtest/steps/dispatch.go:308-320 | pkg/behaviourtest/steps/url_dispatch.go:377-389 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc896d280a451a3681fb469e097af75a99c01e3f3fde70d8edd3b0744174907"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/artifacts/telemetry.go:213-225 | internal/artifacts/telemetry.go:237-249 \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 \u0060internal/artifacts/telemetry.go:213\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":"internal/artifacts/telemetry.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa13e54f6a0891c62ec5357c0b2ec2ffc8294b3036dd0b392d8358233aa3170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/cli/mint.go:774-786 | internal/cli/mint_delete.go:120-132 \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 \u0060internal/cli/mint.go:774\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":"internal/cli/mint.go"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"e028546d625459f0b2674d3653742cefa24ee668ff9d36b01778d319b6ab8b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:1984-1996 | internal/dispatch/gcf/provisioner.go:2140-2152 \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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed441fcbdfec58891d281f11237ca1cb33e10866b824bc8e1995369e8c59355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/fetch/cache.go:506-518 | internal/repos/manifest_set.go:217-229 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/fetch/cache.go:506\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/fetch/cache.go"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f64eb9e79ae6551e71dcd6853b564358b0af608d5dd29967fa0c4c84b9091c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/forge/url.go:77-89 | internal/forge/url.go:250-262 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/forge/url.go:92\u0060 calls \u0060Errorf\u0060 and \u0060internal/forge/url.go:264\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":"internal/forge/url.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f750771ea614e2016099368cd729f2fa9a5d1c9fed1511d10bed98fd020177e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): internal/harness/compose.go:288-299 | internal/harness/compose.go:421-433 \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 \u0060internal/harness/compose.go:288\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"internal/harness/compose.go"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"3046a366c7c092f0e8baca2ee649dff94435ddea670944ba22479766d76213d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/harness/compose.go:1392-1404 | internal/harness/compose.go:1428-1440 \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 \u0060internal/harness/compose.go:1392\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":"internal/harness/compose.go"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c3fc0ea08b691ccaa6125bf6ef669f830e4d4170a92df5900ffc580a008d45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/harness/discover.go:56-68 | internal/harness/discover_remote.go:52-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/harness/discover.go:56\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":"internal/harness/discover.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3beb8c78e9508aa3c230b6db119c6a20ccc9c8b3f9f174894e7d9ba5638effe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/repos/converge.go:3106-3118 | internal/repos/converge.go:3240-3252 \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 \u0060internal/repos/converge.go:3106\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":"internal/repos/converge.go"},"region":{"startLine":3106}}}],"partialFingerprints":{"codehealthFindingId/v1":"208d9381889fe6bb7802ba8dc7cc85e1186c15e35199d8019ccf5b419adc97e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:696-708 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:725-737 \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 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:696\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"f183cbe696fa1c734d5ad18cfb34724977adbf545763e513f987aab2fa0f7c04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/behaviourtest/run.go:56-68 | pkg/behaviourtest/run_playback.go:71-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/run.go:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060pkg/behaviourtest/run_playback.go:86\u0060 calls \u0060NewPlaybackDriver\u0060 and \u0060pkg/behaviourtest/run.go:75\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":"pkg/behaviourtest/run.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7344d785c2e6ede66c65eab289d3d57916785562f1a231c037f617ccf9a3b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 4): internal/repos/converge.go:3780-3791 | internal/repos/converge.go:3828-3838 | internal/repos/converge.go:3862-3873 | internal/repos/converge.go:3894-3903 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/repos/converge.go:3862\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/converge.go"},"region":{"startLine":3780}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a78f168277ab7d56844648a65d87fd3b05fd952ca0b88990cef5d48d49d1b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): internal/cli/mint.go:2156-2167 | internal/cli/mint.go:2238-2249 | internal/cli/mint.go:2306-2317 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":2156}}}],"partialFingerprints":{"codehealthFindingId/v1":"52de2b22ca289e4ed9d17239f78e3bfc4021c2b8bb282416d424619094d21eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): internal/harness/compose.go:1355-1366 | internal/harness/compose.go:1392-1403 | internal/harness/compose.go:1428-1439 \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 \u0060internal/harness/compose.go:1355\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":"internal/harness/compose.go"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d43caaa1b0c488f20bbbc72ae8865f50bf4a29176c4c680aa46d9b8bf8afd4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/artifacts/prepare.go:153-164 | internal/binary/download.go:325-336 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/artifacts/prepare.go:153\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":"internal/artifacts/prepare.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3179553c233ae1e3110065fa80c407a4e4e66597d88919c4b2f0e40591be746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/cli/checkprotectedbranch.go:78-89 | internal/cli/resolvemrsource.go:110-121 \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":"internal/cli/checkprotectedbranch.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dafcd17da1ca2173057de3795f432aef4c6c1ee45d2fb9096cf668c347218cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/cli/issues.go:345-356 | internal/cli/issues_transition.go:91-102 \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 \u0060internal/cli/issues.go:345\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":"internal/cli/issues.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87da40e7f47de31123148d76930f5ee64b93828f13246a773d125457698485d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/cli/issues.go:620-631 | internal/cli/issues.go:697-708 \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":"internal/cli/issues.go"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cb4db5c26b4a7f405032b86de7d8cff2d2ed36721daf1314ab6c92b0a13bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/cli/mint.go:1314-1325 | internal/cli/mint.go:1474-1485 \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 \u0060internal/cli/mint.go:1314\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":"internal/cli/mint.go"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"18708f868f7114fa8a1dd788227db13603474c6c86085b395174ae21893c75c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/cli/poll.go:136-147 | internal/cli/poll.go:269-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/cli/poll.go:136\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":"internal/cli/poll.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d806c523837503cf54a25aee4e32f5751ee36ca24732f90140eff412ddd509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/dispatch/gcf/gcp.go:892-903 | internal/dispatch/gcf/gcp.go:981-992 \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 \u0060internal/dispatch/gcf/gcp.go:892\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"e437b8b2fa7dd32a1d7b4242bd51656bab653e37d92de73e1a84c8a42532868d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:265-274 | internal/dispatch/gcf/provisioner.go:382-393 \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 \u0060internal/dispatch/gcf/provisioner.go:265\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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05ba065cca6216a946d82d188ae7051e28b54e6a28e9af44699d0491b1434c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:443-454 | internal/dispatch/gcf/provisioner.go:483-494 \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 \u0060internal/dispatch/gcf/provisioner.go:443\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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"7459149dc7132a06eeee8cae7b01dcb0f2da406b9635a5efef4b66489d3087b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:652-663 | internal/dispatch/gcf/provisioner.go:1753-1764 \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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"402aacca11bf6eb1f3915084a73a6e561b966bbbc25b9960edf153e67d5797d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:1021-1031 | internal/dispatch/gcf/provisioner.go:1076-1087 \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 \u0060internal/dispatch/gcf/provisioner.go:1076\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"625605b5f5be4c263320e9ec0009b1bdee0ffeb50f98f4bd4fd6dc8f4bb8bd1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/evalmeasure/export_local.go:22-33 | internal/evalmeasure/export_local.go:69-80 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"internal/evalmeasure/export_local.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"eded0202299b1044d9ed2eea08bd1a2ea27cde459bf01dcfda0480000a4a0699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/forge/fake.go:1833-1844 | internal/forge/fake.go:1858-1869 \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 \u0060internal/forge/fake.go:1833\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":"internal/forge/fake.go"},"region":{"startLine":1833}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcae94a2ae1eb015edf879c3edc62ec951c3c8cfc8bf9311347366d2edddcd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/gitlabroles/readiness.go:79-90 | internal/gitlabroles/readiness.go:131-142 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/gitlabroles/readiness.go:79\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlabroles/readiness.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c083cdd1bc244fe5c85813538b0b2a94af69283684dab53ad87a382915f7d27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/harness/compose.go:791-803 | internal/resolve/resolve.go:638-649 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/harness/compose.go:791\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":"internal/harness/compose.go"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c7a6d00f8a39b7973cfc3fcf6a3645e45a15da66d1d4191e97d7375ee30d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/harness/compose.go:2188-2200 | internal/harness/compose.go:2391-2402 \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":"internal/harness/compose.go"},"region":{"startLine":2188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebbf4d979a38d5b8c62ab48ad0a5b8962dbdbe017f04f28d5f0cc879977012d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/harness/discover.go:70-81 | internal/harness/discover_remote.go:65-76 \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 \u0060internal/harness/discover.go:70\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":"internal/harness/discover.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"925b6c11c1b744bb5b7f8e343e758d7f30fa1b5e2fe94fb73b755960031f777f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/repos/gitlab_roles_rotate.go:1670-1681 | internal/repos/gitlab_webhook_poller.go:712-723 \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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8917d5b9cd0949f57ba9813a3377032c1dc07e98cc3abd3364af3150d65ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/resolve/resolve.go:642-653 | internal/resolve/resolve.go:775-786 \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 \u0060internal/resolve/resolve.go:642\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":"internal/resolve/resolve.go"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"113bc38216fe48b792eb55c718db7ba4bb144f35f4c6fe574d62dd344eedc7ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): internal/runtime/claude.go:534-545 | internal/runtime/pi_run.go:1102-1112 \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 \u0060internal/runtime/claude.go:534\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":"internal/runtime/claude.go"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"186f289c726cad526bdba9fae44de47e3594062466394a5018c83b633d9e922e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/runtime/opencode_run.go:487-498 | internal/runtime/pi_run.go:1262-1273 \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 \u0060internal/runtime/opencode_run.go:487\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: \u0060internal/runtime/pi_run.go:1262\u0060 is reached only past a guard at line 1222 that tests \u0060params.ModelAliases\u0060 and leaves the function early, and \u0060internal/runtime/opencode_run.go:487\u0060 reads \u0060params.ModelAliases\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/opencode_run.go"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"42334188ad33b49e0a425df5c712a589c4b902e2a7188e296e66062feea53bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/tracker/forge_client.go:42-53 | internal/tracker/forge_client.go:72-83 \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 \u0060internal/tracker/forge_client.go:42\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":"internal/tracker/forge_client.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6ff29ff2e85ac926c02056fbc09827b3e27d1ddd81aafbd65b93fe096da1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go:86-97 | pkg/behaviourtest/drivers/install/repopool_cfmint_stage.go:88-99 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go:86\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, \u0060pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go:83\u0060 calls \u0060startTraceCollector\u0060, \u0060logf\u0060 and \u0060pkg/behaviourtest/drivers/install/repopool_cfmint_stage.go:86\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":"pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75a281651bcc9a6e6c36c25a91d760f4b528f869ec71419d600860096a9f035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/behaviourtest/steps/dispatch.go:79-90 | pkg/behaviourtest/steps/dispatch.go:107-118 \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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b163215b4eb261cf8526cb3c16eea606b87d94547edede803bd483604b8cd96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1252-1264 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1391-1401 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1636-1646 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1910-1920 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:441-453 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:532-542 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:656-666 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1252\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"6528a0ba88265c7c2833372a882300e7d0a69b9bd7ec2ddff6524a806e57d33e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): internal/cli/agent.go:301-310 | internal/cli/agent.go:436-446 | internal/cli/agent.go:549-559 | internal/cli/agent.go:794-804 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/cli/agent.go:298\u0060 calls \u0060UpsertAgentSettings\u0060, \u0060AgentEntry\u0060, \u0060localAgentEntries\u0060 and \u0060internal/cli/agent.go:792\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":"internal/cli/agent.go"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ac540273871c311fc4ca900da8273581b1461e9234f288c1c73e173803facc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): internal/cli/mint.go:773-783 | internal/cli/mint.go:2288-2298 | internal/cli/mint_delete.go:119-129 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/cli/mint.go:2299\u0060 calls \u0060Context\u0060 and \u0060internal/cli/mint.go:785\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":"internal/cli/mint.go"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ed0118481881480fb288137051700844a7e22e461203f64c0af1beeecb85e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): internal/harness/compose.go:1563-1573 | internal/harness/compose.go:1583-1593 | internal/harness/compose.go:1606-1616 \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 \u0060internal/harness/compose.go:1563\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":"internal/harness/compose.go"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"acaf4b1c89b607e531be8dd72f11a2a5d170442b4940981c9b2294792463608b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/celtrigger/celtrigger.go:53-63 | internal/harness/trigger.go:51-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/celtrigger/celtrigger.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa65ba494aabf59f67771b8c959e8e49477febc5a036eb9540c76600c0876b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/cli/admin.go:1337-1347 | internal/layers/preflight.go:141-151 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/admin.go"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"000ecc5c6a00ab39f41a8a3552b7618731459ad6e7a2700864040f867c868db6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): internal/cli/inference_gateway.go:112-121 | internal/cli/inference_openai.go:826-836 \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 \u0060internal/cli/inference_gateway.go:112\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":"internal/cli/inference_gateway.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28d382b04a743fc6812f4133e66f157c84321ce0cd28d234db2200a1235a349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/cli/lock.go:1557-1567 | internal/harness/harness.go:64-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/lock.go"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"854fddad1966531f0bc4e54512eaada5d7f541d1bea133c0e07ec256ca7a5f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/cli/postcomment.go:77-87 | internal/cli/postreview.go:164-174 \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 \u0060internal/cli/postcomment.go:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/postcomment.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ee728339a155596cf1c03dbac6abc9d92a27078107e4b8695da57054dbc8d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:806-816 | internal/dispatch/gcf/provisioner.go:1094-1104 \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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"186956bbf9b105b49fc35ae73d4db105c1450aca1640bdc515ecbbd5203c9060"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/forge/fake.go:3054-3064 | internal/forge/fake.go:3080-3090 \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 \u0060internal/forge/fake.go:3054\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":"internal/forge/fake.go"},"region":{"startLine":3054}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59cb5cf01ea630d8aa2bf6f8d19c07b2a21f26220888c2a9ba398328e692981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/forge/github/github.go:4854-4864 | internal/forge/github/github.go:4952-4962 \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 \u0060internal/forge/github/github.go:4854\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":"internal/forge/github/github.go"},"region":{"startLine":4854}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdafe733017e6fd06257af053a280f225faf05319a7c476963632e72747af516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/forge/gitlab/ci.go:1703-1713 | internal/forge/gitlab/ci.go:1764-1774 \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 \u0060internal/forge/gitlab/ci.go:1703\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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5c1d0944c34c81f67a2cc9baf7853fba6428ec67f7f195373d0de4b0200c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/forge/url.go:38-48 | internal/forge/url.go:219-229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"internal/forge/url.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc5df18db40241d2efee6708588ee91b8028030888d91b1a9a2236ae22be735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/gitlablifecycle/trigger_account.go:231-241 | internal/gitlablifecycle/trigger_account.go:281-291 \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 \u0060internal/gitlablifecycle/trigger_account.go:231\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlablifecycle/trigger_account.go"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e9c3cb9e63f5224b500878f7bb5680a240bade975926df88ea953bde06e496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): internal/harness/compose.go:303-313 | internal/harness/compose.go:439-450 \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 \u0060internal/harness/compose.go:303\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/compose.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21a6ce108a1fe66899b7a7f23b2228e1e57047f0218200574be75edad8b456f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/harness/compose.go:1176-1193 | internal/harness/compose.go:1240-1257 \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 \u0060internal/harness/compose.go:1176\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":"internal/harness/compose.go"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab48a07f6afb5b0b0e60ed06c05ba80c079de414046450c222b72f4b0286a3ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/harness/compose.go:1207-1217 | internal/harness/compose.go:1271-1281 \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 \u0060internal/harness/compose.go:1207\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":"internal/harness/compose.go"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bff4512b14f71eebddc1d525e9c3809dde2a416fb4ef82262274649f98ad04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/harness/compose.go:1485-1501 | internal/harness/compose.go:1507-1523 \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 \u0060internal/harness/compose.go:1485\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":"internal/harness/compose.go"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c4f3535f1142651c122651ac7ad7a12ee7cdc26119cac59a663a523e082d3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): internal/harness/compose.go:1672-1690 | internal/harness/compose.go:1695-1713 \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 \u0060internal/harness/compose.go:1672\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":"internal/harness/compose.go"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51bb85f1a73c45cb4253fe240fd00f337bcf03ac3371041d724a287a3917515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/poll/events.go:396-406 | internal/poll/events.go:435-445 \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 \u0060internal/poll/events.go:396\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/events.go"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"422d0098a5eef3e2f92991eaa69006bf7f56d653c9242c6a49b5c7cbf527eb89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/poll/state.go:625-635 | internal/poll/state.go:1422-1432 \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":"internal/poll/state.go"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c0102b45cdbcc01bed5823d9ed67f358c725591c22b6c353a97796eb7fb181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/repos/converge.go:1764-1774 | internal/repos/converge.go:3346-3356 \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 \u0060internal/repos/converge.go:1764\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":"internal/repos/converge.go"},"region":{"startLine":1764}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fb9b93f70badd9c320dd088e1b5e9f6a29d3c6a0baf6bed0bb8220c0b45bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/repos/gitlab_webhook.go:1376-1386 | internal/repos/gitlab_webhook.go:1538-1548 \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 \u0060internal/repos/gitlab_webhook.go:1376\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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e750872181463f2e1b599dd30142c9a51eb9a94c373a249745aab9b40c32938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/runtime/codex_run.go:595-605 | internal/runtime/opencode_run.go:449-459 \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 \u0060internal/runtime/codex_run.go:595\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":"internal/runtime/codex_run.go"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2168ac2834807c822f8062dab62d4f24ab1c750257837781d5ae6e4a481159b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:123-133 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:149-159 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:123\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf5ca8216ce5bbcc0ada28b235215d0e65e13fb4a07791c206c132b81173827"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:469-479 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:681-691 \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 \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:469\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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"9491484180db870dcf7515fab98b3c7b6008abaebda2e2d83b270507cc79109b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/behaviourtest/drivers/install/slotpool.go:511-521 | pkg/behaviourtest/drivers/install/slotpool.go:545-555 \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":"pkg/behaviourtest/drivers/install/slotpool.go"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aecd5b287b7f64e110a8b05e8828201ab648554b00d08ea0ac41edf63aad958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/behaviourtest/report.go:304-314 | pkg/behaviourtest/steps/debuglogs.go:1026-1036 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/report.go:304\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":"pkg/behaviourtest/report.go"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3f5510b35fc3564db375a5146e7ba8dd880c72598685a7fd30b6425eb42e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): internal/cli/mint.go:1313-1322 | internal/cli/mint.go:1473-1482 | internal/cli/mint.go:2124-2133 | internal/cli/mint.go:2206-2215 | internal/cli/mint.go:2287-2296 | internal/cli/mint_setup.go:75-84 | internal/cli/mint_setup.go:154-163 \u2014 there are 7 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/cli/mint.go:1313\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/cli/mint_setup.go:85\u0060 calls \u0060ValidateAppSet\u0060, \u0060Errorf\u0060 and \u0060internal/cli/mint_setup.go:165\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31fda25cac2d9580cb6f2131be71623529c35c531adc4aa3410ce1185cb78c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): internal/poll/events.go:293-302 | internal/poll/events.go:356-365 | internal/poll/events.go:396-405 | internal/poll/events.go:435-444 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/poll/events.go:293\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/events.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"431dbfb7d4d2880bff24299d3a120b5d0f4a277ce546c037228fb1c5abe7d81a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/cli/inference.go:145-154 | internal/cli/inference.go:364-373 | internal/cli/inference.go:620-629 \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 \u0060internal/cli/inference.go:145\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":"internal/cli/inference.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"11760d3e03d378251c58b7bc0835cf207d3f064dbf5951acb3d37c38ef817182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/forge/fake.go:751-761 | internal/forge/fake.go:774-784 | internal/forge/fake.go:832-841 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/fake.go"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca9256f7d26483bcc18f5f6ec9bf90a9081caa12966ab3a7f7458decb50e265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/harness/compose.go:795-804 | internal/resolve/resolve.go:641-650 | internal/resolve/resolve.go:774-783 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/harness/compose.go:795\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":"internal/harness/compose.go"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5dbc13863695531b81ec58157696dedb10aa3673698e051caa9f515be306fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/harness/compose.go:1469-1478 | internal/harness/compose.go:1491-1500 | internal/harness/compose.go:1513-1522 \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 \u0060internal/harness/compose.go:1469\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":"internal/harness/compose.go"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7f95c7b41106223ba1848d527da9440dc5b6bcaa6d86aa8b54bc5bea04b037"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/harness/compose.go:1658-1667 | internal/harness/compose.go:1680-1689 | internal/harness/compose.go:1703-1712 \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 \u0060internal/harness/compose.go:1658\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":"internal/harness/compose.go"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"8435c5120cd132703b5da3201334da30f803774266d5cc4c7c41b40c0b955c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/runtime/claude.go:534-543 | internal/runtime/codex_run.go:649-658 | internal/runtime/pi_run.go:1102-1111 \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 \u0060internal/runtime/claude.go:534\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":"internal/runtime/claude.go"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"f430c49e25fdb799fdf6a5f8249f8d5d58561965797e6bad54436a5b30d601c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/celtrigger/celtrigger.go:65-74 | internal/harness/trigger.go:71-80 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/celtrigger/celtrigger.go:65\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":"internal/celtrigger/celtrigger.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9246aee7aa1eb7026ab94d9bfb0a9c7940f9bd731ef01b87095d1064d06b15a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/cli/inference.go:110-119 | internal/cli/inference.go:348-357 \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 \u0060internal/cli/inference.go:110\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":"internal/cli/inference.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4dff0014b187a3e70baf7935593e330317a21ecb7b02ee077ee72f96547ca21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/cli/lock.go:121-130 | internal/cli/lock.go:522-531 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"internal/cli/lock.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"724be5be9a7f0e67cd8dc393b407ffd4c0d4fc54a182e36c55867e86cbc7d56a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/cli/lock.go:431-440 | internal/cli/run.go:862-871 \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 \u0060internal/cli/lock.go:431\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/lock.go"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f75e2372d7f5f78dfb63e8b3a597103f5a2e0b98340881f77afe33e182a1270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/cli/mint.go:2180-2189 | internal/cli/mint.go:2262-2271 \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 \u0060internal/cli/mint.go:2180\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b59b32a7efc1b70136bd62092aaa1b1d4b6a5402a695ad4a9fbd43874ca13ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/cli/repos_gitlab_service_accounts.go:290-299 | internal/gitlablifecycle/trigger_account.go:33-42 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"internal/cli/repos_gitlab_service_accounts.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d511ffb1d4c21f2f4522865c93c31fc0a916373f5c9691f6fb6e387c932f665"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/cli/repos_gitlab_service_accounts.go:310-319 | internal/gitlablifecycle/trigger_account.go:77-86 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos_gitlab_service_accounts.go"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb7b3b260b3ea9642930558cbdb8809de9a459f78b9f3ba03a85303572adda8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:1336-1346 | internal/dispatch/gcf/provisioner.go:1389-1399 \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 \u0060internal/dispatch/gcf/provisioner.go:1336\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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"67efeb6122848f2216aebdf3b36f23650e94a24685c597360b519655a7ac124c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): internal/e2etest/testutil.go:131-140 | internal/e2etest/testutil.go:295-301 \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 \u0060internal/e2etest/testutil.go:131\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":"internal/e2etest/testutil.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b9c17e72dc16ac9bc159584fe2d1f1bcdc48a3c430bf07f545e0c7e3ca55bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/forge/fake.go:2869-2878 | internal/forge/fake.go:2900-2909 \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 \u0060internal/forge/fake.go:2869\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":"internal/forge/fake.go"},"region":{"startLine":2869}}}],"partialFingerprints":{"codehealthFindingId/v1":"d354e56ead04ea66347a7bfa5be3ecaf6a69effa86d4400246d243aaff506297"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/forge/github/github.go:1832-1841 | internal/forge/gitlab/repo.go:1231-1241 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/forge/github/github.go:1832\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"8441c84a6ffa2a977377cd18de9d99a4439e69c5f90f8d9560c50d5e6978d600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/forge/gitlab/ci.go:239-248 | internal/forge/gitlab/ci.go:362-371 \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 \u0060internal/forge/gitlab/ci.go:239\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":"internal/forge/gitlab/ci.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d752c5bcf230b31e7f97adeb413a36c46c660611d0fa49abbdebff375feaa2d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/forge/gitlab/ci.go:1162-1171 | internal/forge/gitlab/ci.go:1198-1207 \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 \u0060internal/forge/gitlab/ci.go:1162\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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9171a2eee9a0d002ebe12fe3ebcf11cf7d294ba04da3706eefa9c0e0c0b023d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/harness/compose.go:1195-1204 | internal/harness/compose.go:1259-1268 \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 \u0060internal/harness/compose.go:1195\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":"internal/harness/compose.go"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"da931ccaf71c7a63be98ced6108cb7890f1c84422c55653262e20b1463208e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/repos/gitlab_roles.go:394-403 | internal/repos/gitlab_roles_rotate.go:241-250 \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 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":"internal/repos/gitlab_roles.go"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"b993763c25352ebb5cf3caec981a6229a9eca78f64d185fdb033c6d54819e2b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:921-930 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:134-143 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:921\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cae6a6ac0cbd322d9479a73b4f60be1b3dd3c8d60c928e6161b2302a7369f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1282-1291 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1661-1670 \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 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1282\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa17875dd3039b684a35a43c81cd34048fe32985cd0cf615039b8ff0f4056f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 10): pkg/behaviourtest/steps/dispatch.go:83-90 | pkg/behaviourtest/steps/dispatch.go:111-118 | pkg/behaviourtest/steps/dispatch.go:224-231 | pkg/behaviourtest/steps/dispatch.go:299-306 | pkg/behaviourtest/steps/owners.go:119-127 | pkg/behaviourtest/steps/owners.go:269-277 | pkg/behaviourtest/steps/reaction.go:31-38 | pkg/behaviourtest/steps/reaction.go:64-71 | pkg/behaviourtest/steps/url_dispatch.go:152-159 | pkg/behaviourtest/steps/url_dispatch.go:179-186 \u2014 there are 10 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 10 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"651873dfa666143954ab1008c7f10977fefb3ab58294dcb0ab3e93a827caae35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): internal/dispatch/gcf/provisioner.go:359-367 | internal/dispatch/gcf/provisioner.go:397-405 | internal/dispatch/gcf/provisioner.go:416-424 | internal/dispatch/gcf/provisioner.go:459-467 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/dispatch/gcf/provisioner.go:426\u0060 calls \u0060Errorf\u0060 and \u0060internal/dispatch/gcf/provisioner.go:469\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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"646250a590ca72b8d3d92b1e0f14b8c219a75158c0214d015f46040ed69c45e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): internal/runtime/claude.go:505-513 | internal/runtime/codex_run.go:599-607 | internal/runtime/opencode_run.go:453-461 | internal/runtime/pi_run.go:1071-1079 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/runtime/claude.go:505\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":"internal/runtime/claude.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1c9f9f53e49db814a028fb2364093a28086cc428ea2523ecd88fd4dba52570"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): internal/mintclient/mintclient.go:224-232 | internal/mintclient/mintclient.go:307-315 | internal/mintclient/mintclient.go:609-617 \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 \u0060internal/mintclient/mintclient.go:224\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":"internal/mintclient/mintclient.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81d81ecad77d3ea906acef76d9cc7041b5de842a8d2597082a2ae5c9e2245ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): internal/repos/gitlab_trigger_jobs.go:730-740 | internal/repos/gitlab_webhook.go:1374-1384 | internal/repos/gitlab_webhook.go:1536-1546 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9d0f227289d5023e04db7b3671ed9ba2059340a15f61e87891acd14d12f3ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): internal/runtime/codex_transcript.go:282-290 | internal/runtime/opencode_transcript.go:76-84 | internal/runtime/pi_transcript.go:160-168 \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 \u0060internal/runtime/codex_transcript.go:282\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":"internal/runtime/codex_transcript.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c55606ba5fa9a70858c52d9f65625d6cea5c23f538ea208d329d24232fe8c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/behaviourtest/steps/base_dispatch.go:38-46 | pkg/behaviourtest/steps/base_dispatch.go:183-191 | pkg/behaviourtest/steps/base_dispatch.go:270-278 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060pkg/behaviourtest/steps/base_dispatch.go:280\u0060 calls \u0060Errorf\u0060 and \u0060pkg/behaviourtest/steps/base_dispatch.go:193\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":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b10ed5c5b7172b707c0091fc32ee96b6413cc3f799a5e80fd488820c9afc70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/artifacts/measurements.go:32-40 | internal/artifacts/telemetry.go:56-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/artifacts/measurements.go:32\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":"internal/artifacts/measurements.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc67a5a1fed502ec1597ab95c86ea8f7fac5486d6c00225149d8217ceefc6b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/binary/download.go:55-63 | internal/binary/download.go:207-215 \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 \u0060internal/binary/download.go:55\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":"internal/binary/download.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3faffad64075f7f6155867d2ccd77bec90e95f07931bb019b32ea016b78ff3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/cli/foreign.go:70-78 | internal/cli/foreign.go:302-310 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/cli/foreign.go:300\u0060 calls \u0060label\u0060 and \u0060internal/cli/foreign.go:68\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":"internal/cli/foreign.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5feca3eb1d75c1055e69c7f11613b1eb85e45dc87d354406fcb16129a3c97fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): internal/cli/lock.go:728-736 | internal/cli/run.go:7943-7950 \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 \u0060internal/cli/lock.go:728\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":"internal/cli/lock.go"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f8f84ec18114d02128aa7505e74ffd19ae48b3f49608905559a4f25980ea39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/cli/mint.go:1356-1364 | internal/cli/mint.go:1543-1551 \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":"internal/cli/mint.go"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"a183b0cf8ada485d250242d098987c53928734f70f8dae4a5eda3c5d71b53d00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/cli/mint.go:1381-1390 | internal/cli/mint_setup.go:443-451 \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 \u0060internal/cli/mint.go:1381\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":"internal/cli/mint.go"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ad84009cdd00efa0c1ab666eec6547b75406610ffe658244f43da496880109"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/cli/poll.go:197-205 | internal/cli/poll_jira_gitlab.go:130-138 \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":"internal/cli/poll.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc47baa700480aad9a6c4c99fda88a97ab9cb791f9fd725a1b87013f25b345f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/cli/run.go:3494-3502 | internal/runtime/pi_bootstrap.go:988-996 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":3494}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbe1fa4efa35accd729ee734867d9a60ca998b07905a5e05893f072449a7358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/cli/run.go:8088-8096 | internal/cli/run.go:8401-8409 \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 \u0060internal/cli/run.go:8088\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":"internal/cli/run.go"},"region":{"startLine":8088}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a63bf4db62c132272fb9c5a55e10002d4041ba6c165aae8436dcb7388f6cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/cli/run.go:8452-8460 | internal/harness/registry.go:95-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/cli/run.go:8452\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":"internal/cli/run.go"},"region":{"startLine":8452}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceabd3775c488a2b907499c28f20600c583748f11d8ab1381f9ee3898c50f46b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): internal/dispatch/gcf/gcp.go:1249-1256 | internal/dispatch/gcf/gcp.go:1507-1515 \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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f84a399ab18fb55987fad765ff73b2a5be42487b40dfd1d3825f887df69106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dispatch/gcf/gitlab_wif.go:95-103 | internal/mintcore/wif.go:19-27 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gitlab_wif.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e23b49e70969c80adfff7901ae03f007915882a6444d6a3532cd9746fb081ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:429-437 | internal/dispatch/gcf/provisioner.go:469-477 \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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"8419d7af2cdea592eccfbf5e75fe804bd62796cb3a74bf0e877a481f1d0bf42c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/forge/github/github.go:1122-1130 | internal/forge/gitlab/gitlab.go:396-404 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e0274d413b07702b4e9ff79e93ef09b258c8dd647227322e55a6ff2024191e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/gitlablifecycle/trigger_owner.go:295-303 | internal/gitlablifecycle/trigger_owner.go:449-457 \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 \u0060internal/gitlablifecycle/trigger_owner.go:295\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":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6dec9a51dc4b510ce93f5ab577159f0aeac244fefc625ae1008cd51f57814a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/mintcore/github.go:352-360 | internal/mintcore/github.go:365-373 \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 \u0060internal/mintcore/github.go:352\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/github.go"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54acf5fcb0c14c0f4807c8e81139c67a716de9bbc4d5f49e594ad9d8841516f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): internal/mintcore/jwks_verifier.go:111-118 | internal/mintcore/sts_verifier.go:96-104 \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":"internal/mintcore/jwks_verifier.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a65e3a702da15db4dd47a1a34b0a61d992ec561be1de911ed3c0d901401ffdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/poll/events.go:138-150 | internal/poll/events.go:211-219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/events.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d38900299363761e9cfa004c00a6ada24127ac20e1ca93ff8fef17914f26ba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/repos/converge.go:467-475 | internal/repos/converge.go:2195-2203 \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 \u0060internal/repos/converge.go:467\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":"internal/repos/converge.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab9a9eb81cc36cf1aa46328f59ad6de6b9e5bd6b46f7e68089846fa8cc6438b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/repos/converge.go:3089-3097 | internal/repos/converge.go:3163-3171 \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":"internal/repos/converge.go"},"region":{"startLine":3089}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb4ac708a042807fa60ed39d9015431139ec1c2ac0746291f398b7fe0a31c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/repos/gitlabci.go:660-668 | internal/repos/gitlabci.go:684-692 \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":"internal/repos/gitlabci.go"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c91e242da10e58369f002514a8469b2f72440e04d75728d015bbaa63dc6a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/repos/manifest.go:1667-1675 | internal/repos/manifest.go:1704-1712 \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 \u0060internal/repos/manifest.go:1667\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":"internal/repos/manifest.go"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4aba364dfc2112969bc1e386addc7a61e1f45f93381d437eaa88d6efb75fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/behaviourtest/drivers/install/composed.go:96-104 | pkg/behaviourtest/drivers/install/composed.go:129-137 \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":"pkg/behaviourtest/drivers/install/composed.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8c770932582c2ab45a5d9068dd883145f0ce0bee1e15940060edeb9a718d6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/behaviourtest/steps/base_dispatch.go:153-161 | pkg/behaviourtest/steps/base_dispatch.go:230-238 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060pkg/behaviourtest/steps/base_dispatch.go:152\u0060 calls \u0060Sprintf\u0060 and \u0060pkg/behaviourtest/steps/base_dispatch.go:228\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":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"4776d7e22f6497c2be216d8ddc80a70ef7a6a738241694707a32ffe55cf4a436"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/behaviourtest/steps/jirapoll.go:501-509 | pkg/behaviourtest/steps/mint_status.go:246-254 \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 \u0060pkg/behaviourtest/steps/jirapoll.go:501\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":"pkg/behaviourtest/steps/jirapoll.go"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"8001d52c1c10faefa44226e4a089aa454729929eac5b2dc75444b43316de59ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/behaviourtest/steps/reaction.go:84-92 | pkg/behaviourtest/steps/reaction.go:104-112 \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 \u0060pkg/behaviourtest/steps/reaction.go:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060pkg/behaviourtest/steps/reaction.go:113\u0060 calls \u0060Errorf\u0060 and \u0060pkg/behaviourtest/steps/reaction.go:93\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":"pkg/behaviourtest/steps/reaction.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1363a5d1598131df99cd9406f1556f68ad8e030f815a51367dc947d91706e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): internal/runtime/claude.go:562-570 | internal/runtime/opencode_transcript.go:25-32 | internal/runtime/pi_transcript.go:59-66 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/claude.go"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3f8660fea29173aecc6831d3b5965424e0d7b84b9c78901ae2515f6fee76da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/cli/postcomment.go:60-67 | internal/cli/postreview.go:120-127 \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 \u0060internal/cli/postcomment.go:60\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":"internal/cli/postcomment.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b615ad12aa43ce94e322f15be7df8767f89a169a4f00c29e1afb4ff0a91d430a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/forge/gitlab/repo.go:522-529 | internal/forge/gitlab/repo.go:548-555 \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 \u0060internal/forge/gitlab/repo.go:522\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":"internal/forge/gitlab/repo.go"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f55d26c4841f0d05216902331e4b6ffdf29e431e7f0457320eb8d57a817ca0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/forge/gitlab/repo.go:699-706 | internal/forge/gitlab/repo.go:727-734 \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":"internal/forge/gitlab/repo.go"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"368212b96d15595bdfca272da65f35e382e01822fc14de59ebb52b7bac8a2746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/harness/compose.go:1811-1818 | internal/harness/compose.go:1877-1884 \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 \u0060internal/harness/compose.go:1811\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":"internal/harness/compose.go"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a1bb3adb43e0cabf0a9ab8a36fca300f03ab52fbca758c069933605a273d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/harness/compose.go:2315-2322 | internal/harness/compose.go:2520-2527 \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":"internal/harness/compose.go"},"region":{"startLine":2315}}}],"partialFingerprints":{"codehealthFindingId/v1":"170b1823d73f6695d723248cb567a4c3428dc82b22a0d7beb9da55d2d05cb17a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/poll/events.go:499-506 | internal/poll/webhook.go:649-656 \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":"internal/poll/events.go"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"796eca4c2fc08c915574446f7ad0ce7092a8999450484ed6e119deb57c0c7a9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/runtime/pi_personas.go:415-422 | internal/runtime/pi_personas.go:424-431 \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 \u0060internal/runtime/pi_personas.go:415\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":"internal/runtime/pi_personas.go"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a34d6429de10af1df576501472f2355512a0694d4a221e7896c333d2ef1f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/behaviourtest/run.go:75-82 | pkg/behaviourtest/run_playback.go:91-98 \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 \u0060pkg/behaviourtest/run.go:75\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, \u0060pkg/behaviourtest/run_playback.go:86\u0060 calls \u0060NewPlaybackDriver\u0060 and \u0060pkg/behaviourtest/run.go:70\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":"pkg/behaviourtest/run.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"df811745459779a084242f57809369881a53cae24ebc18bccaed4ee537c32d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/behaviourtest/steps/base_dispatch.go:57-64 | pkg/behaviourtest/steps/base_dispatch.go:207-214 \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 \u0060pkg/behaviourtest/steps/base_dispatch.go:57\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"56882a15d93521b44fd3156a75a717b9af45ac6bd24a8cae0ba26187b8b31bca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/behaviourtest/steps/runtime.go:468-475 | pkg/behaviourtest/steps/runtime.go:515-522 \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 \u0060pkg/behaviourtest/steps/runtime.go:468\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":"pkg/behaviourtest/steps/runtime.go"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"45930e28c932f2b7aa3657eb7c191b71e4a178e3db2634b955eea062d0cd0130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): internal/harness/compose.go:1491-1497 | internal/harness/compose.go:1513-1519 | internal/harness/compose.go:1583-1589 | internal/harness/compose.go:1606-1612 | internal/harness/compose.go:1680-1686 | internal/harness/compose.go:1703-1709 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"internal/harness/compose.go"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"3871af9d69122f330a60c21e8be9b4652e904476c9f777a8177f0f53e7c86f88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/harness/compose.go:1140-1146 | internal/harness/compose.go:1199-1205 | internal/harness/compose.go:1263-1269 \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 \u0060internal/harness/compose.go:1140\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":"internal/harness/compose.go"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdc3a21d09d835c62499230d4e9fce81419db8697fba1df4daaeaced3b34a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/cli/admin.go:764-770 | internal/cli/admin.go:1001-1007 \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":"internal/cli/admin.go"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03ad7547048665e7c1ac83e7d2d56a320eefdc2f64971c64871c8d4d30a8146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/cli/fetchreviewthreads.go:26-32 | internal/cli/postreview.go:117-123 \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":"internal/cli/fetchreviewthreads.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c8bf78f6a83aa2f6b62b27b8bf5fea255cffae02c3c075ead76d926dd9d88d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/cli/run.go:6176-6182 | internal/runtime/codex_run.go:69-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/cli/run.go:6176\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":"internal/cli/run.go"},"region":{"startLine":6176}}}],"partialFingerprints":{"codehealthFindingId/v1":"60805035cf05257684e8de39c39af91399db2682caf2d08a55621ffc0527836a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/dispatch/gcf/gcp.go:441-447 | internal/dispatch/gcf/gcp.go:1216-1222 \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 \u0060internal/dispatch/gcf/gcp.go:441\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0a8afdcf39ca89f3e04cb4b9f74ff94e1a5ebf3c3a11f60811fe4fa216280d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/dispatch/gcf/gcp.go:1822-1828 | internal/dispatch/gcf/gcp.go:2057-2063 \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 \u0060internal/dispatch/gcf/gcp.go:1822\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6d466383c366292abf43514a3471e1e7ddf53905db4c314e14a88747c85347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:1284-1290 | internal/dispatch/gcf/provisioner.go:1361-1367 \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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1f54749f4572e9b44bc25c4e0894939e55bca78eaf42a711a550c181deff60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/forge/gitlab/repo.go:1292-1298 | internal/forge/gitlab/repo.go:1498-1504 \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":"internal/forge/gitlab/repo.go"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fd2367602afc4e1dbbef2069ee779be3b16fa0d6f333ee6a366325aa767a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/harness/compose.go:1826-1832 | internal/harness/compose.go:1890-1896 \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":"internal/harness/compose.go"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7be08f024c03952e9b06b88370a6c9cde40848971158f16259c792bcf4a695"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/harness/compose.go:2301-2307 | internal/harness/compose.go:2510-2516 \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 \u0060internal/harness/compose.go:2301\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":"internal/harness/compose.go"},"region":{"startLine":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5c170ed3fdc38b4ac399ee642000c94eae6bd660ec96c7ecd720b1e853ba5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/mintcore/github.go:741-747 | internal/mintcore/github.go:773-779 \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 \u0060internal/mintcore/github.go:741\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":"internal/mintcore/github.go"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46699a9793a8ea33a3170fa8c24c4a571610fc1e41ed7e425ed3c1a40d2eff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/mintcore/github.go:819-825 | internal/mintcore/github.go:1088-1094 \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 \u0060internal/mintcore/github.go:819\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":"internal/mintcore/github.go"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb837ca7e77b31a989135c8b61b16e88f66a7556237e09c8537bcc0e8782cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/mintcore/jwks_verifier.go:91-97 | internal/mintcore/sts_verifier.go:91-97 \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 \u0060internal/mintcore/jwks_verifier.go:91\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":"internal/mintcore/jwks_verifier.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d054a55a2e191aadcd0ab5aace3ce1cbb2c7ce088b9db64949338ee9604fe01e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/repos/gitlab_roles_rotate.go:1685-1691 | internal/repos/gitlab_webhook_poller.go:730-736 \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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"53db29c22d96c115c498536475d2a40655011d9af38f717e58a61f30c2526bb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/runtime/codex_subagents.go:96-102 | internal/runtime/pi_subagents.go:166-172 \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 \u0060internal/runtime/codex_subagents.go:96\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":"internal/runtime/codex_subagents.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe79c65a26269e1ebc7023d2138ca45e17fb51495052acee6da8df16b9e5203"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1670-1677 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:691-698 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1670\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"a902e947e1715621f76b954d846fd6a30c9021ae55f016c7522372c760572395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/behaviourtest/steps/playback.go:494-500 | pkg/behaviourtest/steps/playback.go:552-558 \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":"pkg/behaviourtest/steps/playback.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1072e97e0758f3d60818b5e88674e63654f2b54ef251a944c86924074356c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1288-1294 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1667-1673 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:476-482 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:688-694 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1288\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"6797abb65f3b5b32d84ded264bc2545960176a061006e2731a7c2da2f6e0ee4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/repos/gitlab_trigger_job_templates.go:293-299 | internal/repos/gitlab_webhook.go:1643-1649 | internal/repos/gitlab_webhook.go:1695-1701 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_job_templates.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"1945713afa8f4a8d962837e2ce542ca5393c5061d04746f0486b61b520417813"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): internal/repos/gitlab_trigger_jobs.go:163-170 | internal/repos/gitlab_trigger_jobs.go:349-356 | internal/repos/gitlab_trigger_jobs.go:436-443 \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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e194e0c30e33935b59c169e4bc0451145e64f8fcaffea6db8b1fba83ccc9c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): internal/security/unicode.go:107-112 | internal/security/unicode.go:122-127 | internal/security/unicode.go:164-169 \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 \u0060internal/security/unicode.go:107\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":"internal/security/unicode.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aee309d714d0dad6d801db753b5a01190167975d434390b8f013d0529f66434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/cli/foreign.go:109-114 | internal/cli/foreign.go:347-352 \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 \u0060internal/cli/foreign.go:109\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/foreign.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8177a783e28374b2eb9089a35e1c86fca45af61dfb4b8d72ee86a818debc5fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): internal/forge/jira/adf.go:731-736 | internal/forge/jira/adf.go:741-747 \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 \u0060internal/forge/jira/adf.go:731\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/adf.go"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f7186386df7e033e3c4898d2829a4a437e25fa39d9ec84018b13725dc9c90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/mintcore/github.go:733-738 | internal/mintcore/github.go:765-770 \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 \u0060internal/mintcore/github.go:733\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":"internal/mintcore/github.go"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d70d6f3fafe44e99b9fdbb11f1236996cccb4ceeaab73c371c4a9475dc9e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/repos/gitlab_trigger_consumer.go:172-179 | internal/repos/gitlab_trigger_dispatch_gate.go:772-779 \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":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e276c9740f6b88552d3bed59fdd3a95c8221b4e7d03195cfca282e705e23e823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): internal/repos/gitlab_trigger_consumer.go:247-250 | internal/repos/gitlab_trigger_jobs.go:520-525 | internal/repos/gitlab_webhook.go:697-702 \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 \u0060internal/repos/gitlab_trigger_jobs.go:520\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cce3d3630c47230cc9e1e7a20d2b26c9f627127737adc848bc689178db1c3d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): internal/cli/issues.go:126-131 | internal/cli/issues.go:452-457 | internal/cli/issues_transition.go:55-59 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/cli/issues.go:126\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":"internal/cli/issues.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb212abe7ee27a0268843f4617e0293bc29f9c458349adab3d3fecfb1eeba41c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): internal/cli/repos_gitlab.go:476-481 | internal/cli/repos_gitlab_service_accounts.go:311-315 | internal/gitlablifecycle/trigger_account.go:78-82 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/cli/repos_gitlab.go:476\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos_gitlab.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2743f7c142a020368a91dc9f18caab0cbe3a4ec747abf4f3685ffdfa861982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/cli/inference.go:165-169 | internal/cli/inference.go:640-644 \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 \u0060internal/cli/inference.go:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/inference.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6021d8175bd57fb4d73c6b99f760114739e407ff834eee409bdb0321876e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/cli/mint.go:1496-1500 | internal/cli/mint_setup.go:173-177 \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 \u0060internal/cli/mint.go:1496\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":"internal/cli/mint.go"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"166168407b597a36ef9c60342b79e61197c167737c746034a6931fd9a708c2be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/cli/run.go:8444-8448 | internal/harness/registry.go:85-89 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/cli/run.go:8444\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":"internal/cli/run.go"},"region":{"startLine":8444}}}],"partialFingerprints":{"codehealthFindingId/v1":"564875ae0c0910b9d00350cb255d3f5a57ec50f9a0daebe64290f7be649093fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/harness/compose.go:2105-2109 | internal/harness/compose.go:2283-2287 \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 \u0060internal/harness/compose.go:2105\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":"internal/harness/compose.go"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7144f6f7900a95d88738bd0584718cce030d28f98ad282a5ab880c24c9c3dcb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/repos/converge.go:816-820 | internal/repos/managed_config_writeback.go:77-81 \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 \u0060internal/repos/converge.go:816\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":"internal/repos/converge.go"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d9af80370080804eadcdfa97fbdde96ef1304f74a02ffd267c9f7250759f35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/repos/gitlab_roles.go:545-549 | internal/repos/gitlab_roles_rotate.go:1123-1130 \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 \u0060internal/repos/gitlab_roles.go:545\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":"internal/repos/gitlab_roles.go"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d473e2b9c8577a09f1f9881017ec67f245022cf88b2e79f01ab1b9e9bcb6208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/repos/gitlab_roles_cleanup.go:575-579 | internal/repos/gitlab_service_accounts.go:303-307 \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 \u0060internal/repos/gitlab_roles_cleanup.go:575\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":"internal/repos/gitlab_roles_cleanup.go"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dea812e648bc646ec8bc0954e4b03a9c4f0baec5a50029b65cdf82974b99b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/repos/gitlab_roles_rotate.go:871-876 | internal/repos/gitlab_roles_rotate.go:881-886 \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 \u0060internal/repos/gitlab_roles_rotate.go:871\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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"81291791686626f28ae81c392bbf563a5a70c5c2e6e9d704a37d8d13974c297b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/repos/gitlab_trigger_account.go:983-987 | internal/repos/gitlab_trigger_account.go:1169-1173 \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 \u0060internal/repos/gitlab_trigger_account.go:983\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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24e53c057111474047e293db507dc40b815f87b8e9081838887c877a9a5d035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/repos/gitlab_trigger_account.go:1791-1795 | internal/repos/gitlab_trigger_schedules.go:683-687 \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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbf9efc905bfa9ab25a212eb082277aaec8088639be424cccb3df5a741a100f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): cmd/mint/main.go:165-172 | internal/dispatch/gcf/provisioner.go:1894-1901 | internal/maputil/maputil.go:6-13 | internal/runtime/pi_gateway.go:356-363 | internal/sandbox/sandbox.go:1316-1323 | pkg/behaviourtest/drivers/install/slotpool.go:1225-1232 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Check import visibility before settling on that home: \u0060internal/dispatch/gcf/provisioner.go\u0060, \u0060internal/maputil/maputil.go\u0060, \u0060internal/runtime/pi_gateway.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mint/main.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6d8ce40b1b1f4a732a03e69ea9b39511f5ad163b98d1d0aed76050ff196746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cmd/mint/proxy.go:27-32 | internal/mintcore/handler.go:948-953 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Check import visibility before settling on that home: \u0060internal/mintcore/handler.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mint/proxy.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7086b0b87bb61707eb1220ab3a44273ca1d2c96927e96b8f571d6872dfa93220"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/actorcache/actorcache.go:115-123 | internal/normentity/id.go:83-91 \u2014 before extracting anything, compare \u0060internal/actorcache/actorcache.go\u0060 and \u0060internal/normentity/id.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/actorcache/actorcache.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"91df7fb3c438582791169e32e9ded468e88e8eace3c39d19374a0dc2c39d96f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/cli/provider_profile_report.go:244-251 | pkg/behaviourtest/report.go:276-283 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Check import visibility before settling on that home: \u0060internal/cli/provider_profile_report.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/provider_profile_report.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"be12eba5a3e8665945872aa464e40ef8693ca98ead0140689d3ebfc74da94e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/cli/repos_gitlab_service_accounts.go:277-283 | internal/gitlablifecycle/trigger_account.go:44-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos_gitlab_service_accounts.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f479ddddfa277ee624c7ec415d648116524c31f5fd34e7e5985afd9a5fd994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/dispatch/cf/provisioner.go:929-936 | internal/statuscomment/statuscomment.go:606-613 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/cf/provisioner.go"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"02737fb5dc01f8ba195d5ed0484f4f440ef22809cfe17a75d7be75b0c808bf41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/forge/github/github.go:1109-1118 | internal/forge/gitlab/gitlab.go:384-393 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7bfca2cc595d63f5b9f9d74f82c5bd1d865cf0b7156e9d31a1e1982487311f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/forge/github/github.go:2158-2163 | internal/forge/gitlab/repo.go:36-41 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":2158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c500412ac171dfedbb1cd867c9db3f0e9a19d87b213f0451bf0b55547b94a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/forge/github/github.go:3761-3767 | pkg/behaviourtest/suite/init.go:291-297 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/forge/github/github.go:3761\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. Check import visibility before settling on that home: \u0060internal/forge/github/github.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":3761}}}],"partialFingerprints":{"codehealthFindingId/v1":"5163070e4b32668300a27a03cabadfce8d3da3f366a8abbbd7b9aa1dc18dff3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/forge/gitlab/gitlab.go:273-282 | internal/forge/jira/client.go:479-488 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"08030a61ae3a3800b655fe25fdeeb57a60bb1de109d65d38a43534ca1b896c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/forge/jira/adf.go:907-916 | internal/jirapoll/discover.go:480-489 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/adf.go"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fabc6f7dd932d0abe1245ce08b32093ca8d43c6c3e98b6b77b24534cff7879b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/jirapoll/convert.go:321-327 | internal/poll/convert.go:430-436 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/jirapoll/convert.go"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c074a8945a49fa7e303e4026a6766b8bb92fe0368280241e657819a6c39a425"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/jirapoll/discover.go:25-32 | internal/tracker/jira_client.go:29-36 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/jirapoll/discover.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aee51a56fb8bae9a6dfd65dcf9e326e6c08bc965fbccfbbc08ad97882ce3d40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/jirapoll/lock.go:80-86 | internal/poll/poll.go:859-865 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/jirapoll/lock.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea12a66d73576dfe16af2dc9d74071e48c69043350c0e6c09d5561bdf2fd3aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/repos/gitlabci.go:2006-2013 | internal/repos/manifest_set.go:979-986 \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":"internal/repos/gitlabci.go"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8aa9636beef2f1c92b821a6db2621cbcc8da3d2e0ed5dc532ae571ab4827d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/security/hooks.go:301-307 | internal/security/sandbox_hooks.go:44-50 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks.go"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cad70fb5a4b119aa9a12a1ff17bca8c630589b91986f34798cb6d6a743d7cbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:188-200 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:818-830 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060workflowFile\u0060 in one and \u0060agent\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b04aaef4b2a5c7c6fba7ca4b747ff5a4938781c07af69a6f52228d0708edb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:657-666 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:990-999 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54a04ca7598b3e582dd968414fbf3d25fdcd883038a4aa5bf116b04bef1836c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:891-902 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:113-124 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b8bb7157769f7d098a0031dd766b47d43711cd6b65fe2b174062320a126d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/behaviourtest/drivers/scm/github/github.go:49-56 | pkg/behaviourtest/drivers/scm/gitlab/gitlab.go:40-47 \u2014 \u0060pkg/behaviourtest/drivers/scm/github/github.go\u0060 and \u0060pkg/behaviourtest/drivers/scm/gitlab/gitlab.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 53 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/scm/github/github.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"add87d489b53dc57fbeb669e0d8ef19bbf6109f552af081dbd04ba1638f43eec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/behaviourtest/drivers/scm/github/github.go:102-108 | pkg/behaviourtest/drivers/scm/gitlab/gitlab.go:93-99 \u2014 \u0060pkg/behaviourtest/drivers/scm/github/github.go\u0060 and \u0060pkg/behaviourtest/drivers/scm/gitlab/gitlab.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 53 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/scm/github/github.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"054e0513ae8dc0d34ad7cb3d16d6dd203ecaeaa40450d319644ce87e47b11ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/behaviourtest/drivers/scm/github/github.go:110-116 | pkg/behaviourtest/drivers/scm/gitlab/gitlab.go:101-107 \u2014 \u0060pkg/behaviourtest/drivers/scm/github/github.go\u0060 and \u0060pkg/behaviourtest/drivers/scm/gitlab/gitlab.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 53 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/scm/github/github.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"6527f989f86efc8d920f00d03c78531be29527b620d76fb5618ad32888ff78fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/behaviourtest/drivers/scm/github/github.go:118-124 | pkg/behaviourtest/drivers/scm/gitlab/gitlab.go:109-115 \u2014 \u0060pkg/behaviourtest/drivers/scm/github/github.go\u0060 and \u0060pkg/behaviourtest/drivers/scm/gitlab/gitlab.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 53 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/scm/github/github.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a618dddf71c2977ef9b34dc0cd094bd62ff0fc40dda469466f6249b56975ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/config/managed_safety.go:38-44 | internal/runtime/pi_personas.go:683-689 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/managed_safety.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c875ce41e47836e768400716248154b167b51755ebcf3df1da32c31edd3b1a50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/jirapoll/poller.go:626-638 | internal/poll/events.go:672-684 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/jirapoll/poller.go"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4e5ef4d729b6af9a15bc2b9c5fe6c11c161743d0c6df3d4e3e0245520df0b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/behaviourtest/steps/bot_role_probe.go:397-403 | pkg/behaviourtest/steps/mint_probe.go:644-650 \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":"pkg/behaviourtest/steps/bot_role_probe.go"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"657c5179f127c4869ae09e2cc2cca6fd3c7ef69b1f5e95c2b42375709f7310a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): internal/cli/inference.go:79-115 | internal/cli/inference.go:337-353 | internal/cli/inference.go:594-616 \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 \u0060internal/cli/inference.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/inference.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e92d0c914128cf073d17c257b16321edf8c3cab5cca47281832efc17c11e6cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): internal/dispatch/gcf/gcp.go:1341-1366 | internal/dispatch/gcf/gcp.go:1398-1423 \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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"07daa3acde6f65c6f2a0263df86aedbaf28f5eee648993d4714f89248aa0142b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/poll/state.go:1117-1133 | internal/poll/state.go:1261-1275 \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 \u0060internal/poll/state.go:1117\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":"internal/poll/state.go"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5be5e626d3214b98611a067316805a3d017ccc3163e4b368c704bacdaf4f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/jirapoll/discover.go:151-162 | internal/jirapoll/discover.go:200-215 \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 \u0060internal/jirapoll/discover.go:151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/jirapoll/discover.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81f3881ea9d3658ff6f6d7d313679cad2b0ea5384bc7ad363d3d43ecea526d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1498-1512 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:621-632 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1498\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"c088e40b2504d14b37cfceb51a3bfebe0efe97b4d8faffd2547990921d1b0d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/cli/repos.go:1263-1271 | internal/cli/repos.go:1348-1362 \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 \u0060internal/cli/repos.go:1263\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos.go"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f911490c01377f1a585a76f9882ac672db3279af5119c5b03d89f638b6c881fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/dispatch/gcf/gcp.go:1844-1857 | internal/dispatch/gcf/gcp.go:2079-2092 \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 \u0060internal/dispatch/gcf/gcp.go:1844\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1844}}}],"partialFingerprints":{"codehealthFindingId/v1":"973b9ce6d1ed4b3e595073d76511b7a18d6a09928913f018146e86d34ac9a26f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/repos/converge.go:3363-3371 | internal/repos/converge.go:3504-3516 \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 \u0060internal/repos/converge.go:3504\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/converge.go"},"region":{"startLine":3363}}}],"partialFingerprints":{"codehealthFindingId/v1":"9027af33acd00f22f949191a829ece3ef24000ab1b94b5c8eac347cd2f0657f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/forge/github/github.go:3941-3953 | internal/forge/github/github.go:3974-3986 \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 \u0060internal/forge/github/github.go:3941\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":"internal/forge/github/github.go"},"region":{"startLine":3941}}}],"partialFingerprints":{"codehealthFindingId/v1":"5964ead1b36a27c328349082e8e0a9e74016d35c30ede1528cdb90c2be09cbc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/dispatch/gcf/gcp.go:2063-2075 | internal/dispatch/gcf/gcp.go:2134-2146 \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 \u0060internal/dispatch/gcf/gcp.go:2063\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":2063}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f4bf3ba599603495c807dbd806f2f15665d84c632dfebba76bc5402a3f20cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/forge/gitlab/poll.go:180-192 | internal/forge/gitlab/poll.go:210-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/forge/gitlab/poll.go:180\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/poll.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c44ae4d43ee4babf14083fe8bec979ec469b3e6e1556efaecaaa44e5026ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/harness/compose.go:2167-2179 | internal/harness/compose.go:2329-2341 \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 \u0060internal/harness/compose.go:2167\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":"internal/harness/compose.go"},"region":{"startLine":2167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead02499cd04353a7221654201509f5c6dcc0ae980b23fb6cb8e31735802207a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/repos/gitlab_roles_rotate.go:443-451 | internal/repos/gitlab_roles_rotate.go:514-526 \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 \u0060internal/repos/gitlab_roles_rotate.go:443\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aacb74c6f4c40cf9b4f1bb1b37645b1e33e36cdc43a185c4a50a3060e664ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/security/unicode.go:86-97 | internal/security/unicode.go:252-263 \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 \u0060internal/security/unicode.go:86\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":"internal/security/unicode.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f739339e0b24f514ce988641158af9ef6968547a10086ce74482b92277aa967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): internal/cli/run_jira.go:731-742 | internal/cli/run_openai.go:1232-1248 \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 \u0060internal/cli/run_jira.go:731\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":"internal/cli/run_jira.go"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fe244466af6d6ad4b3ca2baac0b2357b21823716d3d3b8d0d17daea2158efb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/forge/fake.go:1217-1228 | internal/forge/fake.go:1236-1247 \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 \u0060internal/forge/fake.go:1217\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":"internal/forge/fake.go"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"848c4ec75d8a7dd4ad03cbab95e6dd9dc48e32c10bd59288637a806c831ce26e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/forge/fake.go:3223-3234 | internal/forge/fake.go:3325-3336 \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":"internal/forge/fake.go"},"region":{"startLine":3223}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cab80c227d2e992491b69eb79006f40feeed947e125c518a8645da9012c8cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/poll/events.go:245-255 | internal/poll/events.go:416-426 \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 \u0060internal/poll/events.go:245\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":"internal/poll/events.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"175f380b5c7dd8c2a30f3e9da610cff3abf9936f75d90f0fc12687c5daa744db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go:164-174 | pkg/behaviourtest/drivers/install/repopool_cfmint_stage.go:162-172 \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 \u0060pkg/behaviourtest/drivers/install/repopool_cfmint_previews.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd0c8b9c7eef9e544e79ae046a8d2855974cbcb47a17970a2242249186e6e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/forge/github/github.go:3310-3320 | internal/forge/github/github.go:3377-3387 \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":"internal/forge/github/github.go"},"region":{"startLine":3310}}}],"partialFingerprints":{"codehealthFindingId/v1":"147879499c87d8148bcef51b9d33dab271d09ee4540fd1c7c8ac21a439bff34d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201328 lines \u00D7 2): pkg/behaviourtest/steps/base_dispatch.go:99-120 | pkg/behaviourtest/steps/url_dispatch.go:295-322 \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":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32a164d5ed21d61e6b0860ac3f1e890db6e0566eb1b7dd156d188f8a9f59194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/forge/fake.go:1143-1153 | internal/forge/fake.go:1170-1180 \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 \u0060internal/forge/fake.go:1143\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/fake.go"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f14cc5cdde6b7d157b4de25b380ba96228d12bd46a225d8e3fd712afa7181a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/forge/fake.go:540-550 | internal/forge/fake.go:577-587 \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 \u0060internal/forge/fake.go:540\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":"internal/forge/fake.go"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a0aaed58f486aa757a90b180c72725dccb104d2914bc23d51494db150b8441"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/dispatch/gcf/gcp.go:272-282 | internal/dispatch/gcf/gcp.go:320-330 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"54970047f28945576aa1fa65a06bb20f3b2b74b5d3db759be98f453a4b86194e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/repos/converge.go:3521-3530 | internal/repos/converge.go:3576-3585 \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 \u0060internal/repos/converge.go:3521\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/converge.go"},"region":{"startLine":3521}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a78c9f6dd5434017e4980d9318ddf3ec12eeec1ee00733c5eee2488137fc9c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/forge/gitlab/hooks.go:215-224 | internal/forge/gitlab/hooks.go:261-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 \u0060internal/forge/gitlab/hooks.go:215\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":"internal/forge/gitlab/hooks.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db28cda16f31ee91ae8ba1f0e75677d5efbadebf8aec76f5b9e5e5016e1abfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/forge/github/github.go:1252-1261 | internal/forge/github/github.go:1289-1298 \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 \u0060internal/forge/github/github.go:1252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2571b98ffadedb072096f10118611294085ec25d1b401ad91837aae66422e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/forge/fake.go:2614-2623 | internal/forge/fake.go:2640-2649 \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 \u0060internal/forge/fake.go:2614\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":"internal/forge/fake.go"},"region":{"startLine":2614}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec982ef71fdce7decf94bb90c40576354d796844b1ae7655080f96a5c0ba91bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/e2etest/cleanup.go:224-233 | internal/e2etest/cleanup.go:255-264 \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 \u0060internal/e2etest/cleanup.go:224\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/e2etest/cleanup.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"719ffa3714da85332b25d2a2ab4fe328a907531ade8f137898684beacdbbce64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/forge/github/github.go:1921-1930 | internal/forge/github/github.go:1947-1952 \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 \u0060internal/forge/github/github.go:1921\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":"internal/forge/github/github.go"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68b55bcae3b5af83dcc3a35c017f29330a93584568230016e7ec54be3804745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): internal/forge/gitlab/ci.go:1162-1171 | internal/forge/gitlab/ci.go:1198-1207 | internal/forge/gitlab/ci.go:1256-1264 \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 \u0060internal/forge/gitlab/ci.go:1162\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060ref\u0060 in one and \u0060jobToken\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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae0eece720f5fc9a7ffcc407fa167ddf86cedea78c6d728d9b436ae04686b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): internal/dispatch/gcf/gcp.go:670-678 | internal/dispatch/gcf/gcp.go:724-732 | internal/dispatch/gcf/gcp.go:1185-1194 \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 \u0060internal/dispatch/gcf/gcp.go:670\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"e334db4f89a821cfa20d77118bddec8dd266d7cf57bde52c74feef46574a6ebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/cli/repos.go:1304-1313 | internal/cli/repos.go:1315-1324 \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 \u0060internal/cli/repos.go:1304\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos.go"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc3b49268fceb2377e1670e831c20ea801abd1f3f26be5bda737487ee6bf252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/forge/gitlab/ci.go:892-901 | internal/forge/gitlab/ci.go:1012-1021 \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 \u0060internal/forge/gitlab/ci.go:892\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":"internal/forge/gitlab/ci.go"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f4314ca3df5ef50287eaeae2ab5f65b59aa67e164d6d61c4a70df37b26ada7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/repos/jira_poll.go:368-377 | internal/repos/jira_poll.go:399-408 \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 \u0060internal/repos/jira_poll.go:368\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":"internal/repos/jira_poll.go"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe88806d861f43bad71efd71497c381f120e8167c95773631eca3420714a747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/repos/gitlab_service_account_converge.go:533-542 | internal/repos/gitlab_service_accounts.go:879-888 \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 \u0060internal/repos/gitlab_service_account_converge.go:533\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a950bf77935e404fb9c211680ac5994bc54be15d62b3a631abd2e9c29bffc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/behaviourtest/steps/base_dispatch.go:47-55 | pkg/behaviourtest/steps/base_dispatch.go:198-205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/steps/base_dispatch.go:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"568858ee1dff3ca1cef752ea0a26a0bd78f6e6e180515189f4b94804e98dd9ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): internal/dispatch/gcf/gcp.go:296-304 | internal/dispatch/gcf/gcp.go:348-356 | internal/dispatch/gcf/gcp.go:772-780 | internal/dispatch/gcf/gcp.go:848-856 | internal/dispatch/gcf/gcp.go:1179-1187 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dispatch/gcf/gcp.go:296\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c5dd1b6d1dbfa5ffc0e745746102b5d1b2309b7e8eab81b79b526df9ce1bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dispatch/gcf/gcp.go:695-703 | internal/dispatch/gcf/gcp.go:751-759 \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 \u0060internal/dispatch/gcf/gcp.go:695\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86f044ebc9acfd88f25aa05f0d6f150999f65d3d228193116122116c445f70a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): internal/dispatch/gcf/gcp.go:276-284 | internal/dispatch/gcf/gcp.go:324-332 | internal/dispatch/gcf/gcp.go:573-581 \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 \u0060internal/dispatch/gcf/gcp.go:276\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"74520d57c6df4167a38d3d0434a4109eb4bdce3129e7f47847bc547a0dc14d34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/dispatch/gcf/gcp.go:1376-1384 | internal/dispatch/gcf/gcp.go:1433-1439 | internal/dispatch/gcf/gcp.go:1476-1482 \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 \u0060internal/dispatch/gcf/gcp.go:1376\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"c966f7c72d14481b8669be6afa0f5fe77dd1c4ec9f159cf65ae6dcf02967f916"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): internal/e2etest/cleanup.go:222-230 | internal/e2etest/cleanup.go:253-261 | internal/e2etest/cleanup.go:285-293 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/e2etest/cleanup.go:222\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":"internal/e2etest/cleanup.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"515291c3ea29434ab2c9f0c53199e79f6806b84caf5b48b9ff362666cc251b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/harness/forge.go:98-115 | internal/harness/forge.go:179-196 \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 \u0060internal/harness/forge.go:98\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":"internal/harness/forge.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"981826f84552ed83ef77043f173d67073b4eeab462ca688e64d25229d80ca217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/dispatch/cf/provisioner.go:990-998 | internal/dispatch/cf/provisioner.go:1052-1060 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060workerName\u0060 in one and \u0060previewAlias\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":"internal/dispatch/cf/provisioner.go"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9afbc74c93dd20890d9fe84c39a9ed5cbfa00923788745d2702d5fabbc932e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): internal/dispatch/gcf/gcp.go:297-305 | internal/dispatch/gcf/gcp.go:349-357 | internal/dispatch/gcf/gcp.go:665-673 | internal/dispatch/gcf/gcp.go:696-704 | internal/dispatch/gcf/gcp.go:719-727 | internal/dispatch/gcf/gcp.go:752-760 | internal/dispatch/gcf/gcp.go:773-781 | internal/dispatch/gcf/gcp.go:801-809 | internal/dispatch/gcf/gcp.go:849-857 | internal/dispatch/gcf/gcp.go:1180-1188 \u2014 all 10 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 \u0060internal/dispatch/gcf/gcp.go:297\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"571db2b49ef86951af4127e6dce7a7b2293f9aaf6d3c61bf2bf0ff4274227fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/e2etest/cleanup.go:329-337 | internal/e2etest/cleanup.go:357-365 \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":"internal/e2etest/cleanup.go"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"62dd428226f8a26f0895550561a411e028ae7d0344f1d0ce063b12b16b4129cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/forge/gitlab/ci.go:778-786 | internal/forge/gitlab/ci.go:823-831 \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 \u0060internal/forge/gitlab/ci.go:778\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/ci.go"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f253e3663410bf5697c2505107e1ea1d741ac04b678920162863ca8d8556b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/forge/gitlab/mr.go:279-287 | internal/forge/gitlab/mr.go:349-357 \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 \u0060internal/forge/gitlab/mr.go:279\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":"internal/forge/gitlab/mr.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfdf4fbc7fa2fbc1808a89ff1fe3e333c3a8ca17743290c33c785f7a879f54e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/forge/gitlab/poll.go:167-175 | internal/forge/gitlab/poll.go:197-205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/forge/gitlab/poll.go:167\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":"internal/forge/gitlab/poll.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7c21598ca07690f30b1a80ccae5c81f04e61dbc196c5364d4395c70ffd0149"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/forge/gitlab/repo.go:226-234 | internal/forge/gitlab/repo.go:279-287 \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 \u0060internal/forge/gitlab/repo.go:226\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/repo.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"51040cb3f2e21e194de7eaaec83d99df49717e19c912675195cb35c5a60607a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/forge/gitlab/ci.go:1872-1879 | internal/forge/gitlab/deploy_keys.go:221-228 \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 \u0060internal/forge/gitlab/ci.go:1872\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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcd5cbc1a639d6f904eeca78dfe7155230a3b0391ca4677ea7e894c8985abfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/repos/gitlab_trigger_account.go:1801-1808 | internal/repos/gitlab_trigger_schedules.go:693-700 \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 \u0060internal/repos/gitlab_trigger_account.go:1801\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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"0574e8340e2a6431dafaecd80ff4f5e15fc7ff26e706dc113b8924f9494d6c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/behaviourtest/steps/bot_role_probe.go:286-293 | pkg/behaviourtest/steps/mint_probe.go:420-427 \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 \u0060pkg/behaviourtest/steps/bot_role_probe.go:286\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/bot_role_probe.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"f831a97bce0549d576ccefc10ee9d9d07417e8812aec8d2ae008c2da133d23c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/forge/github/github.go:3426-3433 | internal/forge/github/github.go:3481-3488 \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":"internal/forge/github/github.go"},"region":{"startLine":3426}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd76e2b5ea449d038ad6523d8a1cd42918f16ba20b4cd6786e74cb43cae4c310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/cli/agent.go:694-700 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:591-598 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:924-931 \u2014 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go\u0060 and \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 254 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/cli/agent.go:694\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. Check import visibility before settling on that home: \u0060internal/cli/agent.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/agent.go"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71147d7f292cd4dad58532ed6facfb5064fd3a7967eb6229c7f3ec28f17167d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/dispatch/gcf/gcp.go:1394-1401 | internal/dispatch/gcf/gcp.go:1449-1456 \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 \u0060internal/dispatch/gcf/gcp.go:1394\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3268889b8db1858488710e4c0932eabded96ac4beea75bd32eff93bd0b7ee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/runtime/dummy.go:366-373 | internal/runtime/dummy.go:478-485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"internal/runtime/dummy.go"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"23954cc1d1aec65add330660648a39e505258f10a8ba83d06e73ef0641701456"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/repos/gitlab_roles.go:573-579 | internal/repos/gitlab_roles.go:687-694 \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 \u0060internal/repos/gitlab_roles.go:573\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":"internal/repos/gitlab_roles.go"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5888594dab7274646910e7978a26c9b664508c66b08863347f99fe5f4ebdd34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): internal/forge/github/github.go:3426-3433 | internal/forge/github/github.go:3481-3488 | internal/forge/github/github.go:5478-5485 | internal/forge/github/github.go:5623-5630 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"internal/forge/github/github.go"},"region":{"startLine":3426}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31144dea37ecef86915b6ddad28040d02f5fff2810004326c0de02ef584b734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/repos/converge.go:3352-3358 | internal/repos/converge.go:3496-3503 \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 \u0060internal/repos/converge.go:3352\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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":"internal/repos/converge.go"},"region":{"startLine":3352}}}],"partialFingerprints":{"codehealthFindingId/v1":"31184a66a895e3313a2aaca98c6df9e44f28d9c4abd6e75cb75632834cdcf6c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:455-462 | pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:668-675 \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 \u0060pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go:455\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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"09950bcc59a1ae37351c0d1d86bc842ab5bac09240b70fa9a4a3d86a45567fa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/forge/gitlab/poll.go:439-446 | internal/forge/gitlab/service_accounts.go:255-262 \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 \u0060internal/forge/gitlab/poll.go:439\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":"internal/forge/gitlab/poll.go"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"153a19e637b5226c4e554b09c98bf49b64e15d9715ba8b93010b8ad2a3d48cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1266-1273 | pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1648-1655 \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 \u0060pkg/behaviourtest/drivers/ci/githubactions/githubactions.go:1266\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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d111e105c8d33355e9488d44a98b5e32ad0f4f2ecd6f28b68284d613907d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/forge/gitlab/ci.go:833-840 | internal/forge/gitlab/ci.go:906-913 \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 \u0060internal/forge/gitlab/ci.go:833\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":"internal/forge/gitlab/ci.go"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3e884396fd0d2c86440a7abaa31dd303b9cb4a6df82fc7779807eeebc0e648"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/behaviourtest/steps/base_dispatch.go:86-93 | pkg/behaviourtest/steps/url_dispatch.go:279-285 \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 \u0060pkg/behaviourtest/steps/base_dispatch.go:86\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff286bc8713e7cbb45f6840996b70ef0ab7a5e4742edbcf6d37123235b32c71e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/mintcore/jwks_verifier.go:227-234 | internal/mintcore/sts_verifier.go:172-179 \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 \u0060internal/mintcore/jwks_verifier.go:227\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/mintcore/sts_verifier.go:170\u0060 calls \u0060Set\u0060 and \u0060internal/mintcore/jwks_verifier.go:225\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":"internal/mintcore/jwks_verifier.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4f9c7bfb127034d1c88514074f0931d5b0d5e50cc185c976a9773def9829c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/behaviourtest/steps/reaction.go:50-57 | pkg/behaviourtest/steps/runtime.go:260-267 \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 \u0060pkg/behaviourtest/steps/reaction.go:50\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":"pkg/behaviourtest/steps/reaction.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e51ef0674de6d4972f82b2deb6a6b5cd8c40b347d366a59cb41bffae53fef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/forge/gitlab/ci.go:295-302 | internal/forge/gitlab/ci.go:523-530 \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":"internal/forge/gitlab/ci.go"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f9c316da17e4e7101442eef3d632576158cf1dfb703daf89c2224ffd0615f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/artifacts/telemetry.go:102-109 | internal/artifacts/telemetry.go:116-123 \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 \u0060internal/artifacts/telemetry.go:102\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":"internal/artifacts/telemetry.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"dffd05ee6adc3ac49eff0d967f7fb1faefa9609b29c3f4991a8afa00e5c31444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/security/ssrf.go:181-188 | internal/security/ssrf.go:228-235 \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 \u0060internal/security/ssrf.go:181\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":"internal/security/ssrf.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"407a9c2c86441ab91d09126f3dc26feb96349d82704e42a974873ee295b09b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/dispatch/gcf/gcp.go:507-513 | internal/dispatch/gcf/gcp.go:603-609 | internal/dispatch/gcf/gcp.go:829-835 \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 \u0060internal/dispatch/gcf/gcp.go:507\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b71e2433a3acdeb9633ea50b9d44b348525b0405d0ddedc7333b959cc3382f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/dispatch/gcf/gcp.go:1420-1426 | internal/dispatch/gcf/gcp.go:1463-1469 \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 \u0060internal/dispatch/gcf/gcp.go:1420\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"573f0695ca54aca8b19a85295a1581c3f6de66115d3b74dec1ee313ebec5697a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/dispatch/gcf/gcp.go:1426-1432 | internal/dispatch/gcf/gcp.go:1469-1475 | internal/dispatch/gcf/gcp.go:1570-1576 \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 \u0060internal/dispatch/gcf/gcp.go:1426\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1426}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5126e0a1c7d81db1d22da96f1c697942019d0ccf1f29c7758c73e8b89ee0eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): internal/dispatch/gcf/gcp.go:1282-1288 | internal/dispatch/gcf/gcp.go:1705-1711 | internal/dispatch/gcf/gcp.go:1780-1786 | internal/dispatch/gcf/gcp.go:1868-1874 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dispatch/gcf/gcp.go:1282\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc25d5a4ccd418f42a4670ffb495653fe9012af90caaea8fd62f1a43e9ae6da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/dispatch/gcf/gcp.go:1511-1517 | internal/dispatch/gcf/gcp.go:2164-2170 \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 \u0060internal/dispatch/gcf/gcp.go:1511\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad6e4e1e1885dbefe79b93ba26fece16eec6004f9ca94c523617fcd70d0cc45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/forge/github/github.go:1484-1490 | internal/forge/github/github.go:2601-2607 \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 \u0060internal/forge/github/github.go:1484\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":"internal/forge/github/github.go"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"e873783f809f6b4a016869cb774e8314d2a7f9fbf6ec6ab80eb0727ae1e997b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/harness/compose.go:2095-2101 | internal/harness/compose.go:2273-2279 \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 \u0060internal/harness/compose.go:2095\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":"internal/harness/compose.go"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e59b82b01d7f44c8fd9d0d0bae9403a2ad9b2388427bcf771adc6d25a62457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/harness/forge.go:88-94 | internal/harness/forge.go:169-175 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/forge.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"41720e33e2b433239a1eb67bb76ebead70d1264dccc972f90858ef59dbf5fdce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/dispatch/gcf/gcp.go:547-553 | internal/dispatch/gcf/gcp.go:661-667 | internal/dispatch/gcf/gcp.go:715-721 \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 \u0060internal/dispatch/gcf/gcp.go:547\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7805bbc8ff43c8d336aaa5dbd14b6a7c60775e32a74ad34883dac2d111a51e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/dispatch/gcf/gcp.go:1512-1518 | internal/dispatch/gcf/gcp.go:1586-1592 | internal/dispatch/gcf/gcp.go:2165-2171 \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 \u0060internal/dispatch/gcf/gcp.go:1512\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"c879a89e123ee0d8d9105e94782269be1c56123df0c9b174df9980b3d35e7d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/dispatch/gcf/gcp.go:437-443 | internal/dispatch/gcf/gcp.go:620-626 | internal/dispatch/gcf/gcp.go:1212-1218 \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 \u0060internal/dispatch/gcf/gcp.go:437\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4e460f6d3523ca5c7cb675fddd494fbd16646740a07c603dab5c09cf2ce9a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): pkg/behaviourtest/steps/dispatch.go:249-255 | pkg/behaviourtest/steps/dispatch.go:323-329 | pkg/behaviourtest/steps/url_dispatch.go:71-77 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/steps/dispatch.go:249\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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"2433ca9259e6ce478520cffc3ec095af4e4350e3eb086130269c653958d9c9be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/dispatch/gcf/provisioner.go:1735-1741 | internal/dispatch/gcf/provisioner.go:1821-1827 \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 \u0060internal/dispatch/gcf/provisioner.go:1735\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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89ec79a69c72de5010561ad0b30b6b647a92727648166376afa762be3d782b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/forge/gitlab/issue.go:148-154 | internal/forge/gitlab/mr.go:409-415 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/forge/gitlab/issue.go:148\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":"internal/forge/gitlab/issue.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03feb1a51f2e81aee25cff97745438a3a39e9ff0e81bc0e6f5b0a26186ff8b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/forge/github/github.go:4068-4074 | internal/forge/github/github.go:4091-4097 \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 \u0060internal/forge/github/github.go:4068\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":"internal/forge/github/github.go"},"region":{"startLine":4068}}}],"partialFingerprints":{"codehealthFindingId/v1":"840224eccbc0d48adb50f76661047b32f3fdd28b952ee0d61e9f66aaaeb191ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/repos/status.go:782-788 | internal/repos/status.go:798-803 \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 \u0060internal/repos/status.go:782\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":"internal/repos/status.go"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"9750f62f9d2e1640feeeb547723fba3f1c2db32a0dfc996bf3d1c5d0e38054e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/mintcore/github.go:632-638 | internal/mintcore/github.go:685-691 \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 \u0060internal/mintcore/github.go:632\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":"internal/mintcore/github.go"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51db47ead0bbadc78ed8c7e5e9b7f839b71164f82617b70baa78a079cb2dd09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 12): pkg/behaviourtest/steps/dispatch.go:83-88 | pkg/behaviourtest/steps/dispatch.go:111-116 | pkg/behaviourtest/steps/dispatch.go:224-229 | pkg/behaviourtest/steps/dispatch.go:299-304 | pkg/behaviourtest/steps/owners.go:119-125 | pkg/behaviourtest/steps/owners.go:269-275 | pkg/behaviourtest/steps/reaction.go:31-36 | pkg/behaviourtest/steps/reaction.go:64-69 | pkg/behaviourtest/steps/url_dispatch.go:99-104 | pkg/behaviourtest/steps/url_dispatch.go:128-133 | pkg/behaviourtest/steps/url_dispatch.go:152-157 | pkg/behaviourtest/steps/url_dispatch.go:179-184 \u2014 there are 12 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 12 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/steps/dispatch.go:83\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, \u0060pkg/behaviourtest/steps/reaction.go:62\u0060 calls \u0060DisableReactionNotifications\u0060 and \u0060pkg/behaviourtest/steps/url_dispatch.go:97\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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd3809bc90faa6e0c7be3837ffbb9bf5a6e9bff62022c81be96defbe1da74b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/forge/gitlab/mr.go:276-282 | internal/forge/gitlab/mr.go:310-316 \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 \u0060internal/forge/gitlab/mr.go:276\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":"internal/forge/gitlab/mr.go"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"80400712009b91c64b053b1ac8eb922c8e6ee185c7cd9e6449e8fc991c394b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/resolve/resolve.go:442-448 | internal/resolve/resolve.go:474-480 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/resolve/resolve.go:485\u0060 calls \u0060isCachePath\u0060, \u0060ToLower\u0060, \u0060Ext\u0060 and \u0060internal/resolve/resolve.go:452\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":"internal/resolve/resolve.go"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"988a622f260e8f25396a90515666ea127121ab5022e53e8c990f86f2e42f1b91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/cli/mint.go:799-805 | internal/cli/mint.go:1037-1043 \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":"internal/cli/mint.go"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a055434399b044f77de26caccb532c9dd821b7bc49df10aeef9f673c9232e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): pkg/behaviourtest/steps/dispatch.go:80-86 | pkg/behaviourtest/steps/dispatch.go:108-114 | pkg/behaviourtest/steps/gateway.go:224-230 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/behaviourtest/steps/dispatch.go:80\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc818583fefac5d0840ee0f6a87dfed31b7f1e0a18226f0622780999dcf5863e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/cli/bootstrap_scan.go:214-225 | internal/cli/bootstrap_scan.go:246-257 \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 \u0060internal/cli/bootstrap_scan.go:214\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/bootstrap_scan.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0975e7a86c6dd7aafd9e2980335bf2d145aaee565c1907b2d0a9ca96c78f5947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/forge/gitlab/ci.go:1882-1888 | internal/forge/gitlab/deploy_keys.go:231-237 \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 \u0060internal/forge/gitlab/ci.go:1882\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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"598bed6e3fdc3d44a165c0df00dac78a8261d98e5cd34229f0504895c0544095"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/poll/convert.go:218-224 | internal/poll/convert.go:232-238 \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 \u0060internal/poll/convert.go:218\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":"internal/poll/convert.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaaea53b4c12a205e8734772406f7e645107c993a7b4584334bea307f6275130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/fetch/audit.go:31-37 | internal/security/trace.go:121-127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/fetch/audit.go:31\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":"internal/fetch/audit.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9699a108b6462c4c1b3dc91379987c480269b9e74028f3aafb3fb4f1820bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/forge/gitlab/mr.go:561-567 | internal/forge/gitlab/mr.go:579-585 \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 \u0060internal/forge/gitlab/mr.go:561\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":"internal/forge/gitlab/mr.go"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"89265f80d35401dfec5307f772c92af3e7c3849e7a2e32de76b84a953086532d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/repos/gitlab_roles_rotate.go:1209-1215 | internal/repos/gitlab_roles_rotate.go:1217-1223 \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 \u0060internal/repos/gitlab_roles_rotate.go:1209\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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fb8e842d25a716e76302605f3cb99f052571fa459bd9d3972d7ce951e9511c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/cli/postreview.go:891-897 | internal/cli/postreview.go:909-915 \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 \u0060internal/cli/postreview.go:891\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/postreview.go"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ef664b647787071490ecb0c61e7ca5ee569170a346d90a8643e1e0743e5b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/dispatch/gcf/gcp.go:396-402 | internal/dispatch/gcf/gcp.go:1061-1067 \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 \u0060internal/dispatch/gcf/gcp.go:396\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"945c05b934bb7d6329b5756caada0ff034279eaddf36554bf62b03affa3a452c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/repos/gitlab_jira_poll.go:236-242 | internal/repos/gitlab_trigger_schedules.go:600-606 \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 \u0060internal/repos/gitlab_jira_poll.go:236\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_jira_poll.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"690256b8498eaf9f3a5affa9e615d0c6b6551d299f3e3124642ff2a97b9fc7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/harness/harness.go:148-155 | internal/resolve/resolve.go:109-116 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/harness/harness.go:148\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":"internal/harness/harness.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b036f2471b11836b81056ffd6153c36b73b7f9fb262034465a778c66cbc0cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/forge/github/github.go:4236-4241 | internal/forge/github/github.go:4365-4370 \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 \u0060internal/forge/github/github.go:4236\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":"internal/forge/github/github.go"},"region":{"startLine":4236}}}],"partialFingerprints":{"codehealthFindingId/v1":"061eae3c9dcf1aae33e7df4e1eadc418043d430f14311250a95618ba12fa51b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/runtime/codex_bootstrap.go:521-526 | internal/runtime/pi_bootstrap.go:975-979 \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 \u0060internal/runtime/codex_bootstrap.go:521\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":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fec90ac09081b2ae30c2b6161c854d9f77026266c20a4029f2ba26d7c47e031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/behaviourtest/steps/dispatch.go:91-96 | pkg/behaviourtest/steps/dispatch.go:154-159 \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 \u0060pkg/behaviourtest/steps/dispatch.go:91\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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e25c749e6dcbee5b7feee1dab39ce1c0b2dd1081105687045b1759b807347b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/behaviourtest/steps/bot_role_probe.go:300-305 | pkg/behaviourtest/steps/mint_probe.go:434-439 \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 \u0060pkg/behaviourtest/steps/bot_role_probe.go:300\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/bot_role_probe.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"22aa080b72a8cfb722893c8cd0e6b2944788ee1ebd36a3439f0418127a5e142d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/cli/repos_gitlab.go:642-647 | internal/cli/repos_gitlab.go:681-686 \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 \u0060internal/cli/repos_gitlab.go:642\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":"internal/cli/repos_gitlab.go"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba51383d13c8fc321324460ec8c833f8b8d89a9b1ad0c01feebca83656ba680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/repos/gitlab_poller_credential_policy.go:203-208 | internal/repos/gitlab_poller_credential_policy.go:210-215 \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 \u0060internal/repos/gitlab_poller_credential_policy.go:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_poller_credential_policy.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c2b9fdba1cc003613b745eb7b14f5dcfc634ccf588c97c93aab26bc530dc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/agentnew/render.go:228-233 | internal/agentnew/render.go:255-260 \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 \u0060internal/agentnew/render.go:228\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":"internal/agentnew/render.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1aea9a5d8513ba859e0217157e9339b3dc4c4a59227410cec2ab8dc862503d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): internal/cli/inference.go:165-170 | internal/cli/inference.go:378-383 | internal/cli/inference.go:640-645 \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 \u0060internal/cli/inference.go:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/inference.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"6920df30704969dbe185c94256dfed022a44a576e91fc802ad4c621a91e1541b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/forge/gitlab/poll.go:68-73 | internal/forge/gitlab/poll.go:98-103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/forge/gitlab/poll.go:68\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"internal/forge/gitlab/poll.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3afff94f910f8019a2af3b64e008676bf7d0a886ce854874ab1da5b909cdab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/runtime/dummy.go:286-291 | internal/runtime/dummy_playback.go:295-300 \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 \u0060internal/runtime/dummy.go:286\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":"internal/runtime/dummy.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"290f8ed37c5ef6c41cc1b059bb506882629e6b4654e98dbf56411cd81d48b16e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/runtime/codex_bootstrap.go:523-528 | internal/runtime/codex_bootstrap.go:634-639 \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 \u0060internal/runtime/codex_bootstrap.go:523\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7b06351308aa6c4c3560e8a5db3c5f822c74e91b2f236a73e67204dbbf98de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/harness/forge.go:77-82 | internal/harness/forge.go:158-163 \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 \u0060internal/harness/forge.go:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/forge.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c33290a450fa0afae330f1bdc3c0f5e61fa52ab37aabd12152223e240a50d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/repos/gitlab_roles.go:517-522 | internal/repos/gitlab_roles_rotate.go:1082-1086 \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 \u0060internal/repos/gitlab_roles.go:517\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":"internal/repos/gitlab_roles.go"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ef10448dd3ab9608e3d26c0d1370af3e2576ded0f96a2aee2a706467309e8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/repos/gitlab_webhook.go:2371-2376 | internal/repos/gitlab_webhook_trigger_account.go:379-384 \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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":2371}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a766e12ff9c145c13831fa3a3b683035e5ec2549303ee1e261791a1c05be49a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): internal/dispatch/gcf/gcp.go:510-515 | internal/dispatch/gcf/gcp.go:606-611 | internal/dispatch/gcf/gcp.go:832-837 | internal/dispatch/gcf/gcp.go:1006-1011 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/dispatch/gcf/gcp.go:517\u0060 calls \u0060waitForIAMOperation\u0060, \u0060Errorf\u0060 and \u0060internal/dispatch/gcf/gcp.go:612\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"668f000271df1d1eb7e68f74efcbaf4ba7e0044ea752fbf9def09f5e7e9dea2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/cli/repos_gitlab.go:663-668 | internal/cli/repos_gitlab.go:690-695 \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 \u0060internal/cli/repos_gitlab.go:663\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos_gitlab.go"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ea9ac83907bf781cf4c282cc38c5b9575b13f255e8c8ae3c3573cba891362a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/behaviourtest/steps/cleanup.go:150-155 | pkg/behaviourtest/steps/cleanup.go:209-214 \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 \u0060pkg/behaviourtest/steps/cleanup.go:150\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":"pkg/behaviourtest/steps/cleanup.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08c099aeb6e50411e5a0886425009d1c8b6974b8dc172d79610d0009c892640"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/behaviourtest/drivers/install/ensure.go:574-579 | pkg/behaviourtest/drivers/install/ensure.go:616-621 \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 \u0060pkg/behaviourtest/drivers/install/ensure.go:574\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":"pkg/behaviourtest/drivers/install/ensure.go"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b6557ccd545c48c04693270b406157dddf0371b4531f98845673a122df7c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): internal/dispatch/gcf/provisioner.go:1739-1743 | internal/dispatch/gcf/provisioner.go:1781-1785 | internal/dispatch/gcf/provisioner.go:1825-1829 \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 \u0060internal/dispatch/gcf/provisioner.go:1739\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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37c42f8a7b6eec8a972b4a645089528ce05e93f7949857080a7687aed1462d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): internal/harness/compose.go:2105-2109 | internal/harness/compose.go:2283-2287 | internal/harness/compose.go:2492-2496 \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 \u0060internal/harness/compose.go:2105\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":"internal/harness/compose.go"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"19291a15470edb9742fca4be21a67cee316d90aafe34aac8f34f524797a28449"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/cli/inference.go:661-665 | internal/cli/inference.go:671-675 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/cli/inference.go:658\u0060 calls \u0060SplitN\u0060, \u0060BuildRepoProviderID\u0060 and \u0060internal/cli/inference.go:669\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":"internal/cli/inference.go"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"0227db3ae4c0459aa4715ae97f0fda9f7cf38f9fd73bdf8e3b418f75dc07103f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/forge/gitlab/repo.go:553-557 | internal/forge/gitlab/repo.go:1521-1525 \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 \u0060internal/forge/gitlab/repo.go:553\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":"internal/forge/gitlab/repo.go"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bd618d0646b7cb0759a060c5908283d4ae201bc1a15eaf7a8672e487d2353c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/gitlablifecycle/poller_retirement.go:88-92 | internal/gitlablifecycle/trigger_owner.go:758-762 \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 \u0060internal/gitlablifecycle/poller_retirement.go:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/gitlablifecycle/poller_retirement.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"55520f5bbb5c13ba7c3ef58a2dba473ff335e69b24989eafe843ba7485aea438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/forge/jira/client.go:821-825 | internal/forge/jira/client.go:918-922 \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 \u0060internal/forge/jira/client.go:821\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":"internal/forge/jira/client.go"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e1c0a20512bf2ee0e52b19e970c489c70f1017a54735310d23de6f7f368766"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/harness/skill_entry.go:180-184 | internal/harness/skill_entry.go:208-212 \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 \u0060internal/harness/skill_entry.go:180\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":"internal/harness/skill_entry.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52f6cdf6616b6e1b61aa16f4903eec04ae58fdfda49866de7167348c74cf6c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/harness/compose.go:1874-1878 | internal/resolve/resolve.go:755-759 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/harness/compose.go:1874\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":"internal/harness/compose.go"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"03db565ae881222833fa95e42a991b0ab31c908ec835b009279a08ce15330178"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): internal/dispatch/gcf/gcp.go:332-336 | internal/dispatch/gcf/gcp.go:357-361 | internal/dispatch/gcf/gcp.go:422-426 | internal/dispatch/gcf/gcp.go:513-517 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/dispatch/gcf/gcp.go:332\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":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f262af7514caf9fabd7672b924250873848352ee1786de292ab7aa078329a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/repos/converge.go:2642-2646 | internal/repos/converge.go:2651-2655 \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 \u0060internal/repos/converge.go:2642\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":"internal/repos/converge.go"},"region":{"startLine":2642}}}],"partialFingerprints":{"codehealthFindingId/v1":"4147cd3351d96cfe68fd9975ee0ad19525a04ef5a67ffd470e0e33b84d2b515f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/harness/compose.go:2285-2289 | internal/resolve/resolve.go:741-745 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/harness/compose.go:2285\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":"internal/harness/compose.go"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed35a622f9aeb613c75d5f8ae5a2bd52b3720954f20332cc5feedcc7f94cf994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/cli/repos_gitlab_service_accounts.go:302-307 | internal/gitlablifecycle/trigger_account.go:69-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/repos_gitlab_service_accounts.go"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a842486de463bb168922a97fb6b9e834ec043561a97d84e312474124599ee465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/gitlablifecycle/trigger_owner.go:373-377 | internal/gitlablifecycle/trigger_owner.go:407-411 \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 \u0060internal/gitlablifecycle/trigger_owner.go:373\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":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ef69566b6eb0c4c7f26b84742c22a98edfff2769c70c8414491969977d30b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/gitlabroles/readiness.go:73-78 | internal/gitlabroles/readiness.go:320-325 \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 \u0060internal/gitlabroles/readiness.go:73\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":"internal/gitlabroles/readiness.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"797aac55b1f0d3071194149f8eb73b2856fe29fe641ee44de28104dc8d2f073e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/harnessdispatch/input/ghaevent.go:85-89 | internal/harnessdispatch/input/ghaevent.go:298-302 \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 \u0060internal/harnessdispatch/input/ghaevent.go:85\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":"internal/harnessdispatch/input/ghaevent.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3db7d66ae839968386809f70b4cde7a50d03e6a1d85702662045ad2ab9810dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/repos/gitlab_workflow_admission.go:337-341 | internal/repos/gitlab_workflow_admission.go:414-418 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/repos/gitlab_workflow_admission.go:337\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_workflow_admission.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe41a002f790485e46c78a05db0ddbe36583f899467c8e8616f07bb4d7a5a17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): internal/security/hooks/ssrf_pretool.py:541-565 | internal/security/hooks/ssrf_pretool.py:679-703 \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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c997d9721f3a71fde3330d5832cde37c8f278960399552d0cca17160dbdabc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): internal/security/hooks/ssrf_pretool.py:536-555 | internal/security/hooks/ssrf_pretool.py:674-693 | internal/security/hooks/ssrf_pretool.py:824-843 \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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"21afa2a94c47879bd74b2fc50472d12248e472fb67ead0dc893a3e87b3dd5598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 4): internal/security/hooks/canary_posttool.py:52-68 | internal/security/hooks/canary_pretool.py:43-59 | internal/security/hooks/context_suppress_posttool.py:108-125 | internal/security/hooks/tool_allowlist_pretool.py:36-52 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/canary_posttool.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d34e723407bda2fe42c8b18f603be7cbcc481d827a468373121af8ff0668d2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): internal/security/hooks/ssrf_pretool.py:1042-1059 | internal/security/hooks/tirith_check.py:448-464 \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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27596ba085fbb4f87ce45ef09e68793ce30e4709c74a130872c99a5fa4720d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/security/hooks/ssrf_pretool.py:655-669 | internal/security/hooks/ssrf_pretool.py:851-865 \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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"7284761fe2e7130eaaf718472f83358401282bd77415ad258ae7b16198e09bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): internal/security/hooks/canary_posttool.py:72-85 | internal/security/hooks/canary_pretool.py:63-76 | internal/security/hooks/tool_allowlist_pretool.py:195-208 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/canary_posttool.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12d09641a35776218dea008a5af1aa76f15b6938ccd36b23f97355967f37733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): internal/security/hooks/context_suppress_posttool.py:275-283 | internal/security/hooks/secret_redact_posttool.py:665-675 \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":"internal/security/hooks/context_suppress_posttool.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c3aa411b86f6218c90a6aba2f413a94ab11701d401e6d68d4e818faa3efc05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): skills/analyze-transcript/analyze-transcript.py:471-479 | skills/analyze-transcript/analyze-transcript.py:586-594 \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":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b274c1cb4ba70310fffd3f84e8127e706a66abcd25f5ccb16ad8d23391db1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): skills/nextwork/scripts/nextwork.py:153-162 | skills/topissues/scripts/topissues.py:121-130 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c2d776163e434e285f4da4622766be4108f7311aa64b21a0b90d1f7e1f4094"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): skills/nextwork/scripts/nextwork.py:166-173 | skills/topissues/scripts/topissues.py:134-141 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c649824940251b0d0febecabc988eabf4b6c2165c69f573f4bbb624ad52a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): skills/nextwork/scripts/nextwork.py:1211-1218 | skills/topissues/scripts/topissues.py:324-332 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060skills/topissues/scripts/topissues.py:324\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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b60a584426f0a2a42554373aea87869cc76e3c943f750391fdd36cbea11750"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): skills/analyze-transcript/analyze-transcript.py:436-442 | skills/analyze-transcript/analyze-transcript.py:448-454 \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":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94d9a0cef60af68cd9ee55eb10c1997b13bab3a7375e7ad7bba7fd8c8c136c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): skills/analyze-transcript/analyze-transcript.py:883-889 | skills/analyze-transcript/analyze-transcript.py:894-899 \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 \u0060skills/analyze-transcript/analyze-transcript.py:883\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":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"85db52fa390e63b741d2e6acf1e9ce80eb2c21a5eb9b8af4d7436121709bbc01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): skills/nextwork/scripts/nextwork.py:1248-1254 | skills/topissues/scripts/topissues.py:343-349 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3be4d54006442540b45444315a9697f2cbfeeb3d3b097c69fd05e841574eea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): internal/security/hooks/secret_redact_posttool.py:593-608 | internal/security/hooks/tirith_check.py:69-84 | internal/security/hooks/unicode_posttool.py:91-106 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/hooks/secret_redact_posttool.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"2051866496777e4629db31265184514e2594d0ad7879ed631de7919104b74bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): skills/nextwork/scripts/nextwork.py:144-149 | skills/topissues/scripts/topissues.py:112-117 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a4422e040a1094da42a3a9677bc45daaf25ac729696af51e0c698215216fe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): skills/analyze-transcript/analyze-transcript.py:489-496 | skills/analyze-transcript/analyze-transcript.py:598-605 \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":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69b4fbcb9fe23d4dd30542a1533e579415a89a1d671e6d17561f6e05404289e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/sandbox/sandbox.go:1136-1158 | internal/sandbox/sandbox.go:1165-1194 \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":"internal/sandbox/sandbox.go"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"836acd4c940fdbc6326d2fc73af358f96dc5e251d151cc6cb618c2bdadd37f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/sandbox/sandbox.go:1092-1113 | internal/sandbox/sandbox.go:1118-1132 \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":"internal/sandbox/sandbox.go"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a49b196395e8161f65987cc77b94718fde65994ff9d773888b1b8f4255a883c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/sandbox/sandbox.go:2414-2424 | internal/sandbox/sandbox.go:2525-2540 \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":"internal/sandbox/sandbox.go"},"region":{"startLine":2414}}}],"partialFingerprints":{"codehealthFindingId/v1":"016103931537a4d28c6a8f526a2c1797dbe4d95e6c3b02cdc71d456ffce84d6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/sandbox/sandbox.go:972-984 | internal/sandbox/sandbox.go:993-1002 \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":"internal/sandbox/sandbox.go"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b8c798e843774928a5379c4f3ad5b94c36cd81dc6ddd0d085c458937565d21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): internal/sandbox/sandbox.go:1142-1157 | internal/sandbox/sandbox.go:1177-1191 \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 \u0060internal/sandbox/sandbox.go:1142\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/sandbox/sandbox.go:1176\u0060 calls \u0060Sprintf\u0060 and \u0060internal/sandbox/sandbox.go:1141\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":"internal/sandbox/sandbox.go"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac601240a5d7a4b0115f93793c9fbc58ed2519c03a907e33973c3fe21514127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/sandbox/sandbox.go:1093-1099 | internal/sandbox/sandbox.go:1119-1125 \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 \u0060internal/sandbox/sandbox.go:1093\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/sandbox/sandbox.go:1101\u0060 calls \u0060Contains\u0060, \u0060ToLower\u0060, \u0060updateProvider\u0060 and \u0060internal/sandbox/sandbox.go:1126\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":"internal/sandbox/sandbox.go"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"9317e25570c7457c554940d97c8a237a639bd83b54460d580dba9c23e2170561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/sandbox/sandbox.go:2547-2552 | internal/sandbox/sandbox.go:2578-2582 \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 \u0060internal/sandbox/sandbox.go:2547\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, \u0060internal/sandbox/sandbox.go:2545\u0060 calls \u0060removeReplacementRefs\u0060 and \u0060internal/sandbox/sandbox.go:2575\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":"internal/sandbox/sandbox.go"},"region":{"startLine":2547}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc4b15507c67e4e504afb8355691b46c257288a929f95146076ea7890a58969"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: github.com/fullsend-ai/fullsend/internal/mintcore: github.com/fullsend-ai/fullsend/internal/mintcore: abstractness 0.05, instability 0.00, distance 0.95 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"146f827e41e4b970c823253d4f0e447ed6f2f30c4cbd4587e33089c199199ab7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LiveGCFClient (LCOM4 20): LiveGCFClient\u0027s methods fall into 20 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 20 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4c64e21d1cf8d985c0909cfca1df3b404a5b6b6503c06f925889a3a95ca795"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 the repository root runs vitest but declares no coverage provider, so the suite can run and still produce no lcov \u2014 add \u0060@vitest/coverage-v8\u0060 (or \u0060@vitest/coverage-istanbul\u0060) as a devDependency. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: run: an abort while the child is running terminates it: This test starts work it did not wait for (\u0060p\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((r) =\u003E setTimeout(r, 30))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_extension/fullsend-agent.test.mjs"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfc269613e8ae06b4bc422831a2dff1b5c57a49f8a0c953ae42870505c77cd7"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: run: a timeout during an oversized agent_end is still a timeout: This test starts work it did not wait for (\u0060p\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((r) =\u003E setTimeout(r, 10))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_extension/fullsend-agent.test.mjs"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9158e92f50a29547f6f541d48e54f181af3d9d79d73b3e8eaaf8fbbfe613fe0b"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: MCP child dispatch intersects concrete tools and rechecks declared extension trees: This test starts work it did not wait for (\u0060tool\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((r) =\u003E setTimeout(r, 5))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_extension/fullsend-agent.test.mjs"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d720b7f7bca45cada9c5af793db517267fcbed61d5b694563740d3994fd1e6"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: run: a fallback gets the time left of the dispatch, not a fresh timeout: This test starts work it did not wait for (\u0060pending\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((r) =\u003E setTimeout(r, 1600))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pi_extension/fullsend-agent.test.mjs"},"region":{"startLine":2189}}}],"partialFingerprints":{"codehealthFindingId/v1":"798a498c3892b4b95e72a49a0b57d803ee2de9e808547f565f3c846bc486bc48"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: .::github.com/fullsend-ai/fullsend/internal/cli.TestLoadAppSetPEMs_BadDir: Passed 1\u00D7, failed 2\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ed809f559d94221c703f829702513c373aa10a70093a9d571dd8e64a290657d2"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: .::github.com/fullsend-ai/fullsend/internal/cli.TestMintDeployCmd_CloudflareDryRunWithBadPemDir: Passed 1\u00D7, failed 2\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"37ccd6bb0ad2da6d13fe6c8d7c8d64cd794315c547fcfe75ce7d92acd98daa3e"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: .::github.com/fullsend-ai/fullsend/internal/cli.TestMintDeployCmd_DryRunWithBadPemDir: Passed 1\u00D7, failed 2\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9d429414cf4325894fb1c74ea7298eaf83483a1dcad4403ef94d40c9e1351526"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: .::github.com/fullsend-ai/fullsend/internal/dispatch/cf.TestFileExistsAndNonEmpty_NonExistent: Passed 1\u00D7, failed 2\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"053fde17c8cb77cfd9f0c02f7394db43070d881531880862cd56bca6b1602d3d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/run.go: internal/cli/run.go changed 295 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 469 in cli.runAgent at line 493. 205 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/run.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":"internal/cli/run.go"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"099ae4b4d6a87592ac2fb61c4abdc143141e4ceedf90ce4b16f2df5cc5a9bdf9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/repos.go: internal/cli/repos.go changed 93 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 154 in cli.runReposInstall at line 604. 41 of those changes were fix/bug commits, and the other 52 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/repos.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":"internal/cli/repos.go"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfed9efb5477a783cbf1046cdc01b62e7d4d2864c940a2c84348a15bbdd44519"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/converge.go: internal/repos/converge.go changed 81 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 122 in repos.Converge at line 770. 45 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/converge.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":"internal/repos/converge.go"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b8b39107e0053ee6c445aa006579f925a851d8ad7b8a1eb6da7b9c3d617062"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/lock.go: internal/cli/lock.go changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 149 in cli.resolveFromLock at line 944. 32 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/lock.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":"internal/cli/lock.go"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"10184f41629a881ec180c594244f1cc147bf6a8a817877c138873e1736e9433f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/forge/github/github.go: internal/forge/github/github.go changed 116 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in LiveClient.commitFilesTo at line 1762. 70 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/forge/github/github.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":"internal/forge/github/github.go"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a410650c296b3a66b8010bb86ca8d4c5bbd3be371bd360e6fc86c4a7a140184"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/sandbox/sandbox.go: internal/sandbox/sandbox.go changed 73 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in sandbox.sanitizeDownload at line 161. 42 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/sandbox/sandbox.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":"internal/sandbox/sandbox.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"015162d03a4870688cfaca73dba80080aeb1583f421c13de9ff560bd45ca9059"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/github.go: internal/cli/github.go changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in cli.runGitHubSetupPerRepo at line 186. 20 of those changes were fix/bug commits, and the other 24 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/github.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":"internal/cli/github.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc700241dbe1c64d5c22d22c2fd3fc71bbbcb736910f95b620f9a553d41a131"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/admin.go: internal/cli/admin.go changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 110 in cli.runPerRepoInstall at line 339. 8 of those changes were fix/bug commits, and the other 19 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/admin.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":"internal/cli/admin.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad79fdca9177670ad91e1cec122c72855081360f7565f2d45af4d967f698b08b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/pi_run.go: internal/runtime/pi_run.go changed 79 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in PiRuntime.Run at line 1181. 40 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/pi_run.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":"internal/runtime/pi_run.go"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd0dbf4f404d6d14f807822563eb2f7b11d5f9f0a9d3d9a1f93c96aa2242eee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/harness/compose.go: internal/harness/compose.go changed 62 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in harness.LoadWithBase at line 228. 40 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/harness/compose.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":"internal/harness/compose.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"275b6f63bb04a9d1d0320b2fc150b189fc20d3abe4bace3349889d1823b8cba9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/poll/poll.go: internal/poll/poll.go changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 139 in Poller.Run at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/poll/poll.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":"internal/poll/poll.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c8273219204702efb55c52ba87aae3ce8ebdfbe166e472530d2f2ba89c9281"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/install.go: internal/repos/install.go changed 54 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in repos.Install at line 260. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/install.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":"internal/repos/install.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7edc0415ca819ae6a0e7e0ec5162f83fcb4081e7d1dee9b1aa0484ea1b54ab4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/config/config.go: internal/config/config.go changed 64 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in config.validateAgentEntries at line 789. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/config/config.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":"internal/config/config.go"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc13cc9df78dffd7f9663d3d6315b5a7b6a30ad2cf7851b5452a6dd3ec33be7d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_roles_rotate.go: internal/repos/gitlab_roles_rotate.go changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 163 in repos.rotateOneRole at line 354. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_roles_rotate.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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff120c72f76378d63ffcddaa548000ea9f990e28974f1e0d0fda24c45678547b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/codex_run.go: internal/runtime/codex_run.go changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in CodexRuntime.Run at line 519. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/codex_run.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":"internal/runtime/codex_run.go"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f51babb65df76dc555abed1cc368f42188f44f4ed82703088cb0d4e368c895b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_webhook.go: internal/repos/gitlab_webhook.go changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 108 in repos.ensureGitLabWebhookFastPath at line 1956. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_webhook.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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"173ef0a2d463b5e8a7f2c86beb26f7913501fd4d283cc669a68aaa4de89818e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/status.go: internal/repos/status.go changed 47 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in repos.checkRepoStatus at line 298. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/status.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":"internal/repos/status.go"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2848e25295d459ac48946095f918414d2d00c3cfe2d86c7686a18d46d4c0fa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/manifest.go: internal/repos/manifest.go changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in Manifest.validate at line 762. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/manifest.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":"internal/repos/manifest.go"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f90423caa4f9cb78797f2bf344af715aec2bb933fb52cf03af9aa452700483"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/uninstall.go: internal/repos/uninstall.go changed 46 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in repos.uninstallRepoResources at line 318. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/uninstall.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":"internal/repos/uninstall.go"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ec2b990659ad8839af0cc431403da9c649d4fef6a53edb6eab37e130d39e64"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/pi_bootstrap.go: internal/runtime/pi_bootstrap.go changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in PiRuntime.Bootstrap at line 204. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/pi_bootstrap.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":"internal/runtime/pi_bootstrap.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"478fed10c8aeedf2437ff2a2b39ba528f4a1a392b4f4304512148c504ef5c2b7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/harness/harness.go: internal/harness/harness.go changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in Harness.Validate at line 533. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/harness/harness.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":"internal/harness/harness.go"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0894e1813460c319962c304496dfb55a2a72095c06b241192ab0541fc051a3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/codex_bootstrap.go: internal/runtime/codex_bootstrap.go changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in CodexRuntime.Bootstrap at line 131. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/codex_bootstrap.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":"internal/runtime/codex_bootstrap.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e11ae938f3f9144bf86feff749df32ca8da39a85dd2ed701f871c2523b0a71"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/steps/cleanup.go: pkg/behaviourtest/steps/cleanup.go changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in steps.CleanupScenario at line 116. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/steps/cleanup.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":"pkg/behaviourtest/steps/cleanup.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"7246a5e4496e10b2f2cb8f1f836d324a0f18eec327a154b5047b2633ee909f5d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/pi_progress.go: internal/runtime/pi_progress.go changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 83 in runtime.parsePiStream at line 356. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/pi_progress.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":"internal/runtime/pi_progress.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d96a8fe4d4acd3d7d05c06297ad9e85fc47cd59f3e32f8561ddd62e8b27d17"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/probe.go: internal/repos/probe.go changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in repos.ProbeComponentsForAuth at line 87. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/probe.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":"internal/repos/probe.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"83784dded37e3888019bfe1b212712f1b4523c740ccea1b40cab9b1c4f99867a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/claude_progress.go: internal/runtime/claude_progress.go changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in runtime.parseClaudeStream at line 244. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/claude_progress.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":"internal/runtime/claude_progress.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e50d61de470f8d298479553964bc801f7524bcec32ed81a43e71ce5ffcd708"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/drivers/install/slotpool.go: pkg/behaviourtest/drivers/install/slotpool.go changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in slotAllocator.Claim at line 408. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/drivers/install/slotpool.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":"pkg/behaviourtest/drivers/install/slotpool.go"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"df92cc94a2867cc442753394f16e65126a88f3b4d46a39c6323d8cc8a947f1a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/dispatch/gcf/provisioner.go: internal/dispatch/gcf/provisioner.go changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in Provisioner.provisionSelfManaged at line 824. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/dispatch/gcf/provisioner.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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"58250b6d4a58023a143712ca453257d107d7a578387c05405b42f7fbee656e3d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/drivers/ci/githubactions/githubactions.go: pkg/behaviourtest/drivers/ci/githubactions/githubactions.go changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in Driver.settleHarnessDispatchCount at line 1831. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/drivers/ci/githubactions/githubactions.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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a608db5f66356d2463d0e0174b4b1d3962e17c885b73c4bb437f0bab3555ad4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/mint.go: internal/cli/mint.go changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 77 in cli.runMintDeployCloudflare at line 910. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/mint.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":"internal/cli/mint.go"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"024ad9bdb589affe4f9a7b8a3321360fa90f4f3ece67ff0d7e78397160300c1e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/claude.go: internal/runtime/claude.go changed 55 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in runtime.buildRunCommandWithDigests at line 813. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/claude.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":"internal/runtime/claude.go"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"252063fac05c38a52484182bc8699c577b34c7306d6d8e82f2fb568dd0633f8f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/content_collector.go: internal/cli/content_collector.go changed 49 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in contentCollector.Result at line 585. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/content_collector.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":"internal/cli/content_collector.go"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f081de18bbf388c846db704c0cd0ff3b9467602674cb36f9547b14771065d0b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/forge/gitlab/mr.go: internal/forge/gitlab/mr.go changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in LiveClient.ListPullRequestReviewThreads at line 878. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/forge/gitlab/mr.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":"internal/forge/gitlab/mr.go"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b36d1a3c840fdebc3785fd93d500d2c9605d390018374d793506f274128affd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/poll/events.go: internal/poll/events.go changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in Poller.discoverAllEvents at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/poll/events.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":"internal/poll/events.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"314ebc518c4d9dcddcc2d6bdffa72ae88dbdf6e5ca4cb974d88fdb08dcf28af5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/forge/gitlab/repo.go: internal/forge/gitlab/repo.go changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in LiveClient.commitFilesImpl at line 1186. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/forge/gitlab/repo.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":"internal/forge/gitlab/repo.go"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a87bd985cb032d7a32186c67da438726dadba1222873d7c542b7ccd740f982"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_roles.go: internal/repos/gitlab_roles.go changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in repos.provisionOwnRoles at line 449. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_roles.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":"internal/repos/gitlab_roles.go"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"daef45cc0ff510ac9aac1d25a2cc3c4ebf28b8372b49b3641a8fdc7fe92fc20a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/mintcore/handler.go: internal/mintcore/handler.go changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in Handler.serveHTTP at line 236. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/mintcore/handler.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":"internal/mintcore/handler.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4d79351cfec520db819dd610393d939dd582f45996e6822830e26177f5b763"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/run_openai.go: internal/cli/run_openai.go changed 41 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in cli.resolveOpenAICredential at line 516. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/run_openai.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":"internal/cli/run_openai.go"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f72500882e025df5026fb00ee89609957d85c95c5e585f2bf108e0f8aabb9f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlabci.go: internal/repos/gitlabci.go changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in repos.UnmergeGitLabCI at line 1232. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlabci.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":"internal/repos/gitlabci.go"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a02894acbf03e099fe8d5dd3c47bc183d6b985e9d0ae26b1b27c31b9c6699b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/poll/convert.go: internal/poll/convert.go changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in Poller.toNormalizedEvent at line 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/poll/convert.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":"internal/poll/convert.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f9a1002d6e8d15d76c574b01ae496a532db99b3aeb8fe684f331a147da570f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/opencode_run.go: internal/runtime/opencode_run.go changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in OpenCodeRuntime.Run at line 426. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/opencode_run.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":"internal/runtime/opencode_run.go"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"1706d8dfd1b7faaaed4b0bc7b676bebdb78dfad4300050e0274379d4fc0fef8d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/drivers/install/ensure.go: pkg/behaviourtest/drivers/install/ensure.go changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in repoEnsurer.deleteLeftoverForkOwned at line 470. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/drivers/install/ensure.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":"pkg/behaviourtest/drivers/install/ensure.go"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44aaf55201012736742a37c8ca9237324ef85e6136c8d5a6011e05543731c19"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/dummy.go: internal/runtime/dummy.go changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in runtime.executeBehaviourOp at line 358. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/dummy.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":"internal/runtime/dummy.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d94e62c1be8127d10294c2a55e59063700d8dd62156d6e72c0b05e3b8f2905"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/config/interfaces.go: internal/config/interfaces.go changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in perRepoConfig.AgentEntries at line 177. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/config/interfaces.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":"internal/config/interfaces.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aef8e58f3916c8f8f7af83fe264bc5e0747d815cca0da0ad345eb0dcf516e15"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/agent.go: internal/cli/agent.go changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in cli.runAgentSet at line 214. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/agent.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":"internal/cli/agent.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d97855b2912d911b6c34a1e99c42418e03f5e206daff6d2336d5d8e233de99"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/forge/jira/client.go: internal/forge/jira/client.go changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in LiveClient.do at line 350. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/forge/jira/client.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":"internal/forge/jira/client.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"e294d87f9c887b26beea7c030c90a44d2cb2385c598f0e828c4fd647c31b4abb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/config/managed.go: internal/config/managed.go changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in config.applyManagedLayer at line 447. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/config/managed.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":"internal/config/managed.go"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"3514c16086595e4d9339971a0d15c1d47dd9991bb2c7689c23278317e6beceff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/repos_gitlab.go: internal/cli/repos_gitlab.go changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in cli.annotateGitLabRoleLifecycle at line 169. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/repos_gitlab.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":"internal/cli/repos_gitlab.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adc6a94fd9a92a592ca9028d069c3d761a2f8a63c67d67ec6d68d74c89973b6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/postreview.go: internal/cli/postreview.go changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in cli.submitFormalReviewWithDiffs at line 502. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/postreview.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":"internal/cli/postreview.go"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"124535769703777543406b232bc8a010b29693d9c75d14db9fd765d74b2907cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/run_gateway_route.go: internal/cli/run_gateway_route.go changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in cli.runGatewayRefresh at line 611. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/run_gateway_route.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":"internal/cli/run_gateway_route.go"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b28d222053937d9a6ca862db1fd65440025088b7353c70a9b591e3b21fafc6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/harness/forge.go: internal/harness/forge.go changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in harness.BuildConfigMap at line 460. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/harness/forge.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":"internal/harness/forge.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dc65e1050f3271b854c3874eba2d7e36a077c66d759152bc495f10398d6b3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/manifest_edit.go: internal/repos/manifest_edit.go changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in repos.RemoveFromManifest at line 95. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/manifest_edit.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":"internal/repos/manifest_edit.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5867b0431b38534b3de7e04278f694673b70bcebc2dea28022b7e45fcbb8780"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/issues.go: internal/cli/issues.go changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in cli.runIssuesCreate at line 294. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/issues.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":"internal/cli/issues.go"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20dc26d8a00861c4d8d32f9bc9a42e2ad6ffa6ee5ec16afc59a594e4c77aeb0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/codex_hook/fullsend-codex-hook.py: internal/runtime/codex_hook/fullsend-codex-hook.py changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in fullsend-codex-hook.run_script at line 505. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/codex_hook/fullsend-codex-hook.py\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":"internal/runtime/codex_hook/fullsend-codex-hook.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"4000df892822be90c87ff168e972c106ae11717492605f4752bcc6355393da33"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/steps/debuglogs.go: pkg/behaviourtest/steps/debuglogs.go changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in steps.describeDispatchRuns at line 803. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/steps/debuglogs.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":"pkg/behaviourtest/steps/debuglogs.go"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"975e48d9ea83745349c4498b094d881b4d09f8f02e1fddfbcbb841754b6d3ad8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/dispatch_route.go: internal/cli/dispatch_route.go changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in cli.routeBuiltinAgent at line 175. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/dispatch_route.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":"internal/cli/dispatch_route.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3601320b2e7e2e3efa640dd6843f9fcaf1872dc574da131c3ed118cf3c2bbb9e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/poll.go: internal/cli/poll.go changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in cli.newPollCmd at line 26. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/poll.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":"internal/cli/poll.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffe277922c606ec9e4fd16276cd20864609a2a00456fc16b9af23d29c68a052"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/task_progress_reconciler.go: internal/runtime/task_progress_reconciler.go changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in progressReconciler.task at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/task_progress_reconciler.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":"internal/runtime/task_progress_reconciler.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1149a46793c33fe0946be0a89543ca8f873c729a51678c96dd9c5014a712674f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/frontmatter_skills.go: internal/runtime/frontmatter_skills.go changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in runtime.injectFrontmatterSkills at line 146. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/frontmatter_skills.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":"internal/runtime/frontmatter_skills.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b956531139c719c53f802fba187eb877a19182965f293564337697bf8d491753"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/drift.go: internal/repos/drift.go changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in repos.CheckOrphanVars at line 195. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/drift.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":"internal/repos/drift.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f99f6b67ee7b3b3189afd518d8ba4476a7ac4dd13ed4c17b41d219005f5a172"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/jirapoll/poller.go: internal/jirapoll/poller.go changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Poller.Run at line 110. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/jirapoll/poller.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":"internal/jirapoll/poller.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c53658ec674903f48a946c96bf0b80b2cea0b76fd74ade95755fdffc87f5604"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_trigger_jobs.go: internal/repos/gitlab_trigger_jobs.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in repos.triggerExtraWorkProblemForSource at line 162. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_trigger_jobs.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":"internal/repos/gitlab_trigger_jobs.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afb08a273cd75c99bb8ab7163980f4511c21075ed511d38178e893701f24d05"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/security/hooks/ssrf_pretool.py: internal/security/hooks/ssrf_pretool.py changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ssrf_pretool.validate_url at line 462. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/security/hooks/ssrf_pretool.py\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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"3130cd5782b2515b250ed52d43ab2e39ccb030f00bc8bd79bfcffcb29231884b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/pi_personas.go: internal/runtime/pi_personas.go changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in runtime.resolvePersonaModels at line 208. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/pi_personas.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":"internal/runtime/pi_personas.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f424f42174d3ea76f6db1b9cc95f406ba6f0bf3b0558f34be11c479a2e965dc2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/security/hooks/posttool_chain.py: internal/security/hooks/posttool_chain.py changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in posttool_chain.main at line 299. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/security/hooks/posttool_chain.py\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":"internal/security/hooks/posttool_chain.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92600c20e3cee53b1a0979d9e541181d0a1cbef7c83d2f690f18eade28bcdbb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/codex_subagents.go: internal/runtime/codex_subagents.go changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in runtime.countCodexChildRollouts at line 580. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/codex_subagents.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":"internal/runtime/codex_subagents.go"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c5fe51b3e9ffd84230dcd37e31b17551b1dbb28533500f41dd5db1992d8617"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/agent_new.go: internal/cli/agent_new.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in cli.resolveAgentNewOptions at line 101. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/agent_new.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":"internal/cli/agent_new.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e563ece6d75044b2aa56506fcdc6028216d04e306a9bee4685dc6ac65e92c9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/lint.go: internal/cli/lint.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in cli.runLint at line 197. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/lint.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":"internal/cli/lint.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a501bba1fbfaa7d1bdfe30fe9a73043e0e6048565f995f24301763e7661d22c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/security/hooks/secret_redact_posttool.py: internal/security/hooks/secret_redact_posttool.py changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in secret_redact_posttool._credential_like at line 475. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/security/hooks/secret_redact_posttool.py\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":"internal/security/hooks/secret_redact_posttool.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"595e685747a6c01d1c1b0ed90b674448a90f49e33cc81925cd9c30c335557474"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/resolve/resolve.go: internal/resolve/resolve.go changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in resolve.ResolveHarness at line 285. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/resolve/resolve.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":"internal/resolve/resolve.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb5b409390400f668ff6c8ff309cb394e14e8be9637132661d8b8cbe01d7f8d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/layers/commit.go: internal/layers/commit.go changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in layers.deliverBranchAndPR at line 333. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/layers/commit.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":"internal/layers/commit.go"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"842b3a7b0fba84c36b7c39e40cb5a0ee1204474ec959190c64ebbf230c6091a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/normevent/event.go: internal/normevent/event.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in Event.Validate at line 220. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/normevent/event.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":"internal/normevent/event.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff871f486fee62eb7b6e18a5a178cb024de0adb2b42b6b05a1a53a44ba1c8396"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/codex_personas.go: internal/runtime/codex_personas.go changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in runtime.resolveCodexChildModels at line 108. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/codex_personas.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":"internal/runtime/codex_personas.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4807df32d92f11949b140764a2dc446ad2aff48ef139d39a41003aefbcf21207"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/steps/dispatch.go: pkg/behaviourtest/steps/dispatch.go changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in steps.commitLocalHarnessResources at line 339. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/steps/dispatch.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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30762407a7a37d4daaa85d9e4954bcbabf912da53eab3578b78cd1334d283f4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_webhook_status.go: internal/repos/gitlab_webhook_status.go changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in repos.DiagnoseGitLabWebhook at line 66. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_webhook_status.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":"internal/repos/gitlab_webhook_status.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2190c8a8c60304cdf3ea5d6a45116a0f071cdc7b82e04ddf65270eff5c83bc82"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/e2etest/testutil.go: internal/e2etest/testutil.go changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in e2etest.acquireOrg at line 128. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/e2etest/testutil.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":"internal/e2etest/testutil.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7338d0292be675a2429a2b6c68268c150fd27a257349d57197f9ae871ad1c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/poll/dispatch.go: internal/poll/dispatch.go changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in poll.buildEventPayload at line 500. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/poll/dispatch.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":"internal/poll/dispatch.go"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"766ee3c7e930fbb108e58d66019a72995db729bfbe3c37f33a7cd3e955018a77"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/reconcilestatus.go: internal/cli/reconcilestatus.go changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in cli.newReconcileStatusCmd at line 36. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/reconcilestatus.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":"internal/cli/reconcilestatus.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"be40008e2ba2c94f66f06d8748b9f1e46a421a82f5511f549df61c4e80d77172"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/managed_config.go: internal/repos/managed_config.go changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in repos.validateManifestManaged at line 306. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/managed_config.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":"internal/repos/managed_config.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6acef97e3ea3d45f11033d2bb3b7649681f70a4f3fa42adfd9e971d5250e7bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/codex_config.go: internal/runtime/codex_config.go changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in runtime.codexTOMLBasicString at line 300. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/codex_config.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":"internal/runtime/codex_config.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd4adff96d698c0536c5f8a2a1245680a1e38ce37b4b9bdceded9f2ea4b1a50"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/security/hooks/tirith_check.py: internal/security/hooks/tirith_check.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in tirith_check.check_command at line 252. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/security/hooks/tirith_check.py\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":"internal/security/hooks/tirith_check.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc28c89b1f98ec911f8f18be347a3cea97fb710537ab4c22b4ae27ce5f3953bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_poller_generation.go: internal/repos/gitlab_poller_generation.go changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in pollerGenerationRun.attemptTrigger at line 794. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_poller_generation.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":"internal/repos/gitlab_poller_generation.go"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e9d44a3796c8e6a47d62aa5beb1f01ffe4063220fde08e1f3d5a3f28856995"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/poll/state.go: internal/poll/state.go changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Poller.applyPersistDeltas at line 753. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/poll/state.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":"internal/poll/state.go"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c73322cc6a69e8c576c36ab103008d7c17187f0ad68b2f814d88ac2e3b3f163"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: skills/nextwork/scripts/nextwork.py: skills/nextwork/scripts/nextwork.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in nextwork.classify_issue at line 694. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- skills/nextwork/scripts/nextwork.py\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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18fdb1a2eb7b8e097ec823504aadc48e2862c35007b433aa40e7913d739ab9c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/opencode_bootstrap.go: internal/runtime/opencode_bootstrap.go changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in OpenCodeRuntime.Bootstrap at line 65. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/opencode_bootstrap.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":"internal/runtime/opencode_bootstrap.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dfc7cf12498d21cc246698b9d5c89a8ffdd1e9149dbcf0bb0ba54feec45536"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/pi_agent.go: internal/runtime/pi_agent.go changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in runtime.piToolsFor at line 258. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/pi_agent.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":"internal/runtime/pi_agent.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bd95207bc44ac638e8ca52c9e5ff2f95206a13b480723f6cc2fa08e1e34757"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/managed_config_writeback.go: internal/repos/managed_config_writeback.go changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in repos.EnsureManagedConfigDefaults at line 331. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/managed_config_writeback.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":"internal/repos/managed_config_writeback.go"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"24135383aeed20445665a9f8fcce686aaf2649449a271603d7a317cbe91f3600"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/telemetry/tracecontext/identity.go: internal/telemetry/tracecontext/identity.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in tracecontext.NormalizeInstance at line 145. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/telemetry/tracecontext/identity.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":"internal/telemetry/tracecontext/identity.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"4404991161de517dbaeb487e9abe43b7d061da6792246fb3c0775798855abbcc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/codex_progress.go: internal/runtime/codex_progress.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in runtime.parseCodexStream at line 373. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/codex_progress.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":"internal/runtime/codex_progress.go"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6bd0e2da94191860b16eebe010a7d9b016c77c3a5ba1fdbc41981dff14e488"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/fetch/fetch.go: internal/fetch/fetch.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in fetch.FetchURL at line 136. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/fetch/fetch.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":"internal/fetch/fetch.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"019c696046d8f6c9cf227f1afb0cdad172b6521a815c7c640dbcab81a69e66be"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_trigger_dispatch_gate.go: internal/repos/gitlab_trigger_dispatch_gate.go changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in repos.CheckGitLabTriggerDispatchGate at line 114. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_trigger_dispatch_gate.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":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76f68db9906bcc5ec547af9f43558708de27d9b4e0e356ae97bd65c7910277f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/evalmeasure/export_otlp.go: internal/evalmeasure/export_otlp.go changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in evalmeasure.ExportOTLPScores at line 96. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/evalmeasure/export_otlp.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":"internal/evalmeasure/export_otlp.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d6b808d89cb872ab20e5d4e18c532b8943ade35b41403502a1a79500d33f30"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/drivers/install/composed.go: pkg/behaviourtest/drivers/install/composed.go changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in composedDriver.Finalize at line 731. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/drivers/install/composed.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":"pkg/behaviourtest/drivers/install/composed.go"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"86817c2dcb78b5e890fcc79685f38bc6686a63f46184e182a549c416360a8ee9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/config/managed_safety.go: internal/config/managed_safety.go changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in config.CheckManagedSafetyGate at line 90. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/config/managed_safety.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":"internal/config/managed_safety.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"be63d9800da2fefe1ee52fec88f969710dcb0386ae8315cafa9821c33d80d9a3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/gitlab_profile.go: internal/cli/gitlab_profile.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in cli.restrictGitLabEndpointsToForge at line 289. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/gitlab_profile.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":"internal/cli/gitlab_profile.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76592f08d6c7bba6f13b1ee640243797669854a00686a01a7a9d4b7f1f00878"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/claude_task_progress.go: internal/runtime/claude_task_progress.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in runtime.decodeClaudeTaskProgress at line 46. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/claude_task_progress.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":"internal/runtime/claude_task_progress.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8523a97e2f234967c5433c034828b0d8f3420b3f19b08b5a906d01e1e1c3520e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_trigger_account.go: internal/repos/gitlab_trigger_account.go changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in repos.convergeGitLabTriggerAccountLocked at line 494. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_trigger_account.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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ac27cc1a31c89c398ae89122adc1ef0540c885c07d1250158964da314e27f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/runner_secrets.go: internal/cli/runner_secrets.go changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in cli.loadRunnerSecrets at line 146. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/runner_secrets.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":"internal/cli/runner_secrets.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c59c072322b1f1da998d9e9544e093e983a29b5a3e3ef50ffac70763e99ac5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_roles_cleanup.go: internal/repos/gitlab_roles_cleanup.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in repos.CleanupGitLabRoleIdentityLocked at line 99. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_roles_cleanup.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":"internal/repos/gitlab_roles_cleanup.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75f8798b8de0646abf821715f8cb72473977c93b44bf9ad4f16f4a276daf45e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/renderer.go: internal/runtime/renderer.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in EventRenderer.Handle at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/renderer.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":"internal/runtime/renderer.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"07336c8719cc5cd0b6db666d2d0488d60bae45b21c492c062be37c4e6d4d4279"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/inference_gateway.go: internal/cli/inference_gateway.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in cli.runInferenceGatewayStatus at line 189. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/inference_gateway.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":"internal/cli/inference_gateway.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a019f58ae196d5df47f8a4eb90862456f25b2c0d798774c32560b426bf29fb7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_trigger_account_status.go: internal/repos/gitlab_trigger_account_status.go changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in repos.diagnoseGitLabTriggerAccount at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_trigger_account_status.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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35096917399e4903cadb1fd09ccde8d00b3ef28741be22a8f944931649c4e64"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/repos_gitlab_trigger_account.go: internal/cli/repos_gitlab_trigger_account.go changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in cli.convergeGitLabDispatchRoute at line 168. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/repos_gitlab_trigger_account.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":"internal/cli/repos_gitlab_trigger_account.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"b754f942a853c0c1f192c37137a3e93d04e468127a9c5c385a58f87a7962c91c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/codex_transcript.go: internal/runtime/codex_transcript.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in CodexRuntime.ExtractTranscripts at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/codex_transcript.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":"internal/runtime/codex_transcript.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bb88851637f8b782ca5f0b62f9bd0cef88b7b7a43ae9b62da806b9ab9fb73e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_service_account_converge.go: internal/repos/gitlab_service_account_converge.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in repos.convergeInstalledServiceAccount at line 251. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_service_account_converge.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":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf629d15dd0407a6cc798c107c1c43ac582a82d75cb4d0aca64fbb873d1d8940"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/forge/jira/adf.go: internal/forge/jira/adf.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in jira.adfMarkdownBlock at line 984. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/forge/jira/adf.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":"internal/forge/jira/adf.go"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"658d2b82bff976174de3d0c706f9f3a4111e13366abd7399d1d6b103eb8cd046"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/poll/webhook.go: internal/poll/webhook.go changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Poller.webhookIssueEvents at line 418. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/poll/webhook.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":"internal/poll/webhook.go"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a6608e56051411688c2653a153d64e2e5ea13113ea582e5e4cad5ddcc8a722"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/bootstrap_scan.go: internal/cli/bootstrap_scan.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in cli.scanPluginTree at line 106. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/bootstrap_scan.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":"internal/cli/bootstrap_scan.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3017613168629a4fb2a27b31a0881a951841584d423e8965e66443f0c53256"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/forge/gitlab/gitlab.go: internal/forge/gitlab/gitlab.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in LiveClient.doAttempts at line 193. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/forge/gitlab/gitlab.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":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd56f11b8b000c386c90f4b1d7d2b92e5d4a9f9390a3f04ae64a33902061e587"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/config/issue_targets.go: internal/config/issue_targets.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in config.validateTracking at line 481. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/config/issue_targets.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":"internal/config/issue_targets.go"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d937e050e80a8051f4de880f169adca3f6d876d688eb12ce03653a5514c04e1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/statuscomment/statuscomment.go: internal/statuscomment/statuscomment.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in statuscomment.ReconcileOrphaned at line 778. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/statuscomment/statuscomment.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":"internal/statuscomment/statuscomment.go"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc46e635379a3185d6ac92f4e0dd2c2da2f1ce29eb34ea5f375cc0a74d4a09a3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/pi_gateway.go: internal/runtime/pi_gateway.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in runtime.validatePiGatewayModelValue at line 189. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/pi_gateway.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":"internal/runtime/pi_gateway.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96d9dde8a712caee5c15b5f76dcc107db581cbf50af12023f137f78d6eaf52a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/dispatch.go: internal/cli/dispatch.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in cli.runDispatch at line 122. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/dispatch.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":"internal/cli/dispatch.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b10525d12539726cce73703f5ac67de9c0c28916b5aa2a3bcfedb4557a8b5c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/config/effective.go: internal/config/effective.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in config.EffectiveYAML at line 20. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/config/effective.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":"internal/config/effective.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"310bc05e1b7cc4fa973239b321a951439db3fe2d10cc9d9a361122387d1d163d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/evalmeasure.go: internal/cli/evalmeasure.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in cli.evalMeasureFetchContext at line 207. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/evalmeasure.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":"internal/cli/evalmeasure.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c4dc107c9c93584a5df7af1e69e5676f598fd5c36d2b0c47f5a3b5a1ce3665"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/manifest_legacy_tracking.go: internal/repos/manifest_legacy_tracking.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in repos.migrateLegacyManifestTracking at line 47. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/manifest_legacy_tracking.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":"internal/repos/manifest_legacy_tracking.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0ea89c394d4e25f4581d7dbae645655713e09d0810e4cfbe8ccb7762a2e2d5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/sticky/sticky.go: internal/sticky/sticky.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in sticky.BuildUpdatedBody at line 222. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/sticky/sticky.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":"internal/sticky/sticky.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ab1620b9b2e6e5cbd56c5c9c85624c81ae823387d7bc1fbe0b627b202308b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/steps/artifacts.go: pkg/behaviourtest/steps/artifacts.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in steps.ensureRunArtifacts at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/steps/artifacts.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":"pkg/behaviourtest/steps/artifacts.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f28a58079b57d81bdfa47d8bf4276626d50c3911c2afba3f9a28f8ad1bafaf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/run.go: pkg/behaviourtest/run.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in behaviourtest.RunSuite at line 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/run.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":"pkg/behaviourtest/run.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2e5a29326e688542fdb9a9ac29be8085c22ed4d48e3631d2fb95b8434e2a32"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_service_accounts.go: internal/repos/gitlab_service_accounts.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in ServiceAccountTokenClient.CreateProjectAccessToken at line 347. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_service_accounts.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":"internal/repos/gitlab_service_accounts.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3584bda157502d3c5bb92fef96888e4b9b5367aab19ada350200cb06f0fa85"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/status_progress.go: internal/runtime/status_progress.go changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in progressReconciler.status at line 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/status_progress.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":"internal/runtime/status_progress.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1061ee6143f9eba0f2077c9420a5081d68414f58da16237932c1730584954a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/gcp/client.go: internal/gcp/client.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Client.DoRequest at line 130. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/gcp/client.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":"internal/gcp/client.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"817163257fd79593367d3afd685fff939665e1aca8903cfa598ecdae7cf6b4d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/steps/dummy_agent.go: pkg/behaviourtest/steps/dummy_agent.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in steps.parseDummyAgentTable at line 37. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/steps/dummy_agent.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":"pkg/behaviourtest/steps/dummy_agent.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae046a1c3ad094e969a5a2c29bba049aa10b873cf1c966643a91857a24d8da5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/harness/lint.go: internal/harness/lint.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Harness.Lint at line 85. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/harness/lint.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":"internal/harness/lint.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd36399107d539c544902d8e9f242a442b92ace825bc7d4306ebef5b54c3aa97"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/steps/url_dispatch.go: pkg/behaviourtest/steps/url_dispatch.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in steps.givenURLSourcedCustomHarness at line 265. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/steps/url_dispatch.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":"pkg/behaviourtest/steps/url_dispatch.go"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7851c4d7d5ab0d99667b82de1d2eb0c70403ad900d40ba95badeecc2539fb5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/harnessdispatch/auth.go: internal/harnessdispatch/auth.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in harnessdispatch.authorizeEvent at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/harnessdispatch/auth.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":"internal/harnessdispatch/auth.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"497a63881012f38b71ef2e59d88e5a983dcb9f5411e14ae49d28eed6f37eec0a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_workflow_admission.go: internal/repos/gitlab_workflow_admission.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in workflowExprParser.parseOperand at line 230. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_workflow_admission.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":"internal/repos/gitlab_workflow_admission.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc021e0ead68b626ac7de0e6115b84967d1e2402fefd137cf11bf3884d8b3a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/jirapoll/discover.go: internal/jirapoll/discover.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Poller.detectChanges at line 46. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/jirapoll/discover.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":"internal/jirapoll/discover.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5621118d36feee7986702a4514cc6814e9f32a02aa307503284cffe0df2066c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/skill_staging.go: internal/cli/skill_staging.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in cli.stageOverriddenSkill at line 107. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/skill_staging.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":"internal/cli/skill_staging.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f734c3032673d51475f36f4af7d92091ebdc6a258a19a48e941f066e0368be"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/managed_config_lifecycle.go: internal/repos/managed_config_lifecycle.go changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in repos.checkManagedConfigDrift at line 205. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/managed_config_lifecycle.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":"internal/repos/managed_config_lifecycle.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee11d5e7d3e13bcf9f0bba6463d2986230ef209c6d65098558c5fb10f076ae17"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/steps/mint_probe.go: pkg/behaviourtest/steps/mint_probe.go changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in steps.classifyMintProbeResult at line 706. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/steps/mint_probe.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":"pkg/behaviourtest/steps/mint_probe.go"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5115f65b297d0d4a682793efb3213000a610647a25db04053575d5bfb065696"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/gitfetch/gitfetch.go: internal/gitfetch/gitfetch.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in gitfetch.FetchTree at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/gitfetch/gitfetch.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":"internal/gitfetch/gitfetch.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24145fdad3dc2d468a5fd1dd7bb03d47a5647aa9d2978b67bed7b3d79b5e1b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/poll/webhook_dispatch.go: internal/poll/webhook_dispatch.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in Poller.dispatchWebhookEvents at line 170. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/poll/webhook_dispatch.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":"internal/poll/webhook_dispatch.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc9143a384a8255f4122b92ed0f4518057eec1abf5377d9a04c484438ffa124"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/jira_poll.go: internal/repos/jira_poll.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in repos.convergeJiraPoll at line 297. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/jira_poll.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":"internal/repos/jira_poll.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bab5f79024cf81f4229a73ecc712395658a5ff9caf0b0c08d850ba558dfc72d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: hack/prove-otlp-scores/main.go: hack/prove-otlp-scores/main.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in main.main at line 27. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- hack/prove-otlp-scores/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":"hack/prove-otlp-scores/main.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cb40c79b251edea4a7a179a8b49bff16fd8fd12f51d001a33022b15eb5f8f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/gitlabroles/registry.go: internal/gitlabroles/registry.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in gitlabroles.registrationFromFile at line 469. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/gitlabroles/registry.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":"internal/gitlabroles/registry.go"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe01f31cda8e6c6730cd5182d4e7329e073c80bdad7feae70b6ad0d8fef779f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/agentnew/options.go: internal/agentnew/options.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Options.Validate at line 50. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/agentnew/options.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":"internal/agentnew/options.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2d1415df884a71a03449b817727930abad65eec41dacc51a39407af98b5560"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/agentnew/generate.go: internal/agentnew/generate.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in agentnew.Generate at line 63. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/agentnew/generate.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":"internal/agentnew/generate.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef2b09b1e346534c3b5568e94a73888c28783d4c052a39d0af65bb0106e625f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/github_jira_poll.go: internal/repos/github_jira_poll.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in repos.checkGitHubJiraPollWorkflow at line 36. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/github_jira_poll.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":"internal/repos/github_jira_poll.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e578a6bac65b5e1fbb000f7e70f9102ab7c900619c7a49c17ace277b115aa5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/behaviourtest/drivers/install/slotgc.go: pkg/behaviourtest/drivers/install/slotgc.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in slotAllocator.reclaimSlot at line 477. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/drivers/install/slotgc.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":"pkg/behaviourtest/drivers/install/slotgc.go"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c57863e8b7025d07b64edf6542e4a44a2381589854a8799acb201070b11ca5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/claude_status_progress.go: internal/runtime/claude_status_progress.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in runtime.decodeClaudeStatusProgress at line 13. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/claude_status_progress.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":"internal/runtime/claude_status_progress.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"faeab102baf409c8e869b4be4c1c41fe292571ec98bdc27b711f4995d17cf183"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/binary/download.go: internal/binary/download.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in binary.extractSourceTree at line 234. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/binary/download.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":"internal/binary/download.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8338fb5ee632722e7b8d8237eb1b680f08ec7248093f92fcbc728360330422e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/evalmeasure/run.go: internal/evalmeasure/run.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in evalmeasure.MeasureAndExport at line 38. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/evalmeasure/run.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":"internal/evalmeasure/run.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ebc61cfa15a1e65a58dea663e81f509f28561f461e009ad3f85f1ba81875d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/infrastructure.go: internal/repos/infrastructure.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ResolvedConfig.applyEffectiveInfrastructure at line 81. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/infrastructure.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":"internal/repos/infrastructure.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb403c9f9194f6ff9d1d4f278d7c6ac4b561bca1883ceb4d5c8cf667502fa75"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/cli/run_jira.go: internal/cli/run_jira.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in cli.renderJiraSiteProfileFrom at line 237. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/run_jira.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":"internal/cli/run_jira.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb553fbc1b961a7f34f9339b6991571021854c6615cc9e803fd395c226d65190"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: skills/analyze-transcript/analyze-transcript.py: skills/analyze-transcript/analyze-transcript.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in analyze-transcript._accumulate_stats at line 290. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- skills/analyze-transcript/analyze-transcript.py\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":"skills/analyze-transcript/analyze-transcript.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"174febd9d32ec7e53d41b5de37458e81fe9f6fce50bbe16849e7a4fea6cb5e7e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_trigger_job_templates.go: internal/repos/gitlab_trigger_job_templates.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in repos.resolveExtendsAdmission at line 128. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_trigger_job_templates.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":"internal/repos/gitlab_trigger_job_templates.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ee76c03adf3e96a99df7c56354d26169edc153e59082853ba8f7866c45dac2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/forge/github/commit_graphql.go: internal/forge/github/commit_graphql.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in LiveClient.createCommitOnBranch at line 94. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/forge/github/commit_graphql.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":"internal/forge/github/commit_graphql.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a7be34710db9604dc8a3c25f47f1e10408a4ed10768b70d66425d8d78e81fa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/evalmeasure/runhealth.go: internal/evalmeasure/runhealth.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in evalmeasure.ScoreRunHealthNamed at line 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/evalmeasure/runhealth.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":"internal/evalmeasure/runhealth.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8baabd52a5426219ee56895caa32e767f51db33ff0d287e015c31b8a4a82c1a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/repos/gitlab_trigger_schedules.go: internal/repos/gitlab_trigger_schedules.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in gitLabTriggerAccountOp.planAccountSchedules at line 422. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_trigger_schedules.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":"internal/repos/gitlab_trigger_schedules.go"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4da783c359fd7796164d088fbdd482134be7a8ac29b7983e3327ffe6b4e804"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/runtime/opencode_progress.go: internal/runtime/opencode_progress.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in runtime.parseOpenCodeStream at line 111. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/opencode_progress.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":"internal/runtime/opencode_progress.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f344a3684f87297f10cdb0c71d385b38cab7954d55e8c52e763f7a2678d77952"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/mintcore/http_client.go: internal/mintcore/http_client.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in mintcore.mintHTTP at line 25. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/mintcore/http_client.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":"internal/mintcore/http_client.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3228a78d4e6fd2282fd71dbeffa7fe2cf76be1b195aa8a4e5281be3a1ec9fd7c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/evalmeasure/fitness.go: internal/evalmeasure/fitness.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in evalmeasure.ScoreFitnessNamed at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/evalmeasure/fitness.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":"internal/evalmeasure/fitness.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b0cdf2433a5a26ae70e182decb292d423512b90d975cdec90cd52e53de4240"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/artifacts/prepare.go: internal/artifacts/prepare.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in artifacts.prepareMetadata at line 206. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/artifacts/prepare.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":"internal/artifacts/prepare.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf6831f1910311a4f270414565ebeb2881a4a116180a6ad0b8cc47ddb7b2f58"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/forge/fake.go: internal/forge/fake.go changed 57 times in last 90 days and 30 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is FakeClient.ForceCommitFileToBranch at line 1004), 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(#9292)!: render managed config in the pinned fullsend_ref schema\u201D; \u201Cfix(review): address deduplication review findings\u201D; \u201Cfix(review): include file modes in deduplication\u201D; \u201Cfix(#8841): fall back to fork default branch for unsynced GitLab forks\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/forge/fake.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":"internal/forge/fake.go"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b1b11ecc2b849c6b452df9df4661d4ab37a4e0676ae8a1ed403cb629844fda"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/env_data.go: internal/runtime/env_data.go changed 15 times in last 90 days and 15 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is runtime.envDataLoadWith at line 226), 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(#8626)!: pin the CLI binaries and their node on the trusted PATH\u201D; \u201Cfix(hooks): keep relative entries off the trusted PATH as root\u201D; \u201Cfix(#8574): run the probes\u0027 find and gh from the trusted PATH\u201D; \u201Cfix(#8574)!: read .env as data in the OpenCode launch and runner probes\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/env_data.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":"internal/runtime/env_data.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"712ec79126b9684ec25d7219706063d5ce6f462bf326349f23222b340478c417"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/event.go: internal/runtime/event.go changed 21 times in last 90 days and 14 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is InitEvent.agentEvent at line 26), 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(#7414): answer a pi call whose end line exceeds the buffer\u201D; \u201Cfix(#7414): mark a pi result with no start as unmatched, correct the docs\u201D; \u201Cfix(#8908): sanitize Unicode progress in a dedicated reconciler\u201D; \u201Cfix(#8908): retain workflow controls and sparse task metadata\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/event.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":"internal/runtime/event.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2bcf69e7a774c51083e96678324ada8cd3308f4ea44e4219c2723f9586c2bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/agentnew/render.go: internal/agentnew/render.go changed 15 times in last 90 days and 12 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is agentnew.Render at line 46), 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(#7360)!: inherit readonly_repo through base: composition\u201D; \u201Cfix(#8648): use work item URL in generated agents\u201D; \u201Cfix(agentnew): scaffold OPENCODE_CONFIG_CONTENT env.sandbox for opencode\u201D; \u201Cfix(#7980)!: refuse Vertex sub-agents without a usable credential file\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/agentnew/render.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":"internal/agentnew/render.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cc9a391e4e146bee637d85b6bc51d80d798153ba8a1632e1bedd9fd932a201"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/cli/inference_openai.go: internal/cli/inference_openai.go changed 14 times in last 90 days and 11 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is cli.newInferenceOpenAIRequestCmd at line 117), 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(#8280): guard gateway children and env clear, move OIDC fetch\u201D; \u201Cfix(#7295): forward FULLSEND_OPENAI_API_KEY to this repo\u0027s installed shims, delete it on uninstall\u201D; \u201Cfix(#7295): correct CI static-key detection and validation scope for FULLSEND_OPENAI_API_KEY\u201D; \u201Cfix(#6782): report an audience disagreement even when --audience overrides it\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/inference_openai.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":"internal/cli/inference_openai.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b94884ee67229eb8998952c4074741ea850298702b6ed63bdf2a98a6907220"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/tracker/jira_client.go: internal/tracker/jira_client.go changed 18 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is JiraClient.FindStatusComment at line 282), 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(jirapoll): fail all-invalid cycles; treat nil labels as unlabeled\u201D; \u201Cfix(#9023): skip redundant Jira sticky-marker property writes\u201D; \u201Cfix(#8539): neutralize fullsend markers on the Jira sticky path\u201D; \u201Cfix(#7083): address issues create review findings\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/tracker/jira_client.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":"internal/tracker/jira_client.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4b170b46783f73f7a064a84a313d7ca3af57e33b4989ab842234faf69f498f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/opencode.go: internal/runtime/opencode.go changed 15 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is OpenCodeRuntime.Name at line 20), 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(#8574)!: read .env as data in the OpenCode launch and runner probes\u201D; \u201Cfix(runtime): pin OpenCode 1.19.1 and re-verify the agent each iteration\u201D; \u201Cfix(runtime): address PR review findings in OpenCode runtime\u201D; \u201Cfix(runtime): harden OpenCode sandbox config, env denylist, and skill loading\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/opencode.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":"internal/runtime/opencode.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"192a9625a19d0f5b1efc83c6a0aea1fb15a7f1d133509f056402852d21398317"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/cli/tool_spans.go: internal/cli/tool_spans.go changed 14 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is toolSpanTracker.Handle at line 108), 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(#7414): answer a pi call whose end line exceeds the buffer\u201D; \u201Cfix(#7414): mark a pi result with no start as unmatched, correct the docs\u201D; \u201Cfix(telemetry): one literal pass for Level 3 strings and execute_tool names and ids\u201D; \u201Cfix(telemetry): repeat the runner env literal pass after the pipeline\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/tool_spans.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":"internal/cli/tool_spans.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bad3aa155860be3e1abf000b9449eccd789276ce486fe6aa03de9b307e8f11"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/repos/remote_scaffold.go: internal/repos/remote_scaffold.go changed 17 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is repos.fetchRemoteGitLabScaffold at line 111), 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(#8865)!: pin GitLab runner image to fullsend_ref instead of :dev\u201D; \u201Cfix: address review feedback on PR #8021\u201D; \u201Cfix(#7769): harden GitLab poll/agent in-job identity gates\u201D; \u201Cfix(#7790): check out GitLab MR source before fix sandbox\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/remote_scaffold.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":"internal/repos/remote_scaffold.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"44914b3eaa29961fcf094fc8afd56cde07dd9c219ec04956c6f78c9ec8cf95a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: pkg/behaviourtest/steps/owners.go: pkg/behaviourtest/steps/owners.go changed 16 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is steps.whenIssueOpenedForOwnersAuth at line 143), 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(#9469): retry any driver\u0027s lost dispatch and refund cut grace\u201D; \u201Cfix(#9469): bound total grace wait time and retry only lost dispatches\u201D; \u201Cfix(#9469): share grace window and mark partial waits inconclusive\u201D; \u201Cfix(#8961): keep agent artifact downloads off the ci.Driver interface\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/steps/owners.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":"pkg/behaviourtest/steps/owners.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"9385caa48e6cdd1a770f4d542c7632738b59ebcc1d21c89d560cd2ea6ff137c7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/dispatch/router.go: internal/dispatch/router.go changed 15 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is HarnessRouter.routeSlashCommand at line 124), 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(#8912)!: gate close-event retro by write access\u201D; \u201Cfix(#8912): enforce write floor in CEL close routing\u201D; \u201Cfix: address review feedback on PR #8956 (round 3)\u201D; \u201Cfix: address review feedback on PR #8956\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/dispatch/router.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":"internal/dispatch/router.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0c106120176c393427c02f2c7a440fb3685ecb26116c7f7da51fcf87e33b6d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/codex.go: internal/runtime/codex.go changed 14 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is CodexRuntime.ProviderFor at line 35), 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(#8295): report gateway models as served by the gateway\u201D; \u201Cfix(#8311): address review of credential seed ordering\u201D; \u201Cfix(#8311): keep a stale credential seed from replacing a newer one\u201D; \u201Cfix(codex): load the repo\u0027s AGENTS.md through CODEX_HOME\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/codex.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":"internal/runtime/codex.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"36eb30cd296d818ba345f76d604fb6b51a7f6b4d3fce6071ef32d13aecb0da47"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/config/inference_gateway.go: internal/config/inference_gateway.go changed 12 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is config.ValidateGatewayCompat at line 531), 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(#8280): address review feedback on PR #8300\u201D; \u201Cfix(#8280): guard gateway children and env clear, move OIDC fetch\u201D; \u201Cfix(#8280): sanitise printed model ids and reject encoded gateway paths\u201D; \u201Cfix(#8280): harden the gateway status probe, profile binding and BT cleanup\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/config/inference_gateway.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":"internal/config/inference_gateway.go"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"8601ce5a38d2618bd279284368d49ff256e67a78140f748947c24ac412fce071"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/claude_integrity.go: internal/runtime/claude_integrity.go changed 10 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is runtime.claudeHookDigestsFor at line 77), 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(#8750): pin nonessential traffic off without sandbox hooks\u201D; \u201Cfix(runtime): pin the cleared launch variables in the settings env block\u201D; \u201Cfix(#8641): pin runner-owned settings in the claude --settings document\u201D; \u201Cfix(#8635): take hook settings from the runner after .env on all runtimes\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/claude_integrity.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":"internal/runtime/claude_integrity.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff85057fded4a72cac43c20903f957e9acab510013cb601c26d696bdc2cd0d3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/telemetry/telemetry.go: internal/telemetry/telemetry.go changed 12 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is telemetry.sanitizeError at line 71), 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: address review feedback on PR #8273\u201D; \u201Cfix(#8255): stop echoing OTLP endpoint values in validation errors\u201D; \u201Cfix(telemetry): validate OTLP headers and redact credentials in logs\u201D; \u201Cfix(cli): scan listed numbers, reject trailing input, keep the record private\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/telemetry/telemetry.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":"internal/telemetry/telemetry.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"264fb2623089806dd1bee4a656933b417d474b6b959b55e34888f4aa8dffaf09"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/opencode_integrity.go: internal/runtime/opencode_integrity.go changed 8 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is runtime.validateOpenCodePermissionPolicy at line 108), 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(#8626)!: pin the CLI binaries and their node on the trusted PATH\u201D; \u201Cfix(#8574)!: read .env as data in the OpenCode launch and runner probes\u201D; \u201Cfix(runtime): reject duplicate OpenCode permission keys, clear plugin dirs\u201D; \u201Cfix(runtime): close OpenCode review findings on the takeover PR\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/opencode_integrity.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":"internal/runtime/opencode_integrity.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f2aa13dc609e2b01f9c0ee40d489c75b66ea39dd7213a8c3086352dd7959a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/harnessdispatch/core.go: internal/harnessdispatch/core.go changed 12 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is harnessdispatch.Dispatch at line 32), 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(#8401): address review feedback on PR #8892\u201D; \u201Cfix(#8724): filter harnesses before CEL and align authorization docs\u201D; \u201Cfix(#8725): skip built-in agents in GitHub CEL dispatch\u201D; \u201Cfix(#6042): resolve OWNERS alias keys before logins\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/harnessdispatch/core.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":"internal/harnessdispatch/core.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2578af50e4e9cd133b043b576e3ba00a4b7decc15b41b43a0354d51b4d5014"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/bootstrap.go: internal/runtime/bootstrap.go changed 12 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is runtime.pluginsOfKind at line 91), 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(codex)!: bind the run\u0027s effort for children and count spawns on disk\u201D; \u201Cfix(#7981): resolve openai children exactly as Bootstrap does\u201D; \u201Cfix(#7981): create openai provider for pi sub-agents under any parent\u201D; \u201Cfix(#7741): address review on the codex AGENTS.md bridge\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/bootstrap.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":"internal/runtime/bootstrap.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f975a8f4b5f4a06eba598f84fc965ec299cbd5897ec24f958f539bdf37d03b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/repos/ref_ops.go: internal/repos/ref_ops.go changed 12 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is repos.compareSemver at line 174), 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(#7902): ignore spacing-only ref changes in converge\u201D; \u201Cfix(#7902): two spaces before inline version comments\u201D; \u201Cfix(#7648): gate schedule reactivation and preserve SHA pinning on review feedback\u201D; \u201Cfix(#7648): converge inactive GitLab schedules and stale dispatch\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/ref_ops.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":"internal/repos/ref_ops.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfb9919990cacddd0d43fdd0e8e387f2566feba288297a03f40f40fe2897502"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/cli/run_gateway.go: internal/cli/run_gateway.go changed 12 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is cli.validateClaudeGatewayModels at line 142), 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(#8294): Bearer in both modes, pin the route in --settings, document the helper limit\u201D; \u201Cfix(#8280): fail the OpenAI route closed when a new generation never arrives\u201D; \u201Cfix(#8280): fail the gateway route closed when a new generation never arrives\u201D; \u201Cfix(#8280): address review feedback on PR #8300\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/run_gateway.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":"internal/cli/run_gateway.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b07228a6d8b0471c3742ecfe0ecb27314e31e52ffbe6cf0f2105433edb0e22"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/scaffold/vendormanifest.go: internal/scaffold/vendormanifest.go changed 11 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is scaffold.isSafeVendoredRepoPath at line 78), 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(review): cover routed review deduplication\u201D; \u201Cfix(#9203): vendor retry-with-backoff.sh with the installers that source it\u201D; \u201Cfix(dispatch): ship count-fix-commits.jq to vendored installs\u201D; \u201Cfix(#8353): paginate review-body pre-fetch and wire it into the fix job\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/scaffold/vendormanifest.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":"internal/scaffold/vendormanifest.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22917384e6472c69a3d79939b1e0deff379af7299740e721d22ef06b15f80c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/cli/bootstrap_input.go: internal/cli/bootstrap_input.go changed 11 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is cli.pluginInputs at line 60), 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(#6158): stage URL skills before routing and mirror persona registration\u201D; \u201Cfix(codex)!: bind the run\u0027s effort for children and count spawns on disk\u201D; \u201Cfix(#7981): create openai provider for pi sub-agents under any parent\u201D; \u201Cfix(codex): pin the target repository\u0027s project trust to untrusted\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/bootstrap_input.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":"internal/cli/bootstrap_input.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2720e9bac9c9dba592df1c298fc3966c33b1b4e10130627a90adb0264d8fbe10"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/codex_redact.go: internal/runtime/codex_redact.go changed 10 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is runtime.codexIsRolloutFile at line 226), 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(#7721): allow every rollout line type codex writes\u201D; \u201Cfix(#7721): keep codex 0.152.1 rollouts with world_state\u201D; \u201Cfix(runtime): pin PATH across .env and re-verify codex hook scripts per invocation\u201D; \u201Cfix(runtime): stop the codex hook children writing bytecode into the guarded dir\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/codex_redact.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":"internal/runtime/codex_redact.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87baa46acd0c928707a02c0a31001d8be4f8bc0f5ac77e341f9c41b6e6ff0df"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/pi_gateway_run.go: internal/runtime/pi_gateway_run.go changed 10 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is runtime.ValidatePiGatewayPluginEnv at line 99), 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(#8311): address review of credential seed ordering\u201D; \u201Cfix(#8311): keep a stale credential seed from replacing a newer one\u201D; \u201Cfix(#8280): give gateway sub-agents a private copy of the verified config\u201D; \u201Cfix(#8280): give each gateway token seed its own temp file\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/pi_gateway_run.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":"internal/runtime/pi_gateway_run.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f65f15dc4d48514cf18590dcc2a67f32d965ed3773d941191a969f80836e39"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/harnessdispatch/enumerate.go: internal/harnessdispatch/enumerate.go changed 9 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is harnessdispatch.ListTriggeredHarnesses at line 41), 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(#9037): pass configured GitHub host to remaining compose callers\u201D; \u201Cfix(forge): resolve the config allowlist the same way in every loader\u201D; \u201Cfix(#8726): fail the review route on invalid config, keep harness dispatch triggers\u201D; \u201Cfix(#7348): fail dispatch when no harness can be loaded\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/harnessdispatch/enumerate.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":"internal/harnessdispatch/enumerate.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f6f4aff2206d7fb4d921aa82e1fdd8d5897820248eccd468af6f733d9fe683"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/cli/github_client.go: internal/cli/github_client.go changed 8 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is cli.githubAPIURLForServer at line 189), 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(#9038): keep configured-host clients on their origin across redirects\u201D; \u201Cfix(#9038): gate the fallback and route clients like the status client\u201D; \u201Cfix(#9038): tie the status client and fallback host to GITHUB_SERVER_URL\u201D; \u201Cfix(#9041): honour GITHUB_API_URL in token-scope, reconcile, eval\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/github_client.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":"internal/cli/github_client.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfa2906e33bebcec9e41fb40ee335c42ed837d4fd4735ee691cab8444a77f51"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/scaffold/vendorcontent.go: internal/scaffold/vendorcontent.go changed 7 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is scaffold.walkLayeredFromRoot at line 113), 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(review): cover routed review deduplication\u201D; \u201Cfix(#9203): vendor retry-with-backoff.sh with the installers that source it\u201D; \u201Cfix(dispatch): ship count-fix-commits.jq to vendored installs\u201D; \u201Cfix(#8353): paginate review-body pre-fetch and wire it into the fix job\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/scaffold/vendorcontent.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":"internal/scaffold/vendorcontent.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"581723bebfbc0eb9d616d8281d9d8e796348097e4189f658769d125227a944c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/skill/skill.go: internal/skill/skill.go changed 7 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is skill.ValidName at line 89), 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(#6158): stage URL skills before routing and mirror persona registration\u201D; \u201Cfix(#7830): read the declared name from any skill marker spelling\u201D; \u201Cfix(#7830): reject skill names that start with a dot\u201D; \u201Cfix(#7830): resolve local skill paths before the base merge\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/skill/skill.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":"internal/skill/skill.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4cb651648c23e6514abc8648e41401254e07ed467eb011212cf4c5f8d55fbc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/cli/preflight_github.go: internal/cli/preflight_github.go changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is cli.isRetryablePreflightGitHubFailure at line 180), 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(#8574): run the probes\u0027 find and gh from the trusted PATH\u201D; \u201Cfix(#8574)!: read .env as data in the OpenCode launch and runner probes\u201D; \u201Cfix(#7862): anchor the pre-flight EOF match and explain a persistent EOF\u201D; \u201Cfix(#7862): retry GitHub preflight on EOF and reset\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/preflight_github.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":"internal/cli/preflight_github.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11bbf1200dddb9e6c322dd3edd070afbf132a6f389ef0f5faa3f74ec33b3cb6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/cli/skill_collision.go: internal/cli/skill_collision.go changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is cli.warnRepoSkillCollisions at line 15), 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(#7830): read the declared name from any skill marker spelling\u201D; \u201Cfix(#7830): match repo skills and local overrides by the same identity\u201D; \u201Cfix(#7830): keep nested forge skills that share a basename\u201D; \u201Cfix(#2661): recognize alternate skill marker casing\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/skill_collision.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":"internal/cli/skill_collision.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ce060946975f416e30aa13094ac6fec9e19780b62eaf268b893150dd4d417b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: pkg/behaviourtest/steps/jirapoll.go: pkg/behaviourtest/steps/jirapoll.go 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 7 (its worst body is steps.thenDispatchActorRole at line 405), 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(jirapoll)!: unmarshal EventPayload as structured JSON in DispatchRecord\u201D; \u201Cfix(jirapoll): fail all-invalid cycles; treat nil labels as unlabeled\u201D; \u201Cfix(jirapoll): step config reaches the target-repo refusal\u201D; \u201Cfix(jirapoll)!: skip an event that fails validation\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/steps/jirapoll.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":"pkg/behaviourtest/steps/jirapoll.go"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e7f43f79d10473c8925413f5064bc7b6184c5a826073135aadf8e18a11717e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/openai_seeder.go: internal/runtime/openai_seeder.go changed 8 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 3 (its worst body is runtime.NeedsOpenAIProvider at line 48), 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(#7981): resolve openai children exactly as Bootstrap does\u201D; \u201Cfix(#7981): fail before the sandbox when an openai child has no provider\u201D; \u201Cfix(#7981): address review findings on openai subagent provider creation\u201D; \u201Cfix(#7981): create openai provider for pi sub-agents under any parent\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/openai_seeder.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":"internal/runtime/openai_seeder.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f9bc574d8ff2a78f20c029eedd9faef34c8e3aea910df5583f51442aab270e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/security/hooks/context_suppress_posttool.py: internal/security/hooks/context_suppress_posttool.py changed 8 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 11 (its worst body is context_suppress_posttool.main at line 274), 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(security): fold format characters into the detection copy\u201D; \u201Cfix(security): condense tool output only on positive evidence of success\u201D; \u201Cfix(security): verify-round fixes for the sanitizers; pi thinking test\u201D; \u201Cfix(security): close the review gaps in the scoped sanitizers\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/security/hooks/context_suppress_posttool.py\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":"internal/security/hooks/context_suppress_posttool.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"484d0ddfae80b866bd38a2becb246f74230320497e367dc3b0b6697a26df8cd0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/harness/skill_entry.go: internal/harness/skill_entry.go changed 7 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 15 (its worst body is harness.MergeDuplicateSkillOverrides at line 232), 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(#8981)!: treat equal duplicate override values as agreement\u201D; \u201Cfix(#8981): keep direct skill overrides deduplicated against a dep\u201D; \u201Cfix(#8974): replay skill overrides by URL across fields, keep empty source loadable\u201D; \u201Cfix(#8974): replay skill file overrides by URL, reject empty skill source\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/harness/skill_entry.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":"internal/harness/skill_entry.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a9755318de0bee7ef4ba649d798d0d58ff4d6c5c74cc54662b92e9e5c2f36a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/repos/gitlab_existing_wif.go: internal/repos/gitlab_existing_wif.go changed 5 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 11 (its worst body is repos.checkEstablishedServiceAccountSupport at line 196), 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(#8810): allow service account when convergence refreshes the script\u201D; \u201Cfix(#8810): reject a legacy live agent script when no ref refreshes it\u201D; \u201Cfix(#8810): fail when a declared audience has no agent template to render\u201D; \u201Cfix(#8810): require service-account support in the pinned agent script\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_existing_wif.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":"internal/repos/gitlab_existing_wif.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"69239596e37be5ba27212f750faaff0af89a87af3e2a970e1d6dc87ace8eb8e2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/credential_seed_write.go: internal/runtime/credential_seed_write.go changed 5 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 4 (its worst body is runtime.SeedReplacing at line 41), 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(#8311): compare the whole credential file when a stale seed skips its write\u201D; \u201Cfix(#8311): validate the held generation against the credential itself\u201D; \u201Cfix(#8311): retire the held generation across pending gateway hand-offs\u201D; \u201Cfix(#8311): keep failed hand-off generations in the seed history\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/credential_seed_write.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":"internal/runtime/credential_seed_write.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea2dcb4934282fca309bed94d6c17858a4012a1fe80837a144e1faa4838edc4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/cli/run_workitem.go: internal/cli/run_workitem.go changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is cli.resolveJiraRunEnv at line 125), 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(#9218): fail closed when a Jira run\u0027s gateway URL can\u0027t be resolved\u201D; \u201Cfix(#9218): validate Jira run URLs with the config-layer rule\u201D; \u201Cfix(#9218): keep Jira run URLs config-only and validated\u201D; \u201Cfix(#2264): fail closed on Jira dispatch claim when channels disagree\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/run_workitem.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":"internal/cli/run_workitem.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3630aa36a7891bcf053b1398ffd0404c10dc2223a70e67876c5f551ed21dca8d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/e2etest/auth.go: internal/e2etest/auth.go changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is e2etest.isTransientMintError at line 174), 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(behaviourtest): narrow transient mint error matching\u201D; \u201Cfix(behaviourtest): classify only known infra failure modes\u201D; \u201Cfix: pin e2e mint level to internal/mintcore.LevelWrite\u201D; \u201Cfix(#7306): keep mintcore out of behaviourtest\u0027s public graph\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/e2etest/auth.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":"internal/e2etest/auth.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9fa784371427091e6278b36805e4bffe79532b1b0153a9ba598c607ccb495f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/security/hooks/hook_io.py: internal/security/hooks/hook_io.py changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is hook_io.apply_text at line 112), 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(security): fold every splitter the success path strips\u201D; \u201Cfix(security): fold format characters into the detection copy\u201D; \u201Cfix(security): close the review gaps in the scoped sanitizers\u201D; \u201Cfix(security): scope PostToolUse sanitizers to what they exist to remove\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/security/hooks/hook_io.py\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":"internal/security/hooks/hook_io.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46ad26c633c0fc6ebc7d257ef6d80291ae7337a53cd4c0b60a129ddd15356d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/opencode_transcript.go: internal/runtime/opencode_transcript.go changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is runtime.parseOpenCodeTranscriptFile at line 106), 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(runtime): repeat the OpenCode override reset after .env\u201D; \u201Cfix(runtime): close OpenCode review findings on the takeover PR\u201D; \u201Cfix(runtime)!: address review regressions and doc gaps in OpenCode PR\u201D; \u201Cfix(runtime): capture OpenCode transcripts in sandbox\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/opencode_transcript.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":"internal/runtime/opencode_transcript.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"60fbf041c932951588e418b0d2e6eb21e8f6072e043f5bc6f62cd29ea0501354"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/cli/preflight.go: internal/cli/preflight.go changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is cli.preflightEnv at line 76), 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(#8747): flag path-shaped preflight_check after ${VAR} expansion\u201D; \u201Cfix(#8165): redact script output before trimming and merge overlaps\u201D; \u201Cfix(#8861): bound preflight teardown with cmd.WaitDelay\u201D; \u201Cfix(cli): redact preflight rejection diagnostics and derive refused credential set\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/preflight.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":"internal/cli/preflight.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c37a81f8014ffe177574f6e95ea3c4fff862903d370a5905797db9d98dfa378"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/progress_text.go: internal/runtime/progress_text.go changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is runtime.maskRuntimeSecretLiterals at line 106), 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(#8908): merge literal match spans and mask the joined row with the caller callback\u201D; \u201Cfix(#8908): mask overlapping credentials longest-first and settle tool row churn\u201D; \u201Cfix(#8908): address review findings on progress redaction and naming\u201D; \u201Cfix(#8908): redact normalized runtime secrets in the fallback pass\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/progress_text.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":"internal/runtime/progress_text.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4128ed6467730a2514b9da2c8e8c49a8916518f47de8894c836e074255b9337"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/binary_pin.go: internal/runtime/binary_pin.go changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is runtime.binaryPin at line 24), 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(runtime): start pi sub-agents through the pinned node and refuse other env shebangs\u201D; \u201Cfix(#8626)!: pin the CLI binaries and their node on the trusted PATH\u201D; \u201Cfix(#8575): test the ownership check and document the python3 requirement\u201D; \u201Cfix(#8575): harden and tidy the .env-as-data launch loader\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/binary_pin.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":"internal/runtime/binary_pin.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcfb787e09c1ceeb88d51fd9b24cb6e9f89009df6ce2b44c5605e5126867d36"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: pkg/behaviourtest/failclass/failclass.go: pkg/behaviourtest/failclass/failclass.go changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is failclass.classifyTree at line 94), 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(#9497): classify GitHub 5xx and stream resets in setup as infra\u201D; \u201Cfix(#9472): classify GitHub server errors as infrastructure\u201D; \u201Cfix(behaviourtest): classify only known infra failure modes\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- pkg/behaviourtest/failclass/failclass.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":"pkg/behaviourtest/failclass/failclass.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f957cd057323df71ec4b6be10230e0257383d917558befa93497fc2910e7be2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/runtime/claude_gateway.go: internal/runtime/claude_gateway.go changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is runtime.claudeGatewayAPIKeyPlaceholder at line 179), 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(#8294): pass the gateway settings inline, never via hooks.json\u201D; \u201Cfix(#8294): pin the api-key placeholder as ANTHROPIC_AUTH_TOKEN in --settings\u201D; \u201Cfix(#8294): Bearer in both modes, pin the route in --settings, document the helper limit\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/runtime/claude_gateway.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":"internal/runtime/claude_gateway.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b720d6aaf52fc66f09182bda291fb88252abbce09fdc1afbb5b8d8208c85c6aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/agentnew/assets.go: internal/agentnew/assets.go changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is agentnew.sharedAssets at line 29), 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(#7971): finish runtime-aware agent new for codex and pi on OpenAI\u201D; \u201Cfix(#7264)!: generate a runtime-aware harness from agent new\u201D; \u201Cfix(#6834): stop layering a policies/ dir the scaffold never ships\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/agentnew/assets.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":"internal/agentnew/assets.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e90b0547b9c7d05643048f8a1218ef9a9a4d429d48ae6fbe941de5786fd942"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/cli/run_overrides.go: internal/cli/run_overrides.go changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is cli.resolveRunOverrides at line 83), 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(run): prepare Vertex WIF per agent\u201D; \u201Cfix(#7481): route GCP setup by selected agent\u201D; \u201Cfix(#6882): resolve aliases before pi normalisation, validate on the run path\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/run_overrides.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":"internal/cli/run_overrides.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f19f0f2c2fef8c8e75389d584dccf49865e2c13bdada164e6cb168d098825be"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/security/hooks/unicode_posttool.py: internal/security/hooks/unicode_posttool.py changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is unicode_posttool.scan_text at line 117), 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(#6920): withhold unsafe codex tool results\u201D; \u201Cfix(security): close the review gaps in the scoped sanitizers\u201D; \u201Cfix(security): scope PostToolUse sanitizers to what they exist to remove\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/security/hooks/unicode_posttool.py\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":"internal/security/hooks/unicode_posttool.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d63e8554cb068e9767c957b42b094d93fd44112a54d8587f241409462652430"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/forge/gitlab/deploy_keys.go: internal/forge/gitlab/deploy_keys.go changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is LiveClient.RevokeProtectedBranchPushDeployKeyEntry at line 199), 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(#9343): only treat 403/404 deploy-key push refusals as unsupported when gated\u201D; \u201Cfix(#9343): cover account webhook from scratch, capability gap, and trigger route\u201D; \u201Cfix(#8430): address review feedback on PR #8433\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/forge/gitlab/deploy_keys.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":"internal/forge/gitlab/deploy_keys.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e606a1dcb2b2ab89313505107d03e105344c3359e844d64f0e3784bd100770f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/preset/preset.go: internal/preset/preset.go changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is preset.fetchHTTPSWithTLSConfig at line 181), 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(#8516): retry preset fetch once and fail unloadable presets per repo\u201D; \u201Cfix(#8280): harden the gateway status probe, profile binding and BT cleanup\u201D; \u201Cfix(#7476): unblock preset-cache fetches, align IsRemote with Fetch, document roles override\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/preset/preset.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":"internal/preset/preset.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8fd126ccb2bbc5c78e7aced1c5230c48087c3b91878c6751d3e2256db51e4f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/repos/gitlab_managed_account.go: internal/repos/gitlab_managed_account.go changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is repos.ManagedGitLabRoleAccountIDs at line 27), 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(#8243): address review feedback on PR #8397\u201D; \u201Cfix(#8237): address review feedback on PR #8269\u201D; \u201Cfix(#8237): address review feedback on PR #8269\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/repos/gitlab_managed_account.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":"internal/repos/gitlab_managed_account.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"54896280bacc2492a5dcb30949e63166c083d54b481b5de0f4b7d3db3fcd6520"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/cli/provider_profile_report.go: internal/cli/provider_profile_report.go changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is cli.durableCredentialWriteWarnings at line 259), 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(#9510): match the warning remedy to its cause\u201D; \u201Cfix(#9510): treat deny-only endpoints as write-capable and escape output\u201D; \u201Cfix(#9510): name unchecked profiles and skip inference in the warning\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/cli/provider_profile_report.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":"internal/cli/provider_profile_report.go"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a5aa90ba182a346026cadb8a4f491c94f717e7c1e14d46008d77b72abb0aac"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/forge/url.go: internal/forge/url.go changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is forge.ParseForgeURL at line 36), 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(#9037): reject configured hosts that collide with forge sentinels\u201D; \u201Cfix(#9037): thread configured GitHub host into raw-content URL callers\u201D; \u201Cfix(#9037): parse raw-content URLs on configured GitHub hosts\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/forge/url.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":"internal/forge/url.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"825c2816356d44860de1eacd5ac72b43c285f7f225ffb99db95bc9f972247de0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/forge/github/types.go: internal/forge/github/types.go changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is github.AgentAppConfig at line 57), 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: verify e2e actor roles at setup time, drop organization_custom_roles\u201D; \u201Cfix: address review feedback on PR #7778\u201D; \u201Cfix: add Packages field to AppPermissions and sync AgentAppConfig\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/forge/github/types.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":"internal/forge/github/types.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb2c926aa91447eb1a1aa54028baa31fddf87560ca8d4b322d29570d275d669"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/owners/owners.go: internal/owners/owners.go changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is owners.Resolve at line 60), 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(#6042): never match a login equal to an alias key\u201D; \u201Cfix(#6042): resolve OWNERS alias keys before logins\u201D; \u201Cfix(#6042): address review comments -- security fixes, test hardening, docs\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/owners/owners.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":"internal/owners/owners.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbeaa0ef351011949c281c2b739679c77fe73a8dcba2caf2a42bd9750505775"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/pluginformat/pluginformat.go: internal/pluginformat/pluginformat.go changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is pluginformat.Detect at line 55), 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(harness): apply the no-symlink rule to Claude plugins at validation\u201D; \u201Cfix(harness): one no-symlink rule for every plugin kind, drop dead code\u201D; \u201Cfix(harness): address the multi-model review of the plugins fold\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:34:51 \u002B00:00\u0027 --until=\u00272026-11-16 12:34:51 \u002B00:00\u0027 --full-history --no-merges -- internal/pluginformat/pluginformat.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":"internal/pluginformat/pluginformat.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b2ac4ed31de94656fc7708571469aa07da5f172033089070364631445dfa7a"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 20 significant file(s) lose their only recent owner: pkg/behaviourtest/steps/runtime.go, internal/agentnew/generate.go, internal/runtime/pi_extensions.go, internal/security/hooks/hook_io.py, internal/security/hooks/context_suppress_posttool.py, internal/runtime/pi_transcript.go, internal/scaffold/fullsend-repo/scripts/resolve-precommit-tools.py, internal/security/hooks/tool_allowlist_pretool.py (\u002B12 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1f80307ebc5d9ada15bfd91cfad81313e9ea47e9199375210a17aba4085acf3d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 7 significant file(s) lose their only recent owner: skills/user-forum-whats-new/scripts/gather.py, internal/evalmeasure/export_otlp.go, internal/evalmeasure/fitness.go, hack/prove-otlp-scores/main.go, internal/evalmeasure/parse.go, internal/evalmeasure/types.go, internal/evalmeasure/run.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e34fd1b54113298ea1f4c7e56718c0fdacf623e4f22a32390e67b6c8f44fbbaf"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 4 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (48 single-owned of 388 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 388 of the 573 production source files in this repository met that bar). They are anonymized user #3 (2 file(s)), anonymized user #4 (2 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: internal/cli/content_collector.go, internal/runtime/codex_personas.go, internal/cli/mint_setup.go, internal/binary/acquire.go, internal/evalmeasure/runhealth.go, internal/layers/layers.go."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: client is a GitHub forge.Client (from e2etest.NewLiveClient). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/select.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7ae523f3309ed89374631fdeb114edbaa0c003e654862eb9cc9a3b29b10c7c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: client is a GitHub forge.Client (from e2etest.NewLiveClient). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/select.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f411f3106e6633a8ac2a901388fc66c4984fe5733d42483c6522b6a5105604b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // last-value-wins so this append takes precedence. TODO(fullsend-ai/agents#191):"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":2414}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46644404a18282d2f2800aa9d5d072dcf3654fa486838bc9054a8e33cb71907"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(#345): remove this once admin install preserves the executable"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":4409}}}],"partialFingerprints":{"codehealthFindingId/v1":"f196b6f771b6dc68fd818407b8040c2bdab35eff29ff4421530f390d0d9ad292"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(ADR-0045 R22): use forge platform context instead of raw env check."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":7673}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6a60e503516c49fa5add3f047941136e77f8fb23ebae021d7dca4b1daba4de"}},{"ruleId":"D20","level":"note","message":{"text":"ADR superseded but its status says otherwise: docs/ADRs/0061-harness-cel-dispatch.md:3 says \u0022Accepted\u0022, but docs/ADRs/0098-entity-first-harness-evaluation.md supersedes it. Two records now claim the same ground; mark this one \u0022Superseded by\u0022 its successor."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/ADRs/0061-harness-cel-dispatch.md"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce789700e55f02c88c84477f9099c8fc5cd3b702e60f8aab8edd838f8a6873f"}},{"ruleId":"D20","level":"note","message":{"text":"ADR superseded but its status says otherwise: docs/ADRs/0063-polling-based-work-discovery.md:3 says \u0022Accepted\u0022, but docs/ADRs/0098-entity-first-harness-evaluation.md, docs/ADRs/0144-reuse-poll-and-entity-bound-run-processes.md supersedes it. Two records now claim the same ground; mark this one \u0022Superseded by\u0022 its successor."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/ADRs/0063-polling-based-work-discovery.md"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6792072818933ec45722981ac0e88a80674ac19bf902993da8a2dad28025956"}},{"ruleId":"D20","level":"note","message":{"text":"ADR superseded but its status says otherwise: docs/ADRs/0052-functional-tests-for-agent-pipelines.md:3 says \u0022Accepted\u0022, but docs/ADRs/0139-agent-functional-test-suite-lives-in-agents-repo.md supersedes it. Two records now claim the same ground; mark this one \u0022Superseded by\u0022 its successor."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/ADRs/0052-functional-tests-for-agent-pipelines.md"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"3698465386dd95e11d6f97db125ca96c429176def72a20989e1dd1b86664bbac"}},{"ruleId":"D20","level":"note","message":{"text":"ADR superseded but its status says otherwise: docs/ADRs/0106-serialize-agent-runs-and-coalesce-subsequent-events.md:3 says \u0022Accepted\u0022, but docs/ADRs/0144-reuse-poll-and-entity-bound-run-processes.md supersedes it. Two records now claim the same ground; mark this one \u0022Superseded by\u0022 its successor."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/ADRs/0106-serialize-agent-runs-and-coalesce-subsequent-events.md"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f06989af0a400c79733d1c79dc068bb6ed4c9b670a7851c82dbebba92d45954"}},{"ruleId":"D20","level":"note","message":{"text":"ADR superseded but its status says otherwise: docs/ADRs/0098-entity-first-harness-evaluation.md:3 says \u0022Accepted\u0022, but docs/ADRs/0147-evaluate-entity-cel-over-selectively-acquired-data.md, docs/ADRs/0148-reuse-verified-actor-roles-for-entity-cel.md supersedes it. Two records now claim the same ground; mark this one \u0022Superseded by\u0022 its successor."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/ADRs/0098-entity-first-harness-evaluation.md"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd481ebcd4a7af14649ddc3559ac4de897fedbec8a8925a660b6891cbb6b751"}},{"ruleId":"D20","level":"note","message":{"text":"ADR superseded but its status says otherwise: docs/ADRs/0144-reuse-poll-and-entity-bound-run-processes.md:3 says \u0022Accepted\u0022, but docs/ADRs/0147-evaluate-entity-cel-over-selectively-acquired-data.md supersedes it. Two records now claim the same ground; mark this one \u0022Superseded by\u0022 its successor."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/ADRs/0144-reuse-poll-and-entity-bound-run-processes.md"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4501e987ef1af946bb33dc1a85ab0b49554556f486b48efb49db52b25138c4"}},{"ruleId":"D20","level":"note","message":{"text":"ADR superseded but its status says otherwise: docs/ADRs/0021-jsonl-reasoning-trace-exposure.md:3 says \u0022Accepted\u0022, but docs/ADRs/0161-repo-config-limits-run-artifact-content.md supersedes it. Two records now claim the same ground; mark this one \u0022Superseded by\u0022 its successor."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/ADRs/0021-jsonl-reasoning-trace-exposure.md"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"525508b4ea77f1bcd4ea00eb941e615c9c4c2a71cf440a1ca343512ba83d44dd"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060appSlugRE\u0060 spells \u0060RE\u0060 where 55 names in the project spell it \u0060Re\u0060: 55 of 57 names in project github.com/fullsend-ai/fullsend spell the token \u0060Re\u0060 (55 of 57; unit: names in project github.com/fullsend-ai/fullsend containing \u0060Re\u0060). Peers: botidentity.canonicalRoleRe (internal/botidentity/mint.go:56); cli.pemPrivateKeyRe (internal/cli/host_file_credentials.go:35); cli.hexSHARe (internal/cli/postreview.go:38); cli.reasonRe (internal/cli/postreview.go:39); cli.hunkHeaderRe (internal/cli/postreview.go:40). Rename to \u0060appSlugRe\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint_setup.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e0313ddce47d5570d2b9e5f2624afd58cde6556c6e708d9847482383cfa650"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060varExpressionRE\u0060 spells \u0060RE\u0060 where 55 names in the project spell it \u0060Re\u0060: 55 of 57 names in project github.com/fullsend-ai/fullsend spell the token \u0060Re\u0060 (55 of 57; unit: names in project github.com/fullsend-ai/fullsend containing \u0060Re\u0060). Peers: botidentity.canonicalRoleRe (internal/botidentity/mint.go:56); cli.pemPrivateKeyRe (internal/cli/host_file_credentials.go:35); cli.hexSHARe (internal/cli/postreview.go:38); cli.reasonRe (internal/cli/postreview.go:39); cli.hunkHeaderRe (internal/cli/postreview.go:40). Rename to \u0060varExpressionRe\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/openai_wif.go"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"f986bcb85fb8c195f51456af5329ac5f259fd33f100e92d69dab87e617f9ed81"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (211831 LoC, 854 module-visible types across 105 directories) overshoots its size bounds. 1 of 5 build unit(s) (Go, npm) overshoot their size bounds, lowering Project Cohesion to 6.0/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2d5244dbb9040f0ef9a41721fc246c38399605a5b233c47266a2093207fec1"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 56 % of calls cross a namespace and only 51 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a5a9fa1f7fbce079bd81e49ed9fc4ca69df3b03e5bc1a1b50d19b66803b3d8ca"},"properties":{"commitSha":"1bac54f8dab8f87d5a21814bd0758b8df9b8f5ac"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"76de58d5c0e76dcad018f48925e445e0584b13352e63bf62bf4a8a39d4315ed4"},"properties":{"commitSha":"1bac54f8dab8f87d5a21814bd0758b8df9b8f5ac"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01751f783a6a99b08a1f0324e77f93c8c39d33b9b2653887e8fdb676fc2fad0d"},"properties":{"commitSha":"1bac54f8dab8f87d5a21814bd0758b8df9b8f5ac"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f0c6cfffd2a56a9a3b31b2e042c92833ecc78c85143bdae40040368384288ad"},"properties":{"commitSha":"6cb77a301b45dabecca163cb6d4e026c73166e48"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1120e0e27f58330443b58a9ae3a252ef8a51fa44821527f7c0d44e2d4ee7c8d7"},"properties":{"commitSha":"6cb77a301b45dabecca163cb6d4e026c73166e48"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0496e77a142f8c731e3cdde9610f26ee78e98f82505f338216097ebb63b85830"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01: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":"6e07d2d1bcfd76d9972ec4780befbdbd718efb32b6448ef2ce372c3ad5d50886"},"taxa":[{"id":"CWE-269","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"293cb2201e26081e554ff9faec7d47a3e3b63aa302a5bbf87b5b875b39244cb2"},"taxa":[{"id":"CWE-269","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"44ebb14339d41808d296f69e7ed2249af48c1e74524be4de680ab153dc690f32"},"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"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"47e09b5a0b43983b05820e6426a1db27810b81354d17834940cfda683f9f1492"},"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"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"8750074d2e20406a4b90093c70a4940c4512a95b88c1d3eed37c4040efe3573d"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"a59ac9c87a14eebcbed409ce21c746b7047b49a21d77b1a7664a3261f9561759"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"d8e243cac8cb6c4b1e5ff1628630369506db0c9a9963eb924a020e5e35597ece"},"taxa":[{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01: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":"64a397d22adcd01e72af2364b8dc0d58406f8b4d0c0f83fc87ec54f16f738fa2"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-703","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":"439eed538c357bc2e90711f7776699f1dd6cfba3779c81245f61b6aad4629cc9"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","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":"b8babd1f2883bf8b29acc6c25f8824d28158e2e06649b5803e72775ac6147418"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","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":"33973b196c2e7e7fea696c6180c8509aaed4aa3cffd7c6aa88c38dd6f2917c73"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","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":"aa5b210a2b20cb25de382288ab75650c50a53f9a41871b60b53cc88ad7a21cc3"},"taxa":[{"id":"CWE-665","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-908","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b991f4bd2bc179c7aa571a335425481c7113628be77e8152998c3768583da5a"},"taxa":[{"id":"CWE-328","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":"42705b955be4294db63c9fb31309a0b345743e0a762a8fa6b19de5cdaa9c6920"},"taxa":[{"id":"CWE-328","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":"33672f94ad6be5ccf425c188ce83de53a7eeeec3abe851efdaca74ce14d70003"},"taxa":[{"id":"CWE-328","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":"1b7d17b302435e71b6bde52dd4452f9f46b6ef849af0bf3ebdd37db7a6205f8b"},"taxa":[{"id":"CWE-328","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":"c585305532c3fd0fa818db7f569b234a16295ae59d5db04a9bab465e9d4b6f68"},"taxa":[{"id":"CWE-328","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":"30efc8bf6ef68df909457a5bc7143ba9c2692edf96522b24d88fc751055ddb24"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-703","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":"b92d77b42cc49465fc229fdf25533694920b878e026ef5988cd5b615c2f0a54d"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-703","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":"9315d8a72264c71d03a7afbcd62e9d92140227412128e3802cd0d27b52ce90dc"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-703","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":"02ea56f33eec99b3bf88fb2014bfc3a1ebef62fa3874540fcb9b4f62dc916600"},"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":"ba643fee7da107762731444bb8480407190084003d54e7cec9a4ac4b286ca961"},"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":"e71c9a43bb2dad2a9afbe197eb5deb87f8fbed90c2c14ca5186ed4e87b0e128e"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","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":"044f0166fa0d20cfc0693e056b9826d69b3399ef089134a8193588487a36ce56"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-476","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":"e73485ad41299fb99ea1d8c2e17ce12262a90a60250527d155375c80caae835d"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-476","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":"bb433035f26c35b33f615a20e3671fd93ff3f0eb020c64fbb2aacf318182f549"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-476","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":"ff9891c2c22ed55ecb9338063cc3d985eb010af885ccff6ed9e5e02058264893"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-476","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":"36bc7ec7798e9c350556a862cfbe3f23564818fe6116e7bf04a7887dd0939314"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8338445eaab0cc9cf2e017980508d413da08ad7d57267243d8a4bce515a0b004"},"properties":{"dependency":{"package":"dompurify","version":"3.4.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA 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":"10d0d3e5420da08b82b9645b3f31111a2e4d986ec47f3979d6122587dbdf750e"},"properties":{"dependency":{"package":"google.golang.org/grpc","version":"1.82.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-6348","GO-2026-6441","GO-2026-6443"],"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":"9ba4b54c3ea2a145159a4e8e3420f532b69da474bd74c76e4b4f210655df53e5"},"properties":{"dependency":{"package":"sharp","version":"0.35.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE 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":"1850a662ef73888d382b8573c66702658ae42bced13ba89d35f900257abb92d9"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE 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":"5514f32daabcf36c5acdc0c7f0a461662c275735db85fafc27deb42114fbe5ec"},"properties":{"dependency":{"package":"undici","version":"7.29.0","advisory":"[GHSA redacted]","aliases":["[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]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA 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":"ad59f9b2d5678af9b7812aa676253cc0851fbc90a8fb759b2113bfc5a066d952"},"properties":{"dependency":{"package":"vite","version":"8.2.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f87796c251fc38d02a3ef4f72b2e6f6dd412d6212eb08a3103966134775f0581"},"properties":{"dependency":{"package":"zod","version":"4.4.3","advisory":"[GHSA redacted]","aliases":["[CVE 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":"9d861d97c9e6c69cb47d2f5bc645ecdddee4776c7500c34080ca158cbba2b714"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA 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":"ec98ce9551df602242a7f118a0edde5356cbd1400c0abc82227a52f1a97280a6"},"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":"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":"df1a1d5a96e1f71683e8375e1a77ef4334deca2304cd0d2f136bd08974fa3f13"},"properties":{"dependency":{"package":"sharp","version":"0.35.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE 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":"6532f69593dd3d2ea46577ad478f1657ba969b6919f855a6261cf5feb9c06e85"},"properties":{"dependency":{"package":"undici","version":"7.29.0","advisory":"[GHSA redacted]","aliases":["[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]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA 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":"b694dace86fb7d15873b2ddd65002632093db12bc6146d23cde087273cc549f5"},"properties":{"dependency":{"package":"vite","version":"5.4.21","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"package.json"}}}},{"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":"87acedc051cb89a8ce4b5f36de7264e8d1c5c5fd3ed662cda178e80e0c31f9d8"},"properties":{"dependency":{"package":"zod","version":"4.4.3","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":"49f4e962c2f7c7710fd660403a9e977e0f6cc5b6a90b2a991bd76bd155c11da4"},"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":"cmd/mint-wasm/main.go","line":205,"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":"4af232618958aac643ed8588b420cfcc1237e03e2401e6beefc4dbe831885461"},"properties":{"dependency":{"package":"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp","version":"1.44.0","advisory":"GO-2026-6505","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"internal/telemetry/telemetry.go","line":30}}}},{"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":"7bb9aa687d66777a7668c56f80f80b75dee546ea9f3837a5f072b55c6e6f2282"},"properties":{"dependency":{"package":"go.opentelemetry.io/otel/sdk","version":"1.44.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","GO-2026-6505"],"reachability":{"kind":"production","file":"internal/evalmeasure/export_otlp.go","line":16}}}},{"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":"af1a5b26fbd12c2e9b59194f0ae0f6de0066f5fb15c1043b6c961f2f47d99a47"},"properties":{"dependency":{"package":"go.opentelemetry.io/otel/trace","version":"1.44.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"internal/cli/content_collector.go","line":15}}}},{"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":"1c9c7154a9d80981a2f1da0fd0aa2e12a4e104a4411624a7aabc5ce2dd45d848"},"properties":{"dependency":{"package":"golang.org/x/crypto","version":"0.54.0","advisory":"GO-2026-5932","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-6303","GO-2026-6354","GO-2026-6355"],"reachability":{"kind":"production","file":"internal/repos/gitlab_trigger_account.go","line":17}}}},{"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":"6f52ea19481df6a261f8d6fb74692dd6b697262d3166181ac337294186789ab0"},"properties":{"dependency":{"package":"golang.org/x/text","version":"0.40.0","advisory":"GO-2026-6629","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":"3f10dd98779651de1e2d1211d97dbb4ce6e8e0f9f90402e1e03e43fa5c3cb016"},"properties":{"dependency":{"package":"go.opentelemetry.io/otel/exporters/otlp/otlptrace","version":"1.44.0","advisory":"GO-2026-6505","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"internal/telemetry/telemetry.go","line":30}}}},{"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":"34d92b4e8ceb16a1fd57062952c6ce862546a7f5a590d99835b621f385dc5d89"},"properties":{"dependency":{"package":"golang.org/x/mod","version":"0.38.0","advisory":"GO-2026-6179","aliases":["BIT-golang-2026-56864","BIT-golang-2026-56865","[CVE redacted]","[CVE redacted]","GO-2026-6180"],"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":"d03f2a180b6c44b09157108557612e48c9e72436d9219e099dc51e18f53d4553"},"properties":{"dependency":{"package":"golang.org/x/net","version":"0.57.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":"10a7a5ebcba67969da097e74d8b837aa4ab98e4ad5e038a8a0087e97f330e6b8"},"properties":{"dependency":{"package":"golang.org/x/image","version":"0.44.0","advisory":"GO-2026-6222","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":"9763bfbc308ede65ee7956de438253b0f57ec3403cf87e662f258c1923834472"},"properties":{"dependency":{"package":"mcp","version":"1.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"3bd86fc4a3f336bd362e1e761ed78d585d5f8f0515891d5ba2a9fee5f0d1276f"},"properties":{"dependency":{"package":"opentelemetry-api","version":"1.37.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"79774950b11c13badfe51153eefb3ad2cb480422137f4bdf1ad6297206761e7f"},"properties":{"dependency":{"package":"esbuild","version":"0.21.5","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"8c7d1077e4a00749199d4f937c10098ae6dac026a670c7633bdc6377a9b072fd"},"properties":{"dependency":{"package":"katex","version":"0.16.47","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","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":"ab4175d1e5c536afc7a23dff884131dbaeae4aa50a34e706a237b6e8a5ce0169"}},{"ruleId":"D31","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":"abc4a8b1357823cd9b0848d51dcfbb5167a5210de23c1dfea689597c52536a9b"}},{"ruleId":"D31","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":"4a61761bf4fc04647ade2c66a839dd3a387e9595526085061a3dbfc9ba619793"}},{"ruleId":"D31","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":"f6ef46373078da162985e697a057ce6b64c6a297821cc6c6ca13ee41bba76d6e"}},{"ruleId":"D31","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":"5b7a97d0a8c3397fafba8a192f5ccb5553cf1ff90fb6acb26d433b0d7f0dfcf4"}},{"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":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/public/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb09a875f51b4b05ae67b8367abf06708b60f16bb06756f35f9ddfedec11f96"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h4: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/public/index.html"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"0314817ae2a7e5440f6728bd2d73321ddf32ca34484e63848eec9deca5a75102"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cfigure\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/.vitepress/theme/components/Mermaid.vue"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c567b5931dfcb27dc66c3d38cfa0f6e60bc9f49615546af4fdd67068275a55"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.result\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/.vitepress/theme/components/VPLocalSearchBox.vue"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef73db0de11ab3b7a1a64037bc51876814e17a3a3f6686df5659b587b81431e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.reading-progress\u0060 moves (\u0060transition: width 0.1s linear\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/.vitepress/theme/custom.css"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f30bd7d61616407405811847f3aa9d6c07f391d31c02eba864ea74a14f390b6"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: PerRepoConfigReader (22 methods): \u0060PerRepoConfigReader\u0060 declares 22 methods: \u0060ConfigRoles\u0060, \u0060ConfigRuntime\u0060, \u0060ConfigForge\u0060, \u0060ConfigTracker\u0060, \u0060ConfigMintURL\u0060, \u0060ConfigMintURLFromFile\u0060, \u0060ConfigKeepHistory\u0060, \u0060ConfigInferenceProvider\u0060, \u0060ConfigInferenceProject\u0060, \u0060ConfigInferenceRegion\u0060, \u0060ConfigInferenceWIFProvider\u0060, \u0060ConfigInferenceWIFAudience\u0060, \u0060ConfigInferenceServiceAccount\u0060, \u0060ConfigInferenceOpenAI\u0060, \u0060ConfigInferenceGateway\u0060, \u0060ConfigModelAliases\u0060, \u0060ConfigArtifactsContent\u0060, \u0060ConfigArtifactsContentSet\u0060, \u0060ConfigArtifactsBySource\u0060, \u0060IsOwnersFileAuthEnabled\u0060, \u0060JiraAuthorization\u0060, \u0060TraceContext\u0060. Counted over the exported method specs the interface itself declares, once per name; an embedded interface is a role it composes, judged on its own declaration, and is not counted here. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/interfaces.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbff2335e8602bdf6660f8a3a9c56013f2eb59f26990ea947f177eb00892cebc"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: PerRepoConfigWriter (16 methods): \u0060PerRepoConfigWriter\u0060 declares 16 methods: \u0060SetRoles\u0060, \u0060SetRuntime\u0060, \u0060SetMintURL\u0060, \u0060SetKeepHistory\u0060, \u0060SetInferenceProvider\u0060, \u0060SetInferenceProject\u0060, \u0060SetInferenceRegion\u0060, \u0060SetInferenceWIFProvider\u0060, \u0060SetInferenceWIFAudience\u0060, \u0060SetInferenceServiceAccount\u0060, \u0060SetInferenceOpenAI\u0060, \u0060SetInferenceGateway\u0060, \u0060MergeInferenceGateway\u0060, \u0060SetModelAliases\u0060, \u0060SetOwnersFileAuthEnabled\u0060, \u0060SetIssueTracking\u0060. Counted over the exported method specs the interface itself declares, once per name; an embedded interface is a role it composes, judged on its own declaration, and is not counted here. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/interfaces.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b719eaf4c3da2498bd001791bb6648489b57db0eb5789bab3aee0685606f6f6"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: GCFClient (32 methods): \u0060GCFClient\u0060 declares 32 methods: \u0060CreateServiceAccount\u0060, \u0060DeleteServiceAccount\u0060, \u0060CreateWIFPool\u0060, \u0060DeleteWIFPool\u0060, \u0060CreateWIFProvider\u0060, \u0060GetWIFProvider\u0060, \u0060UpdateWIFProvider\u0060, \u0060DisableWIFProvider\u0060, \u0060DeleteWIFProvider\u0060, \u0060GetSecret\u0060, \u0060CreateSecret\u0060, \u0060AddSecretVersion\u0060, \u0060AccessSecretVersion\u0060, \u0060DisableSecretVersion\u0060, \u0060EnableSecretVersion\u0060, \u0060DeleteSecret\u0060, \u0060SetSecretIAMBinding\u0060, \u0060ReplaceSecretIAMBinding\u0060, \u0060SetProjectIAMBinding\u0060, \u0060SetCloudRunInvoker\u0060, \u0060DeleteFunction\u0060, \u0060GetFunction\u0060, \u0060GetCloudRunServiceURI\u0060, \u0060UploadFunctionSource\u0060, \u0060CreateFunction\u0060, \u0060UpdateFunction\u0060, \u0060UpdateFunctionEnvVars\u0060, \u0060UpdateServiceEnvVars\u0060, \u0060GetServiceRevisionInfo\u0060, \u0060GetServiceTrafficEnvVars\u0060, \u0060WaitForOperation\u0060, \u0060GetProjectNumber\u0060. Counted over the exported method specs the interface itself declares, once per name; an embedded interface is a role it composes, judged on its own declaration, and is not counted here. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ee91bfe4e9a328ae51786327f2c9a250dd7b22d1571fe082300ec40f08c666"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: Client (129 methods): \u0060Client\u0060 declares 129 methods: \u0060ListOrgRepos\u0060, \u0060GetRepo\u0060, \u0060CreateRepo\u0060, \u0060UpdateRepoVisibility\u0060, \u0060DeleteRepo\u0060, \u0060FindExistingFork\u0060, \u0060CreateFork\u0060, \u0060CreateForkInOrg\u0060, \u0060DeleteProjectServiceAccount\u0060, \u0060CreateFile\u0060, \u0060CreateOrUpdateFile\u0060, \u0060GetFileContent\u0060, \u0060UpdateFileIfMatch\u0060, \u0060DeleteFile\u0060, \u0060DeleteFiles\u0060, \u0060ListDirectoryContents\u0060, \u0060ListRepositoryFiles\u0060, \u0060GetFileContentAtRef\u0060, \u0060CommitFiles\u0060, \u0060CommitFilesToBranch\u0060, \u0060ForceCommitFileToBranch\u0060, \u0060GetRef\u0060, \u0060GetBranchRef\u0060, \u0060CreateBranch\u0060, \u0060CreateBranchFromSHA\u0060, \u0060DeleteBranch\u0060, \u0060DeleteRef\u0060, \u0060CreateFileOnBranch\u0060, \u0060CreateOrUpdateFileOnBranch\u0060, \u0060CreateChangeProposal\u0060, \u0060CreateCrossRepoChangeProposal\u0060, \u0060ListRepoPullRequests\u0060, \u0060CloseChangeProposal\u0060, \u0060GetOrgPlan\u0060, \u0060GetAuthenticatedUser\u0060, \u0060GetAuthenticatedUserIdentity\u0060, \u0060GetTokenScopes\u0060, \u0060IsInstallationToken\u0060, \u0060CreateRepoSecret\u0060, \u0060RepoSecretExists\u0060, and 89 more. Counted over the exported method specs the interface itself declares, once per name; an embedded interface is a role it composes, judged on its own declaration, and is not counted here. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/forge.go"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"089d06807cf5f4270eaca46dec2167c86217e8487973180e2f251bc0e2eaf042"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: GitLabClient (22 methods): \u0060GitLabClient\u0060 declares 22 methods: \u0060ListIssuesUpdatedSince\u0060, \u0060ListMergeRequestsUpdatedSince\u0060, \u0060ListProjectEvents\u0060, \u0060ListIssueNotes\u0060, \u0060ListMergeRequestNotes\u0060, \u0060ListMergeRequestDiffVersions\u0060, \u0060ListResourceLabelEvents\u0060, \u0060GetFileContentAtRef\u0060, \u0060GetBranchRef\u0060, \u0060CommitFileToBranch\u0060, \u0060ForceCommitFileToBranch\u0060, \u0060DeleteRef\u0060, \u0060GetAuthenticatedUser\u0060, \u0060GetAuthenticatedUserID\u0060, \u0060GetUserBot\u0060, \u0060CreateNoteAwardEmoji\u0060, \u0060GetIssue\u0060, \u0060GetMergeRequest\u0060, \u0060GetMemberAccessLevel\u0060, \u0060GetProjectPath\u0060, \u0060CreatePipelineWithInputs\u0060, \u0060CreateChildPipelineWithInputs\u0060. Counted over the exported method specs the interface itself declares, once per name; an embedded interface is a role it composes, judged on its own declaration, and is not counted here. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/poll/client.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d1c4bda62c5d8f37b762ed55451a955a36281227037cf98a339f5c89fafec1"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: GitLabTriggerAccountAPI (22 methods): \u0060GitLabTriggerAccountAPI\u0060 declares 22 methods: \u0060GetAuthenticatedUserID\u0060, \u0060ListProjectServiceAccounts\u0060, \u0060CreateProjectServiceAccount\u0060, \u0060DeleteProjectServiceAccount\u0060, \u0060GetProjectMemberAccessLevel\u0060, \u0060AddProjectMember\u0060, \u0060UpdateProjectMemberAccessLevel\u0060, \u0060CreateServiceAccountPAT\u0060, \u0060ListServiceAccountPATs\u0060, \u0060RevokeServiceAccountPAT\u0060, \u0060HasExactProtectedBranchRule\u0060, \u0060GrantProtectedBranchPushDeployKey\u0060, \u0060ProtectedBranchPushDeployKeyEntryID\u0060, \u0060RevokeProtectedBranchPushDeployKeyEntry\u0060, \u0060ListProjectDeployKeys\u0060, \u0060DeleteProjectDeployKey\u0060, \u0060ListPipelineTriggerTokens\u0060, \u0060RevokePipelineTriggerToken\u0060, \u0060AccountSSHKeyIDs\u0060, \u0060AccountActiveJobIDs\u0060, \u0060AccountScheduleIDs\u0060, \u0060UnknownOwnerScheduleIDs\u0060. Counted over the exported method specs the interface itself declares, once per name; an embedded interface is a role it composes, judged on its own declaration, and is not counted here. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fad67a7165f877002a2cc038c1122dec7fdb032133f73a1223d759e0758991"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: Driver (29 methods): \u0060Driver\u0060 declares 29 methods: \u0060CreateIssue\u0060, \u0060AddIssueLabels\u0060, \u0060EnsureLabel\u0060, \u0060AddComment\u0060, \u0060GetIssue\u0060, \u0060ListOpenIssues\u0060, \u0060GetFileContent\u0060, \u0060GetFileContentAtRef\u0060, \u0060CommitFile\u0060, \u0060CreateBranch\u0060, \u0060DeleteBranch\u0060, \u0060CommitFileToBranch\u0060, \u0060CreateChangeProposal\u0060, \u0060SubmitPullRequestReview\u0060, \u0060CloseIssue\u0060, \u0060ListOpenChangeProposals\u0060, \u0060ListComments\u0060, \u0060ListIssueReactions\u0060, \u0060CreateRepo\u0060, \u0060EnsureRepoPublic\u0060, \u0060GetDefaultBranch\u0060, \u0060GetBranchRef\u0060, \u0060DeleteRepo\u0060, \u0060CreateFork\u0060, \u0060CreateUserFork\u0060, \u0060CommitFileToFork\u0060, \u0060CreateForkChangeProposal\u0060, \u0060ListPullRequestReviews\u0060, \u0060ListPullRequestCommits\u0060. Counted over the exported method specs the interface itself declares, once per name; an embedded interface is a role it composes, judged on its own declaration, and is not counted here. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/scm/driver.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73b6b5bce429fcdfc94a476a0662e7879c4ecfc35fe161d3f83bb3e89acb858"}},{"ruleId":"M1","level":"note","message":{"text":"Thin README: The root README is 84 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, in the README and in the repository documents it links, it found no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise \u2014 or with no heading at all \u2014 is not seen and this row may understate what the document covers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88b11295dc6ac6146c259ace6043143959f96dc98628f8c8578b6c5f95b8149"}},{"ruleId":"M2","level":"note","message":{"text":"Architecture diagram out of date: \u0060docs/guides/user/bring-your-own-agent.md\u0060 draws the system\u0027s parts, and the drawing no longer matches the code: it leaves out \u0060mint-wasm\u0060, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/guides/user/bring-your-own-agent.md"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"0256fa2cdba7d785412ceb26cb1d9ef02fe3798ecdb305167cd8a3fe44f413c0"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 4/6 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060cmd/mint-wasm\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!strings.HasSuffix(name, \u0022.yaml\u0022) \u0026\u0026 !strings.HasSuffix(name, \u0022.yml\u0022)\u0060 appears character-identically in 2 files \u2014 internal/harness/discover.go, internal/harness/discover_remote.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":"internal/harness/discover.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee3cc091c7165290d9b9fcc72842af8d8ee394c45678f84dd4a6991b63be6ba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(c \u003E= \u00270\u0027 \u0026\u0026 c \u003C= \u00279\u0027) || (c \u003E= \u0027a\u0027 \u0026\u0026 c \u003C= \u0027f\u0027)\u0060 appears character-identically in 2 files \u2014 internal/fetch/cache.go, internal/urlutil/urlutil.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":"internal/fetch/cache.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3479167d6ff5c5d1cdcaa34ca6f3caa5b824e1fe22629890365cc465ec4d97"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(c \u003E= \u00270\u0027 \u0026\u0026 c \u003C= \u00279\u0027) || (c \u003E= \u0027a\u0027 \u0026\u0026 c \u003C= \u0027f\u0027) || (c \u003E= \u0027A\u0027 \u0026\u0026 c \u003C= \u0027F\u0027)\u0060 appears character-identically in 2 files \u2014 internal/dispatch/cf/provisioner.go, internal/statuscomment/statuscomment.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":"internal/dispatch/cf/provisioner.go"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1e91a8d61dbe5e3bbc41ca7949f2e19010691af6df56f21842304595574b30"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(r \u003E= \u0027a\u0027 \u0026\u0026 r \u003C= \u0027z\u0027) || (r \u003E= \u00270\u0027 \u0026\u0026 r \u003C= \u00279\u0027)\u0060 appears character-identically in 2 files \u2014 internal/evalmeasure/find.go, pkg/behaviourtest/steps/debuglogs.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":"internal/evalmeasure/find.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e31c4006d49d139dca820ab22a718e5655928a364204c2675a9341181aaa96"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(r \u003E= \u0027a\u0027 \u0026\u0026 r \u003C= \u0027z\u0027) || (r \u003E= \u00270\u0027 \u0026\u0026 r \u003C= \u00279\u0027) || r == \u0027-\u0027\u0060 appears character-identically in 2 files \u2014 internal/dispatch/gcf/gitlab_wif.go, internal/mintcore/wif.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":"internal/dispatch/gcf/gitlab_wif.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4578ce2f2d0a4aff6e2a1f672b30c5f3696fe3e795de199a49e25baecad27362"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060aErr == nil \u0026\u0026 bErr == nil \u0026\u0026 !at.Equal(bt)\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/drivers/ci/githubactions/githubactions.go, pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2861365de90ec9e9ea02fb4123be9975eb9ff0c3d0896647865794524333765"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bootErr == nil \u0026\u0026 (bootstrap == nil || bootstrap.Token == \u0022\u0022)\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_poller_generation.go, internal/repos/gitlab_webhook_poller.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":"internal/repos/gitlab_poller_generation.go"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b37d09fb56e837c20c319ae6a5a699f5e0323439aa8fa0bc60632900e569544"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bootstrap == nil || bootstrap.Token == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/gitlablifecycle/poller_handoff.go, internal/gitlablifecycle/trigger_owner.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":"internal/gitlablifecycle/poller_handoff.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cc43393db3e87127dd704119f752616d94bcf74c5aa6f69894b3cfe273c01e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c.Inference != nil \u0026\u0026 c.Inference.Provider != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/config/config.go, internal/config/interfaces.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":"internal/config/config.go"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8b11671c617ddc528bf54cd6cf1096cfebb149165afe96d6ed465faa0dec8f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060candidate.Status == \u0022completed\u0022 \u0026\u0026 candidate.Conclusion != \u0022success\u0022\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/drivers/ci/githubactions/githubactions.go, pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb2ac399e127ed3614050d64e96f1e2bc8349a76be7fcecdfcc0171680ac446"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cfg.InferenceProject != \u0022\u0022 \u0026\u0026 !IsValidGCPProjectID(cfg.InferenceProject)\u0060 appears character-identically in 2 files \u2014 internal/repos/converge.go, internal/repos/install.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":"internal/repos/converge.go"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"549464490babbb71e105b6a1bcfe0f05d46fdf87dcccb75e8859b4e8d37b86ef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060detail == nil || detail.ID != s.ID || detail.Description != s.Description\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_jira_poll.go, internal/repos/gitlab_trigger_schedules.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":"internal/repos/gitlab_jira_poll.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c087dd42a19b1f20405f6aab70fc84f86deec23fd84322ac6faaf24b06c1bef6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060detail == nil || detail.ID != schedule.ID || detail.Description != schedule.Description\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_pipeline_var_restriction.go, internal/repos/gitlab_trigger_dispatch_gate.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":"internal/repos/gitlab_pipeline_var_restriction.go"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b82fb11d8951f0c5c894a3b83470b56af96a599e293060344725c798310a98d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060doc.Kind != yaml.DocumentNode || len(doc.Content) != 1 || doc.Content[0].Kind != yaml.MappingNode\u0060 appears character-identically in 3 files \u2014 internal/config/managed_schema.go, internal/repos/manifest.go, internal/repos/manifest_legacy_tracking.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":"internal/config/managed_schema.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd21c79107f9984154886f3f6e88e04ae9aa7a7fa3f6e23f0099846ec11e3894"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060doc.Kind != yaml.DocumentNode || len(doc.Content) == 0\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlabci.go, internal/repos/manifest_set.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":"internal/repos/gitlabci.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"682572b99a568c117d137503647809cf51f5caf2d643506d1067a9923a6eee75"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.IsDir() || (!strings.HasSuffix(e.Name(), \u0022.yaml\u0022) \u0026\u0026 !strings.HasSuffix(e.Name(), \u0022.yml\u0022))\u0060 appears character-identically in 2 files \u2014 internal/harness/harness.go, internal/resolve/resolve.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":"internal/harness/harness.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac48fb4c2731e98ede058bc5cb939b3b42a2b5bc1f8326063986920bc88c5cc6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.StatusCode == http.StatusTooManyRequests || (e.StatusCode \u003E= 500 \u0026\u0026 e.StatusCode \u003C= 504)\u0060 appears character-identically in 3 files \u2014 internal/forge/github/github.go, internal/forge/gitlab/gitlab.go, internal/forge/jira/client.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":"internal/forge/github/github.go"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"17615e2b12af05f35fe41f7652e1f7e506549bbfa8a2bc63009bcd8c72f14dbf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry.IsDir() || !strings.HasSuffix(entry.Name(), \u0022.jsonl\u0022)\u0060 appears character-identically in 4 files \u2014 internal/runtime/claude_transcript.go, internal/runtime/codex_transcript.go, internal/runtime/opencode_transcript.go, internal/runtime/pi_transcript.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":"internal/runtime/claude_transcript.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"124e4b3d8dd58f1ed0cb7d708d06d9b866959763b9560f2364ee7b409f56d4fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 forge.IsAlreadyExists(err)\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/drivers/scm/github/github.go, pkg/behaviourtest/drivers/scm/gitlab/gitlab.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":"pkg/behaviourtest/drivers/scm/github/github.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa23ba7de21da98ff3a088874c45a6bbe4f5cc4717630a0e3e4905b73be3949"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil || len(docs) == 0 || docs[len(docs)-1].Kind != yaml.DocumentNode || len(docs[len(docs)-1].Content) == 0\u0060 appears character-identically in 5 files \u2014 internal/repos/gitlab_trigger_consumer.go, internal/repos/gitlab_trigger_dispatch_gate.go, internal/repos/gitlab_trigger_job_templates.go, internal/repos/gitlab_trigger_jobs.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":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a6175c0ea494f23d892a3663ca0b13fede6193e6fbc371a2eaac06c80e2d9d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil || len(docs) == 0 || len(docs[len(docs)-1].Content) == 0\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_trigger_consumer.go, internal/repos/gitlab_trigger_dispatch_gate.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":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cef14491458adfd98ce757128ab220f00e32d533ece966a34a56e920d397754"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil || mu.Scheme != \u0022https\u0022 || mu.Host == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/repos/managed_config.go, internal/repos/manifest.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":"internal/repos/managed_config.go"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6d59bd0fa854f753d4a42554ee037c259b91ba834622ffc3aa7e7610301de7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil || rel == \u0022..\u0022 || strings.HasPrefix(rel, \u0022..\u0022\u002Bstring(filepath.Separator))\u0060 appears character-identically in 2 files \u2014 internal/cli/skill_staging.go, internal/repos/manifest.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":"internal/cli/skill_staging.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"666d895017c9d15ef4bbfeb574093922be3d38063fc258c4842a93ccd454dd3e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err == nil \u0026\u0026 candidate.Status == \u0022completed\u0022\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/drivers/ci/githubactions/githubactions.go, pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"002322146966ec14d17bcbe3b00f8875a3f6397d426d653fd55d3876b729348f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err == nil \u0026\u0026 rel != \u0022..\u0022 \u0026\u0026 !strings.HasPrefix(rel, \u0022..\u0022\u002Bstring(filepath.Separator))\u0060 appears character-identically in 2 files \u2014 internal/harness/compose.go, internal/resolve/resolve.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":"internal/harness/compose.go"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cb08071afdf304109a673da03abaef1af17440053a3cdf97c8cdece087b9d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errors.Is(ctx.Err(), context.DeadlineExceeded) \u0026\u0026 errors.Is(err, context.DeadlineExceeded)\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/drivers/ci/githubactions/githubactions.go, pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4f950284346dd47de5f0048675c519829897ebe25be6c99b47cccdc13a4c61"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded)\u0060 appears character-identically in 2 files \u2014 internal/appsetup/appsetup.go, pkg/behaviourtest/drivers/install/common/setup.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":"internal/appsetup/appsetup.go"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"540a6883ebe3bf9d640e573a5d93960f82d14820cf8709a593ab0ee3faad5b6d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errors.Is(err, context.DeadlineExceeded) || errors.Is(err, context.Canceled)\u0060 appears character-identically in 2 files \u2014 internal/forge/forge.go, internal/harness/compose.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":"internal/forge/forge.go"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d3cdec6a61cbce86b4c596b130dac466c9dc8e8d0f1f95c1a9193280deb459"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF)\u0060 appears character-identically in 5 files \u2014 internal/fetch/fetch.go, internal/forge/forge.go, internal/forge/gitlab/gitlab.go, internal/forge/jira/client.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":"internal/fetch/fetch.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b218b055b748ec0df6b13554536814994243d47b64ad4d05b45ce6ec7eacd2eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errors.Is(err, syscall.ECONNRESET) || errors.Is(err, syscall.ECONNREFUSED)\u0060 appears character-identically in 2 files \u2014 internal/fetch/fetch.go, internal/gcp/client.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":"internal/fetch/fetch.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b17281b3c1f549513f227f5a183d98cc9309ec4ed8ad6090c8c454ba894e74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.Type != \u0022issue_label\u0022 || event.ChangedLabel == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/poll/poll.go, internal/poll/webhook_dispatch.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":"internal/poll/poll.go"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfacbe6d1eb0a5b87d77b05ecc4a2dc4e2d196e39874ba738b24057b7163e42"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.Type == \u0022issue_label\u0022 \u0026\u0026 actorID != 0\u0060 appears character-identically in 2 files \u2014 internal/poll/poll.go, internal/poll/webhook.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":"internal/poll/poll.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8e2d3f2ab420d7e7e07acb66ef14c9f30225717cc8f8a0e1301260678a4796"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.Type == \u0022issue_label\u0022 \u0026\u0026 event.ChangedLabel != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/poll/webhook.go, internal/poll/webhook_dispatch.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":"internal/poll/webhook.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f757cd9beb60dbe66db273f6a2f2cb0b2bcd74ddf7165ebacca0e53f0b107bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.Type == \u0022mr_event\u0022 \u0026\u0026 event.Action == \u0022synchronized\u0022\u0060 appears character-identically in 2 files \u2014 internal/poll/convert.go, internal/poll/events.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":"internal/poll/convert.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb8ef5e10d40b814c8323a1cc05972322c334235866cea4ae6403fc7b41f6a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060existingAppSet != \u0022\u0022 \u0026\u0026 appsetup.ValidateAppSet(existingAppSet) != nil\u0060 appears character-identically in 2 files \u2014 internal/cli/admin.go, internal/cli/github.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":"internal/cli/admin.go"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1c24331e287419b698173cf268b947e5cbbf263a595cba86cd2011f88874db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060exists \u0026\u0026 info.sha == expectedSHA \u0026\u0026 info.mode == f.Mode\u0060 appears character-identically in 2 files \u2014 internal/forge/github/github.go, internal/forge/gitlab/repo.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":"internal/forge/github/github.go"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"276353d24b3ab65f3acdc35454634080b82573367717114136332207cd06dc96"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060exitCode == 0 \u0026\u0026 lastResult != nil \u0026\u0026 lastResult.IsError\u0060 appears character-identically in 2 files \u2014 internal/runtime/codex_run.go, internal/runtime/opencode_run.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":"internal/runtime/codex_run.go"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"61adf1e22c26bdaf6bce7013f8fc894309fb82f7621a2e558eccf1226e96c420"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060forge.IsForbidden(err) || forge.IsNotFound(err)\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_poller_generation.go, internal/repos/gitlab_webhook_poller.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":"internal/repos/gitlab_poller_generation.go"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ecac812687c27efd9af3d040d7195ef60633cc3c26bf30cbde50cbdab56dc18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060forge.IsNotFound(err) || forge.IsNotSupported(err)\u0060 appears character-identically in 2 files \u2014 internal/gitlablifecycle/trigger_owner.go, internal/repos/gitlab_service_accounts.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":"internal/gitlablifecycle/trigger_owner.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43cbef578a65be2aaaa61545a3570136a2c3e22bd74dad2f870beb80a9278b7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060h.Agent != \u0022\u0022 \u0026\u0026 !strings.HasPrefix(h.Agent, \u0022/\u0022) \u0026\u0026 !strings.HasPrefix(h.Agent, \u0022https://\u0022)\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/steps/dispatch.go, pkg/behaviourtest/steps/url_dispatch.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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04f7d267b39b35ab4101ec7872eac598999d174d189ec8f34658e4d738e1ac2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060h.Policy != \u0022\u0022 \u0026\u0026 !strings.HasPrefix(h.Policy, \u0022/\u0022) \u0026\u0026 !strings.HasPrefix(h.Policy, \u0022https://\u0022)\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/steps/dispatch.go, pkg/behaviourtest/steps/url_dispatch.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":"pkg/behaviourtest/steps/dispatch.go"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"395ee9ab8398f3a78ab92d3f9ccbd6e8dc3e44746923cd279f0f5cf2fc8552a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060h.ValidationLoop != nil \u0026\u0026 h.ValidationLoop.Script != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/harness/forge.go, internal/harness/harness.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":"internal/harness/forge.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"92438824460e8e62c6a581cec76555c8e1858a4cbdd70cb686dc108a790c29d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasJob \u0026\u0026 !isConcurrencySuperseded(job.Conclusion)\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/drivers/ci/githubactions/githubactions.go, pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3f86c215e6e3e5e173134f7d759f1ed84439d6f1ba5d5bbd8a63aad5984672"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host == \u0022localhost\u0022 || host == \u0022127.0.0.1\u0022 || host == \u0022::1\u0022\u0060 appears character-identically in 2 files \u2014 internal/forge/gitlab/gitlab.go, internal/forge/jira/client.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":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1268f63e4a7353b32c772d627a3193c4bf52c39b9cbf845893d3537f488bfa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i \u003C len(content)-1 \u0026\u0026 isBlockType(childType) \u0026\u0026 isBlockType(nodeType)\u0060 appears character-identically in 2 files \u2014 internal/forge/jira/adf.go, internal/jirapoll/discover.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":"internal/forge/jira/adf.go"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1631dbcf88e07b9f68ccf9fb97c9d266494fcc6374c0effeb8212fe3e4250c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060id != tokenID \u0026\u0026 !containsInt(outgoing, id)\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_roles_rotate.go, internal/repos/gitlab_webhook_poller.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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdcbc20566c9e00a558965a11c428a09d0a24c0d7682000ff9acdfb40761dbb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060id \u003E 0 \u0026\u0026 !slices.Contains(ids, int(id))\u0060 appears character-identically in 2 files \u2014 internal/gitlablifecycle/trigger_account.go, internal/repos/gitlab_managed_account.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":"internal/gitlablifecycle/trigger_account.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf44af8e2ba5537103c76502c605d80a6ef2f154006cff712a029a777ffafe9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060job == nil || job.Kind != yaml.MappingNode\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_trigger_dispatch_gate.go, internal/repos/gitlab_trigger_jobs.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":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afecfb755dc1a21d16cf5659379c650d6da51a1b65c21e7e8c95ca19eb300fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(parts) != 2 || parts[0] == \u0022\u0022 || parts[1] == \u0022\u0022\u0060 appears character-identically in 10 files \u2014 internal/cli/admin.go, internal/cli/fetchreviewthreads.go, internal/cli/mint.go, internal/cli/postcomment.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":"internal/cli/admin.go"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"9364ff8a7361ae23462ebf41820ce4c8991cb84884779ebce9b237f255489120"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line == \u0022\u0022 || strings.HasPrefix(line, \u0022#\u0022)\u0060 appears character-identically in 3 files \u2014 internal/config/managed_schema.go, internal/envfile/envfile.go, internal/prescript/prescript.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":"internal/config/managed_schema.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"501a691d61789b4a5b94e53b25deafcc3a91d28f0c71637a26838c62b36f9983"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060list == nil || list.Kind != yaml.SequenceNode\u0060 appears character-identically in 2 files \u2014 internal/cli/gitlab_profile.go, internal/repos/gitlab_webhook.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":"internal/cli/gitlab_profile.go"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba92dff399a965454788d828b75aa5923e47a3b6847dec3603f3134dc47bb607"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lookupErr != nil \u0026\u0026 !forge.IsNotFound(lookupErr)\u0060 appears character-identically in 2 files \u2014 internal/appsetup/appsetup.go, internal/repos/gitlab_webhook.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":"internal/appsetup/appsetup.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"d785a2080a100390cb7df3cdffaf834b97a511ae402c2db6e8485cf18804b392"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060method == http.MethodGet || method == http.MethodHead || method == http.MethodPut || method == http.MethodDelete\u0060 appears character-identically in 3 files \u2014 internal/forge/gitlab/gitlab.go, internal/forge/jira/client.go, internal/gcp/client.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":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f1dcc5365c00b938ed7dc8ee48a4330b9ac3ad6b72dda50f22252874b63cce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060n.Kind == yaml.ScalarNode \u0026\u0026 n.Tag == \u0022!!null\u0022\u0060 appears character-identically in 3 files \u2014 internal/config/legacy_tracking.go, internal/repos/manifest_legacy_tracking.go, internal/repos/manifest_set.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":"internal/config/legacy_tracking.go"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"815d72258479447573c99d05785c12f288932ee0042a76eaef989bbaff987466"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060newestCreatedAt != \u0022\u0022 \u0026\u0026 newestCreatedAt == lastNewestCreatedAt\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/drivers/ci/githubactions/githubactions.go, pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c22ff563997eb25496a77e5075dd27446bed7ec92790777c17507a906bec069"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060node == nil || node.Kind != yaml.MappingNode\u0060 appears character-identically in 2 files \u2014 internal/config/legacy_tracking.go, internal/config/managed.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":"internal/config/legacy_tracking.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cff7092dc2f634e81ccaf405fca05705f04e86535f0ef5cb3b6f99d638e0697"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ok \u0026\u0026 slices.Contains(mintStatusPassthroughEnv, name)\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/steps/jirapoll.go, pkg/behaviourtest/steps/mint_status.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":"pkg/behaviourtest/steps/jirapoll.go"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"405ebcf9d2769e5d571c2b3c850854293049575e6f6395346943ebd6bdb87536"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060opts.UpstreamTag != \u0022\u0022 \u0026\u0026 opts.UpstreamTag != ref\u0060 appears character-identically in 2 files \u2014 internal/scaffold/jira_poll.go, internal/scaffold/render.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":"internal/scaffold/jira_poll.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f29df137afb5acf82a5f5e5609f13d8c937fdafd354393082086f1199d87933"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060p == nil || p.Run == nil || p.Control == nil || p.Subject == nil\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/steps/bot_role_probe.go, pkg/behaviourtest/steps/mint_probe.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":"pkg/behaviourtest/steps/bot_role_probe.go"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b31a0132937114a68310dd64fb9e3cd03351bcc3db68a9ba90ed3adbc0a5161"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060page \u003E 1 \u0026\u0026 (forge.IsNotFound(err) || forge.IsForbidden(err) || forge.IsNotSupported(err))\u0060 appears character-identically in 2 files \u2014 internal/forge/gitlab/ci.go, internal/forge/gitlab/service_accounts.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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1989}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e1f17ce1bc9d0231c3a41e5424ebf4be3f502079d53e68e284aad2a1b29772"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pat == nil || pat.ID \u003C= 0 || pat.Token == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_trigger_account.go, internal/repos/gitlab_trigger_schedules.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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ecc5372117beba58b63f98095804c16db6c80bdb74cc1347973997f4a0db24"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060previewAlias != \u0022\u0022 \u0026\u0026 !cf.ValidatePreviewAlias(previewAlias)\u0060 appears character-identically in 2 files \u2014 internal/cli/mint.go, internal/cli/mint_delete.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":"internal/cli/mint.go"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e070b9dbc2f06bbce2fee51bc3bad440da36447d1d45bdcf9ce0aee6fd8be0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060previousRevocationUnconfirmed \u0026\u0026 previous.IncomingID != 0 \u0026\u0026 previous.IncomingID != tokenID \u0026\u0026 !containsInt(outgoing, previous.IncomingID)\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_roles_rotate.go, internal/repos/gitlab_webhook_poller.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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"13530d8caaca9a8ad1bf317cae57ea0dcb70c6f5f9843dc85968bee76f9d4874"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060r.Method == http.MethodGet \u0026\u0026 r.URL.Path == \u0022/health\u0022\u0060 appears character-identically in 2 files \u2014 internal/mintcore/handler.go, internal/mintcore/tracing.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":"internal/mintcore/handler.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7d24d339d55a0e5c8f8882c4931ec2417edbd2e662aba1484a1317619d7099"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060r.Status != \u0022completed\u0022 || !isTerminalFailure(r.Conclusion)\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/drivers/ci/githubactions/githubactions.go, pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c5e71f578885284e6452e1f2864239d7af9ad1a1d8fb4c70a7a2b385939613"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resolved.FullsendRef != \u0022\u0022 || cfg.UpstreamRef != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/repos/converge.go, internal/repos/openai_wif.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":"internal/repos/converge.go"},"region":{"startLine":2140}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11e742050b7d21d8f58289fae01a4352bc24f858684758b2902aa8a5acdaebe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060revokeErr != nil \u0026\u0026 !forge.IsNotFound(revokeErr)\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_poller_credential_policy.go, internal/repos/gitlab_webhook.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":"internal/repos/gitlab_poller_credential_policy.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3ef58d6c4e69846444d5165bac68494745b02a6c22575c56ddace665e2b2bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060root.Kind != yaml.MappingNode || duplicateMappingKeyProblem(root) != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_trigger_consumer.go, internal/repos/gitlab_trigger_dispatch_gate.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":"internal/repos/gitlab_trigger_consumer.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b5d2e48c361806cd203904de4822946b6aa2789bd20bfbb5f5be0e9d183a18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rref.manifestRef == \u0022\u0022 || refResolver == nil\u0060 appears character-identically in 2 files \u2014 internal/repos/converge.go, internal/repos/gitlab_existing_wif.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":"internal/repos/converge.go"},"region":{"startLine":2110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52cc102816f6c4ad393a02feafbb8a997a68341a679b78694d05e8673b49a1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rs.IncomingID != 0 \u0026\u0026 (rs.Phase == rotationPhaseDistributing || rs.Phase == rotationPhaseFailed)\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_roles_rotate.go, internal/repos/gitlab_service_account_converge.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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1a75bca41fc24611667529f41f1376d19cefec2d1150e469ed559ecabbe615"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060run.Status != \u0022completed\u0022 || run.Conclusion != \u0022success\u0022\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/drivers/ci/githubactions/githubactions.go, pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08ecd63de9cda2813595df4531ad198020316e3c52b8b258540becee3fb6e11"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060s.ID \u003C= 0 || (s.Owner != nil \u0026\u0026 s.Owner.ID \u003C= 0)\u0060 appears character-identically in 2 files \u2014 internal/forge/gitlab/ci.go, internal/forge/gitlab/service_accounts.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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac4ae07864c1131e0547e9b259e05044119c5f79f04c78a636578e73b5c6baa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == http.StatusUnauthorized || status == http.StatusForbidden\u0060 appears character-identically in 2 files \u2014 internal/cli/inference_gateway.go, internal/mintcore/tracing.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":"internal/cli/inference_gateway.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fb691e3a4abb3061df0194e8709b5c0776f10bf60e19afe738c0ae8b64079f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status.GitLabRolesPartial || status.GitLabRolesReady\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_service_account_converge.go, internal/repos/gitlab_supplied_provenance.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":"internal/repos/gitlab_service_account_converge.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"04143ff927346d395a1201988b06926ded1fff8b4265cdb88921268353637353"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status.GitLabRolesReady \u0026\u0026 builtin.Ready \u0026\u0026 registered.Ready\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_roles_rotate.go, internal/repos/status.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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":2191}}}],"partialFingerprints":{"codehealthFindingId/v1":"127ff7292a41f5f7728bb93f560e2300e43da0d454a108655e7677dc1d6ee21d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.HasPrefix(name, \u0022FULLSEND_GITLAB_ROLE_\u0022) \u0026\u0026 strings.HasSuffix(name, \u0022_TOKEN\u0022)\u0060 appears character-identically in 2 files \u2014 internal/forge/gitlab/ci.go, internal/repos/gitlab_roles.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":"internal/forge/gitlab/ci.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"810a1a2df322f2c37ea9bb5b81af6f3201e9952d80ca4bcc350e918a642c9b18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060t != piAgentToolName \u0026\u0026 t != piAgentToolAlias\u0060 appears character-identically in 2 files \u2014 internal/runtime/pi_bootstrap.go, internal/runtime/pi_personas.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":"internal/runtime/pi_bootstrap.go"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1622f7ce813d22522495c19f9a3922a90dcd0c3e202b83d034f1a2510ee7d1d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tok == nil || strings.TrimSpace(tok.Token) == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_roles.go, internal/repos/gitlab_roles_rotate.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":"internal/repos/gitlab_roles.go"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"855a93d1566e33859e66fa7ce618723f1195c56ac2ff4fddc36b48edf84603eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tok.UserID \u003E 0 \u0026\u0026 containsInt(excluded, tok.UserID)\u0060 appears character-identically in 2 files \u2014 internal/repos/gitlab_roles_cleanup.go, internal/repos/gitlab_roles_rotate.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":"internal/repos/gitlab_roles_cleanup.go"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"838b883f8bc9ec0859ea5f71db575e27222cb1da201d7e873dadef520127f044"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tracking == nil || tracking.Jira == nil || tracking.Jira.BaseURL == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/cli/run_jira.go, internal/cli/run_workitem.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":"internal/cli/run_jira.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"6867fabd96aa4e0216961478f47748ac41dbd243c8fdeda1c2b607f0e3c565b2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060v == \u0022\u0022 || strings.ContainsAny(v, \u0022\u0027\\\u0022\\n\\r\\t {}$\u0022)\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/steps/bot_role_probe.go, pkg/behaviourtest/steps/mint_probe.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":"pkg/behaviourtest/steps/bot_role_probe.go"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"2841ac74e69eb827b0b4030e168ff8aa6d7ed5411f65e32ae6ba951c5523e780"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060via[0].URL.Scheme == \u0022https\u0022 \u0026\u0026 req.URL.Scheme != \u0022https\u0022\u0060 appears character-identically in 2 files \u2014 internal/botidentity/mint.go, internal/forge/gitlab/gitlab.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":"internal/botidentity/mint.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"351006cd3c8a2a59bbce76eadaf51a1643ab449858777f05f2db0987f4d53cdd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060w.SCM == nil || w.Org == \u0022\u0022 || w.RepoName == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/steps/cleanup.go, pkg/behaviourtest/steps/reaction.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":"pkg/behaviourtest/steps/cleanup.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e323e9c9c85c1786dff4d09a6590845878614107e6fca043bd55311c22b9a8a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060w.URLHarnessRepoOwner == \u0022\u0022 || w.URLHarnessRepoName == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 pkg/behaviourtest/steps/base_dispatch.go, pkg/behaviourtest/steps/url_dispatch.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":"pkg/behaviourtest/steps/base_dispatch.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6982ab739ca45548452e0171a9af7c3445eb01bc19408511ac4e681ee2b5d00e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060waitErr != nil \u0026\u0026 execCmd.ProcessState == nil\u0060 appears character-identically in 4 files \u2014 internal/runtime/claude.go, internal/runtime/codex_run.go, internal/runtime/opencode_run.go, internal/runtime/pi_run.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":"internal/runtime/claude.go"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1c7d74a1f5bb54f851b0c5fff1971cf618820148c3acadb336d0d8fe82fe98"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060workerName != \u0022\u0022 \u0026\u0026 !cf.ValidateWorkerName(workerName)\u0060 appears character-identically in 2 files \u2014 internal/cli/mint.go, internal/cli/mint_delete.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":"internal/cli/mint.go"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"712f5781016d158236104d7f2a0d9c9fbf003a89b19ecac3cce524f3b9b8450e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060b \u0026\u0026 b.type === \u0022text\u0022 \u0026\u0026 typeof b.text === \u0022string\u0022\u0060 appears character-identically in 2 files \u2014 internal/runtime/pi_extension/fullsend-agent.js, internal/runtime/pi_extension/fullsend-hooks.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":"internal/runtime/pi_extension/fullsend-agent.js"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68fa5f267af8d53e6bc7ef290bda884c1ff810e89a789b47844c70f95f2e12b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.FULLSEND_PI_MANIFEST || DEFAULT_MANIFEST_PATH\u0060 appears character-identically in 2 files \u2014 internal/runtime/pi_extension/fullsend-agent.js, internal/runtime/pi_extension/fullsend-hooks.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":"internal/runtime/pi_extension/fullsend-agent.js"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee449efb402f21469c560947c23f6905b7a5f82f7019bdfb9fa1bd57d7c2b3b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0022string\u0022 || value === \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/runtime/pi_extension/fullsend-agent.js, internal/runtime/pi_extension/fullsend-hooks.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":"internal/runtime/pi_extension/fullsend-agent.js"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"36fd2e8ad8644281745a1d567b27939b9c10bba29ee27e81f39adeef41ddc4da"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022/\u0022 not in override or override.count(\u0022/\u0022) != 1\u0060 appears character-identically in 2 files \u2014 skills/nextwork/scripts/nextwork.py, skills/topissues/scripts/topissues.py. 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":"skills/nextwork/scripts/nextwork.py"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e5c59a30e984e5c9a69697a128cf7da6dce3e130201c5a0420aacb6bd8ec84"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: this function literal changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the \u0060v\u0060 environment variable (set at line 7767, cleared at line 7769) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, so anything that leaves the body in between \u2014 an error, an early return, a crash \u2014 skips it: the process then keeps the overwritten value for the rest of its life, and every later relative path, child-process launch or configuration read in ANY code resolves against it. That failure is silent and remote from its cause \u2014 the function that breaks is not the function that moved the value. The window is not private while it is open either: the working directory and the environment are per-process, so every concurrent thread or Go process in it sees the moved value too. The durable fix is not to widen the restore but to stop mutating the global: give the child its own directory and environment (\u0060exec.Cmd.Dir\u0060, \u0060exec.Cmd.Env\u0060), or build absolute paths with \u0060filepath.Join\u0060. Where the global genuinely must move, put the restore in a \u0060defer\u0060 right after the change, so it runs on every return and on a panic."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":7764}}}],"partialFingerprints":{"codehealthFindingId/v1":"181c2ef810cd9f6cdcb09f7bdcf1a790fdce63c30b84bdb30626c9f64550a31f"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a context.Context: Only 47/49 functions that make a cancellable request (net/http, net.Dial) accept a context.Context or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a cancelled request, a shutdown, an expired deadline. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it (\u0060http.NewRequestWithContext\u0060, \u0060DialContext\u0060); 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":"faab330444baf00d50193f250b5c9b514f84cdca16c24014ef3776329847910c"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: send: \u0060send\u0060 calls \u0060http.NewRequestWithContext(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/tracing.go"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e6eae344d4f3fc094a84e5a2092a3302da185a6f2cb29b31be441305bc4c9c"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: handleFetch: \u0060handleFetch\u0060 calls \u0060http.NewRequestWithContext(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mint-wasm/main.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43a95cca8fd74c7ff79e78a3a12a069fd948dd1aefca595d2b0b567168300dc"}},{"ruleId":"X28","level":"warning","message":{"text":"Index access outside its own emptiness guard: \u0060m\u0060 holds what \u0060FindStringSubmatch\u0060 returns, and \u0060m[1]\u0060 takes element 1 of it without checking its length \u2014 while this file tests that same result elsewhere before indexing it, because it can be nil or shorter. Here a short result panics with \u0060index out of range\u0060. Test \u0060len(m)\u0060 (or nil) first, as the other call site does."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook_trigger_account.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"65720f5802cdca91d48a70c3b3e53b5ff9312d6f7069c5e6dc370bd3d642a718"}},{"ruleId":"X28","level":"warning","message":{"text":"Index access outside its own emptiness guard: \u0060parts\u0060 holds what \u0060SplitN\u0060 returns, and \u0060parts[1]\u0060 takes element 1 of it without checking its length \u2014 while this file tests that same result elsewhere before indexing it, because it can be nil or shorter. Here a short result panics with \u0060index out of range\u0060. Test \u0060len(parts)\u0060 (or nil) first, as the other call site does."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"577ee0b28d475262fdf4e47447b6dae499c4e725701e1c65f44174ecb468c6ea"}},{"ruleId":"X28","level":"warning","message":{"text":"Index access outside its own emptiness guard: \u0060urlSep.FindStringIndex(run)[1]\u0060 takes element 1 of what \u0060FindStringIndex\u0060 returns without checking its length, and this file tests that same result elsewhere before indexing it \u2014 the result can be nil or shorter. Here a short result panics with \u0060index out of range\u0060. Assign it and test \u0060len\u0060 (or nil) first, as the other call site does."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/content_collector.go"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"d618c0186206940272af249b74bb1a33f1dc93bfbe1ed6289344d85e4c11e727"}},{"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":"pkg/behaviourtest/steps/cleanup.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa49a938d2fe39ef08611e31cc390ce7f15828c0a3cddfa5fc3828abf9ce1700"}},{"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":"pkg/behaviourtest/steps/cleanup.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bef59c1f4ddb87d87446eb46c13dfefc68b1e8ab1282c163222eb582ab07a3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if overlayErr != 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":"pkg/behaviourtest/steps/cleanup.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c8e8eeadd2ee1ef43127f0fb0b693677a829769d764325a4f50b226951d423"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060created, _ := time.Parse(time.RFC3339, issue.CreatedAt)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060created\u0060 as if the call succeeded. When \u0060time.Parse\u0060 fails, \u0060created\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060created\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/debuglogs.go"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"33cc3db9df6e7bbd135be3287cd3463bfaeb93d9d1beb6553b47da96ce80dd5b"}},{"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":"pkg/behaviourtest/steps/debuglogs.go"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93cd47f27efe3de5bdf96ccdc22c4fd2657e3af79c874b26db3f10487295321"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(d.EventPayload, \u0026payload); 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":"pkg/behaviourtest/steps/jirapoll.go"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f58b876816efd0f2fd133edb39f3ca61966fff448b937670ca5140c0cd3f1d"}},{"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":"pkg/behaviourtest/steps/jirapoll_transport.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdf513eea99ecbf8a8256d0915d5dc994f66707dd7aca2b56e2ffaaa1007cb9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if relErr != 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":"pkg/behaviourtest/steps/mint_status.go"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80a1f9e78ab6f054348f2ddb50ef617a6389afbe3abab5e305f06b2c06d4d4b"}},{"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":"pkg/behaviourtest/steps/reaction.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0b50eec043bbf2f9c0baca7aec95fe5e35b8a3d66307a3a2786f824d8904ef"}},{"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":"pkg/behaviourtest/steps/reaction.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce548cec34880770936475a1974a07ac15428d92c004a97792a916560bef4db"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060retry, _ := checkHarnessRunLogs(run, agent, needle, logs, fetchErr)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060retry\u0060 as if the call succeeded. When \u0060checkHarnessRunLogs\u0060 fails, \u0060retry\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060retry\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/steps/runner_secrets.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e7e927d52a444cdb4766d82b745efd9467e219133751832fdde4aabb269980"}},{"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":"pkg/behaviourtest/steps/runtime.go"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e7a57cabf3e2e80f485b8ddabdbc7398cb2b27a3f45bb41f3a1d1ecce2e309"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(scanner.Bytes(), \u0026header); 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":"pkg/behaviourtest/steps/runtime.go"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eabed58967623a834fa6a9401d57c7e21fdc032624e4554e69f03ada9d6ba1b"}},{"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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc13e18c30330bf5af5f3bd3089079c3f6acfec191dc1ade1ee32bf22511c168"}},{"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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eaeca88163de3d6f393aa29bcb48d9cc924858355ed5fecee093f1791c7ccd9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if parseErr != 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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"80477a4553f403e4a24657bfd97c28501178b97de71a1925400353a3cb51a1ea"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports an error that is nil on this path): \u0060if err == nil\u0060 reports \u0060err\u0060 on the one path where it is nil, and the path where the call failed goes on without ever reading it: the comparison is inverted. The real failure is lost and a nil error (or a panic on \u0060err.Error()\u0060) is reported in its place. Test \u0060err != nil\u0060 here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f54061f0176a47eb01341276d05dee79dd24531923f5908beb51fc8fd374858"}},{"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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bef84faba794313541ec40f17a9f27fbbac208cae737317d6a582bb7572139f"}},{"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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace049facf407bfaac729a24c25f1029feb9cc19e54dff7311e063539838ec73"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports an error that is nil on this path): \u0060if err == nil\u0060 reports \u0060err\u0060 on the one path where it is nil, and the path where the call failed goes on without ever reading it: the comparison is inverted. The real failure is lost and a nil error (or a panic on \u0060err.Error()\u0060) is reported in its place. Test \u0060err != nil\u0060 here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"3385099a81c20046df67e0e14b93f57fcad33ebfaefe31b68b949b1c772a5d90"}},{"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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e0b4e607bffa290eb2c893cf058f60ba0ea24db326efe86c5c5abdda49b7e5"}},{"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":"pkg/behaviourtest/drivers/ci/gitlabci/gitlabci.go"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fa14d20d5692a596c1e5e6a5fa2eefd41f796434b4d9db4ebf3d6b701532c5"}},{"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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c022823f025c758b748e13d31709daa6567cd92a85c96425e2cdd4ffa9d5537"}},{"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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc94db6c197b1dece9b05cb29e5e34e7d4804e74200cf5c7d310b20ec4adc54"}},{"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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db1418ed587892dcdddbd6d1ee978bf243a7521bd4771577f969cae018e273a"}},{"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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"33814121f5ae28dfffb5c0e39d30fead71725895a1d588ee0ab149b10f8a4383"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if parseErr != 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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"972c1375660819f60133030fa4e89cb94eb1e5cf4ebb2c35601107fc41e4ee7a"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports an error that is nil on this path): \u0060if err == nil\u0060 reports \u0060err\u0060 on the one path where it is nil, and the path where the call failed goes on without ever reading it: the comparison is inverted. The real failure is lost and a nil error (or a panic on \u0060err.Error()\u0060) is reported in its place. Test \u0060err != nil\u0060 here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"868168b4271cd22ed85ab0b7ec771fd387b99f1f70c1018d836735b247d95b8a"}},{"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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddf025d421b85ef2daf77f953b2b53e56fb93f1524070a4b792edc98f1307f3"}},{"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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2887b7f8de1a4ce02f8625ebe80f8ad8db88503adb299c561a474bf24c13cb6"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports an error that is nil on this path): \u0060if err == nil\u0060 reports \u0060err\u0060 on the one path where it is nil, and the path where the call failed goes on without ever reading it: the comparison is inverted. The real failure is lost and a nil error (or a panic on \u0060err.Error()\u0060) is reported in its place. Test \u0060err != nil\u0060 here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"754e0ce6787f366bbacde3d8968d29d48ecb2b597b9efe694801caf91d547224"}},{"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":"pkg/behaviourtest/drivers/ci/githubactions/githubactions.go"},"region":{"startLine":1700}}}],"partialFingerprints":{"codehealthFindingId/v1":"133f2aa2b86fd23a1395cbab90d9fa272065de3d2edd63503da501bd02d62d62"}},{"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":"internal/urlutil/urlutil.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd629ae0ea8ed41fddc8db2f2cd2d01030e907071944e142aa489960312c773"}},{"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":"internal/urlutil/urlutil.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b0c5440e0270a6852eddcb7e1e1a4c501f0a1e39566b47049a93d5ea8a268b"}},{"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":"internal/tracker/jira_client.go"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"283819c778d51b5e07802f63ac839226a4457d186713110ef4508f112b30244c"}},{"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":"internal/tracker/jira_client.go"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae96abd2ca9832add3c95dfe6aabf514990f8655585e40d86eb569fa66acb04"}},{"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":"internal/statuscomment/statuscomment.go"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"2925b2e6f242e8bd7f7d7419fd293790551cea08ed00383fca256532e84b1d1f"}},{"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":"internal/skill/skill.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"720cb017b599109303df299f6dd9b8075d1e06f71753e2c2d39b2d984638f83e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := json.Marshal(payload)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/trace.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab193b5901a8f45f7f8e1528b45d5b34128c08e3d743aa6975411e06ad40e47b"}},{"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":"internal/security/trace.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6deccec7ca2a37e14a2d0bbd4bb5f2ee5a0ea7edfe6fc912e1c786e669b93f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"internal/security/hooks/canary_posttool.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8587448b1a893c2bb667729f2835587b244dd150245a9a2d846e1663cbb3191d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"internal/security/hooks/posttool_chain.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75487bad4bdf1645ca05bee62dd7d3a20839c0d975eabf26e8f816b604c8166"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"internal/security/hooks/ssrf_pretool.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e09f6aca59196b91e061c0c6a68c5c4306dbfbdb62c4a5420eb947cb7d018e8"}},{"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":"internal/scaffold/vendorcleanup.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1ac09d8507c76a49cc73063e6a9ff74efcf30444023ccaeedbf3d833806e5d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(raw, \u0026entries); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"73374ed6b1c371b8a1baa80d894efac1a5d791fea1d5a92b02d0dc9eccc1901d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(entry, \u0026pe); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c02f5ec82ae55e53e99cf88a1c38319b5f907595296d4b0294d4b2ec0cded9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if jsonErr := json.Unmarshal(line, \u0026evt); jsonErr != 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":"internal/runtime/claude_progress.go"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"871ac89adae2a056a6fbd46698c6731dfa74cf6046183a5c8ce31c14ccde7f39"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026se); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76aed0ffef36b06c407b52c9518bc7a6381824cea076961f16af5e6722dc48e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026wrapper); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac611e6054ebbb2148312ed974619888ca0aae1d3c6a73cdd296ae64f2ed0a0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(wrapper.Event, \u0026inner); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec5af8e3a879468c0803ea86629193f8d1ddd8931f1efb9748154ce13461d09"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(inner.ContentBlock, \u0026cb); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"173c20cc1f4af6ad7ce93d91bb93e681d7daed0473e86c64107186ffba1a37bb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(inner.Delta, \u0026d); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"512bcd884521884d763027782e3df8588e141c65213e35b01f6c1a3a5b54a234"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(inner.Error, \u0026se); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55170b5ab639727f4c950dbcce0f37e112d179dff91a7fb0dc5a5efcc5278ce"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026re); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe04b0219d7c2634672a55cd6ee0a15740d6af4d12231c39afffda41ef0f231"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026msg); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4aeb9b08664a2e7c581aa6d07a0fc4ae63da016522ce0d81ccd94a86d7eb9cb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(content, \u0026items); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fc93a1e561eaa3755b05d43b00772558e752d4cc3c0d0d80365cc182e936de"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026msg); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"697d15b2cb2b9bd800ec9ce68f47e599358c9e45666565505d693fd5615290bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(content, \u0026items); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"3685fc2a513fd9fa7ba4e7c65a7c4297894f06f3f00146562f79a9dbd8076d34"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(raw, \u0026blocks); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3837a57fb73dd4045014102cc272a2a219082a155ed918228ca5d5cd4750fe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(input, \u0026fields); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eff67c2a4765c68ce7538cfae330399b2eb19c6cab2d791d41cc5ec01d9522a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(raw, \u0026cmd); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f523ade8b960839235cf650e4b704f80670e035eaca1259ae98970461d73af4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(raw, \u0026path); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"9954eeaaaf72b7300d6e08f4d3282a015a85467aaa2b763bdf19ff6b35bfcc26"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(raw, \u0026prompt); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f206888328dbb2c9d990cd37b60619bf7d5554d58b1ad56203ced4d40fca7a2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(raw, \u0026pattern); 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":"internal/runtime/claude_progress.go"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d76f596b0409a4655f1955a5fcfef111aaa481b41102f5325457c4a0e84f21"}},{"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":"internal/runtime/claude_transcript.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87065eefe57c2c11ca53b464360727d781a4d992c8f4f9ea5c6b17c4e287c52"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026result); 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":"internal/runtime/claude_transcript.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"013d46f18c8951d09b27efba49d34ec64ebc5e4d2c931b2c89e7ef9df5c44704"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal(frontmatter, \u0026raw); 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":"internal/runtime/codex_personas.go"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"932a08cf6e2afe336eba249094a72a9141e2cef6d8c1df37e635bab1dcc8bbf0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if jsonErr := json.Unmarshal(raw, \u0026head); jsonErr != 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":"internal/runtime/codex_progress.go"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7797b981991ae1d1c758d8fb5f0cb99403e25fe983aad5835e5fe53762bcb42"}},{"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":"internal/runtime/codex_transcript.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3be8529fd72ee46d36ba8ec1fcbe5ee19664fc003e9f4687799e59771667164"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(content, \u0026result); 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":"internal/runtime/dummy_playback.go"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec4546145c44daf47981c692c17809461d3cef626adf5eb759ae1b3c61b3351"}},{"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":"internal/runtime/dummy_playback.go"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3d4855fbc4a138e96b78dacddeb00cc3cde6941909f0aee2176071d7ee529b"}},{"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":"internal/runtime/dummy_playback.go"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"3505650545a30059e495d5b26523e45f73d00a8a8878201813a5aa7b84e6e20f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(data, \u0026projection); 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":"internal/runtime/dummy_playback.go"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63b782800de7781a3fd250e0b7832b5856dd4e370780eb1074af026b3084cbf"}},{"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":"internal/runtime/model.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37a8783d6486b6d7371f8f2ce6173a634803df31ed8c0813dc9e8e8dfda8945"}},{"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":"internal/runtime/opencode_bootstrap.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"889c1f5e9bfeb15feec406262c29f2e8c897c4e363d5784ec12be589b0e1e2ae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := dec.Decode(\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":"internal/runtime/opencode_bootstrap.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"7102917a7bfac0e260b07638705928303c7a9c271fe172c5ecac6a3fa54f62ef"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := dec.Decode(\u0026action); 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":"internal/runtime/opencode_bootstrap.go"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67dc43e7d36e5a727a08f1b6515aa3057d1cf32ae3d565ab3b27ff07780271a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060k, _ := json.Marshal(r.Pattern)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060k\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060k\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060k\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/opencode_bootstrap.go"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"beee04f772e3744c5b273e486de9257f9b0ed62b97b0498843ea089920691fba"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060v, _ := json.Marshal(r.Action)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060v\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060v\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060v\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/opencode_bootstrap.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b43c258dae78e3c7193bed68d67c01423dad25ca81fcfea834063a33335504"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := json.Marshal(struct { Instructions []string \u0060json:\u0022instructions\u0022\u0060 }{Instructions: []string{repoDir \u002B \u0022/AGENTS.md\u0022}})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/opencode_bootstrap.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"245ba8b578ca36a7f040ce8bb5ae42ceb88e15bf350bf4b4587a576a41c0e62c"}},{"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":"internal/runtime/opencode_integrity.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc765bc54dd1dd22adbcde6a891178edc091363453e0ba37d55de0deba162ae2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := dec.Decode(\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":"internal/runtime/opencode_integrity.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b8189c21355035f7b863316d63c39832b85dafe63439af204725df96de01b7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if jsonErr := json.Unmarshal(line, \u0026env); jsonErr != 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":"internal/runtime/opencode_progress.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3839bd3f538e93a24519ef7963025dc5bc8037c2845091554ba2ea8e9bca4cc1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/opencode_progress.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f492181ea734a86d03fdbaf3893ad38ea3c24e5e257de5f63f66b7595ef2134"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/opencode_progress.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e34eacbcdd384c1cfcb89452e08fac9241fc5b5af8cd2bf509d58ee99402faf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/opencode_progress.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"146e4b2a5b7dc78456c47156a39009bdabce34ae885c5e3cde7660ecd9c8724a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/opencode_progress.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"1284a1f864ffbdfda907262d61da5907f20445e8927e9facc815cc024cc0a6e0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/opencode_progress.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb11fbdac1787d94cb691d5caee1aa8f760b6d6a98139c0ee0b086cbd9f10c1e"}},{"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":"internal/runtime/opencode_transcript.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7238dc669d3bda6194bb2d13a143fdcad14ab45f7b1f477843ebb1671fd3bd97"}},{"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":"internal/runtime/pi_personas.go"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d218bca46fc35a8f5c028db4e14fbf553caf7bcc5f17c99d35aa9d8bc97b8b8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(args, \u0026fields); 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":"internal/runtime/pi_progress.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe76a8f4dd018222d468dac7412fa9b993cbc2c210ddbc2b0b885e34fafb3ba"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(raw, \u0026res); 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":"internal/runtime/pi_progress.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b977961db98612010f17ad1d2c0a0ac2f99c339c346c1d3750973624e23f1382"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if jsonErr := json.Unmarshal(line, \u0026env); jsonErr != 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":"internal/runtime/pi_progress.go"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb2e65bbc29dd69bc4ace6a4c0289ba53027fc1449bc9e46c507eeb57fea4c6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/pi_progress.go"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6473dcaccd077269a0003888ea40d957aad84bb08a0271550e7d3deabedfcde"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/pi_progress.go"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e87901bd4fbe1b9639c60d2277de5ed11d66c32041a2e85460d5775c89f2f10"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/pi_progress.go"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"167008d2a98eb6d9d30acaad860dcaa2fd0db583527ac3114c0dacf2da665f9a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/pi_progress.go"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"7158e55ad6dd1f692b7cdc6f988eaaf6e52e8b64caff418f365706dc19c3fa47"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/pi_progress.go"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"d506b83224b46dc531fb6c0c9882e1fd65aaef8dc51a9f9b61a4b542f6ccd69e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/pi_progress.go"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef35c4f16e724950e046b552e2caaa00721ba117b96753731960d9d392fcf859"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/pi_progress.go"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f16dc11bf246f1332d8ad9d8469bcb516b47bb3092872c4c2810489e81fcdf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/pi_progress.go"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acc3bb022b74be1b2817418b6a76a9eba8fc474292cc273449a12d2e180427c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026evt); 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":"internal/runtime/pi_progress.go"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45c2220d4d8e971c247fba477ba720df7c0fd5af82fc5a26c8e9411642ebc63"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026probe); 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":"internal/runtime/pi_subagents.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"daca6c71021de5be380a8d39c9de20a69e2f1b5f97fd0ef37e2910e86d36243a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026rec); 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":"internal/runtime/pi_subagents.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4421ab6a3cedac05ef3cf0673dfa23f2c1b43c7868cb0d5f268cecd3ed17fb"}},{"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":"internal/runtime/pi_transcript.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08a68347ac9b18c2cf90074ed54e8093879e4e5f0d82c3d75f8040ba8be6b59"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if presetErr != 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":"internal/repos/converge.go"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9bb6c595b5231fd8bb6bfc31dca578a714b4bced573bfc8deeba713761aa2c"}},{"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":"internal/repos/converge.go"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c8dfe088c6af7a73cc7c3682f37669443becfdac466aad44f1e8fcbd2388c7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal(caller, \u0026wf); 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":"internal/repos/github_jira_poll.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fc13ac57aff5ff330031197dc6ee4a99e0b00f76350f93ed2a8ec4ea6a4f35"}},{"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":"internal/repos/gitlab_pipeline_access.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b3cbdaa16982c31113c164f402f094c26af836d23449d811a686a082743acb"}},{"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":"internal/repos/gitlab_push_rule.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa543b2bd8525ac7f277ab1ebd321804eb15a6b13f28f5ff02a56d41a9b5f2f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if ids, resolveErr := resolveSuppliedOwnersViaCapability(ctx, cfg.Tokens, cfg.Owner, cfg.Repo); resolveErr != 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"caef90a5e2774fbc3bb3d6757f302a3e596914dea1d7c10666153cf50eb49c34"}},{"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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3193207ffdd041f0a396c8dc44a19e9311bd723df4b891a4cb801f5ad9d4a18"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := cfg.Tokens.RevokeProjectAccessToken(ctx, cfg.Owner, cfg.Repo, id); 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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"b834d2e243d7d59de044914bb386b3bbd69548d98ccf4514b1dd855ac2d9d467"}},{"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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3beeecb55b849d494d8b072d30922699bd344ceffcf50c8c5ae4a8a8e82d091"}},{"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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eac4fd0c874c0a8f6b384126aa4773fb7be55e39874bb05cd584f59fe440da9"}},{"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":"internal/repos/gitlab_roles_rotate.go"},"region":{"startLine":2171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d310a4a2035f7a32fbf2d9ef7fc3efdb76a8d66995cb3e5d88bc28ba7e70b942"}},{"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":"internal/repos/gitlab_supplied_provenance.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c4bfe393f12678790b3c10bd7d2aeb8288b0f023ce185cec0d3ac0acc59bda"}},{"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":"internal/repos/gitlab_supplied_provenance.go"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb5254ae8fca37b437ac4a79062080842e799722fd1fa01f5d5fa32c64b5c55"}},{"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":"internal/repos/gitlab_supplied_provenance.go"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f20951dc22982e516f363e4e4754aed3eea35a275b40402a6f79ae07f015957"}},{"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":"internal/repos/gitlab_supplied_provenance.go"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d714519033e382ddf25baefa12027881d6e74f996be1c260b98235f6da0ad82"}},{"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":"internal/repos/gitlab_supplied_provenance.go"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"7175fcc9c68357dcf8a403dcb74480bbf4198c699b73f19578bbf43ca452127b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if entryErr != 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":"internal/repos/gitlab_trigger_account.go"},"region":{"startLine":2178}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cac91998311efbb1438e2da161a666e6a3520ea2826966567a85b2d97bab979"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if problems, err := triggerSinkProblems(ctx, client, owner, repo); 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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3a01b8496c5d4b609d699def037a0b3b0550c751f736d0d76de892651b11e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if vars, valueErr := client.ListRepoVariables(ctx, owner, repo); valueErr != 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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc318b5cd22da946e4abddc58344362f4fedf02a6601228bbc08f0d8f63bd746"}},{"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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc48ddc399facd440cf425b695f599d4b55ae5dfe3afe03ea80b866aa6754a2b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if entry, err := op.opts.API.ProtectedBranchPushDeployKeyEntryID(ctx, op.opts.Owner, op.opts.Repo, op.st.Branch, op.st.DeployKeyID); 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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"2755af75ed63028dc211af8553e46ad065af77bcdda978b0ab6eeb58af985d8d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if exact, err := op.opts.API.HasExactProtectedBranchRule(ctx, op.opts.Owner, op.opts.Repo, op.st.Branch); 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":"internal/repos/gitlab_trigger_account_status.go"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fa75a33fc32b3c74f71e499fa0526e1120b6f5fc323cc5a897888c81265b76"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := requireGitLabRestrictionBeforeDelivery(ctx, client, owner, repo); 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":"internal/repos/gitlab_trigger_dispatch_gate.go"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd6d9c17d220a69aac92c0c5ec0a9d1af0c5e14370b0c3031e775ef8c9c6edc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := dec.Decode(\u0026rec); 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":"internal/repos/gitlab_trigger_schedules.go"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc47fe382f619920772f4a0c75b755ab4191e2d2211a9487662d217c6bb5e50"}},{"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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd986dc20a11858d4d5eccc9e4dcb637265ff5e553d97d1ac37298cd328b324"}},{"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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"431c142796ef679c6c54914ee561de94a58151e90798ad6c5698c7397c938238"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060required, _ := gitlabTriggerAccountContainmentRequired(ctx, client, owner, repo)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060required\u0060 as if the call succeeded. When \u0060gitlabTriggerAccountContainmentRequired\u0060 fails, \u0060required\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060required\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/gitlab_webhook.go"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e7636755dbbcdd8ee5c258ff00523b5c85c9fe74581cc4a43f1f867b5de03d"}},{"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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ca66269af53c8648be512d52c6108f6bf1ab177edb05eb86c87a72636b65e6"}},{"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":"internal/repos/gitlabci_format.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb5413f8c8946fadbc517a5b3e0a0490f45df4bb966283f295692fcfc222827"}},{"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":"internal/repos/gitlabci_format.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35e6b732138f4d7ab31b5f4d2fa7ce178b1feae27ff9bd5e4a959d6dcbbbee1"}},{"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":"internal/repos/gitlabci_format.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ab8ad0a60d50f23417dc1fc5c99e2048469a32303d1a7d68a17dd37b2a4492"}},{"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":"internal/repos/gitlabci_format.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc743ff77e56fc0aeef7c7c7afa5c2fa43f38622a7cdfa5867e3fd176f08441"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports an error that is nil on this path): \u0060if body, err := yaml.Marshal(entryCfg); err == nil\u0060 reports \u0060err\u0060 on the one path where it is nil, and the path where the call failed goes on without ever reading it: the comparison is inverted. The real failure is lost and a nil error (or a panic on \u0060err.Error()\u0060) is reported in its place. Test \u0060err != nil\u0060 here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/managed_config_adoption.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1aa5cb0b7e3a14a2be4009f88f78d29fd2133099855e5f43e04346970da30b"}},{"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":"internal/repos/managed_config_adoption.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b412652f59e6e4c0d3bad4f015a97ccfae9262181c6364737dc254b24ca9b6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal(data, \u0026doc); 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":"internal/repos/manifest.go"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01af7d72e659d27981bd624666089be7fed923c750f82c341c67a70eac7148e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060ok, _ := matchesPattern(e.Name, fullName)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060ok\u0060 as if the call succeeded. When \u0060matchesPattern\u0060 fails, \u0060ok\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060ok\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"078e4c0cf7d9bfd4fa088590a88ce1ced90d19df7329c5a5e98be177050355b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060ok, _ := matchesPattern(e.Name, fullName)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060ok\u0060 as if the call succeeded. When \u0060matchesPattern\u0060 fails, \u0060ok\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060ok\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69872ab495139b6eff7bd0489d07f7782be41ca2caeafce188dcdcdfd76d34b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060ok, _ := matchesPattern(e.Name, fullName)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060ok\u0060 as if the call succeeded. When \u0060matchesPattern\u0060 fails, \u0060ok\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060ok\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest.go"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f6c3ed7c32a794aca274ad01e945387ba1dbe93fe81dbc4ea89f0a64fa2ed7"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060ok, _ := matchesPattern(pattern, r)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060ok\u0060 as if the call succeeded. When \u0060matchesPattern\u0060 fails, \u0060ok\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060ok\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/manifest_edit.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"309193b1881bf83ac9e1e5358b2b8dc1568ce2a83834aa8b20e1943a0558a977"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal(data, \u0026doc); 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":"internal/repos/manifest_legacy_tracking.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"647ea5a94897dc6c2070dcb0119d406d957d8466a26b5c6f1ee96b0eb07376ba"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal(out, \u0026got); 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":"internal/repos/manifest_set.go"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fef24b2706fa1d49cf56a363bb4f59c969dc4f70dd6430f1ab1e89b1eff9d67"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := e.doc.Decode(\u0026want); 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":"internal/repos/manifest_set.go"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee826d3c9ccda595025fe2fa0ecce1deed194cc993f0a80548f8b1c1baa5e0f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := w.On.Decode(\u0026on); 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":"internal/repos/openai_wif.go"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3d1367cc544c36357c7371f761735ea38a1912dfb330b064b286578653971e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal(content, \u0026wf); 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":"internal/repos/openai_wif.go"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"b202eaa916887926cb318f48e78a487ce5da92c61032e2aba9194150ec018fcf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal(content, \u0026wf); 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":"internal/repos/openai_wif.go"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e78b2e24accee8229337855ac2391cea5ed049cd6d71e0b859f03f94cfc2086"}},{"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":"internal/repos/ref_resolve.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfdd44d67574065a511dc386f5a515c1e8b48fbcdc4abf1788b46cb11d8e8bf"}},{"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":"internal/repos/scaffold_metadata.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5548bba1a201b8b39c1da133633f32a44dcdbb236458c0456acde46535874f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal(content, \u0026doc); 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":"internal/repos/stale_vendored.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e0018a957298bd9f812c82955c174d98720a31ec15bc0008e15ec81bc374bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060existing, _, _ := readManagedConfigOverlayFile(ctx, cfg)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060existing\u0060 as if the call succeeded. When \u0060readManagedConfigOverlayFile\u0060 fails, \u0060existing\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060existing\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/repos/status.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6dbb8c34ee99703e77032a6dbf352224bab77e30502a9ad2de186ffd4ec2694"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := validateOutputs(res.Outputs); 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":"internal/prescript/prescript.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3cfe0c878e8281abf82e5132dede336e3463a8c7716731501fe13186f8cd863"}},{"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":"internal/poll/convert.go"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d516644678baac93e70dcd01cf0d983c78075d89ac2bcf0d6a2a1fa52d3dc22"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.NewDecoder(bytes.NewReader(content)).Decode(\u0026header); 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":"internal/poll/dispatch.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09e69643ddf58396b50bfdba40969c0a300faf2c3f15b9dd9a34c0af1feb310"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.NewDecoder(bytes.NewReader(content)).Decode(\u0026header); 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":"internal/poll/jira_dispatch.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"865df58751d2673b89a0d9defc9e0dab216d7f55f9286f5502a007953012c655"}},{"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":"internal/poll/jira_dispatch.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c8ae07e1dace78e873be471e780737d95fbc46e3c5c3bcb0d8707159b95c8e"}},{"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":"internal/poll/state.go"},"region":{"startLine":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde595050052f1a20ce1eacac3fde4680dad6e2f2d52f8e218d584742a833123"}},{"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":"internal/poll/types.go"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb23ef15066b10365a48ee0635c07ffc830ddb5d8fe0d11068dd3334af03deb"}},{"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":"internal/pluginformat/pi.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3d41d097ac021ba8dfc65ee5daf526b238f11bac77ae19aae0f1020ee24e80"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports an error that is nil on this path): \u0060if aliasData, err := os.ReadFile(aliasesPath); err == nil\u0060 reports \u0060err\u0060 on the one path where it is nil, and the path where the call failed goes on without ever reading it: the comparison is inverted. The real failure is lost and a nil error (or a panic on \u0060err.Error()\u0060) is reported in its place. Test \u0060err != nil\u0060 here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/owners/owners.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47a18b0917f7f7af7510f5ad0776f4bc805c8a1fae2d33b2eec2b541f4e25c9"}},{"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":"internal/normentity/id.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f376761a6271f457d46fee040c4861e5f42a52440d4a02bf03088e9911e86a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := h.lookupRoleAppID(role); 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":"internal/mintcore/bot_role.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"3818cd90439633b73e460b50cecb7f2caaf901b2d37c8d9603b6b2884a2e4343"}},{"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":"internal/mintcore/github.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"366af657b7dcca47e6fd9c4cf89e47572e3b77b34e0c1690832b8601be858ae2"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 4096))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mintcore/github.go"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2322df32a415a043bafc8b4f17f1863a0a952d83a69e686eaa60d01c1b1525b"}},{"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":"internal/mintcore/jwks_verifier.go"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6fa5fa9bc432aa3e9a56912914fa6fb492931fe24c89bbbbdc5c933d15cea9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := hex.Decode(tc.traceID[:], []byte(traceHex)); 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":"internal/mintcore/tracing.go"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0d9d67a4ad89027ad61fc3fbe0febd07342b85ccc0219d89b21a071fbcb280"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := hex.Decode(tc.spanID[:], []byte(spanHex)); 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":"internal/mintcore/tracing.go"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4c00d7b98dace764925466f576e1d12a1773f3a1334a1292c1326701d538ac"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := hex.Decode(flags[:], []byte(flagsHex)); 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":"internal/mintcore/tracing.go"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"502ca7e9378ad125c0371d723938afd75e9d3a8ec5b95da0f06b0b420d0fc957"}},{"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":"internal/layers/commit.go"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8f6e158450333b625e77ce31cb3d3464f2471382195633762615939140b4ff"}},{"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":"internal/layers/commit.go"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da186932471ef9d420fc91310fe6f00cf3d0fbf3bdc159a89ccc4378b3cd0a5"}},{"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":"internal/layers/commit.go"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3fe3a994eb377fd21074b24d2525bc89873f0a1e4eb81aa34828d0c219f092"}},{"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":"internal/jirapoll/convert.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d88beaa48f328c5163d4dc1a3cc9c5d0d610095f3af14c6d901582e4ac5279"}},{"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":"internal/jirapoll/lock.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"2257a99bd0f45a78bf1baad32436dc773074e8a10045bdf1a487b1584e38f085"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060i, _ := v.Int64()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060i\u0060 as if the call succeeded. When \u0060v.Int64\u0060 fails, \u0060i\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060i\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harnessdispatch/input/ghaevent.go"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9ba80e49d674b097b711e007a13600737282a95c83b1862b1da77df4b65f00"}},{"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":"internal/harness/compose.go"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80d5a2b3c5df16796cb37ed7de65df059267f23a4cacee7a3d143ea776fe77b"}},{"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":"internal/harness/compose.go"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2e9d76257c213e75eaa9b6d21c224b50b05e515d15bfbc96f1fd03d432d2cf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, statErr := os.Stat(contentPath); statErr != 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":"internal/harness/compose.go"},"region":{"startLine":2021}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa3ce58acd120fc2b5beb1c2de30af651288a3bb9c2ec703086c2ef0cb9a0ed"}},{"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":"internal/harness/compose.go"},"region":{"startLine":2574}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edb0f0497df990398bef55de07aa5742df349abd3c4d4131a3c566aa4a891bf"}},{"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":"internal/harness/compose.go"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f42ac8271195a6f2454f5159622fd25d50407c4c95e9662452bcd3d11cf9bd"}},{"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":"internal/harness/compose.go"},"region":{"startLine":2626}}}],"partialFingerprints":{"codehealthFindingId/v1":"275c4fa585a2bb5dbd214fb8084e0a391b526edec80c1fdff033de6a00f9bb16"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(data, \u0026index); 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":"internal/harness/compose.go"},"region":{"startLine":2630}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc7f7c3c388674dfa1229e294e74617f5aa868d814543f443db8fb76b3949e0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal(data, \u0026fields); 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":"internal/harness/harness.go"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3eceba6a247d89a861ec516b7e97f2844172470186dc3140c993da16efe8775"}},{"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":"internal/harness/runner_secrets.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b3f78781f2f287ce846182fb6e4aeb5533aa444b5d12ded7fba3786c4d5242"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports the zero value of a failed type assertion): \u0060b, ok := out.(types.Bool)\u0060 failed on this branch, so \u0060b\u0060 is the zero value of \u0060types.Bool\u0060 here, and that is what is reported: the value that did not fit is lost. Report \u0060out\u0060 itself (and \u0060%T\u0060 of it) instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/harness/trigger.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b155d3a7f55500d9a011fe8c420ee4d189e218fda383f1559160c6839b13b0"}},{"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":"internal/gitlabroles/readiness.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd0fecb336a90b7f0635eae14248aee2501ed9b2dc6493fe175c92e5a47baeb"}},{"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":"internal/gitlablifecycle/poller_handoff.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c54b0c8a19dadff104daafb0b3bfc6e035e78b8aa5c7c33dc23765cc989b2b"}},{"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":"internal/forge/jira/adf.go"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"4726a54db4382613fd2982b9f5c1d32b0b88cbafd0f0c63879f5da74434482ab"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060v, _ := strconv.ParseUint(util.BytesToReadOnlyString(source[start:i]), 16, 32)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060v\u0060 as if the call succeeded. When \u0060strconv.ParseUint\u0060 fails, \u0060v\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060v\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/adf.go"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c93ed55da5d066a013218565b552c5f1ffda1591c32f72ef80a378d99468289"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060v, _ := strconv.ParseUint(util.BytesToReadOnlyString(source[start:i]), 10, 32)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060v\u0060 as if the call succeeded. When \u0060strconv.ParseUint\u0060 fails, \u0060v\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060v\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/adf.go"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0b257ed8d8885098bb7e439e714d52fbdc8c822f39af174e882b75dbb37a08"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := io.ReadAll(io.LimitReader(resp.Body, 64\u003C\u003C10))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/jira/client.go"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"71894eeb126255d327f83dc68d3e0c0af4f653668a229fef049273197045633d"}},{"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":"internal/forge/gitlab/ci.go"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9ee89bb8e853d235e60daf15e9520347a0a52924a5d4b0597956241c09e7cf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := decodeJSON(resp, \u0026ns); 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":"internal/forge/gitlab/ci.go"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33311840e4ba25cc9117863fb0339747e23fb9a32fc68166b45011d8c0c52d2"}},{"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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6180357f48ed2d31d98cb68dbe8610517079753274900dfca5d4e0e11998b6f"}},{"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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26343a68e1bb1420a5cea6cda5436bdd0b94d2c2e119397244d138263ce1fac"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := decodeJSON(resp, \u0026meta); 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":"internal/forge/gitlab/ci.go"},"region":{"startLine":1905}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b79204987f0f776fd145d33b5277bae651ab37989cbfd440213f5b3342adcb0"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := io.ReadAll(io.LimitReader(resp.Body, 64\u003C\u003C10))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/gitlab.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d9d60b309808b1ad60661a3ee2b94aecb3bf5e27249ae831bf305128c8055b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := io.ReadAll(io.LimitReader(resp.Body, 64\u003C\u003C10))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/mr.go"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ed0a6278ab1781ce180d7c6b33c84e2d641dfab795803536b34ab3b5087eb4"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060noteResolvedAt, _ = time.Parse(time.RFC3339Nano, *note.ResolvedAt)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060noteResolvedAt\u0060 as if the call succeeded. When \u0060time.Parse\u0060 fails, \u0060noteResolvedAt\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060noteResolvedAt\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/gitlab/mr.go"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad42d7fb05c1c30e40372796861e924af4d4418fe8b9664b0e2ef20635a0723f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(h.Get(\u0022X-RateLimit-Limit\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48a3bb545424505b93bf70a5400ced28358bb31ac4c0d2be561fcc5de0ea851"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/forge/github/github.go"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8e32873cbe0619ac0ff1022e0aaf649d4a4d47604fe3676e1cca059a521b11"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := decodeJSON(resp, \u0026anns); 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":"internal/forge/github/github.go"},"region":{"startLine":5239}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac32ffbba35636bfe1b8fa5c4eaac205c7631065a3bdc408fa132f8a98a1fa44"}},{"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":"internal/evalmeasure/export_otlp.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"5254092cc297919bb7604ca06d575e1d25789f92a88b8202e00f86ca1eeadd6d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(line, \u0026doc); 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":"internal/evalmeasure/parse.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"063257059abade22d9103ea35a506ae98cd5c172e281bbcaffa7fad262f61b14"}},{"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":"internal/evalmeasure/parse.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1919da19d765a12045fc209bccd2a19ca9026c32501c50fa402ffdc11fd20dca"}},{"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":"internal/evalmeasure/parse.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"20955b002b0085473b2b9edfee0f774ff9739754d4bd0bb79ebb6fd1f2a304af"}},{"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":"internal/evalmeasure/types.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"461ddf761e11e6bb13f527e81fe480a69d926a72b0bd95b0f25f2fbaaecbe934"}},{"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":"internal/evalmeasure/types.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8588a7ea12b2cca4a458a7de993188b1c2f62701ebd36e2d3e27ea42feb611f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(stored, \u0026doc); 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":"internal/entitycache/memory.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"440685ffb2346343c0483ff623fcf5559ec69cd8477df6f2f845ec6201a6e05c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060u, _ := url.Parse(DefaultPoolOrgInstallMintURL)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060u\u0060 as if the call succeeded. When \u0060url.Parse\u0060 fails, \u0060u\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060u\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/e2etest/auth.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c924a78d0034455dd0a02647d4d1b228b23b9969c2ef5989f78f4797fcd825"}},{"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":"internal/e2etest/auth.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b16bd1e60dcfe3d4390ca4e316563287585e61e3a79ad032cff83049b8cf2a"}},{"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":"internal/e2etest/auth.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"63397a0f7aa48aa3a194d889489ae706dbb6090f8eecec1bd8d321a1de7e1366"}},{"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":"internal/e2etest/auth.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"0192e541a1e9947feba1aaa3eda6bf93f024f5a694bbb9de514edfc1a9dae6b9"}},{"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":"internal/e2etest/buildargs.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b5d7b66a6855e318adf82f0dcb0d6eb2e41e56cf77f7d5c1209c4157707de6"}},{"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":"internal/e2etest/buildargs.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"808587900364484b4c144ce102b214d58b566cb0ad13dbf0390d9492c384cd41"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/e2etest/testutil.go"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"71073f25a7a3ff8816c1c38da4f02d8a7f39cb9f9645118ad2ffacf190e172e2"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda84d07291e538d2f3e1200828f46064054d984f03257a33f03ec61116af1dd"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97e50c5427a0328e58cb1d6e45daeb0e28b0ed0d4fec15ca82edfd55e2639eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c217998276fb7ba0b032e40a74d6e7d17fb3e98ad5c1562990bcf6971b96cb"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"1573ec68a4cf70a61c9f9948b129e8264ca87ce660430db7783868458a3e1f76"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"277c51944c7aca561008b66e643b37183b2fb8ca5f8c59d4c3e77fd2fa7a3d67"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a312d4fda572f1c84aa655805af873dbac87f6290636195bc6bfa56f5a14a6"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"4705cf8c72e0aeff8765c172a2e38ab84a436921178faf14bfa349c195c3aaa9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f4e89cd02f9756bf958d0e439120c7e8efff304e76b65ae5eb82aaea0fe593"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1ab4a067d18eb15e952dbb176131ee6a08557588f468420b50f446c2daa297"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d796c7639d9b1840dcd904b18cfcdb316470581a56e3c3aa972a82229e33a6f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ae69c59ec20d56fd20c3959c4e5ec07f2a429a9b90329a1742c4e4983b82bb"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(getResp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e723baf172e1d7facd2e52cbe903c4b4e80995a75572617730071616d589941"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"244ffe54a5d5745dba635a301dd2210ff258112f35149dedc4386e89b01af68f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(getResp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d323a2deb99437d1fb7c6c7d34c4fc0a18bb4bf73dc4b9a916b1252e238b749"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"a441f48b0b6feee1fc2e91182f660faeb1a90f63583cb6109ed8356531f8927b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"56031c7fec244cef921f3ecf8ec471163178578406e830d544a6ec5d20ca5b87"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"61aa3aa6d5895159b12f96768a248a385216a0f1f107aac0c7a47ac0ac6a55a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"0148c496199c90f35049c78101de9a38b5563d05e2c14c3c8a75c1241b75d686"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba28a3c182d713dce01a9c15b771c679b281a5dfc20a7ae03e328ca33e4b3f3"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab717e74dfdca6dd5979fe298926e29b76a6e8a56723c67187b84f48f67188a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(setResp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70c7b3affcadfc43d89edfc91102acb318831edf3d652c995ce718d034b6f33"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(getResp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a35c3f17c42839abf578636060ee25bc76cf64f12310a1b162580f3d14d2df"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(setResp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"720bdd6c18452ac059e6bb76ffb49b96cc91810b9a7c01791ed12ab33bc43b3b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"1804d18dfaf4c82215833d07a8a01a6b526d28430d18446853f9f60cb0949e3e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe16b0125ec65d20f6a95f58c328f5d7f4d495072cdb7e3751baf630fff519f9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b712057ee491d43a937a9b9a62edb70ab28b443956292684628a1baf4d4437b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"796c53a7d5ad7f4630388f6c3133b803292ebff299283cd767b4aa286e114a57"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(uploadResp.Body, 4096))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba489289d338b5dfdaad8e200ff9f0ce7f914de160b566ce4f6429c1291a8c6"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6dcb0e1f868844f025600884e604b4a88a0d7487222f24da4dea33439967cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"5135bee8fc07fbbce0303fe6506dbe971ca5f09827df8f7719250ebcd3d57c4a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b3c81584e527568112f8ec33346a3ec81e7fc524fcfe3bec7d86923fb4ed56"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(getResp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7a83065f91531a552447b8d8ed8e43902458a0c6ac20742a19e6873ff8e79e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(patchResp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1ae78ef0077227168ab05fd75707e10f30e8f4a228ad2b7127252d9d483022"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(getResp2.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0ece65cfecad2d701b1fef9e62d6b4323c4e711d3b1ef2db77593bd00716c6"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(trafficResp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"829cd6e64725fb21cdd2e159ce69fb2e4d1f9639c0542e21b3a580bd8e498197"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(getResp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1711}}}],"partialFingerprints":{"codehealthFindingId/v1":"277d02e33c2c6fbb27f3aa7a03bd5db2ddd695538dcfcf2526c3b90111dc9361"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(revResp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1786}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e34cbaf7eef40f69121b565dbe6085877526d5acdf42469f930c6273510302"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(getResp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"178eb5a47d2e43ec0f1ef7329e9365ecc67677e3decf3d62f16e3195d6591f71"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060svcBody, _ := io.ReadAll(io.LimitReader(getResp.Body, 10\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060svcBody\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060svcBody\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060svcBody\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"7950f5e12d36af1ebb6a786cc38e757318d7a3e390e02b56334713950d890ee7"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060revBody, _ := io.ReadAll(io.LimitReader(revListResp.Body, 10\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060revBody\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060revBody\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060revBody\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cf139540330894058969298e510c603e1d233abb7eb8b6814ca5b576b7516d"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060revBody, _ := io.ReadAll(io.LimitReader(revResp.Body, 10\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060revBody\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060revBody\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060revBody\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"320c3f6b27b404c111d7e3d629d927458c0f08ee364e5282bc6f550491e900ea"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(io.LimitReader(resp.Body, 1\u003C\u003C20))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/dispatch/gcf/gcp.go"},"region":{"startLine":2171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d020c0b12dd8d4a65b63fb006b5d264e5885725a9f84196344f6deaac032da"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(roleAppIDsJSON), \u0026m); 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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da10b2f764c23a5007203be56832236036926a1e6bb07e2c5d0eb3efc457ef3"}},{"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":"internal/dispatch/cf/provisioner.go"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"087274ce67ad201f0e1beede2dc1be0d7a4d959374f9accc555ce8e370b4ce11"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal(data, \u0026probe); 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":"internal/config/interfaces.go"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"26881577a24b5fc7c9c51e2f15cf9ed0cbab29a77c2269cc6534677069edfb26"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal(data, \u0026doc); 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":"internal/config/legacy_tracking.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e7961b8d7ab0d4451f9915938939be9a3ab41eefc0193bd3892c0479e84c5c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060_, kind, _ := ReadLegacyTracking(doc.Content[0], LegacyTracking{})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060kind\u0060 as if the call succeeded. When \u0060ReadLegacyTracking\u0060 fails, \u0060kind\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060kind\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/managed_schema.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f20e76109f69332fb91510238b383bd99021b830ca04cf780a1a04982c0b99"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060_, kind, _ := ReadLegacyTracking(doc.Content[0], LegacyTracking{})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060kind\u0060 as if the call succeeded. When \u0060ReadLegacyTracking\u0060 fails, \u0060kind\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060kind\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/managed_schema.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1f92ad50dc6c9a82fb7d2b4d6a27d536efcd14acf802388a1cf4581fe633d8"}},{"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":"internal/cli/admin.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2619960b54b758fc469460eff0a3d5c8ee920563b6b85e64808575e00deb6bb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if appSetErr != 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":"internal/cli/admin.go"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e356f902a8a5f7757b43e1ad02d013d19ed308f867a01fd595c17bfcfcf2db"}},{"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":"internal/cli/admin.go"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bec2409cdd8b2dbddba2c103a1977ffbe717b03d0077cd8e89d8255fa222fed"}},{"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":"internal/cli/agent.go"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f9be8705f93c6ec239021734a142a22775ff3b80abd189ff34d5ebaf509025"}},{"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":"internal/cli/agent_openai.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48a60b9556ea310bb2b434fb3589be7e6b8aa2669faf3e78548117494c31e66"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if relErr != 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":"internal/cli/bootstrap_scan.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85a8bb282f71d0d1e7a12d7747584fae3c7c3881328cb64d0c02b9337d64f1a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060enc, _ := json.Marshal(*p)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060enc\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060enc\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060enc\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/content_collector.go"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c5688fa01e16c316ae629117472c5e60b0912439114ca1297eb3b8a765966c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060enc, _ := json.Marshal(s)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060enc\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060enc\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060enc\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/content_collector.go"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd5cdc854774c989ba3f95242eea398c0110ed157795139605306d850cb8e79"}},{"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":"internal/cli/dispatch.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"31db89c325296aa9d77ad0aaefc7b3b0e4a83a30f85d3382018dcea0c4ec0e97"}},{"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":"internal/cli/dispatch.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"49346cb9e9438cdf5c74332796be9eff321bde384d6fe08b7110ef6c03545bb3"}},{"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":"internal/cli/evalmeasure.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c6d0f8eb8d5ce9b56e401e0e6c6b1cbeed9d0f9d4b019e426d8fc93f1b8ac2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := mintcore.ValidateRoleName(role); 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":"internal/cli/foreign.go"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce27a47441dd21a91a1393c6f568a2627cb845a1d12b8ed34fccf473d37bf85c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if appSetErr != 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":"internal/cli/github.go"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc759c4e57c8f9232a45b5a6a5498abec1ea77a0b1382fd015f66c588f41ce2"}},{"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":"internal/cli/inference_gateway.go"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"501d3a5cb38bb652898f2f0cbd2b8189e8712fbce4aa35c204bfae404c8198fd"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060headerJSON, _ := json.Marshal(map[string]string{\u0022alg\u0022: \u0022RS256\u0022, \u0022typ\u0022: \u0022JWT\u0022})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060headerJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060headerJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060headerJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1cec779b23f6f72697d913bedaff1bb94536f720aa75752fbc57b8f3db0bd3"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060claimsJSON, _ := json.Marshal(map[string]interface{}{ \u0022iss\u0022: strconv.Itoa(appID), \u0022iat\u0022: now.Add(-60 * time.Second).Unix(), \u0022exp\u0022: now.Add(5 * time.Minute).Unix(), })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060claimsJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060claimsJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060claimsJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/mint.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70c4a5b07298665c8fbac801a88be8491e6ec9e2572494836cc7877206be84b"}},{"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":"internal/cli/mint.go"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"92853ace5d02bc75b5768a789cc0d6654a145d44b92245b1012f1467b1124d44"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if envErr != 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":"internal/cli/mint.go"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"120071f5854c74de6dbe00c17b5d1587e574a5ba770bb39b235459d0f7552d86"}},{"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":"internal/cli/mint_tracing.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7562b5177b3204b9e28db8e69f28d1da70fabd0fe220c8fec4f6d4954ce993fc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(data, \u0026s); 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":"internal/cli/postreview.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"8856e4a3b1a9854a8c7a6dce0a0ff0c8b7dbdd1b13e54e827c1287b6f635bd92"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060start, _ := strconv.Atoi(m[1])\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060start\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060start\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060start\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/postreview.go"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cbf307517798a8b9748b9fd195cf327ea31fe5a7289af75d876a1f8b05119c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060size, _ = strconv.Atoi(m[2])\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060size\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060size\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060size\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/postreview.go"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a832d1760fb44d83b4203a87df41e468efcce15e94d4ef3c5e00a6e8e7293e3"}},{"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":"internal/cli/prepareartifacts.go"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d0036c351d8c5aa5e87ac8722bfe569c6b6cfa4b057633bf27b7d24bdaa3ea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(data, \u0026ev); 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":"internal/cli/prepareartifacts.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"1407b1b2cce9e467ae1ca71c96cefa165484fc4ee6eb5880e3e8dc1877e9db24"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(payload, \u0026raw); 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":"internal/cli/prepareartifacts.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"88972d2ba974fd3a256756e90dd99edf3a0ec1b53d05afad0817a69a0ef90a88"}},{"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":"internal/cli/prepareartifacts.go"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c81f919b83967f616b46d404c6485924b871cdb4962df1d2c8ac4bc7085956"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, statErr := os.Stat(base); statErr != 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":"internal/cli/run.go"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae106f0ff770690b3327626df1d10a4c7e4a10654e05d7ae46718e7611e57fc"}},{"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":"internal/cli/run.go"},"region":{"startLine":4256}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d09abcbe811837d93071d53ebf1372c5493fefbceecf6af8aed097e3488324e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := os.Stat(hostPath); 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":"internal/cli/run.go"},"region":{"startLine":5794}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0c25d5525598fceb1ef225d2baadccd3562488c3e8de206d148337df3d891a"}},{"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":"internal/cli/run.go"},"region":{"startLine":6521}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7e5be6c588286858c489c985621255617a7eb75f3493fcb7fbb33785e9a57c"}},{"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":"internal/cli/run.go"},"region":{"startLine":6538}}}],"partialFingerprints":{"codehealthFindingId/v1":"937abd862e875fa8e4f1a7929409946bfc1b267d46388f0aa5aae2e74602cc15"}},{"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":"internal/cli/run.go"},"region":{"startLine":6542}}}],"partialFingerprints":{"codehealthFindingId/v1":"411f670f0359b82b5190054d7a7e69dc7a9a23d8759b76287357a21566198266"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060relPath, _ := filepath.Rel(outputDir, path)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060relPath\u0060 as if the call succeeded. When \u0060filepath.Rel\u0060 fails, \u0060relPath\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060relPath\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":6795}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b4139126d59023825f5709bb20403ab5dc9d8814895d75af0a4d18933d8d72"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060relPath, _ := filepath.Rel(outputDir, path)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060relPath\u0060 as if the call succeeded. When \u0060filepath.Rel\u0060 fails, \u0060relPath\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060relPath\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":6804}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef898c71da63d602c291d013cdffa875eabaa4dae5b7d3dc8772255d1e22620"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060security.AppendFinding(findingsPath, security.TracedFinding{ TraceID: traceID, Timestamp: time.Now().UTC().Format(time.RFC3339), Phase: \u0022host_output\u0022, Finding: f, })\u0060 returns an error, and the statement drops it: when \u0060security.AppendFinding\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := security.AppendFinding(findingsPath, security.TracedFinding{ TraceID: traceID, Timestamp: time.Now().UTC().Format(time.RFC3339), Phase: \u0022host_output\u0022, Finding: f, }); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/cli/run.go"},"region":{"startLine":6807}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de8131754d5ff266ba0f8b292a720c9d1d68d36ae5ddc551bd63d9233dd04f8"}},{"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":"internal/cli/run.go"},"region":{"startLine":7298}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c7d5f6db7e5416c5b7fafc28d801a784cf97fc87258b99e6c231fe76f9f59d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(data, \u0026event); 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":"internal/cli/run.go"},"region":{"startLine":7311}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d901e368a9b8f4d2b3d3c715ca89933f354883170553e12714ff229bee16b1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(event.Inputs.EventPayload), \u0026payload); 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":"internal/cli/run.go"},"region":{"startLine":7327}}}],"partialFingerprints":{"codehealthFindingId/v1":"a092eca8b5a4c3700cef9b5f82d14a0c5cb87f084f53091678fa70e0835dce13"}},{"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":"internal/cli/run.go"},"region":{"startLine":7360}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adcc3d51f8cf5372c6213fa83af9eab562c9fe38a85db2b5c0041577f9d8cc6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(payload, \u0026raw); 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":"internal/cli/run.go"},"region":{"startLine":7370}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bbc1cc6539067f1f4ccbb1ec81fffd8b8149542ef929111423db8206bd81ec"}},{"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":"internal/cli/run.go"},"region":{"startLine":7380}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea649a6432a4255ded56109128b959888be07a6fcdb4ff6fc85181e68218a058"}},{"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":"internal/cli/run.go"},"region":{"startLine":7384}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62ec5eb494e1f7ca7c166e8e8064fee5a303ff9bf5a3eed0942e546f2fa9ce6"}},{"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":"internal/cli/run.go"},"region":{"startLine":7388}}}],"partialFingerprints":{"codehealthFindingId/v1":"108652826bfc2b9e3742fd54ff252b90005bb1d9685fb7c65eee631574d53b50"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := base64.RawURLEncoding.DecodeString(parts[2]); 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":"internal/cli/run_ci_variable_credentials.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4dfdf55bd8a7620a2b8fd9109594d30dec2584d2cf20ecf82d4eb3d298e367"}},{"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":"internal/cli/run_ci_variable_credentials.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5c25dd2d5a806c24e39250c79ba2e107ad842c4830acbc0fa70f712f4cf202"}},{"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":"internal/cli/run_configerr.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e826ccdeb94683b1478f148d15a8350d12c277fdd1a31bf429f261b06dc52ae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(data, \u0026raw); 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":"internal/cli/run_configerr.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"af66b488efd66d5e6e57b2e9bd81d3f8ffc868372373c2cb991d9ea07835d7c4"}},{"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":"internal/cli/run_workitem.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8602f3b312c95c03ede677cdf9c43cb05136e167dc8c147751c31ed48cb17f0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(payload, \u0026raw); 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":"internal/cli/run_workitem.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42177bb901cd77902344448b796c02fae8d2d7979be468fcfedf9bcdd5c90f9"}},{"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":"internal/cli/runner_secrets.go"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"041e1c70d9936b50b99236b9bf8c68bc06fb723c95240fa06d61c038e09df41a"}},{"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":"internal/cli/scan.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5af3e04af151548c3af192def4e80c024b6d4f7dc3f71e5f357476d603dbe7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(payload), \u0026event); 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":"internal/cli/scan.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d091bae4609ec9495d5ff0097ec81164755aefc5a7286cf43efda5a7308f70"}},{"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":"internal/cli/skill_collision.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"859a478aea32f7c1dd95cb976b71fb02a4126d1f9d64242927bf90a5738eeabe"}},{"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":"internal/cli/skill_collision.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5513d53e6aaee03218dc0aed7ac343acf75a2169fd2127d5586eebf91856cf4"}},{"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":"internal/cli/tirith_repo_policy.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe43f6d28f774bcb1fc00c75f801fef43460f8045880cf17738f8e154b831941"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(data, \u0026event); 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":"internal/cli/tirith_repo_policy.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"1002c910c0b7ce0f3daeef7d21dfe187044d53c4556ee0dd5f5c5d11fd4c8288"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(event.Inputs.EventPayload), \u0026payload); 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":"internal/cli/tirith_repo_policy.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8118211edb871296b25bf793a0708f6c15a1d36b2cec848ebd53bf562d58c3de"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports the zero value of a failed type assertion): \u0060b, ok := out.(types.Bool)\u0060 failed on this branch, so \u0060b\u0060 is the zero value of \u0060types.Bool\u0060 here, and that is what is reported: the value that did not fit is lost. Report \u0060out\u0060 itself (and \u0060%T\u0060 of it) instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/celtrigger/celtrigger.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b0a9698d5052baa1d286d4b2cfb6f5990af2bd2769811f24862b01e4f06f97"}},{"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":"internal/appsetup/appsetup.go"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a046570a556be1b2a1e93a5caf49380ab66b9ef8c8c725ca786188637cb5cfc"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := json.Marshal(expected)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/appsetup/appsetup.go"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b181fa935ba977e75b8b93ce4432335d229d3e3a1daa34c2e8c72653d002e45"}},{"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":"internal/appsetup/appsetup.go"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"097d4b4155e6b0e8d0c7f26277a5d907e1bc96ce561f98ece0c3d3848378ce98"}},{"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":"internal/agentnew/generate.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c502b41a812a38085e53f6dac148a4602cab7572c1d32b3265c82cf3b8e6f04"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if readErr != 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":"internal/agentnew/generate.go"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"39af4c56c80f17c35b5f8fcef803f33fdecfc10ca270377ce1e1b9d58a49484d"}},{"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":"internal/agentnew/generate.go"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9bdc9dca822e42835e8ba2d190c9449273c362794d9a12e9cac23bbec0feaf"}},{"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":"internal/actorcache/actorcache.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa5cb5fac7c696dfbac96be0bc697300f6d08edb8daa2329e03a3ea57337e0a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060respHeadersBytes, _ := json.Marshal(respHeaders)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060respHeadersBytes\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060respHeadersBytes\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060respHeadersBytes\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/mint-wasm/main.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"7431d2178ed3ac6f4729c5429a097c6b9f5432ee899ad8b7998bc414bc901a1f"}},{"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":"internal/runtime/pi_progress.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"905076ca43f051d960bc219877e9e70d505671f5ac3d480c7d0015e7efdecdb1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_command\u0060 returns \u0060\u0027\u0027\u0060 when \u0060(json.JSONDecodeError, TypeError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"internal/security/hooks/posttool_chain.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0907669da5ed3b55b4a3d4664b9b7c341072616bf106e27cc93d27e14e02b26f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060content_skips\u0060 returns \u0060frozenset()\u0060 when \u0060(ValueError, OSError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"internal/security/hooks/secret_redact_posttool.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"63994b929615193694b05a95eaad0b96678bf796a867ea321b70ea49a4c05b61"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060allowlistPrefixForURL\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":"internal/cli/agent.go"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"627882894c4f5d00391d02eb517b0c7238a2fafa24cc0050ad33980ff42e9779"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060prBaseSHAFromEventPath\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":"internal/cli/tirith_repo_policy.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fefb08ead9e0e09dd0f04d24214fe0b77b234848dee66788811046256cde7fb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060endpointOrigin\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":"internal/cli/mint_tracing.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27fb91676154cc5a6cac2185e890ec449213a6d19de47f168aea37b4bbc96c1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060findRepoRoot\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":"internal/dispatch/cf/provisioner.go"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68f7962ae5961b42ddb6f802f23c761c4932c32946c8efc64b5228eff8ad720"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060deriveAllowedRoles\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":"internal/dispatch/gcf/provisioner.go"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"0581dccc367b3f24c8c5a49c9feee5ef3a136e3d98cca4a1616866d0a30d1fcb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060leadingInt\u0060 turns a non-nil \u0060err\u0060 into \u0060return 0, 0\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":"internal/e2etest/auth.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f9680c4719ba1c8b252af58951b959b8bb1c201e5ffe5f21d5a1bde6bd2a03"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060headCommit\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":"internal/e2etest/buildargs.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab812c5e007df1a9aadc7315a3a63e5987432ff30e2590752219e9f574c3ca4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060urlParentDirPrefix\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":"internal/harness/compose.go"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e17c27c8bd2ed816cd4c899715d03bbaafd9ec3716b4550ddcc0a4b7300f7c4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060extensionManifest\u0060 turns a non-nil \u0060err\u0060 into \u0060return piPackageManifest{}, \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":"internal/pluginformat/pi.go"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"de45696e8006b3a59741dce7a2e716af94070e8b813b86773e325d387878d9b5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060triggerURLToken\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":"internal/repos/gitlab_webhook.go"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e15c78cd9479702f8a6bf4d813566b36a565d17e2b7f4080ae3cbb5d271e67d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060toolResultText\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022, true\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":"internal/runtime/claude_progress.go"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ff60198d32db015fd5f925c35a3dca38303ba2884d8103151a27c786a78483"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060extractRawContext\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":"internal/runtime/claude_progress.go"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1a6cf252ddb7b808de754e9ae289912d5217b567bcb5be73751e5f4c6903cf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060piToolContext\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":"internal/runtime/pi_progress.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"646a07fd1738c9bb77d7bbcc78844ea1ab39ea96e18da2663127b0e0cc376f16"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060piResultText\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022, true\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":"internal/runtime/pi_progress.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"acdf3bdea6a225dd90e3ef6c9130f9bd1eb2256bb2e71c7bf8207f1f09b3b0e3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060inGitDir\u0060 turns a non-nil \u0060err\u0060 into \u0060return false, \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":"internal/sandbox/sandbox.go"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5f7cc4a9ff1bdfb80c8b067bff2eaa88f994f59d0dac0c10e365a774b61735"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060pipelineInputString\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":"pkg/behaviourtest/steps/jirapoll_transport.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a76e2184e6c59ebf6591a9024a07b7fa6ee5cdea613a459295ebfc1963b95c"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060href.startsWith(\u0022//\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060href.startsWith(\u0022//\u0022)\u0060 also satisfies \u0060href.startsWith(\u0022/\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/.vitepress/markdown-sources.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"414dd0d4e1c6ae3905305bbbeebca827c3806b9f636cf4b73190e1f56481762d"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.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-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-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.html"},{"id":"CWE-252","guid":"78915dc5-e486-f858-bc3c-aa570ad9010d","name":"Unchecked Return Value","shortDescription":{"text":"Unchecked Return Value"},"helpUri":"https://cwe.mitre.org/data/definitions/252.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-269","guid":"70e1f5f6-81e5-4e5a-ba40-b541c3a346e2","name":"Improper Privilege Management","shortDescription":{"text":"Improper Privilege Management"},"helpUri":"https://cwe.mitre.org/data/definitions/269.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"Reversible One-Way Hash","shortDescription":{"text":"Reversible One-Way Hash"},"helpUri":"https://cwe.mitre.org/data/definitions/328.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-391","guid":"d9ef5687-8d79-9b51-b509-b83411fbcdc3","name":"Unchecked Error Condition","shortDescription":{"text":"Unchecked Error Condition"},"helpUri":"https://cwe.mitre.org/data/definitions/391.html"},{"id":"CWE-476","guid":"df404eaf-4a12-445c-9306-241412f65220","name":"NULL Pointer Dereference","shortDescription":{"text":"NULL Pointer Dereference"},"helpUri":"https://cwe.mitre.org/data/definitions/476.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-665","guid":"fe279ff9-a979-f952-9df9-3f7d05af85d8","name":"CWE-665","shortDescription":{"text":"CWE-665"},"helpUri":"https://cwe.mitre.org/data/definitions/665.html"},{"id":"CWE-703","guid":"fa730aa9-95e4-845e-83fa-8169f2cf339e","name":"Improper Check or Handling of Exceptional Conditions","shortDescription":{"text":"Improper Check or Handling of Exceptional Conditions"},"helpUri":"https://cwe.mitre.org/data/definitions/703.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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-908","guid":"ca1da1d1-5eaf-e95b-adbb-4eb2bc10b9fc","name":"CWE-908","shortDescription":{"text":"CWE-908"},"helpUri":"https://cwe.mitre.org/data/definitions/908.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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"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-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"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":70,"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."]}]}