{"$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":"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"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"]}],"properties":{"cwe":["CWE-1059"]}},{"id":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"github.GetFileBlame (cyclomatic 50): github.GetFileBlame has cyclomatic complexity 50 (threshold 15). Most of this is not in the body itself: 1 of the 50 points is its own statement and the rest belongs to one function literal inside it that branches (line 2516). 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/github/repositories.go"},"region":{"startLine":2466}}}],"partialFingerprints":{"codehealthFindingId/v1":"34111f770aaf8417d7bca060f2b6bc54a5a208359bffb6880958c73a7a7cc35c"}},{"ruleId":"D1","level":"warning","message":{"text":"github.UpdatePullRequest (cyclomatic 46): github.UpdatePullRequest has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 1 of the 46 points is its own statement and the rest belongs to one function literal inside it that branches (line 931). 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/github/pullrequests.go"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbebf921bcfa4335e11b9f4acf741ad3d15afd23eec5940c951efc1cd60fb67"}},{"ruleId":"D1","level":"warning","message":{"text":"github.UpdateIssue (cyclomatic 43): github.UpdateIssue 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":"pkg/github/issues.go"},"region":{"startLine":2411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba89709513455f5937e46d6dcea4f35833439b14d003d3637362be633d3605b0"}},{"ruleId":"D1","level":"warning","message":{"text":"github.GranularSetIssueFields (cyclomatic 41): github.GranularSetIssueFields has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 1 of the 41 points is its own statement and the rest belongs to one function literal inside it that branches (line 1351). 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/github/issues_granular.go"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b23df0ecd1356a0badca6023e5b61644e67a50ed94f8e97ed0aa5ad7bf8c3a"}},{"ruleId":"D1","level":"warning","message":{"text":"github.PushFiles (cyclomatic 38): github.PushFiles has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 1 of the 38 points is its own statement and the rest belongs to one function literal inside it that branches (line 1403). 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/github/repositories.go"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"8192ba5dc7014993100f679a8146ff398651eb62db8e2c261755768b1ba90158"}},{"ruleId":"D1","level":"warning","message":{"text":"github.AddIssueComment (cyclomatic 35): github.AddIssueComment has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to one function literal inside it that branches (line 1218). 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/github/issues.go"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbbdc09f037f7a8c2f6ab5e0f51f7b3452edda3257b641bcac5b1e057ed61a9"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ProjectsWrite (cyclomatic 35): github.ProjectsWrite has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to one function literal inside it that branches (line 701). 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/github/projects.go"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b5ade7c23fc4a199f6a289b1244c06c7eb1a2956d92c11b691ae09d900788b"}},{"ruleId":"D1","level":"warning","message":{"text":"github.GranularUpdateIssueState (cyclomatic 33): github.GranularUpdateIssueState has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 1 of the 33 points is its own statement and the rest belongs to one function literal inside it that branches (line 902). 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/github/issues_granular.go"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"689ec237dccd10df264428fc9bbab40f4cbe6fbef90ac43925befd7abc0ba580"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ListIssues (cyclomatic 32): github.ListIssues has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to one function literal inside it that branches (line 2703). 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/github/issues.go"},"region":{"startLine":2626}}}],"partialFingerprints":{"codehealthFindingId/v1":"7715ecf431b1f7cab34ad3fd0ada3708dc16c7b3af172f0bf9a9fa44f4dc3bce"}},{"ruleId":"D1","level":"warning","message":{"text":"github.AssignCopilotToIssueWithIntent (cyclomatic 30): github.AssignCopilotToIssueWithIntent has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to one function literal inside it that branches (line 568). 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/github/copilot.go"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12b9eb7b51420b6b967ac65f21ea3637609119ba1fbb508d6d4114e7f4193a3"}},{"ruleId":"D1","level":"warning","message":{"text":"github.GetFileContents (cyclomatic 30): github.GetFileContents has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to one function literal inside it that branches (line 768). 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/github/repositories.go"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"211942a8297063122c05cf00fb5d69a5f9718dca5ee03688827d710b3d235bd7"}},{"ruleId":"D1","level":"warning","message":{"text":"github.IssueWrite (cyclomatic 29): github.IssueWrite has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to one function literal inside it that branches (line 2210). 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/github/issues.go"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b9bdc948c43db7b2d8fda13c912822468dde6d7bbb1152a31a4d6063c6e8d5"}},{"ruleId":"D1","level":"warning","message":{"text":"github.GranularUpdateIssueAssignees (cyclomatic 29): github.GranularUpdateIssueAssignees has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to one function literal inside it that branches (line 308). 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/github/issues_granular.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4fb22fd2f4a99c6cb75e608fb45751cbeb0a5c20d8fe3406eb55904539d208"}},{"ruleId":"D1","level":"warning","message":{"text":"github.GranularUpdateIssueLabels (cyclomatic 29): github.GranularUpdateIssueLabels has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to one function literal inside it that branches (line 526). 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/github/issues_granular.go"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e4b2ae7ae2136df19d1cccf2c6a159df5e7da6cf662e0ce69b9a6ee55a5578"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ProjectsGet (cyclomatic 28): github.ProjectsGet has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 1 of the 28 points is its own statement and the rest belongs to one function literal inside it that branches (line 381). 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/github/projects.go"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"b243ace48c48b330f7f7b16014823e2476a69bf040ba098e3f1d9bb8a963de78"}},{"ruleId":"D1","level":"warning","message":{"text":"github.CreateOrUpdateFile (cyclomatic 28): github.CreateOrUpdateFile has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 1 of the 28 points is its own statement and the rest belongs to one function literal inside it that branches (line 458). 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/github/repositories.go"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51e19d349513719fa0615c949d62c7f311c0c1f424812b83ba407e0f4558273"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ListGlobalSecurityAdvisories (cyclomatic 28): github.ListGlobalSecurityAdvisories has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 1 of the 28 points is its own statement and the rest belongs to one function literal inside it that branches (line 89). 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/github/security_advisories.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec2c67b348fa88a42456afd971293639d78f6791b989b9bc87e0e617948f348"}},{"ruleId":"D1","level":"warning","message":{"text":"github.CreatePullRequest (cyclomatic 27): github.CreatePullRequest has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to one function literal inside it that branches (line 714). 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/github/pullrequests.go"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe24d5e779e891606df1210206635de6c5428b01439ab559798adb320fddc86"}},{"ruleId":"D1","level":"warning","message":{"text":"github.completePath (cyclomatic 27): github.completePath 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":"pkg/github/repository_resource_completions.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"560f4baa71187844957e1a49fbce3cfd25f2d55b87169999edef5f9e31d45d20"}},{"ruleId":"D1","level":"warning","message":{"text":"github.AddReplyToPullRequestComment (cyclomatic 26): github.AddReplyToPullRequestComment has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to one function literal inside it that branches (line 1224). 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/github/pullrequests.go"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b34ef91409f31f1a7c1ff6166da6891588d06576c27dc3052bf2c042482fb91"}},{"ruleId":"D1","level":"warning","message":{"text":"github.AssignCopilotToIssue (cyclomatic 25): github.AssignCopilotToIssue has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to one function literal inside it that branches (line 204). 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/github/copilot.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f1d8eb5980bb2dd120f9677fc8bf6cf1077b566555454a6198e2a609f1c5a6"}},{"ruleId":"D1","level":"warning","message":{"text":"github.RepositoryResourceContentsHandler (cyclomatic 25): github.RepositoryResourceContentsHandler has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to one function literal inside it that branches (line 113). 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/github/repository_resource.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48ecf382001bb4cd2e4f1b154695ade3b2bc05320811c5dd4b3ea12c46cb7ac"}},{"ruleId":"D1","level":"warning","message":{"text":"Builder.processToolsets (cyclomatic 24): Builder.processToolsets 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/inventory/builder.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"f377145e6088de4cb21dee837d6287ae6d549017087ec393dff9c955a98c9f79"}},{"ruleId":"D1","level":"warning","message":{"text":"tooldiscovery.scoreTool (cyclomatic 24): tooldiscovery.scoreTool 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/tooldiscovery/search.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"090d4af04bd4f720fbf476e51f2c475263f9e14d355dd789b0eecfbc532a11da"}},{"ruleId":"D1","level":"warning","message":{"text":"github.LabelWrite (cyclomatic 23): github.LabelWrite 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 270). 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/github/labels.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb931a41cc6824112cd2438b595aee79825cb58faadd6cc12b1a2474823ea9fb"}},{"ruleId":"D1","level":"warning","message":{"text":"github.updateProjectItemsBatch (cyclomatic 23): github.updateProjectItemsBatch 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":"pkg/github/projects_batch.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a8a908eadda1977b1656f8f223c8e184e1acd0c9d3f1c11758c0209c971a17"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ListPullRequests (cyclomatic 23): github.ListPullRequests 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 1381). 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/github/pullrequests.go"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"490b99a0d9656d462c8be2bd56eda1d94b63601ebde8fc495a638c62394cb900"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ListCommits (cyclomatic 23): github.ListCommits 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 190). 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/github/repositories.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"648f8ba8a989ace3bbc53f6afc2a9eb4befbc81ed4f764b2eb1b99a421cb2010"}},{"ruleId":"D1","level":"warning","message":{"text":"main.addCommandFromTool (cyclomatic 22): main.addCommandFromTool has cyclomatic complexity 22 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 9 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":"cmd/mcpcurl/main.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca913998da527dd068024b8570872f092097b46d056c7c8584a64a579fe7aa8c"}},{"ruleId":"D1","level":"warning","message":{"text":"github.minimalProjectFieldValue (cyclomatic 22): github.minimalProjectFieldValue has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function taking that case\u0027s concrete type, so the dispatch reads one line per case. These arms are selected by TYPE rather than by value, so there is no key a lookup table could be built on; where you own the matched types, giving them one shared interface method and calling that is the form a table would have taken, and where you do not, keep the cases \u2014 they stay explicit and reviewable."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/minimal_types.go"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"7800c8fc0f997af975f681fd1ec6b604a5858eab6282f78a5fc610afacf0f186"}},{"ruleId":"D1","level":"warning","message":{"text":"github.buildUpdateProjectItem (cyclomatic 22): github.buildUpdateProjectItem 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":"pkg/github/projects.go"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ece7c898f8927811b23e7adb9ee249e594c9e043d6375daf0d857e4f7e3fe1"}},{"ruleId":"D1","level":"warning","message":{"text":"github.resolveIssueRequestFieldValues (cyclomatic 21): github.resolveIssueRequestFieldValues 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/github/issues.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed64610d9392e39c62b1fef6ef5d9805fe6754ca446d30b7ad1d77cf890126a4"}},{"ruleId":"D1","level":"warning","message":{"text":"github.DeleteFile (cyclomatic 21): github.DeleteFile has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to one function literal inside it that branches (line 1091). 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/github/repositories.go"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"960d2cdfa88e1f771a5bc5b7fceebeb60c46961a3b3a4c7a67205eb273b7db9e"}},{"ruleId":"D1","level":"warning","message":{"text":"buffer.ProcessResponseAsRingBufferToEnd (cyclomatic 20): buffer.ProcessResponseAsRingBufferToEnd has cyclomatic complexity 20 (threshold 15). Of this number, 13 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":"pkg/buffer/buffer.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"da22dff73c79c6c118af3b3acbb52fcb8e5a003153e2cea3c012c07de1687e19"}},{"ruleId":"D1","level":"warning","message":{"text":"github.IssueDependencyWrite (cyclomatic 20): github.IssueDependencyWrite has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 252). 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/github/issue_dependencies.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"2becc928734b2646c3bdf3a156ac41b0c5d4b93af890c2a2a97feaa14597c775"}},{"ruleId":"D1","level":"warning","message":{"text":"github.GranularUpdateIssueType (cyclomatic 20): github.GranularUpdateIssueType has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 736). 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/github/issues_granular.go"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8c624af2e33414be907e34a2854412a9e38919b5dcde52cf64a0ad04d7ac36"}},{"ruleId":"D1","level":"warning","message":{"text":"github.createIterationField (cyclomatic 20): github.createIterationField 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/github/projects.go"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0eadd0b1f6abd562d880874efd0b3bc98b20bafb0dad4e92980a2720a12dda"}},{"ruleId":"D1","level":"warning","message":{"text":"github.resolveGitReference (cyclomatic 20): github.resolveGitReference 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/github/repositories_helper.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"4def2f1e0c084ae1134785e02ed0c3fb2e73f92f46522c8d4c5b79b8fb2947a1"}},{"ruleId":"D1","level":"warning","message":{"text":"github.uiGetReviewers (cyclomatic 20): github.uiGetReviewers 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/github/ui_tools.go"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e1c2deea5c749651d731f590383a244afc032d2defcbe503f236f63e14434c"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ListDiscussions (cyclomatic 19): github.ListDiscussions has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to one function literal inside it that branches (line 168). 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/github/discussions.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db8e067096d5a4e3dde35eece2a8dcc90e282d33b854ba6527f3d8e6382439e"}},{"ruleId":"D1","level":"warning","message":{"text":"github.optionalIssueWriteFields (cyclomatic 19): github.optionalIssueWriteFields 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/github/issues.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc18a6f23e0a80cd5f742741e1cee7c5de9da88e3825a1987e53475d8820982"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ProjectsList (cyclomatic 19): github.ProjectsList has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to one function literal inside it that branches (line 230). 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/github/projects.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"79736c6f189e34dc85c755c25149ad00797ea9947809ca2e4e526f365c73c43b"}},{"ruleId":"D1","level":"warning","message":{"text":"main.writeToolDoc (cyclomatic 18): main.writeToolDoc 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":"cmd/github-mcp-server/generate_docs.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4e9757e152c89c41f36a159eace8e1e36fc4ef39dab80cc1cd294b4b054c5c"}},{"ruleId":"D1","level":"warning","message":{"text":"github.searchIssuesHandler (cyclomatic 18): github.searchIssuesHandler 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/github/issues.go"},"region":{"startLine":1933}}}],"partialFingerprints":{"codehealthFindingId/v1":"51634a3f5a409a76edc1837ee682379cfec5c81eb927d957d652cc869f63eab3"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ListNotifications (cyclomatic 18): github.ListNotifications 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 67). 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/github/notifications.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa1f4c97a086caabbc0a6c3f9e9af031b2c1fb528b253719f3edaed752a8fd2"}},{"ruleId":"D1","level":"warning","message":{"text":"github.convertProjectFieldValue (cyclomatic 18): github.convertProjectFieldValue 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/github/projects_batch.go"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc5782e606433de3d1c805da23af875b346c9d0bfe1c8cc4e06527d92b4d265"}},{"ruleId":"D1","level":"warning","message":{"text":"github.PullRequestRead (cyclomatic 18): github.PullRequestRead 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 83). 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/github/pullrequests.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec705ac3c4013b8bc3fc206138940633ef9e84ea271ec3396f84825c6af7f21"}},{"ruleId":"D1","level":"warning","message":{"text":"main.buildArgumentsMap (cyclomatic 17): main.buildArgumentsMap 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":"cmd/mcpcurl/main.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2dcabe10dbfed332f80f51854f5f7f7c9507ec4c5e875f44d391be97c7cbba"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ActionsGetJobLogs (cyclomatic 17): github.ActionsGetJobLogs 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 697). 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/github/actions.go"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a2d8f01cdd355cdd4c10ef055612cd289e7f6467205880cfa665266c1eda5c"}},{"ruleId":"D1","level":"warning","message":{"text":"github.SearchRepositories (cyclomatic 17): github.SearchRepositories 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 62). 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/github/search.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b311bb0533832e652e57e0ac1f77028f7b5137359d22bf4c6e798878eb21ff75"}},{"ruleId":"D1","level":"warning","message":{"text":"github.SearchCode (cyclomatic 17): github.SearchCode 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 233). 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/github/search.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"288311068f11c96bff524b045e9f2864253536ee4eb30a27e4accdfbad9a6147"}},{"ruleId":"D1","level":"warning","message":{"text":"middleware.WithScopeChallenge (cyclomatic 17): middleware.WithScopeChallenge 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 20). 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/http/middleware/scope_challenge.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"018d38a1a61ed2bd035bdacad339007e3333cca0a3deed0f9fd28493007b9409"}},{"ruleId":"D1","level":"warning","message":{"text":"ghmcp.RunStdioServer (cyclomatic 16): ghmcp.RunStdioServer 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/ghmcp/server.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe2da5ca21e8ad815cf068f83c72258563259a1cca570e9f6d98ab243d34aa4"}},{"ruleId":"D1","level":"warning","message":{"text":"github.GetRepositoryTree (cyclomatic 16): github.GetRepositoryTree 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 82). 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/github/git.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed309bbec17ae3de4f2f388b9116f9e7e1ceca5497d4f9337660bf6447ead6b7"}},{"ruleId":"D1","level":"warning","message":{"text":"github.GetIssue (cyclomatic 16): github.GetIssue 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/github/issues.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"12739d8cedcefac0e7c8fe8ff4d2fa28b08133ac7a46a4d7e3c62cee7fe7b1c9"}},{"ruleId":"D1","level":"warning","message":{"text":"github.listProjectsFromBothOwnerTypes (cyclomatic 16): github.listProjectsFromBothOwnerTypes 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/github/projects.go"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a92115292fb84ec2466c143cef29f53535a59067710d2631a9f07d972867123"}},{"ruleId":"D1","level":"warning","message":{"text":"github.createProjectStatusUpdate (cyclomatic 16): github.createProjectStatusUpdate 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":"pkg/github/projects.go"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d7191f2f331740c1a1b6e34e89b4e1e2eff4857bae3ba9489dc68cb866fe77"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ListReleases (cyclomatic 16): github.ListReleases 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 1822). 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/github/repositories.go"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a40e914006d4431b08bdbe0e670786b93334b71763ef9dcd1a6a3dbe299bb0"}},{"ruleId":"D1","level":"warning","message":{"text":"github.ListStarredRepositories (cyclomatic 16): github.ListStarredRepositories 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 2104). 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/github/repositories.go"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced0f7e008996f415d24865b8aebb63b3bdbcc4528ebaa20adce33238080af9f"}},{"ruleId":"D2","level":"warning","message":{"text":"github.UpdateIssue (cognitive 80): github.UpdateIssue has cognitive complexity 80 (threshold 15). Drivers by points: if/else 58, loops 15, boolean chains 5, match/switch 2 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues.go"},"region":{"startLine":2411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b958f778bef1a72ed4e93d8e65019a3d47cd59b9befa157c24ddb4b3abdda3a1"}},{"ruleId":"D2","level":"warning","message":{"text":"github.UpdatePullRequest (cognitive 68): github.UpdatePullRequest has cognitive complexity 68 (threshold 15). Drivers by points: if/else 64, boolean chains 4 (nesting depth added 23). Most of this is not in the body itself: 0 of the 68 points are its own statements and the rest belongs to one function literal inside it that branches (line 931). 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/github/pullrequests.go"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c856207fb4f0de3f2fef57068f5087189fbda03470b1e46d7f1a80912315381"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GranularSetIssueFields (cognitive 64): github.GranularSetIssueFields has cognitive complexity 64 (threshold 15). Drivers by points: if/else 55, boolean chains 5, loops 3, match/switch 1 (nesting depth added 27). Most of this is not in the body itself: 0 of the 64 points are its own statements and the rest belongs to one function literal inside it that branches (line 1351). 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/github/issues_granular.go"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9fffdc4ac8b27b6029f843c31f02dd5c9ee3eaacb0d59d771664efa337216c"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GetFileBlame (cognitive 64): github.GetFileBlame has cognitive complexity 64 (threshold 15). Drivers by points: if/else 54, boolean chains 9, loops 1 (nesting depth added 15). Most of this is not in the body itself: 0 of the 64 points are its own statements and the rest belongs to one function literal inside it that branches (line 2516). 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/github/repositories.go"},"region":{"startLine":2466}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e1d90539aca4c63b71f9f8bf76b263b5d494b90c3c2ca44a4e472d53fc29a1"}},{"ruleId":"D2","level":"warning","message":{"text":"github.PushFiles (cognitive 54): github.PushFiles has cognitive complexity 54 (threshold 15). Drivers by points: if/else 46, boolean chains 7, loops 1 (nesting depth added 16). Most of this is not in the body itself: 0 of the 54 points are its own statements and the rest belongs to one function literal inside it that branches (line 1403). 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/github/repositories.go"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5487d57cf83874b6c228390130863dbbcc8ee8e8526370030c363dd543fd53d"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ProjectsWrite (cognitive 53): github.ProjectsWrite has cognitive complexity 53 (threshold 15). Drivers by points: if/else 49, match/switch 3, boolean chains 1 (nesting depth added 24). Most of this is not in the body itself: 0 of the 53 points are its own statements and the rest belongs to one function literal inside it that branches (line 701). 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/github/projects.go"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00040240c49e878a414a1f18d9bcbe61c86b889a71e437ecd88f4bdc7c12f18"}},{"ruleId":"D2","level":"warning","message":{"text":"github.AddIssueComment (cognitive 51): github.AddIssueComment has cognitive complexity 51 (threshold 15). Drivers by points: if/else 44, boolean chains 6, match/switch 1 (nesting depth added 17). Most of this is not in the body itself: 0 of the 51 points are its own statements and the rest belongs to one function literal inside it that branches (line 1218). 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/github/issues.go"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6569feb977d3e4615406e4d2be3cde5d543ed65fee77f344e64f2ba8e70c98"}},{"ruleId":"D2","level":"warning","message":{"text":"github.resolveGitReference (cognitive 49): github.resolveGitReference has cognitive complexity 49 (threshold 15). Drivers by points: if/else 45, boolean chains 3, match/switch 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":"pkg/github/repositories_helper.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c6b5d3f3c6c21bdb0267f7dbeea9556d2b26f567032846ae97079fb8df9d66"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ProjectsGet (cognitive 47): github.ProjectsGet has cognitive complexity 47 (threshold 15). Drivers by points: if/else 45, boolean chains 1, match/switch 1 (nesting depth added 22). Most of this is not in the body itself: 0 of the 47 points are its own statements and the rest belongs to one function literal inside it that branches (line 381). 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/github/projects.go"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"6020014971a4af9a251deb3efc01cfe8a991de2b4023b27ebb0a7b7926056da7"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GranularUpdateIssueAssignees (cognitive 46): github.GranularUpdateIssueAssignees has cognitive complexity 46 (threshold 15). Drivers by points: if/else 36, loops 6, boolean chains 2, match/switch 2 (nesting depth added 19). Most of this is not in the body itself: 0 of the 46 points are its own statements and the rest belongs to one function literal inside it that branches (line 308). 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/github/issues_granular.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1416856db91fdd641caaa26e400774bcc877cd360997f0c336a368e6f28e06e7"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GranularUpdateIssueLabels (cognitive 46): github.GranularUpdateIssueLabels has cognitive complexity 46 (threshold 15). Drivers by points: if/else 36, loops 6, boolean chains 2, match/switch 2 (nesting depth added 19). Most of this is not in the body itself: 0 of the 46 points are its own statements and the rest belongs to one function literal inside it that branches (line 526). 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/github/issues_granular.go"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"263f4548cef68ca0ded2d3152f5e906acbee5636714d6a7385d5ba9ccf915453"}},{"ruleId":"D2","level":"warning","message":{"text":"github.completePath (cognitive 45): github.completePath has cognitive complexity 45 (threshold 15). Drivers by points: if/else 39, boolean chains 3, loops 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/repository_resource_completions.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16da7ac75cb7010f82646f1da7ecfba357b10602f764b72cc9276a0e5bb2403"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.processToolsets (cognitive 43): Builder.processToolsets has cognitive complexity 43 (threshold 15). Drivers by points: if/else 32, loops 11 (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/inventory/builder.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8b8953fbbb0489fb61501ca008973a41e8679e7d4132eb98a9fed423508c4c"}},{"ruleId":"D2","level":"warning","message":{"text":"github.buildUpdateProjectItem (cognitive 40): github.buildUpdateProjectItem has cognitive complexity 40 (threshold 15). Drivers by points: if/else 30, boolean chains 5, loops 4, match/switch 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":"pkg/github/projects.go"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e63ea9664446531c4a77f9712ab678316770a229d5233007d3ad7efb3c841a"}},{"ruleId":"D2","level":"warning","message":{"text":"main.addCommandFromTool (cognitive 38): main.addCommandFromTool has cognitive complexity 38 (threshold 15). Drivers by points: if/else 26, match/switch 6, loops 5, boolean chains 1 (nesting depth added 22). Of this number, 17 points are the body\u0027s own statements and 21 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":"cmd/mcpcurl/main.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6174260d2ce85f540e440011550e4289c717b8f2cccb5b92d5c4463b8d1785"}},{"ruleId":"D2","level":"warning","message":{"text":"main.buildArgumentsMap (cognitive 38): main.buildArgumentsMap has cognitive complexity 38 (threshold 15). Drivers by points: if/else 31, match/switch 6, loops 1 (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":"cmd/mcpcurl/main.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc597dcc9623ca62788f99696f2711cf37ca7fe918c2bf4b9928a3101b4407e"}},{"ruleId":"D2","level":"warning","message":{"text":"github.AssignCopilotToIssueWithIntent (cognitive 37): github.AssignCopilotToIssueWithIntent has cognitive complexity 37 (threshold 15). Drivers by points: if/else 32, boolean chains 2, loops 2, match/switch 1 (nesting depth added 8). Most of this is not in the body itself: 0 of the 37 points are its own statements and the rest belongs to one function literal inside it that branches (line 568). 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/github/copilot.go"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"024a60f3fce77f2f12241e04a53cdfeccadd6bc90730f92231bb63d585de9ad4"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ListIssues (cognitive 37): github.ListIssues has cognitive complexity 37 (threshold 15). Drivers by points: if/else 32, match/switch 3, loops 2 (nesting depth added 5). Most of this is not in the body itself: 0 of the 37 points are its own statements and the rest belongs to one function literal inside it that branches (line 2703). 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/github/issues.go"},"region":{"startLine":2626}}}],"partialFingerprints":{"codehealthFindingId/v1":"1366bf63db4455c484a1bf440f46b2260955de6f50780620d7051aea9672797d"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GetFileContents (cognitive 36): github.GetFileContents has cognitive complexity 36 (threshold 15). Drivers by points: if/else 32, boolean chains 4 (nesting depth added 10). Most of this is not in the body itself: 0 of the 36 points are its own statements and the rest belongs to one function literal inside it that branches (line 768). 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/github/repositories.go"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"a959700cd3a06447c3d7b2a4e3329fda8a0886b36fc336456555d3611694ad14"}},{"ruleId":"D2","level":"warning","message":{"text":"github.CreateOrUpdateFile (cognitive 35): github.CreateOrUpdateFile has cognitive complexity 35 (threshold 15). Drivers by points: if/else 28, match/switch 4, boolean chains 3 (nesting depth added 11). Most of this is not in the body itself: 0 of the 35 points are its own statements and the rest belongs to one function literal inside it that branches (line 458). 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/github/repositories.go"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd5b5bcb63a48e33afabbc71675109c3deb6c064f8b9805d84eb5c0b68e652c"}},{"ruleId":"D2","level":"warning","message":{"text":"github.RepositoryResourceContentsHandler (cognitive 35): github.RepositoryResourceContentsHandler has cognitive complexity 35 (threshold 15). Drivers by points: if/else 31, match/switch 3, boolean chains 1 (nesting depth added 11). Most of this is not in the body itself: 0 of the 35 points are its own statements and the rest belongs to one function literal inside it that branches (line 113). 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/github/repository_resource.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6893d78fe57a7d898173d339bbe60ab6aa0dbd1fcd6c2d7f2408fbf3347d09d6"}},{"ruleId":"D2","level":"warning","message":{"text":"main.writeToolDoc (cognitive 34): main.writeToolDoc has cognitive complexity 34 (threshold 15). Drivers by points: if/else 24, loops 4, boolean chains 3, match/switch 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":"cmd/github-mcp-server/generate_docs.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d7913dadefe0cb6a09778000a0fb27cf225a20f8b732e519548cf54accc49f"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ProjectsList (cognitive 34): github.ProjectsList has cognitive complexity 34 (threshold 15). Drivers by points: if/else 31, match/switch 3 (nesting depth added 19). Most of this is not in the body itself: 0 of the 34 points are its own statements and the rest belongs to one function literal inside it that branches (line 230). 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/github/projects.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"427a0e6531256d938600e37d4bac1c7beaa07e752ae4a54ce22d7d347310e1d3"}},{"ruleId":"D2","level":"warning","message":{"text":"github.AssignCopilotToIssue (cognitive 33): github.AssignCopilotToIssue has cognitive complexity 33 (threshold 15). Drivers by points: if/else 26, loops 5, boolean chains 2 (nesting depth added 9). Most of this is not in the body itself: 0 of the 33 points are its own statements and the rest belongs to one function literal inside it that branches (line 204). 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/github/copilot.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"843cca3a9854160c5277212826f68cfc08e2c241af234c6f6caea94497d6a9c4"}},{"ruleId":"D2","level":"warning","message":{"text":"tooldiscovery.scoreTool (cognitive 33): tooldiscovery.scoreTool has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23, loops 8, 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/tooldiscovery/search.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf53c1e64ad0e9f14448fa109175af60fdc8a5f458df3ea816862740c1835a1"}},{"ruleId":"D2","level":"warning","message":{"text":"github.IssueWrite (cognitive 32): github.IssueWrite has cognitive complexity 32 (threshold 15). Drivers by points: if/else 28, boolean chains 3, match/switch 1 (nesting depth added 5). Most of this is not in the body itself: 0 of the 32 points are its own statements and the rest belongs to one function literal inside it that branches (line 2210). 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/github/issues.go"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"be49ab597c441ef024f24c9409744663df2db0b78d7a8503cd0ee94e9aae5d78"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GranularUpdateIssueState (cognitive 32): github.GranularUpdateIssueState has cognitive complexity 32 (threshold 15). Drivers by points: if/else 27, boolean chains 5 (nesting depth added 4). Most of this is not in the body itself: 0 of the 32 points are its own statements and the rest belongs to one function literal inside it that branches (line 902). 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/github/issues_granular.go"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6831321956e7b3c9686826aa54ab2c6523726a6dbdf479c4435475c4a1f9b25"}},{"ruleId":"D2","level":"warning","message":{"text":"github.CreatePullRequest (cognitive 32): github.CreatePullRequest has cognitive complexity 32 (threshold 15). Drivers by points: if/else 30, boolean chains 2 (nesting depth added 6). Most of this is not in the body itself: 0 of the 32 points are its own statements and the rest belongs to one function literal inside it that branches (line 714). 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/github/pullrequests.go"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b35583b18bfd8e2f1de2270892f22e1b14ce065eee82e3e022d37a20f45380e"}},{"ruleId":"D2","level":"warning","message":{"text":"github.LabelWrite (cognitive 31): github.LabelWrite has cognitive complexity 31 (threshold 15). Drivers by points: if/else 29, boolean chains 1, match/switch 1 (nesting depth added 12). Most of this is not in the body itself: 0 of the 31 points are its own statements and the rest belongs to one function literal inside it that branches (line 270). 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/github/labels.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1582fd6a8a397ec4665f98ab9508cf09c2a1f9157bc6afefa61a2b18dc318a"}},{"ruleId":"D2","level":"warning","message":{"text":"buffer.ProcessResponseAsRingBufferToEnd (cognitive 30): buffer.ProcessResponseAsRingBufferToEnd has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24, loops 5, boolean chains 1 (nesting depth added 11). Of this number, 23 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/buffer/buffer.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd695f07b3a5cccd19a81379d0e2f02b250dd59bf9cb5218025a55a5d431bd7b"}},{"ruleId":"D2","level":"warning","message":{"text":"github.createIterationField (cognitive 30): github.createIterationField has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, boolean chains 4, loops 3 (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/github/projects.go"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd6e880faea1ee167b813518c8716f40b9ddf5bb65881c1c14fe63335b24fd2"}},{"ruleId":"D2","level":"warning","message":{"text":"github.updateProjectItemsBatch (cognitive 30): github.updateProjectItemsBatch has cognitive complexity 30 (threshold 15). Drivers by points: if/else 25, loops 4, boolean chains 1 (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":"pkg/github/projects_batch.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a66cf4d3965f95ec91d50a43bb18a2eccc476db01a8ac59d3202049d7663dc"}},{"ruleId":"D2","level":"warning","message":{"text":"github.AddReplyToPullRequestComment (cognitive 30): github.AddReplyToPullRequestComment has cognitive complexity 30 (threshold 15). Drivers by points: if/else 25, boolean chains 4, match/switch 1 (nesting depth added 6). Most of this is not in the body itself: 0 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 1224). 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/github/pullrequests.go"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7b3e898e945162b7157b41a5529b79fdc25e698bd4369299c0d74e2be856eb"}},{"ruleId":"D2","level":"warning","message":{"text":"github.resolveIssueRequestFieldValues (cognitive 29): github.resolveIssueRequestFieldValues has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20, loops 5, match/switch 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":"pkg/github/issues.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"197fc1e5f6cf7ed4fc8a87dc3d1a992286056f559d1643340fa1f9068595900c"}},{"ruleId":"D2","level":"warning","message":{"text":"github.optionalIssueWriteFields (cognitive 28): github.optionalIssueWriteFields has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19, boolean chains 5, loops 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":"pkg/github/issues.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf35bec2235aff11bcb831361bc23d7c812610e6cbf9226650e4f4337f5efa0"}},{"ruleId":"D2","level":"warning","message":{"text":"github.convertProjectFieldValue (cognitive 28): github.convertProjectFieldValue has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, loops 3, boolean chains 2, match/switch 1 (nesting depth added 14). 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":"pkg/github/projects_batch.go"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5ea4088f907bbb60157a092591cbfc1f283f65192e69788b9cb71962aac165"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ListPullRequests (cognitive 28): github.ListPullRequests has cognitive complexity 28 (threshold 15). Drivers by points: if/else 26, loops 2 (nesting depth added 6). Most of this is not in the body itself: 0 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 1381). 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/github/pullrequests.go"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"298814a63804678fd242ed5e6b2b0cbab6a24c9ae17db5f1fad86cea79fa6f0f"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ListGlobalSecurityAdvisories (cognitive 28): github.ListGlobalSecurityAdvisories has cognitive complexity 28 (threshold 15). Drivers by points: if/else 28 (nesting depth added 1). Most of this is not in the body itself: 0 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 89). 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/github/security_advisories.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc718e825fd6a6e8e6d14e827cc98cdc17c249a3deb5b3533aa59c5a2b83efc"}},{"ruleId":"D2","level":"warning","message":{"text":"github.uiGetReviewers (cognitive 28): github.uiGetReviewers has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21, 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":"pkg/github/ui_tools.go"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83e222e4bfca5e6489a11eacd4ff55c5f10a62bb5bf012ac550db0110314e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GetPullRequestReviewComments (cognitive 27): github.GetPullRequestReviewComments has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22, loops 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":"pkg/github/pullrequests.go"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6b47e63120f935565178af1159edd66743353530a476c68b10c60c1a3740dd"}},{"ruleId":"D2","level":"warning","message":{"text":"github.SearchRepositories (cognitive 27): github.SearchRepositories has cognitive complexity 27 (threshold 15). Drivers by points: if/else 25, loops 2 (nesting depth added 10). Most of this is not in the body itself: 0 of the 27 points are its own statements and the rest belongs to one function literal inside it that branches (line 62). 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/github/search.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"461f89769992877104714d4462c803f5864f85efefe16c5b98a61f671303311e"}},{"ruleId":"D2","level":"warning","message":{"text":"github.resolveFieldFilters (cognitive 26): github.resolveFieldFilters has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, loops 9, match/switch 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":"pkg/github/issues.go"},"region":{"startLine":2966}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd0c5b59ee0a30f46eb6941dcd37aedf473519f874ed7e7f55f7ef983a054ea"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ListCommits (cognitive 26): github.ListCommits has cognitive complexity 26 (threshold 15). Drivers by points: if/else 25, loops 1 (nesting depth added 4). Most of this is not in the body itself: 0 of the 26 points are its own statements and the rest belongs to one function literal inside it that branches (line 190). 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/github/repositories.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76e61e4aef59e63fdfae70c3a1531fecc1dd405c7db3fc59c570b8aa12e244f"}},{"ruleId":"D2","level":"warning","message":{"text":"github.DeleteFile (cognitive 24): github.DeleteFile has cognitive complexity 24 (threshold 15). Drivers by points: if/else 24 (nesting depth added 4). Most of this is not in the body itself: 0 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 1091). 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/github/repositories.go"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"068d4a6e156c29f7530926d71c550627073f50d6ee920f279c11dfcb5e0005e8"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GetIssueComments (cognitive 23): github.GetIssueComments has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 3 (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/github/issues.go"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed4b72ae6f177929428328cc464900dd25f71b545e0e2bbb94f5d095e4b15d2"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GetSubIssues (cognitive 23): github.GetSubIssues has cognitive complexity 23 (threshold 15). Drivers by points: if/else 21, 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":"pkg/github/issues.go"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2604a1665ad3e72d6775b7b2eed38bf94369d25c1dd452a899372cee654755"}},{"ruleId":"D2","level":"warning","message":{"text":"github.listAllProjectFields (cognitive 23): github.listAllProjectFields has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, loops 7, match/switch 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/projects_resolver.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"17afdb5810342225bc6c81ba2025b58c894487ecf65b36a455ab5df850bf99bf"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GetDiscussionComments (cognitive 22): github.GetDiscussionComments has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, loops 7 (nesting depth added 6). Most of this is not in the body itself: 0 of the 22 points are its own statements and the rest belongs to one function literal inside it that branches (line 427). 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/github/discussions.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"e610700584f0723e082ab35775fce68fd34ec0997ee90de6165135841ea2c7a3"}},{"ruleId":"D2","level":"warning","message":{"text":"github.searchIssuesHandler (cognitive 22): github.searchIssuesHandler has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, 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":"pkg/github/issues.go"},"region":{"startLine":1933}}}],"partialFingerprints":{"codehealthFindingId/v1":"766c265082bd4cce14017d2805e11ca2780de0db38316695612b763de2cd5b72"}},{"ruleId":"D2","level":"warning","message":{"text":"middleware.WithScopeChallenge (cognitive 22): middleware.WithScopeChallenge has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, boolean chains 3 (nesting depth added 5). Most of this is not in the body itself: 0 of the 22 points are its own statements and the rest belongs to one function literal inside it that branches (line 20). 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/http/middleware/scope_challenge.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4ff32c425b09e29b14ac415972df9279cc3366ec33bde5f097b0580037127a"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GetRepositoryTree (cognitive 21): github.GetRepositoryTree has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, loops 3 (nesting depth added 5). Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 82). 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/github/git.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fd0ed135c6a65d2c7ba9902b4fd00c0f01ea8eb7ac1501ad5b7dec3e48818f"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GetIssue (cognitive 21): github.GetIssue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, 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":"pkg/github/issues.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a48096edd9582e26531eac94f6c6699a163402996cccbafa35d99f027f612c"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ListNotifications (cognitive 21): github.ListNotifications has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, boolean chains 1 (nesting depth added 3). Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 67). 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/github/notifications.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8b8af2c6e02c10bf6cf64c9fef668cba71157c94ed71cf615ed693a8c2ca65"}},{"ruleId":"D2","level":"warning","message":{"text":"middleware.WithMCPParse (cognitive 21): middleware.WithMCPParse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, boolean chains 1, match/switch 1 (nesting depth added 9). Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 38). 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/http/middleware/mcp_parse.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe08126735c95578deecb043fbc7327ffcea76ec0f242e4c6a20d488c55cd040"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ListDiscussions (cognitive 20): github.ListDiscussions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, boolean chains 1 (nesting depth added 1). Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 168). 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/github/discussions.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb1dbd71bfbedaa7bd86d6e0b7440380f346a48c384429983d5b3cc757a9237"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ListIssueTypes (cognitive 20): github.ListIssueTypes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (nesting depth added 7). Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 1098). 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/github/issues.go"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"92657aec9ac3b278e1cf089064e4af90955daabc107d10eb2160543eeb0f3ada"}},{"ruleId":"D2","level":"warning","message":{"text":"github.executeBatchWrites (cognitive 20): github.executeBatchWrites has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 5 (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/github/projects_batch.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bc598a92ffbe02109eb4168b35808767581610273a4c1a752c5b443980cafc"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GetPullRequestReviews (cognitive 20): github.GetPullRequestReviews has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 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":"pkg/github/pullrequests.go"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a5b9bb4745cebab5cadcee85655e1567d11f387816d459537dcd7aabc7d652"}},{"ruleId":"D2","level":"warning","message":{"text":"github.SearchCode (cognitive 20): github.SearchCode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, loops 2 (nesting depth added 4). Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 233). 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/github/search.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"261d256bc89e46d9342f3a4353fde21ec83d4627525f5ff66a65cbe006f02313"}},{"ruleId":"D2","level":"warning","message":{"text":"main.printResponse (cognitive 19): main.printResponse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, 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":"cmd/mcpcurl/main.go"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ae7bd3fb2a37ccfe9205062ec09c053175abd12cbab1fdefbf334ff9192846"}},{"ruleId":"D2","level":"warning","message":{"text":"ghmcp.RunStdioServer (cognitive 19): ghmcp.RunStdioServer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, match/switch 2, loops 1 (nesting depth added 4). 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/ghmcp/server.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8e3716c7d36a4921eaa8a13e80fa3a281122ae11d81462fcae992cf67bdf94"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ListReleases (cognitive 19): github.ListReleases has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, loops 2 (nesting depth added 4). Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 1822). 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/github/repositories.go"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2b0a7fe1b2501206933729979b0cc53cd162256f5abe35f3830434349d7b28"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 18): main.main has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 5, 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":"cmd/mcpcurl/main.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"883cac200ada67ee89559bf2003350479ecc8027cd751e8302c73cb320cbe456"}},{"ruleId":"D2","level":"warning","message":{"text":"github.IssueDependencyWrite (cognitive 18): github.IssueDependencyWrite has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 3. Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 252). 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/github/issue_dependencies.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1fe5d14d3e5b9e941612718dc6e7541270d79b68211421245ad0c0bd15a333"}},{"ruleId":"D2","level":"warning","message":{"text":"github.convertToMinimalIssue (cognitive 18): github.convertToMinimalIssue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, 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":"pkg/github/minimal_types.go"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7705f15fe247680558ccea22d4ef3b5c86c3173a2b448caf52fd7f0463658b"}},{"ruleId":"D2","level":"warning","message":{"text":"github.listProjectItems (cognitive 18): github.listProjectItems has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, 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, 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/github/projects.go"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"698a68b5af8785dee42f7dfc1e17bb9667765860b1f22fd4a92f8afa2b9c38e3"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ListStarredRepositories (cognitive 18): github.ListStarredRepositories has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 2 (nesting depth added 2). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 2104). 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/github/repositories.go"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"897f389c6dc6aecbc92fc1d1a7c7974e44c9ae6736f91dd4509e7ccf4f56f161"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GranularUpdateIssueType (cognitive 17): github.GranularUpdateIssueType has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 2. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 736). 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/github/issues_granular.go"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a3563b1c4ab2a4885c82df533d8e18416be4e9f9b824ca15e5376cf9a2c5a6"}},{"ruleId":"D2","level":"warning","message":{"text":"github.convertToMinimalPullRequest (cognitive 17): github.convertToMinimalPullRequest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, 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":"pkg/github/minimal_types.go"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d1d88e4c96d77820279f4169da5cb9cd6ca1e1102479c9d77dbde96afc4e23"}},{"ruleId":"D2","level":"warning","message":{"text":"github.createProjectStatusUpdate (cognitive 17): github.createProjectStatusUpdate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, 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":"pkg/github/projects.go"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"63beec35fdfa9b599aa6be5c26671b2b7f01c707f8b014f68ddcfda218cc159a"}},{"ruleId":"D2","level":"warning","message":{"text":"github.listProjectStatusUpdates (cognitive 17): github.listProjectStatusUpdates has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, 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":"pkg/github/projects.go"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"8884368a2ef0516c815ba2ba9b946936bd1c138ebf02ca943a888ff74236413a"}},{"ruleId":"D2","level":"warning","message":{"text":"toolvalidation.ScanReadOnlyHint (cognitive 17): toolvalidation.ScanReadOnlyHint has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 1 (nesting depth added 9). 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":"pkg/toolvalidation/readonlyhint.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a1cf34c352d87a1f7b272b962a809a59f88b8644be30b61c259ced0ebd6e2e"}},{"ruleId":"D2","level":"warning","message":{"text":"github.ActionsGetJobLogs (cognitive 16): github.ActionsGetJobLogs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 3. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 697). 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/github/actions.go"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"58eb31dee43b1193499d286e7cb66a72682aaf73ff865ee7568806e952e28cb9"}},{"ruleId":"D2","level":"warning","message":{"text":"github.writeIssueDependency (cognitive 16): github.writeIssueDependency has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"pkg/github/issue_dependencies.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19f82af6965f8fc7dcaa8bd1e488566c3e13a10ea063998754916e52ebfc71a"}},{"ruleId":"D2","level":"warning","message":{"text":"github.minimalProjectFieldValue (cognitive 16): github.minimalProjectFieldValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 6, 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":"pkg/github/minimal_types.go"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de16140cc9081e5d31bbe9dbd256a5860f5f1be77293bc10a045056cd19ec49"}},{"ruleId":"D2","level":"warning","message":{"text":"github.MarkAllNotificationsRead (cognitive 16): github.MarkAllNotificationsRead has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (nesting depth added 2). Most of this is not in the body itself: 0 of the 16 points are its own statements 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":"pkg/github/notifications.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a77b1f6a0b9bef9696ba0e7b049fa57efa2cf404239d69dd63fc2a532c431f"}},{"ruleId":"D2","level":"warning","message":{"text":"github.GetTag (cognitive 16): github.GetTag has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (nesting depth added 3). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 1706). 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/github/repositories.go"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"873a1a724f24fd6813554b04807854d679d62e4da0274b55018540acfa761901"}},{"ruleId":"D2","level":"warning","message":{"text":"github.completeOwner (cognitive 16): github.completeOwner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, boolean chains 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/repository_resource_completions.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c7924a5f660d1d91fc6e7c00e63721087c369fb5c48428161a49f5033cbf54"}},{"ruleId":"D2","level":"warning","message":{"text":"github.userOrOrgHandler (cognitive 16): github.userOrOrgHandler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"pkg/github/search.go"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6c2ba14decf2c9b381f2108ae109ab804bd4a0d12861cce740989aa858bf4b"}},{"ruleId":"D2","level":"warning","message":{"text":"github.uiGetMilestones (cognitive 16): github.uiGetMilestones has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"pkg/github/ui_tools.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e93fe2a986bb894fff684cec13a59668f0d25177dce02004a54438feabfc6c"}},{"ruleId":"D2","level":"warning","message":{"text":"parsedBatchItem.parseItemRef (cognitive 16): parsedBatchItem.parseItemRef has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 2, loops 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":"pkg/github/projects_batch.go"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c51b444655a361c10d42723ee4ee588779ffc9ca9969aea7dc11d83aede9fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/issues.go: FileTooLong \u2014 1972 significant lines (blank, comment-only and punctuation-only lines excluded). 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/github/issues.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"153cf38f09de211b6fe87662beb3e2bcc84f450fe2ed2c3c969f3f6e774ac412"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/repositories.go: FileTooLong \u2014 1903 significant lines (blank, comment-only and punctuation-only lines excluded). 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/github/repositories.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a758814ca5033780c7bc3a1c05699735e73860b49b06ef6a6399847d21e39e2a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/pullrequests.go: FileTooLong \u2014 1638 significant lines (blank, comment-only and punctuation-only lines excluded). 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/github/pullrequests.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ecd1206325b1f4a37a931aa5520d8c2662ceda65875f0044b3c989e5d64f98"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/projects.go: FileTooLong \u2014 1365 significant lines (blank, comment-only and punctuation-only lines excluded). 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/github/projects.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e061804ba4b2419fc4f6b5e8757ae93b54a331d08ffc184122fa99766f21d6f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/minimal_types.go: FileTooLong \u2014 1241 significant lines (blank, comment-only and punctuation-only lines excluded). 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/github/minimal_types.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cdd207f8b9088da4d3715f5b36e24e76918010ce6985deff806e72031c180a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/issues_granular.go: FileTooLong \u2014 1191 significant lines (blank, comment-only and punctuation-only lines excluded). 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/github/issues_granular.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"184856fe1bcf10cfa5e7c980e3d064f3362ecd7bd1362383e7ded13a8140c9a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/actions.go: FileTooLong \u2014 754 significant lines (blank, comment-only and punctuation-only lines excluded). 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/github/actions.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"024cf42f91ce5952636781d5c53c53abe71c4c2dd7587e326f90d661fb4a7a0f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/discussions.go: FileTooLong \u2014 743 significant lines (blank, comment-only and punctuation-only lines excluded). 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/github/discussions.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c9fab3a306bb60cb5dc78fcf00b2e5b28d840c653ea50374de6f0275651cbd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/copilot.go: FileTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded). 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/github/copilot.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70c952bfd64445710f10b023ff5f92cbd82a878282ba8611a8e69afef5ba4d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/pullrequests_granular.go: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded). 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/github/pullrequests_granular.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97163c007b4f59b5ff3a4ee7fd6fbf139fd96b23f636b88961f4d28f719e7bb0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: github/projects_batch.go: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded). 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/github/projects_batch.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c7351a47f68d35dc7401331a642d2a536df98ee770c3e38e1eaa5a2d5d0178"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): pkg/github/minimal_types.go:1025-1046 | pkg/github/minimal_types.go:1062-1084 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/minimal_types.go:1025\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/github/minimal_types.go"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d724d2bef987d9afa3babac8db0da0ad3225521d4852e36f8e6cb0f73ca408d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): pkg/github/pullrequests.go:1954-1974 | pkg/github/pullrequests.go:2039-2059 | pkg/github/pullrequests.go:2188-2208 \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 \u0060pkg/github/pullrequests.go:1954\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/github/pullrequests.go"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"4286b990e19282da63623035bc7e37aa17c3fe5eb723891982673c11f806475e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): pkg/github/pullrequests.go:2386-2402 | pkg/github/pullrequests_granular.go:636-654 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/pullrequests.go:2386\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/github/pullrequests.go"},"region":{"startLine":2386}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d0febf7933f7a14d2e82a9a9171a30d3e2b372e234a1e8862c9d1f7bfb0cfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): pkg/github/discussions.go:450-465 | pkg/github/issues.go:2803-2818 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/discussions.go:450\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/github/discussions.go"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"e940b1fb5f9afe90251243ca4831e76ee56bd3a22ef3328f570d4ccf5ed94890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): pkg/github/ui_tools.go:201-215 | pkg/github/ui_tools.go:258-272 | pkg/github/ui_tools.go:350-364 | pkg/github/ui_tools.go:488-502 | pkg/github/ui_tools.go:509-523 \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 \u0060pkg/github/ui_tools.go:201\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":"pkg/github/ui_tools.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f84e2040209cdf2936024ea29784d9274bae3f28af879f3739ccfe34ac9917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/github/actions.go:355-369 | pkg/github/actions.go:478-492 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/actions.go:355\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/github/actions.go"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e92f2f938cb6d98dc7582785a93c91cb4240a5f3ff38ed95b46918db86923b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): cmd/github-mcp-server/generate_docs.go:399-413 | cmd/github-mcp-server/generate_docs.go:439-453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/github-mcp-server/generate_docs.go:399\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":"cmd/github-mcp-server/generate_docs.go"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf4cc20d8017fd19a1fca729045f6d7200600754dfec592490a12eeb1a972bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pkg/github/security_advisories.go:283-297 | pkg/github/security_advisories.go:449-463 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/security_advisories.go:283\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":"pkg/github/security_advisories.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"2032a980a36b0c3340f9e68c057aa2b04497aafe677881682815a008f25f1668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/github/copilot.go:333-352 | pkg/github/copilot.go:699-712 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/copilot.go:333\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/github/copilot.go"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"96598110663d2be733922de1152320405bcccd3c138b79044a5c5e61c830d678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/github/git.go:171-184 | pkg/github/repositories.go:120-133 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/git.go:171\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/github/git.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"0940ce6b5c0c2cab5fa02cf0fc88ca811d99790ac72d428cd507034afe913e0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/github/issues.go:857-870 | pkg/github/issues.go:921-934 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/issues.go:857\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":"pkg/github/issues.go"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"6424ecdbb10404c59a7340467d33445ac7614c73292723651e4b48c3b1aab64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/github/issues.go:1345-1358 | pkg/github/pullrequests.go:1309-1322 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues.go:1345\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/github/issues.go"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4ec93a7b41ea6fcef0dc9f24472f9bd596746ad1c7bea1318601dd3fa8bce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/github/issues.go:1998-2011 | pkg/github/search_utils.go:176-189 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues.go:1998\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/github/issues.go"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"22efdad00f334ba04978f5d03adf12d5788691d62ad58a718ceac1e989ea7ded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/github/pullrequests.go:823-836 | pkg/github/pullrequests.go:1122-1135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/pullrequests.go:823\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/github/pullrequests.go"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d315c52110a391bedce0433f181f5d838c3298849d313c311bbc4157ce8583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/github/labels.go:165-178 | pkg/github/ui_tools.go:113-126 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/labels.go:165\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/github/labels.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebd76901ffa1966d488f09bae10da9d6d479910ce3421778fb144a0a02ac5da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): pkg/github/repositories.go:390-402 | pkg/github/repositories.go:1661-1673 | pkg/github/repositories.go:1774-1786 \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 \u0060pkg/github/repositories.go:390\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/github/repositories.go"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a89e2231dca961f57c0a9355837b1e60ca6d7692f95f372293e29894e8d36d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/github/context_tools.go:68-82 | pkg/github/context_tools.go:158-170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/context_tools.go:68\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/github/context_tools.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff18b01887848abb252960be0e5418ff1081b9320d68fba07f091287a7a1360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/github/copilot.go:372-386 | pkg/github/copilot.go:739-751 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/copilot.go:372\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/github/copilot.go"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bd45972028883501db499beda950a873564fc186b208a668c5c966e7a09127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/github/copilot.go:417-429 | pkg/github/copilot.go:770-782 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/copilot.go:417\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/github/copilot.go"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f9cef1793adb732b73f1a6b7111412bdb5b3da65f774d728bd244cb9a32646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/github/discussions.go:171-183 | pkg/github/discussions.go:1033-1045 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/discussions.go:171\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":"pkg/github/discussions.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b95b6def6b30837c63bd32e215c7b5e7cf48e97b6254e9761e5746186e62d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/github/discussions.go:510-522 | pkg/github/discussions.go:552-564 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/discussions.go:510\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/github/discussions.go"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30d6f819f6128b6ab1f5fd106748d77ec86070ba762f7646d484d865cfa49af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/github/discussions.go:703-715 | pkg/github/discussions.go:806-818 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/discussions.go:703\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/github/discussions.go"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f0fe27b65e3768aae1dcc89ddf4cf0cdb86fbbbbd2b4d19c3ac5539dff7716"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/github/discussions.go:725-737 | pkg/github/discussions.go:835-847 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/discussions.go:725\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/github/discussions.go"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e3ccaf0bd9314ba812adcae1e61bc16fbac09263a8f0c3607aeb3da0dc2d1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/github/notifications.go:446-458 | pkg/github/notifications.go:550-562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/notifications.go:446\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/github/notifications.go"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ca02e24eceb0ab87a7bccc412cecbcb42c99fe92bee26204263daee8cfec0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): pkg/github/search.go:80-92 | pkg/github/search.go:576-589 \u2014 both copies are in the same file, so extract the block 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/github/search.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5cbb8e7c0b750f29f5d3a4795653ede8d1a70accecdc1ffcdc3664cedb2a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): pkg/github/repositories.go:84-95 | pkg/github/repositories.go:1620-1631 | pkg/github/repositories.go:1835-1846 \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 \u0060pkg/github/repositories.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/repositories.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"962774cc69ff16bc420521f97ee752e1e2cc672e8e575151c2143600a91c1022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/github/params.go:47-58 | pkg/github/params.go:76-87 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/params.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. 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/github/params.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1564c6cdd8e592dc48e9ad929929fa941073030a23301968cb3e6220056cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/github/projects.go:413-424 | pkg/github/projects.go:728-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/projects.go:413\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/github/projects.go"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a748ab039baaa4c4c776d7aca74571efa49a3a8e2cd5b7d20b1bb47c0eba6d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/github/pullrequests.go:324-335 | pkg/github/pullrequests.go:350-361 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/pullrequests.go: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. 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":"pkg/github/pullrequests.go"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54744549059be06c8021cacf8170867fa08f26217bb1281ec8131c4f0c2e15c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/github/repositories.go:694-705 | pkg/github/repositories.go:1033-1044 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/repositories.go:694\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/github/repositories.go"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf796e3bfc4143fb6f5138e0f5fbb95fe1b4e29a86c92e9af00d11517a5d109"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/github/repositories.go:1333-1344 | pkg/github/repositories.go:1568-1579 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/repositories.go:1333\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":"pkg/github/repositories.go"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f9cba352895cb1fc3c09d6acb64091a725881c34be63c4cdd54a849dbbdbdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/github/repositories.go:1967-1978 | pkg/github/repositories.go:2053-2064 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/repositories.go:1967\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/github/repositories.go"},"region":{"startLine":1967}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa801a9b4e60b77be2429d3b653c741252ce60d24ee56bc96f0addbefc8ea37e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): pkg/github/gists.go:259-270 | pkg/github/gists.go:368-379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/gists.go:259\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/github/gists.go"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"da597385ef72ac8b1a957552191bfea66c845c7020a917d5f1d6183e130d1fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): pkg/github/issues_granular.go:103-113 | pkg/github/issues_granular.go:187-197 | pkg/github/issues_granular.go:413-423 | pkg/github/issues_granular.go:631-641 | pkg/github/issues_granular.go:808-818 | pkg/github/issues_granular.go:1006-1016 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues_granular.go:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues_granular.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9443b941c0429ee07a7fe97e18c0291fa52b1eb95249512ad58c61f43f25e96e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): pkg/github/actions.go:1047-1057 | pkg/github/actions.go:1069-1079 | pkg/github/actions.go:1091-1101 | pkg/github/actions.go:1116-1126 | pkg/github/actions.go:1138-1148 \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 \u0060pkg/github/actions.go:1047\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/github/actions.go"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bcedce4d019087031b01279eb97e52bd4b2d807bb63509311b0d2b8e9401f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/copilot.go:312-326 | pkg/github/copilot.go:682-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/copilot.go:312\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/github/copilot.go"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"402a1cee0c6487035b9e80c2f462ac2a9d7840f5fb917c7d07db471030251d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/discussions.go:189-199 | pkg/github/issues.go:2742-2752 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. 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/github/discussions.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09e75a621b720343969e091f1ac9670f1c112f2ffe09ae67e67694e71a9fbf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/discussions.go:263-273 | pkg/github/discussions.go:578-588 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/discussions.go:263\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/github/discussions.go"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ae33e2448043ee906f7719c87bc588894e5fc64fd43594f735194912a42815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/issues.go:236-246 | pkg/github/issues.go:2927-2937 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/issues.go:236\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/github/issues.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f672803db3bffa0494719298fac0106efb975488b0cba3f1370830056a1c7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/issues.go:971-981 | pkg/github/issues.go:1032-1042 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/issues.go:971\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/github/issues.go"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"df270c47e76f6369bf028f20acfb7bf5259999310ba24c5ba116a99f5846caf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/issues.go:2217-2227 | pkg/github/pullrequests.go:716-726 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues.go:2217\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/github/issues.go"},"region":{"startLine":2217}}}],"partialFingerprints":{"codehealthFindingId/v1":"654f512d114616e2693dbc39d01677121b2b6f676b65e8a0791dba181f4f823f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/issues_granular.go:85-95 | pkg/github/pullrequests_granular.go:80-90 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues_granular.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"9725e475c37e2984c95bd7c663b8c02c6c89dd0c980350b9377d8e338fb825af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/minimal_types.go:712-722 | pkg/github/minimal_types.go:818-828 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/minimal_types.go:712\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/github/minimal_types.go"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d05b19fdc137d5c4f11681aaa5d5fb54c1c1e210daa6b67805b75bd7884adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/params.go:328-338 | pkg/github/params.go:347-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 \u0060pkg/github/params.go:328\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/github/params.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"52175dd7bd834eda7ab4497338198f658a463b7264f15e8c0ba9d254ef7caae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/projects_batch.go:689-699 | pkg/github/projects_batch.go:768-778 \u2014 both copies are in the same file, so extract the block 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":"pkg/github/projects_batch.go"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b00bb09bffbc27c8e385eaae882bbeb8ae74921cd00f651e5adb407c0fbe2d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/pullrequests.go:170-180 | pkg/github/pullrequests.go:273-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/pullrequests.go:170\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/github/pullrequests.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3baef180da3b97d7f54726656f3b8a751a5dbdd9f72370de1da64188feda5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/repositories.go:1109-1119 | pkg/github/repositories.go:1716-1726 \u2014 both copies are in the same file, so extract the block 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/github/repositories.go"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc3874df1b3508087e6fc7568e70114331acb212d1cec1f1f499a4641e20d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/repositories.go:1200-1210 | pkg/github/repositories.go:1562-1572 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/repositories.go:1200\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":"pkg/github/repositories.go"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"06168f72880a4ff52e867d349c74229b189d2f96ec2ca0e29669640e953308d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): pkg/github/pullrequests_granular.go:98-108 | pkg/github/pullrequests_granular.go:346-356 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/pullrequests_granular.go:98\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/github/pullrequests_granular.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45a087a17015911df71263c8d42406c3fdb72fb60892172b02bab80fb728577"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 13): pkg/github/projects.go:1173-1182 | pkg/github/projects.go:1215-1224 | pkg/github/projects.go:1259-1268 | pkg/github/repositories.go:369-378 | pkg/github/repositories.go:1130-1139 | pkg/github/repositories.go:1206-1215 | pkg/github/repositories.go:1639-1648 | pkg/github/repositories.go:1730-1739 | pkg/github/repositories.go:1759-1768 | pkg/github/repositories.go:2039-2048 | pkg/github/repositories.go:2838-2847 | pkg/github/secret_scanning.go:74-83 | pkg/github/secret_scanning.go:189-198 \u2014 there are 13 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 13 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/github/projects.go:1173\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":"pkg/github/projects.go"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff0b484bffab57463b5a59c3f7513120d86c6217e097dfde3e38ecdd5521030"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 13): pkg/github/pullrequests.go:1027-1036 | pkg/github/pullrequests.go:1439-1448 | pkg/github/pullrequests.go:1585-1594 | pkg/github/code_scanning.go:73-82 | pkg/github/code_scanning.go:198-207 | pkg/github/dependabot.go:74-83 | pkg/github/dependabot.go:182-191 | pkg/github/notifications.go:140-149 | pkg/github/notifications.go:371-380 | pkg/github/search.go:100-109 | pkg/github/search.go:274-283 | pkg/github/search.go:392-401 | pkg/github/search.go:597-606 \u2014 there are 13 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 13 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/github/pullrequests.go:1027\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. 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/github/pullrequests.go"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"140015f10c265ccd18e3572907709c7f8c988659823f5aba0358a2fc21f7b3f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10): pkg/github/issues.go:894-904 | pkg/github/issues.go:1527-1536 | pkg/github/issues.go:1575-1585 | pkg/github/issues.go:2496-2505 | pkg/github/pullrequests.go:174-183 | pkg/github/pullrequests.go:277-286 | pkg/github/pullrequests.go:296-305 | pkg/github/pullrequests.go:396-405 | pkg/github/pullrequests.go:424-433 | pkg/github/pullrequests.go:571-580 \u2014 there are 10 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 10 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/github/issues.go:894\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":"pkg/github/issues.go"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa38063e1a1492227c16b45dec432c6e3d2c4dd3ba914356cebc2480be705b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): pkg/github/repositories.go:102-111 | pkg/github/repositories.go:264-273 | pkg/github/repositories.go:2153-2162 | pkg/github/repositories.go:2263-2272 | pkg/github/repositories.go:2328-2337 \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 \u0060pkg/github/repositories.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. 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/github/repositories.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cbc1069d6f9627650d9fe153a7811fb4b3fe0701aef9169550d1ba2e1557ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): pkg/github/dependabot.go:74-83 | pkg/github/dependabot.go:182-191 | pkg/github/search.go:392-401 | pkg/github/secret_scanning.go:189-198 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/dependabot.go:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/dependabot.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9022b2712f334c04d843977a9f94c7f0d3b00c876f7164ab69e82d259bf691f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): pkg/github/ui_tools.go:183-192 | pkg/github/ui_tools.go:237-246 | pkg/github/ui_tools.go:330-339 | pkg/github/ui_tools.go:468-477 \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 \u0060pkg/github/ui_tools.go:237\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/github/ui_tools.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab185e12a65f8f63cb189f1bf7116f1043acce2fdc377c3a8e19c13fab48ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/profiler/profiler.go:91-100 | internal/profiler/profiler.go:125-134 | internal/profiler/profiler.go:159-168 \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. 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/profiler/profiler.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"610e8f53857bc1690916e401cdc378caaef9ae537eb60dd9c23827fcdabb7c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): pkg/github/issues.go:673-683 | pkg/github/pullrequests.go:101-117 | pkg/github/code_scanning.go:176-185 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/pullrequests.go:101\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/github/issues.go"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ccc7e801ca482af957203cbe836f7cea940e624873e4c01fcd8e729e3b4b2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): pkg/github/issues_granular.go:1593-1602 | pkg/github/issues_granular.go:1675-1684 | pkg/github/pullrequests_granular.go:814-823 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues_granular.go"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b77ca353e00644a0fae7a99abec8ebe7c6ea53bb87ee13d540cc72715240dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): pkg/github/projects.go:260-269 | pkg/github/projects.go:419-430 | pkg/github/projects.go:734-745 \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 \u0060pkg/github/projects.go:260\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/projects.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3c3c3c475b63c414702f9e9a8b495713e3fd347eec8065a8a85c10f8245aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): pkg/github/repositories.go:677-686 | pkg/github/repositories.go:1159-1168 | pkg/github/repositories.go:1183-1192 \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 \u0060pkg/github/repositories.go:677\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":"pkg/github/repositories.go"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bb2232582735da703b19542e9049b1b7cdda536a44b24a2cd3c24410b108e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): pkg/github/repositories.go:1773-1782 | pkg/github/repositories.go:1967-1977 | pkg/github/repositories.go:2053-2063 \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 \u0060pkg/github/repositories.go:1967\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/github/repositories.go"},"region":{"startLine":1773}}}],"partialFingerprints":{"codehealthFindingId/v1":"427feec8d32d3008c2fcc2e088c707c3b9f9827feefbdca85e75aa9cd5af8b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): pkg/github/repositories.go:1944-1953 | pkg/github/repositories.go:2250-2259 | pkg/github/repositories.go:2315-2324 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/repositories.go"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bfe0be0b9cc1bbe9cb79df526de89b79f14d57e97a1d82b1e39e48e3803ac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): pkg/github/search.go:247-256 | pkg/github/search.go:362-371 | pkg/github/search.go:572-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 \u0060pkg/github/search.go:247\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/github/search.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"6747b48bc373e56791a186fc4b3479b98ce48ccc63de774f8ee56799a8468a99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/actions.go:851-860 | pkg/github/actions.go:901-910 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/actions.go:851\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/github/actions.go"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"7076f612c6520cdf8e3b08eb596409ce1219f7b7c2bab80cf1f77a3fb1b5e197"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/copilot.go:296-305 | pkg/github/copilot.go:642-653 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/copilot.go:296\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":"pkg/github/copilot.go"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7bd4c3eb73c18359d44bccbcd5727bed42ca9454fe64fb6f69ec76c6904fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/copilot.go:904-913 | pkg/github/pullrequests.go:801-810 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/copilot.go:904\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":"pkg/github/copilot.go"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"d097c5e8dac5548890890c11f720f05f0de2aefae5dc1c80cbe0446cfa61a325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/discussions.go:313-322 | pkg/github/discussions.go:425-434 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/discussions.go:313\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/github/discussions.go"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fc5ced9a14f265d7553d0a9c04c0b0f3a12aa738a1fc835fb392e208d32522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/issue_fields.go:139-148 | pkg/github/ui_tools.go:383-392 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issue_fields.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"00436713bdb5f33642034ac77307fd6f0c15c5c505b2a136b61e2852e4b54ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/issues.go:1050-1059 | pkg/github/labels.go:195-204 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues.go:1050\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":"pkg/github/issues.go"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc73181852939d351cfa02d82a7173831608d18ab3f5a0dbc4cd23d6f2c1e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/issues.go:1131-1140 | pkg/github/issues.go:1155-1168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/issues.go:1131\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":"pkg/github/issues.go"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7346fd6c943d0d8547c624ffc9d58a5b0db6abdb910751b83c86cac23d1370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/issues_granular.go:1611-1620 | pkg/github/issues_granular.go:1693-1702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/issues_granular.go:1611\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/github/issues_granular.go"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10d759944a096b79a8a1d719057de157972f6648e7d21d36b21090cc00fe2ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/minimal_types.go:665-674 | pkg/github/minimal_types.go:899-908 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/minimal_types.go:665\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/github/minimal_types.go"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c4c73f4be5c9f805b4904a7865dbe363a7668592596fa2978dc6eb01c6a8eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/projects.go:232-241 | pkg/github/projects.go:703-712 \u2014 both copies are in the same file, so extract the block 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/github/projects.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9835accfbd079b01f0f7e55d3e266ae5c7c3c7a906bdadc15a594d83fa94b21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/repositories.go:516-525 | pkg/github/repositories.go:546-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 \u0060pkg/github/repositories.go:516\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/github/repositories.go"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ba7ceeccf1e875e0fa995a96f64555e982fb122a0f0c06f13c359259068e48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/repositories.go:1716-1726 | pkg/github/repositories.go:2026-2035 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/repositories.go"},"region":{"startLine":1716}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc2360ab4e03f089befb4893fd7ca18ae4debcc92a57bf27de34333b662c36a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/scopes/fetcher.go:107-116 | pkg/http/headers/parse.go:8-17 \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/scopes/fetcher.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":"pkg/scopes/fetcher.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a399caae5b694485d571b98786b84d9faddd50d8dd165d63ac1072da20a184"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/dependabot.go:61-70 | pkg/github/dependabot.go:162-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/dependabot.go:162\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/github/dependabot.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ebcde25f7e06401681fdd406b340ade559c6285555edf17ce158ae02328100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/gists.go:208-217 | pkg/github/gists.go:314-323 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/gists.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f46438a5b0cf4c5a674bdf77f7b6edccb878a5ce0dd761d83451ec2c374210c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/pullrequests_granular.go:700-709 | pkg/github/pullrequests_granular.go:744-753 \u2014 both copies are in the same file, so extract the block 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/github/pullrequests_granular.go"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"207134c3c7cc899aaa1d3401dee8f44be15be173cb96dac3c8779f7e0d36fd5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/github/security_advisories.go:202-211 | pkg/github/security_advisories.go:477-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. 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/github/security_advisories.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b116db6da3dad5dbdca6667298f2a4aa56997c582cc6b15b1d50f35bfa0ee913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): pkg/github/issues_granular.go:401-409 | pkg/github/issues_granular.go:619-627 | pkg/github/issues_granular.go:796-804 | pkg/github/issues_granular.go:994-1002 \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 \u0060pkg/github/issues_granular.go:401\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":"pkg/github/issues_granular.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c16cd0df10c261721f9d3e5b81151eac3c28a68b7d1208958287d6d731dd03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/github/actions.go:334-343 | pkg/github/actions.go:463-471 | pkg/github/actions.go:591-600 \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":"pkg/github/actions.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bffcb755cb7b8dfd3cc755e5066d670964840980c5c258075109ee28d0d583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/github/copilot.go:877-886 | pkg/github/pullrequests_granular.go:72-80 | pkg/github/pullrequests_granular.go:537-545 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/copilot.go"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff6ffa44e0a4b2720b30b481826b6b4e3842924be61832657a0f6779f812cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/github/issues_granular.go:314-322 | pkg/github/issues_granular.go:532-540 | pkg/github/issues_granular.go:1357-1365 \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":"pkg/github/issues_granular.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"69533e5ad71984ec1ee45319e0f915c9ccf0f24b39bfd8c715d24d8c2d388b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/github/pullrequests.go:1411-1419 | pkg/github/repositories.go:1832-1840 | pkg/github/search.go:247-255 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/pullrequests.go:1411\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/github/pullrequests.go"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"751a35d2d2976e9b4fbc0557f46e115dfafc2af2bb547520e64591299e2780d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): pkg/github/code_scanning.go:56-64 | pkg/github/dependabot.go:57-65 | pkg/github/secret_scanning.go:57-65 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/code_scanning.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ed2c6e5f7b047392f6956df5cdd0dff3eb3d0e49c825987f659f1db782e2cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/ghmcp/server.go:278-286 | pkg/http/server.go:107-115 \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/ghmcp/server.go:278\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/ghmcp/server.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb98ce568d4122c4c7d4966f802d84126a68cf0ea35968b0fba61dd0129d6a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/discussions.go:951-959 | pkg/github/discussions.go:986-994 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/discussions.go:951\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/github/discussions.go"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"802fe7825ce13f1fa9202251b746b8518b43f4b740834927f6249431a1b47e6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/issue_dependencies.go:76-84 | pkg/github/issues.go:665-673 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issue_dependencies.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bdcad7bc8a1c11d176443cd4634ff7ba7eb02fe96ef123de9664d44ca463f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/issues.go:1257-1265 | pkg/github/pullrequests.go:1248-1256 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/github/issues.go"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b439ca3689347d8d79e49dd1610d72b71c522b5dce4db21dc1af90d38ec4f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/issues.go:1452-1460 | pkg/github/issues_granular.go:1225-1233 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues.go"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"588e4e5677fdb85df2ec2d99f177a623dec190bafef9732366224d78b795dd0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/issues.go:1825-1833 | pkg/github/issues.go:1896-1905 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/issues.go:1825\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":"pkg/github/issues.go"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db7f8f8c4260731a56eb0b35ab3dfb7061ff9f23bfedda5c5f0978dca7ebee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/issues_granular.go:326-334 | pkg/github/issues_granular.go:544-552 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/issues_granular.go:326\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/github/issues_granular.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"64781cd6894d2880b74002b4f9dcf21429a0cb1ecdcbc8a026e5d82afdcfad92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/projects.go:470-478 | pkg/github/projects.go:1050-1058 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/projects.go:470\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/github/projects.go"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"86daa611a759b0984cd21a494afdb1285febddbe63516e487d7d490513f3b019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/pullrequests.go:937-947 | pkg/github/pullrequests_granular.go:205-213 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/pullrequests.go:937\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/github/pullrequests.go"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e417fd268ef4ebea1a826f1787ab7982ec603ad4d31b4fac40961c7c0da020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/pullrequests.go:2374-2382 | pkg/github/pullrequests_granular.go:623-631 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/pullrequests.go:2374\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/github/pullrequests.go"},"region":{"startLine":2374}}}],"partialFingerprints":{"codehealthFindingId/v1":"158ebc9dbe576d3499cbc79a0273a50160085d8c5c526a2c231fc9a84068ccb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/repositories.go:345-353 | pkg/github/repositories.go:1617-1625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/repositories.go:345\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/github/repositories.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeca9945dcc700fe4cdc089ad137253ce2bbde054cdd41e99e8ede193d1f730f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/repositories.go:476-485 | pkg/github/repositories.go:1105-1113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/repositories.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b982d3cc5f60cb718e6189e981fc5207244b693a6124187252a952226e3c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/repositories.go:1177-1185 | pkg/github/repositories.go:1545-1553 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/repositories.go:1177\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/github/repositories.go"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd869703c238503da484ec4e95f7f8e33ddc8548b86a5a395e379eb814af059e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/inventory/builder.go:293-301 | pkg/inventory/builder.go:303-311 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/inventory/builder.go:293\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/inventory/builder.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49dcde6267b95f3f65399abc41c48810312e60bfe1827d1754c1fc27691091d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/notifications.go:84-92 | pkg/github/notifications.go:278-286 \u2014 both copies are in the same file, so extract the block 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/github/notifications.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc13a72aa0258ba1def859b2464e0df92d554df31fb14073f100feafe68781e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/notifications.go:358-367 | pkg/github/notifications.go:438-446 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/notifications.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64ac808a01ad8f5ad3d31ac840872be681be1351dd54197e853789ba2f9a6a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): pkg/github/secret_scanning.go:61-70 | pkg/github/secret_scanning.go:169-177 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/secret_scanning.go:169\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/github/secret_scanning.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"806d5c11d4484421a9516a4b91f002859fd29ee780acd219da9c7ddcebc26b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): pkg/github/git.go:84-91 | pkg/github/pullrequests.go:1383-1390 | pkg/github/repositories.go:192-199 | pkg/github/repositories.go:770-778 | pkg/github/repositories.go:986-993 | pkg/github/repositories.go:2805-2812 | pkg/github/code_scanning.go:152-159 | pkg/github/dependabot.go:145-152 | pkg/github/secret_scanning.go:148-155 | pkg/github/security_advisories.go:260-268 \u2014 there are 10 copies across 7 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 10 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/git.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2168ca2e0a84bde1f4756630049b58fc651747957a64ecba113578e120a033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): pkg/github/discussions.go:762-770 | pkg/github/issue_dependencies.go:68-75 | pkg/github/issue_dependencies.go:258-265 | pkg/github/issues.go:656-664 | pkg/github/issues.go:1427-1435 | pkg/github/issues.go:2212-2220 | pkg/github/projects.go:232-241 | pkg/github/projects.go:703-712 | pkg/github/pullrequests.go:85-93 \u2014 there are 9 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 9 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/discussions.go"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d235c21c068a07258cd8004f25aeda649150424aa111e99eb84a4280f897a15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): pkg/github/issues.go:2279-2289 | pkg/github/pullrequests.go:1387-1394 | pkg/github/code_scanning.go:160-167 | pkg/github/dependabot.go:149-156 | pkg/github/secret_scanning.go:152-159 | pkg/github/security_advisories.go:273-281 | pkg/github/security_advisories.go:439-447 \u2014 there are 7 copies across 6 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. 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/github/issues.go"},"region":{"startLine":2279}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d230ee96475ddf2a2b96241e78eb29bd60cb27d07fc5a7aebce4d0b2ca5979d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): pkg/github/repositories.go:1854-1861 | pkg/github/repositories.go:1957-1964 | pkg/github/security_advisories.go:192-199 | pkg/github/security_advisories.go:301-308 | pkg/github/security_advisories.go:368-375 | pkg/github/security_advisories.go:467-474 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/repositories.go:1854\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/github/repositories.go"},"region":{"startLine":1854}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11438f00c93cc8594e2673f30dc5aae1263d0a1546441d0658bef7eb0a09db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): pkg/github/issue_dependencies.go:266-273 | pkg/github/issues.go:1436-1443 | pkg/github/issues_granular.go:1066-1073 | pkg/github/issues_granular.go:1136-1143 | pkg/github/issues_granular.go:1213-1220 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issue_dependencies.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e405c36c2c2fd3e1523f90f6a734a4e38da3dcbcb8c8c946f9e6fa0d5966604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): pkg/github/issues_granular.go:359-366 | pkg/github/issues_granular.go:577-584 | pkg/github/issues_granular.go:762-769 | pkg/github/issues_granular.go:932-939 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues_granular.go"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54a46bc62e636f15770d3e95c9ee52ba7061f8e1cb225aae0ee7b6c97503e77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): pkg/github/search.go:64-71 | pkg/github/search.go:235-242 | pkg/github/search.go:354-361 | pkg/github/search.go:564-571 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/search.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab53cd9553239ab8b03f0d3a9f5b948403928fc7327bb4c58d00fee37e333f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): pkg/github/issues_granular.go:742-749 | pkg/github/issues_granular.go:908-915 | pkg/github/issues_granular.go:1585-1592 \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":"pkg/github/issues_granular.go"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a5ae222723e1623e22fd2446832fdefbea8cbad121950e71158b21cc5a6624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): pkg/github/repositories.go:212-219 | pkg/github/gists.go:49-58 | pkg/github/notifications.go:74-83 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. 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/github/repositories.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e7404472745d9d6d6e8980800d231832346017758ec6c115e0acde62d7d664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/ghmcp/oauth.go:167-174 | internal/ghmcp/oauth.go:240-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/ghmcp/oauth.go:167\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/ghmcp/oauth.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c174c988abb18aa06d286c989db998966f0665005fa1b2e85af96fe00d69f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/actions.go:944-951 | pkg/github/actions.go:1008-1015 \u2014 both copies are in the same file, so extract the block 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":"pkg/github/actions.go"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"23328943c1a9d00f28a8fcaf22dca7b373eaa509a37ada06e70b5a6c94062703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/issues.go:726-733 | pkg/github/issues.go:836-843 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/issues.go:726\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/github/issues.go"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94134a2f2fee77148f32c4549bc932a7a97638fb242b740ba16e723e8bb38f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/issues.go:1244-1251 | pkg/github/pullrequests.go:1241-1248 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues.go:1244\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/github/issues.go"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a81209deb5d27f691e9bc22aacc12c7d92d2856768a14a22cd17e95f6005c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/issues.go:1942-1949 | pkg/github/search_utils.go:152-159 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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":"pkg/github/issues.go"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"2833c2a7c84dc63c3a74011c4aa7b3cc9a8324852ef09f25ce9cab445a620032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/issues.go:2705-2713 | pkg/github/repositories.go:1824-1831 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues.go"},"region":{"startLine":2705}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17b865f35927bcfd178346292b3feade0eae07774be08679b0ed1ab8c777b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/issues_granular.go:339-346 | pkg/github/issues_granular.go:557-564 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/issues_granular.go:339\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues_granular.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd47b26a95a52e7f6160822765faa85335ca0b9b538a5dc2ca51b349dd3e8f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/issues_granular.go:750-757 | pkg/github/issues_granular.go:920-927 \u2014 both copies are in the same file, so extract the block 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/github/issues_granular.go"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bf1168fd34f1ece9e6b85a4699b5f343f6ed07134c8515ded4384b64d9be76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/minimal_types.go:654-661 | pkg/github/minimal_types.go:885-892 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/minimal_types.go:654\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/github/minimal_types.go"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef11db9a9d93da75f83899e10b3a2fb54602b324b72e190e7df542d160d5553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/projects.go:272-279 | pkg/github/projects.go:441-448 \u2014 both copies are in the same file, so extract the block 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/github/projects.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"54552dc37786d6fc2e4b5dc00f8e962520866a7273715aef97e1768759839892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/projects.go:450-457 | pkg/github/projects.go:1032-1041 \u2014 both copies are in the same file, so extract the block 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/github/projects.go"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"740fa1d79009c142548dd8c076dc45ec489dd88b30495b5ada9ea877ab5841ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/pullrequests.go:739-746 | pkg/github/pullrequests.go:1391-1398 \u2014 both copies are in the same file, so extract the block 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/github/pullrequests.go"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b8059392062b1533fed40754d34af9d2a85795e8ebaa0cf0895a1b4ea01c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/pullrequests.go:1552-1559 | pkg/github/pullrequests.go:1723-1730 \u2014 both copies are in the same file, so extract the block 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/github/pullrequests.go"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef83efd46c260b58bcaae2f371c0ded63bcf2fff88954457609cbe788e958ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/repositories.go:464-471 | pkg/github/repositories.go:1097-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":"pkg/github/repositories.go"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5699dca1fcba59127603bbd87ec6df8bd5401894179fb4cbf895cbf119e568f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/repositories.go:642-649 | pkg/github/gists.go:309-318 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/repositories.go"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca407d5b021fd1ff2221c7985c58b8c66a876887d7564cbbe4a72e89da9c265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/repositories.go:1277-1284 | pkg/github/repositories.go:1409-1416 \u2014 both copies are in the same file, so extract the block 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/github/repositories.go"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0eba4857c64bc57cb037ac3ba0ef370d274e44ef6bf7c91cb23491aa5ba2e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): pkg/github/labels.go:57-64 | pkg/github/labels.go:283-290 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/labels.go:57\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/github/labels.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a6600acdd149aaf7c573caa81fb80cb158fabc3fc7e16b8f0d23c195aff38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): pkg/github/issue_dependencies.go:116-123 | pkg/github/issue_dependencies.go:134-141 | pkg/github/issue_dependencies.go:366-372 | pkg/github/issues.go:896-906 | pkg/github/issues.go:1529-1538 | pkg/github/issues.go:1577-1587 | pkg/github/issues.go:2498-2507 | pkg/github/pullrequests.go:176-185 | pkg/github/pullrequests.go:225-232 | pkg/github/pullrequests.go:279-288 | pkg/github/pullrequests.go:298-307 | pkg/github/pullrequests.go:398-407 | pkg/github/pullrequests.go:426-435 | pkg/github/pullrequests.go:573-582 \u2014 there are 14 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 14 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/github/issue_dependencies.go:116\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/github/issue_dependencies.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f728a4c5d8ed400ae6b6304590bda757b0abf098c433afd90a25f8148ff504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): pkg/github/copilot.go:865-871 | pkg/github/pullrequests.go:1219-1225 | pkg/github/pullrequests.go:1541-1547 | pkg/github/pullrequests.go:1712-1718 | pkg/github/pullrequests.go:2339-2345 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/copilot.go:865\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/github/copilot.go"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8fdd45092b39414a5e9d50e468e1043483f50946ecfe396faf8c1843ff9ddf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): pkg/github/issues_granular.go:350-356 | pkg/github/issues_granular.go:568-574 | pkg/github/issues_granular.go:753-759 | pkg/github/issues_granular.go:923-929 \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 \u0060pkg/github/issues_granular.go:350\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/github/issues_granular.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91bda59560dc35a92c485f07c7e7bb0d57cbdfce1a4713673feea0f3c860723"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): pkg/github/code_scanning.go:145-151 | pkg/github/dependabot.go:138-144 | pkg/github/secret_scanning.go:141-147 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/code_scanning.go:145\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/github/code_scanning.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"4758dfe2fccaf9c231910aaa1556f8f29e5ac532e96b47d6a2f63cd98b00090a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): pkg/github/gists.go:98-104 | pkg/github/gists.go:158-164 | pkg/github/notifications.go:385-395 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/gists.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d17d9ab6e1152c3f05caf065acce2b5383fc692f65dddf335573030f75f8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/github/issue_dependencies.go:352-358 | pkg/github/issues.go:1497-1507 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issue_dependencies.go:352\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/github/issue_dependencies.go"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abe9db93394d9b64b76485e76c43e6fed786a840c89ed0396b2dc3bef1d3ffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/github/issues.go:1653-1659 | pkg/github/pullrequests.go:1663-1669 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues.go:1653\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/github/issues.go"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ccadc60a9932028c21b6be203b4db8984ddfae545570d47648d5c8131de8af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/github/issues_granular.go:66-72 | pkg/github/pullrequests_granular.go:61-67 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues_granular.go:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues_granular.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89f15d1fa2c7604d2ff1e9f142b66ef6f98629f3a904b10a2061fb3ca6a47f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): pkg/github/projects.go:285-291 | pkg/github/projects.go:480-486 \u2014 both copies are in the same file, so extract the block 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/github/projects.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"233b521e54778366b806857c449604d7909b00d4423a38934bd0957aa66c1a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): pkg/github/notifications.go:68-73 | pkg/github/notifications.go:194-199 | pkg/github/notifications.go:272-277 | pkg/github/notifications.go:357-362 | pkg/github/notifications.go:437-442 | pkg/github/notifications.go:537-542 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/notifications.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5179a82d2602d2bff4de4f0cc18b69e2600d53e7b7139e9b0b8bab30cb22968f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): pkg/github/issues.go:1322-1327 | pkg/github/pullrequests.go:1291-1296 | pkg/github/gists.go:247-252 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues.go:1322\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/github/issues.go"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"5601b60020165b2c7d53e830086aad14dc0bd062a59ac33807ed5f0837215e88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/github/issues.go:1290-1295 | pkg/github/issues_granular.go:1685-1690 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues.go:1290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues.go"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8531ab73a1098c1ae0b934f8386e566006774e2dd3d53e81d420a582f176d555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/github/issues.go:1301-1306 | pkg/github/issues_granular.go:1603-1608 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues.go:1301\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues.go"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d80984f78476439f609898225c5f626833dd21d1a654afcb063d8025dd0c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/github/pullrequests.go:1273-1278 | pkg/github/pullrequests_granular.go:824-829 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/pullrequests.go:1273\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/pullrequests.go"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ebcada35589b82d2d6d75e5737b7e313c08ccef6b61d33a5baaa3af4294004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/github/gists.go:134-139 | pkg/github/gists.go:308-313 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/gists.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"223ccee3efbe510356755645d844760edba507882b1661aab2e9843a64750766"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pkg/github/security_advisories.go:86-91 | pkg/github/security_advisories.go:350-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/security_advisories.go:86\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/github/security_advisories.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6920b281f24fe73e7cfcf36bf017c320df84763686f05451146559db834168c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 10): pkg/github/discussions.go:655-660 | pkg/github/issue_dependencies.go:67-71 | pkg/github/issue_dependencies.go:253-257 | pkg/github/issues.go:655-660 | pkg/github/issues.go:1426-1431 | pkg/github/projects.go:231-236 | pkg/github/projects.go:702-707 | pkg/github/pullrequests.go:84-89 | pkg/github/labels.go:272-276 | pkg/github/ui_tools.go:73-78 \u2014 there are 10 copies across 7 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 10 sites; resolving a subset leaves the remainder to drift apart. 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/github/discussions.go"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72fa0334137100d3ed1645197c9fc3ddee0da0fceb20db1aaec949795c2a6d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): pkg/github/actions.go:693-697 | pkg/github/git.go:78-82 | pkg/github/repositories.go:980-984 | pkg/github/repositories.go:1934-1938 | pkg/github/repositories.go:2240-2244 | pkg/github/repositories.go:2305-2309 | pkg/github/labels.go:149-153 \u2014 there are 7 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 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 \u0060pkg/github/actions.go:693\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/github/actions.go"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"d035bfc28a2fa572227873af03188a48f593cbca66091581c62b20f356e12061"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): pkg/github/issues.go:1422-1426 | pkg/github/issues_granular.go:1057-1061 | pkg/github/issues_granular.go:1127-1131 | pkg/github/issues_granular.go:1204-1208 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues.go:1422\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/github/issues.go"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d78e33d12e271d73e9d975042722a3d4a632bcbb49fb800c6ff2eeb323141d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): pkg/github/issues_granular.go:1576-1580 | pkg/github/issues_granular.go:1658-1662 | pkg/github/pullrequests_granular.go:797-801 \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/github/issues_granular.go:1576\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/github/issues_granular.go"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0e497beb278f37dc2333156af6cc104803e506ad4cc82e125ebd695f8c96dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): pkg/github/repositories.go:637-641 | pkg/github/labels.go:48-52 | pkg/github/labels.go:267-272 \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/github/repositories.go:637\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/github/repositories.go"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fce48b99ec20b341096956b77cd3bb44eb31bd0a2102b9ac37ca9f9d97c5bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): pkg/github/code_scanning.go:47-51 | pkg/github/dependabot.go:48-52 | pkg/github/secret_scanning.go:48-52 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/code_scanning.go:47\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/github/code_scanning.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"706f9baaaa8e3ceff1815beca0abbb995255443ded6e37eda237463902cc63e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/github/context_tools.go:256-261 | pkg/github/security_advisories.go:430-434 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/context_tools.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"787e911b6ef4f7d0aadc2a6e8578783682006af8132419ac69428487f8a865c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/github/issue_fields.go:130-134 | pkg/github/issues.go:1095-1099 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issue_fields.go:130\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/github/issue_fields.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f12e44170f175f2af5a3ae842f2abbc1848ca1a8afbc33d78ea3d55d62cba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/github/issues.go:2207-2211 | pkg/github/pullrequests.go:711-715 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060pkg/github/issues.go:2207\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/github/issues.go"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28f5f319304602fc7917ef02c4bfd5784de64065e912f5557fce5991b8d4239"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/github/projects.go:227-231 | pkg/github/projects.go:378-382 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/projects.go:227\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/github/projects.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3e85f4faa9baf8bcf4721584237d4d41a86b0070b1845c19c3a971a2ad2b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/github/pullrequests.go:715-719 | pkg/github/pullrequests.go:932-936 \u2014 both copies are in the same file, so extract the block 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/github/pullrequests.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c04643e9083f108fdf728f93fa0ccba76de346569637147476ec619e2fc6f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/github/repositories.go:336-340 | pkg/github/repositories.go:1608-1612 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/repositories.go:336\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/github/repositories.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccdf276055d1fa9079745d913538f8cf2aaa45e1a55105df223d851d8072d53f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/github/repositories.go:455-459 | pkg/github/repositories.go:1088-1092 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/repositories.go:455\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/github/repositories.go"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2f5a5997dda5f1af88350cdd3e1ddca0ec30be20db1fe75eff8fea74cf3fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/github/repositories.go:1703-1707 | pkg/github/repositories.go:2013-2017 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/repositories.go:1703\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/github/repositories.go"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf67d58dda1fae6c447b625c46d4808cca8a6d8d52e18ad0897194516e3e163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/github/repositories.go:2105-2109 | pkg/github/gists.go:48-53 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/repositories.go"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a851a6361362a8d66f3b1db060a23dcf3d646a91fa3acaa9a3b8ff2bff81d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pkg/github/pullrequests_granular.go:398-402 | pkg/github/pullrequests_granular.go:528-532 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/github/pullrequests_granular.go:398\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/github/pullrequests_granular.go"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"155884182d12e48f0c3494c25c4813820bb92259e5b88988b221fc778876d5cf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/github/issues.go: pkg/github/issues.go changed 40 times in last 90 days, max complexity 43. 7 of those changes were fix/bug commits, and the other 33 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c080edbca9173dc51a8e1d2cbc4a0e03456222c2ce66edc3dec15b4dd4acc2dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/github/pullrequests.go: pkg/github/pullrequests.go changed 24 times in last 90 days, max complexity 46. 7 of those changes were fix/bug commits, and the other 17 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/pullrequests.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"181533bf47d5d99c261a77ed19d2cd355008d804942465817c777e7b4bb54801"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/github/repositories.go: pkg/github/repositories.go changed 17 times in last 90 days, max complexity 50. 2 of those changes were fix/bug commits, and the other 15 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/repositories.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af8f554def331327eca31327cd614a9cb86dc24a861ac8ede40fa75bfc32c70"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/github/issues_granular.go: pkg/github/issues_granular.go changed 13 times in last 90 days, max complexity 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/issues_granular.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"462fa1baa6f75ded132a851871f9f338b6e8f352b500f21cfb880390b38d572e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/github/minimal_types.go: pkg/github/minimal_types.go changed 19 times in last 90 days, max complexity 22. 3 of those changes were fix/bug commits, and the other 16 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/minimal_types.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5509f53d3b07d31260ba2f6aefdafaa4d09b94564d85c52123f9bc2aee0a2f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/github/projects.go: pkg/github/projects.go changed 11 times in last 90 days, max complexity 35. 3 of those changes were fix/bug commits, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/projects.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99307d8c9d33bea4ed945005fec19809177af03c3b88625b85ce5f2960d77af3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pkg/github/search.go: pkg/github/search.go changed 13 times in last 90 days, max complexity 17. 2 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/github/search.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1374a8bc86aeca4abff946911d7a82085b870aa411b95fb0cebd2206ed66551"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ui/src/apps/issue-write/App.tsx: ui/src/apps/issue-write/App.tsx changed 5 times in last 90 days, max complexity 43. 1 of those changes was a fix/bug commit, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/apps/issue-write/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca9d6ebaf11791584dccae05d2ceb668cb81a6494a1952da18a35b564649359"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ui/src/apps/pr-write/App.tsx: ui/src/apps/pr-write/App.tsx changed 5 times in last 90 days, max complexity 37. 1 of those changes was a fix/bug commit, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/apps/pr-write/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b575b393ae941801041c96670c10dab2d66cf61acec29afc1e9c6c52204f53bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/ghmcp/server.go: internal/ghmcp/server.go changed 10 times in last 90 days, max complexity 16. 1 of those changes was a fix/bug commit, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ghmcp/server.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b702a1df55ac62256b8f8a397914c9bc15bcbc2af028fd9a1c1af4e9428c2e"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 3 significant file(s) lose their only recent owner: internal/oauth/manager.go, internal/ghmcp/oauth.go, pkg/toolvalidation/readonlyhint.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1713a6fa52b5fbc8e460ba0c23f3356bd690c1f0bd5d130d7443dd7fce61a5e5"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 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 (6 single-owned of 91 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"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":"229e468a9d910c7c3166137fc4435e4ff96516de7e7f073752a9e5c99a58526b"},"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"}}]},{"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":"330e8a0da4a21fd1255f6ebb17e5dbd6d1bd737e915d94464a522efe39231b8a"},"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"}}]},{"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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"67dbefc83345958f977a8cc3c748e9e4ed1d265f92a13fe76226ad6976b73665"},"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"}}]},{"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":"373c9a90a2525d0e6b5aaa63996b76db94f71ef13907147a0fcead535d1d36dd"},"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"}}]},{"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":"39ad5b347218556a19feeb07c3c21832a516c87c3ff1e5d991570d2f19d615ae"},"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"}}]},{"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":"0e78fdab486e69dd7b591775c5c2ab1354d163f8476b7bbe53e3e92472b88968"},"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"}}]},{"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":"d3887800a3bea41c1eccbc936020061785425f043e5ab1c1977c3815c9db7d1d"},"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"}}]},{"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":"c298801ba4029be665bd27d4ca7af06ab67b0e10e40761dd8429079637594319"},"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"}}]},{"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":"43299aded9a6c33333275db60d8ca7287938e6675201abaf0349e1e72330eae2"},"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"}}]},{"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":"55468fb40c95ebbabeb8dc247cbadb942cbc1765afb9a7370a25386d6e11a50f"},"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"}}]},{"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":"0d87615d1645f88f65a4fa0d76fe320042d6c3fadc33874d6a2e64c65036f291"},"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"}}]},{"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":"2392403d48d18f1d63973726d04b6961bccd657d393a5c946e2b2582c7846dbe"},"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"}}]},{"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":"4f3e964f675ebac53bd27313a6f7abb491d6f6d15002c20f49563073f9cb44a2"},"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"}}]},{"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":"2893466ef54cfd267af82dd44f26f5c2058a7d8ba58013201d061b480ebabebf"},"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"}}]},{"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":"2e9f83aff2490e2b36f24a2172e735ef75cc25ebfba3a9fc4425e9feda681b83"},"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"}}]},{"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":"1c98ed47ab224fd7f2af5687770414b1495afe1649fc1839e0f497297636b226"},"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"}}]},{"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":"a3dd2adaf81da38e3c48e60bbce3a1ca78f660c5f277cb0761c656c0351fd49d"},"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"}}]},{"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":"a9f46758d906c19d1e95367445ea12a19107535d8b22ec81925f9e95e3303cee"},"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"}}]},{"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":"d12ef85079892676ad44e782f6f032e8d0f54b88075a4d971b3c85a055a1d33b"},"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"}}]},{"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":"a40d6baae94ac89d12cf27d1f36a504f70c043ea665341e2364333b22d2b223b"},"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"}}]},{"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":"65783fd0eec6f0b828e801b6d6251d886ab4060ff445ee8d02a8933144c47e09"},"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"}}]},{"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":"2be58ab57d296207a3d57fec814c563d63d492fda51defb9f9fd0d43f6ba4531"},"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"}}]},{"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":"d2256a5d156835728b96593c1baa293b50db78459c2ab1e6dc810b66acda4912"},"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"}}]},{"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":"3d20817741b8b6ab206a33ec6e6863e47f48807a88f96be5e3a1de95253a9d84"},"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"}}]},{"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":"0f88d413317bc91dbca5e763a584cbd96d0d53d5f8ae3320420061fe3402d825"},"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"}}]},{"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":"566f63d8575e22cb91a38c0b10e974d9cc3b3164a014a960dec64d3d1393da95"},"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"}}]},{"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":"c26743c88404afca9aaaf97d23937c65513a24ff65ab3c2f2387bed1d8218cdf"},"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"}}]},{"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":"c87ae30254db4e37050be3f8b40fb0933cc4b677502e8fca8e614526ae4f3255"},"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"}}]},{"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":"bdf8258bcd29651c4120c8301238c20b4a2195a629209e89491d74affa7be8e4"},"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"}}]},{"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":"2ec7ba51c8e0786e3e233fffce020eca0db90264c0ec927c2b7482aa39fdf574"},"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"}}]},{"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":"f47ae4407d240d921b8e085c7961a0bcc0143ef48b4bfdd559319bebff2f311e"},"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"}}]},{"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":"5766fb922d4d98f4f2210c01976179b07567002f392977eda2752fc1c901d21e"},"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"}}]},{"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":"0c0bd6f22ad9d0ddbe9f36b0a1cca69f089348812f6e6d88c9c5c998444067d8"},"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"}}]},{"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":"ded9b047f84bae735f050ab5e1a68b9b698656406633a32bd498b05305955a07"},"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"}}]},{"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":"4a2d8ce49c8bdd77659014b38d42e6c3902156f2cf907f73b0c654eac7105268"},"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"}}]},{"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":"ec35c7448cf8fd991c1165888454a1f46fe2cfb547a60f983b3b4a7555fcb772"},"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"}}]},{"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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"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":"9ff1ee9dd5615e2d512c1b5a7eb9a731208830cdc6ec1c07d8913d2a5c081e3c"}},{"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":"b67787f58bbdcde79a43cc08af597219f8bc8ccd5a82b8588a8f7af6b62ec402"}},{"ruleId":"D31","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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 6 of 91 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 largest first: internal/githubv4mock/githubv4mock.go, internal/githubv4mock/query.go, internal/githubv4mock/objects_are_equal_values.go (and 3 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"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"}},{"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"}},{"ruleId":"D38","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":"3e1a317cd1354b32989959908ce380867501e537c97d6985eabc1cbdff39f9ee"}},{"ruleId":"D38","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":"6379d68c9824a17d55578ecf92a68cf258e2ac5788aefc6a43d11df8d49f8d88"}},{"ruleId":"D38","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":"c6716612208bcca9e0055f8b39821f95eebfbaad0cd5b19504c49d94b509a4a7"}},{"ruleId":"D38","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":"9e33d572e7326505dde6bf1948d5f1c25e5cb2c7e69333efe3a485a2a1be5b0a"}},{"ruleId":"D38","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":"94e02eea5764fec7c68881dfaf08794994cb5f5915475658189d0ffad65d6e22"}},{"ruleId":"D38","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":"231ad4dc838e4a2768e6f7a1e67ca410b16632a9e046ea516d551978147d4308"}},{"ruleId":"D38","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":"4051796ca04a9bea0552328687aa9657656d0e55e232fef3fd8eb7ffd1d7dea4"}}],"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-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-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":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":50,"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."]}]}