{"$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":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"]}},{"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":"projectAPI.CreateProject (cyclomatic 38): projectAPI.CreateProject has cyclomatic complexity 38 (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":"src/server/v2.0/handler/project.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d74a848b6890f7841e0d3d6b3a26203d24a1207cd4855e69f2f2bed5b76bd9"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.deleteDeeply (cyclomatic 36): controller.deleteDeeply has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/artifact/controller.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"962d501fd3949ffc73442f21850ce1b586b5e2d84d19dc000747508f259a2f4f"}},{"ruleId":"D1","level":"warning","message":{"text":"GarbageCollector.sweep (cyclomatic 35): GarbageCollector.sweep has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 8 of the 35 points are its own statements and the rest belongs to one function literal inside it that branches (line 320). 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":"src/jobservice/job/impl/gc/garbage_collection.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18cb1911b6679ae41b246b47df9345843563205c109b4c6045cad41c329f001"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.Create (cyclomatic 31): controller.Create has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/member/controller.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7119831846f1db40adb88cd0240f4ed9665a9f2e30cc27182677df7fafa05e4"}},{"ruleId":"D1","level":"warning","message":{"text":"Job.Run (cyclomatic 29): Job.Run has cyclomatic complexity 29 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 10 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/scan/job.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"43678038ebfc520ffd01ab69169162483853bc712d15df4088478e0843ba8d74"}},{"ruleId":"D1","level":"warning","message":{"text":"basicTracker.retrieve (cyclomatic 27): basicTracker.retrieve has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/job/tracker.go"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c2701b0531fee368dd7dc9eff2a6480506def62c5183a31f9786422b3e3f87"}},{"ruleId":"D1","level":"warning","message":{"text":"subject.Middleware (cyclomatic 27): subject.Middleware 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 99). 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":"src/server/middleware/subject/subject.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b38c31d51ef2a471d99aff4326fb5f3c3e00d80d789fed4b8dabd64b98c96b"}},{"ruleId":"D1","level":"warning","message":{"text":"projectAPI.ListProjects (cyclomatic 26): projectAPI.ListProjects has cyclomatic complexity 26 (threshold 15). Of this number, 25 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":"src/server/v2.0/handler/project.go"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15d3c59f41e6c4bad10b249272586f3ac4680ccf187be3901381e58b25da0b4"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisJob.Run (cyclomatic 25): RedisJob.Run has cyclomatic complexity 25 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 8 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/runner/redis.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d253c56536a61fc581d078c6900a822b714e0c957e9b94bacfcb7981ec3836a9"}},{"ruleId":"D1","level":"warning","message":{"text":"OIDCController.Callback (cyclomatic 24): OIDCController.Callback 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":"src/core/controllers/oidc.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a645f93bd2b265bb0194019db1ae2e73a9f1a4848f9e79ca9eb27d168d7292"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 24): main.main has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/core/main.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"6babbd95fbff926b421137010a842c0ab92aa2397ab46666af30e152ad00f303"}},{"ruleId":"D1","level":"warning","message":{"text":"registryAPI.PingRegistry (cyclomatic 24): registryAPI.PingRegistry 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":"src/server/v2.0/handler/registry.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f4cc6f03ec360bfb93c7cf3a0e4c643a7688f9b2faee85a693906ebe8a94f1"}},{"ruleId":"D1","level":"warning","message":{"text":"basicController.Scan (cyclomatic 23): basicController.Scan has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/scan/base_controller.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff848a969109c16b380901545d913730d2263b72c919d602008c7ff2abfc729"}},{"ruleId":"D1","level":"warning","message":{"text":"Configuration.loadEnvs (cyclomatic 23): Configuration.loadEnvs has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/config/config.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e226b4106719a110f172988642564e46a99abfe618a71ae2f809f364ac2885"}},{"ruleId":"D1","level":"warning","message":{"text":"provider.MockDragonflyProvider (cyclomatic 23): provider.MockDragonflyProvider 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 33). 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. Note where this lives, though: it is a test double declared in the package\u0027s stand-in module, so its branching is FIXTURE SURFACE \u2014 the shape the tests need the stand-in to have \u2014 rather than production logic anyone will read or maintain. The measurement stands, but the usual payoff of splitting it does not: decompose it only if a test is hard to write or hard to read against it. The change that pays here is to shrink what the double has to imitate \u2014 narrow the interface it stands in for, or move it beside the tests that consume it so it is graded with them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/p2p/preheat/provider/mock.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d08ae25bf9db8210d52809223a96239c8cd25279ed996ef00500e6a6e285cb"}},{"ruleId":"D1","level":"warning","message":{"text":"launcher.Launch (cyclomatic 23): launcher.Launch has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/retention/launcher.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4865d3c1ee9cedcc45325cd71dfd6f53f351d341989ae88c4d8813b2a8d167bf"}},{"ruleId":"D1","level":"warning","message":{"text":"quota.RequestMiddleware (cyclomatic 23): quota.RequestMiddleware has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 63). 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":"src/server/middleware/quota/quota.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8d9d5e62294e54041315a00e7128b550ff2b2c851de212d0537a43ce97c68c"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.UpdatePolicy (cyclomatic 22): controller.UpdatePolicy 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":"src/controller/p2p/preheat/controller.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40a27b991971337f8e470dd60635986840a2e267b05ba3b04fb349a3581947f"}},{"ruleId":"D1","level":"warning","message":{"text":"Job.Run (cyclomatic 22): Job.Run has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/p2p/preheat/job.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ba06ab4dbe77d31011f0712b74a85983358b5140495e06fa612be7b227fe0f"}},{"ruleId":"D1","level":"warning","message":{"text":"repoproxy.handleManifest (cyclomatic 22): repoproxy.handleManifest 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":"src/server/middleware/repoproxy/proxy.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d539cfc1a9d71e5a15996d7f19bd3cecbb0ef672d2fffa12e878f99d2c124ea"}},{"ruleId":"D1","level":"warning","message":{"text":"basicController.GetScanLog (cyclomatic 21): basicController.GetScanLog has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/scan/base_controller.go"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e916090c6d59b81e3e4a73632691ab4c4ef3d90e40972989cf7ba55d5fb0100"}},{"ruleId":"D1","level":"warning","message":{"text":"ScanDataExport.writeCsvFile (cyclomatic 21): ScanDataExport.writeCsvFile 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":"src/jobservice/job/impl/scandataexport/scan_data_export.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d88b8efc06cc36670ef848829393178a2dd92b5cf28985a1b0860ea77c16df"}},{"ruleId":"D1","level":"warning","message":{"text":"Resolver.Resolve (cyclomatic 21): Resolver.Resolve 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":"src/pkg/auditext/event/basic.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a141c98ebd5b9c0bd98a7f7a78fadaaee3dd24e23dccb29faf3afaeea575eb"}},{"ruleId":"D1","level":"warning","message":{"text":"resolver.Resolve (cyclomatic 21): resolver.Resolve has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/auditext/event/member/member.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"767b9fb8ff4bebf60e94698295c6c5f8bb760bcbb47b4d70f8ae687339089ba2"}},{"ruleId":"D1","level":"warning","message":{"text":"adapter.FetchArtifacts (cyclomatic 21): adapter.FetchArtifacts has cyclomatic complexity 21 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 10 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/dockerhub/adapter.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ea66f381c928c24c70beb3e652f7193bda08ab359fe6fb8a6d57f15fff0854"}},{"ruleId":"D1","level":"warning","message":{"text":"Policy.Validate (cyclomatic 20): Policy.Validate 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":"src/controller/replication/model/model.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3953fbd2f323c75b11bd2bcb67ad1f51a1c9560f8e5f1c754b5c965e3271e00"}},{"ruleId":"D1","level":"warning","message":{"text":"basicController.startScanAll (cyclomatic 20): basicController.startScanAll 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":"src/controller/scan/base_controller.go"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"0051e6fc6986f8b0d46ffad8bfe898802b220b33790e395d2a9d96cb2e546d47"}},{"ruleId":"D1","level":"warning","message":{"text":"Configuration.validate (cyclomatic 20): Configuration.validate 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":"src/jobservice/config/config.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f03c516738f5bbd6a99d1d6870fb6132dd35aa19e3d90f69958457784850db2"}},{"ruleId":"D1","level":"warning","message":{"text":"adapter.FetchArtifacts (cyclomatic 20): adapter.FetchArtifacts has cyclomatic complexity 20 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/volcenginecr/artifact_registry.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e83e65eecbfbfe5d65ecf4a41ec286abac28b848586cf6fde46fa50bcafc7ff"}},{"ruleId":"D1","level":"warning","message":{"text":"processor.Process (cyclomatic 20): processor.Process has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 89, 128). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/retention/policy/alg/or/processor.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bff243fa1209481085a89a9514a06a354ef098d92ff10d3d664c2f13377bf7e"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.UseLocalManifest (cyclomatic 19): controller.UseLocalManifest has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/proxy/controller.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd36641b3837cc052cbbf6a9b4ca71a326b73c1bc77a3fff5e3b3bdc3eeea15b"}},{"ruleId":"D1","level":"warning","message":{"text":"basicManager.GetPeriodicExecution (cyclomatic 19): basicManager.GetPeriodicExecution 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":"src/jobservice/mgt/manager.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c61725c41ed700795a91123557983057ea1afabb44a458730659a510c37296f"}},{"ruleId":"D1","level":"warning","message":{"text":"adapter.FetchArtifacts (cyclomatic 19): adapter.FetchArtifacts 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":"src/pkg/reg/adapter/gitlab/adapter.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bd4dba7f69db533f49cb0d395dc9a781eb6b5fa2a9d4108be019b3520f6b0b"}},{"ruleId":"D1","level":"warning","message":{"text":"Adapter.PrepareForPush (cyclomatic 19): Adapter.PrepareForPush 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":"src/pkg/reg/adapter/harbor/base/adapter.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4128aa34b5e26b5ac6f4c6ddd4484754e13d68710a87e2a8774ea4122c258404"}},{"ruleId":"D1","level":"warning","message":{"text":"vulnerable.Middleware (cyclomatic 19): vulnerable.Middleware 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 42). 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":"src/server/middleware/vulnerable/vulnerable.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd077aacde7f36823282ebeeef2c3eebaeffc64860f6b61529ecfc0a54530371"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.copyDeeply (cyclomatic 18): controller.copyDeeply 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":"src/controller/artifact/controller.go"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"2678e28186a0b18a9bad79f1797b5edf7c52f68fec6f9dedcfc7e6f20811ae49"}},{"ruleId":"D1","level":"warning","message":{"text":"controller.Walk (cyclomatic 18): controller.Walk 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":"src/controller/artifact/controller.go"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"da92bbe8834055f85aab8c21949390b93f9c4ff6f02cf15bfc26b0d4d62400e6"}},{"ruleId":"D1","level":"warning","message":{"text":"defaultEnforcer.PreheatArtifact (cyclomatic 18): defaultEnforcer.PreheatArtifact 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":"src/controller/p2p/preheat/enforcer.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"729bd6094d8bbe03557dfdb75d4b170496c12ca5ff4bc0a9eda4f46a2bff8aa3"}},{"ruleId":"D1","level":"warning","message":{"text":"model.parseFilters (cyclomatic 18): model.parseFilters 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":"src/controller/replication/model/model.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1711c9900a027858bbf758ee4c611645c331239a6c12037aa8ed8cf852d129ce"}},{"ruleId":"D1","level":"warning","message":{"text":"basicController.GetVulnerable (cyclomatic 18): basicController.GetVulnerable 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":"src/controller/scan/base_controller.go"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc1634a02aa12019e9ab35a2e88e3f0d161bedee8de5018eec11894db62e0b8"}},{"ruleId":"D1","level":"warning","message":{"text":"PolicyMigrator.Migrate (cyclomatic 18): PolicyMigrator.Migrate has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/migration/migrator_v180.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d617a6fa50e453386c4b87e2de24e38aa43ec79e9d3837fb5191f5a421083a"}},{"ruleId":"D1","level":"warning","message":{"text":"Bootstrap.LoadAndRun (cyclomatic 18): Bootstrap.LoadAndRun has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 6 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":"src/jobservice/runtime/bootstrap.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"513542b79d4b2f963986aea635beae47b9154b143a48c8b0e126c131fc9ca544"}},{"ruleId":"D1","level":"warning","message":{"text":"selector.Select (cyclomatic 18): selector.Select 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":"src/lib/selector/selectors/doublestar/selector.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"df24f7458c80f4ea690a21b60a6b226c45b546102385c4e3242823322a0d8566"}},{"ruleId":"D1","level":"warning","message":{"text":"adapter.FetchArtifacts (cyclomatic 18): adapter.FetchArtifacts has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/aliacr/adapter.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"766de22848d12e6bf19f4f1386e1601782ee8de690ede629cf730dd8ad0309c4"}},{"ruleId":"D1","level":"warning","message":{"text":"adapter.PrepareForPush (cyclomatic 18): adapter.PrepareForPush 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":"src/pkg/reg/adapter/dtr/adapter.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"67762e6f203b5d35d04101de91c3cefbb64899fb48ffb8280303ba2a7ce6b15f"}},{"ruleId":"D1","level":"warning","message":{"text":"replicationAPI.CreateReplicationPolicy (cyclomatic 18): replicationAPI.CreateReplicationPolicy has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/replication.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d31a9270e2b9e88d142b6c919997ff6e031d70ac462edc6c75511eb9496cd0"}},{"ruleId":"D1","level":"warning","message":{"text":"statisticAPI.GetStatistic (cyclomatic 18): statisticAPI.GetStatistic 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":"src/server/v2.0/handler/statistic.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"229066cdcc7d57a92bd5d8392370d37d3a73744a302130ae9dc38d94b0ac0348"}},{"ruleId":"D1","level":"warning","message":{"text":"artifact.constructReplicationPayload (cyclomatic 17): artifact.constructReplicationPayload has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/event/handler/webhook/artifact/replication.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ec3ef2d3cf35028c9bfc3963d3e95a6924aac06f14120aa0ce5be8d7c605f4"}},{"ruleId":"D1","level":"warning","message":{"text":"GarbageCollector.mark (cyclomatic 17): GarbageCollector.mark 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":"src/jobservice/job/impl/gc/garbage_collection.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cc743aefdd46197c68b3b853971d762dc9c42832447fa234bed98471139ffe"}},{"ruleId":"D1","level":"warning","message":{"text":"orm.setFilters (cyclomatic 17): orm.setFilters 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":"src/lib/orm/query.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3284040181b34fb51c47f99b4d117dcdfd1d8373c470d5e69159015d394264"}},{"ruleId":"D1","level":"warning","message":{"text":"referrersHandler.ServeHTTP (cyclomatic 17): referrersHandler.ServeHTTP 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":"src/server/registry/referrers.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"59be13d2d1f894911c432c745aa2a6be8229f4b4f142ac5d777edec65875c3fc"}},{"ruleId":"D1","level":"warning","message":{"text":"gcAPI.kick (cyclomatic 17): gcAPI.kick 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":"src/server/v2.0/handler/gc.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18fc0bfd3782fbde035c6644872bbb4f16d40603e3c26ae534efa0723cb1e1f"}},{"ruleId":"D1","level":"warning","message":{"text":"projectAPI.UpdateProject (cyclomatic 17): projectAPI.UpdateProject has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/project.go"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1be502d50fe972d509127701ec41553e03a767dfaebb26d7a80154a954a490b"}},{"ruleId":"D1","level":"warning","message":{"text":"replicationAPI.UpdateReplicationPolicy (cyclomatic 17): replicationAPI.UpdateReplicationPolicy has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/replication.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1e170849bc7037a8a1c7e27f11babefd7458bfa4c6a2776edb8a8ae387fefa"}},{"ruleId":"D1","level":"warning","message":{"text":"processor.AbstractAddition (cyclomatic 16): processor.AbstractAddition 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":"src/controller/artifact/processor/chart/chart.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0a144bcb0faee443ee9d5564f7763518e0b82174dbde504cb76d1d9a3d52a2"}},{"ruleId":"D1","level":"warning","message":{"text":"ArtifactEventHandler.onDelete (cyclomatic 16): ArtifactEventHandler.onDelete 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":"src/controller/event/handler/internal/artifact.go"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60ae318610666d6de496508e772aa911068c387c6ff73e6d79f51e5fad9208e"}},{"ruleId":"D1","level":"warning","message":{"text":"defaultController.UpdateRetention (cyclomatic 16): defaultController.UpdateRetention 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":"src/controller/retention/controller.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbcd17ff65e31a1d551f793f5abffa5c272ff0840b07c2ad96b1a3c97f345f4"}},{"ruleId":"D1","level":"warning","message":{"text":"OIDCController.RedirectLogout (cyclomatic 16): OIDCController.RedirectLogout 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":"src/core/controllers/oidc.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad55078b4bf769256d90246453e75977d0352365b906798459577ce86068e94c"}},{"ruleId":"D1","level":"warning","message":{"text":"basicAgent.isOutdated (cyclomatic 16): basicAgent.isOutdated 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":"src/jobservice/hook/hook_agent.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cffea0925c0924b6ade3b8df6f4b0e61f6b326d0ef90c2b18a54af35b3b4463"}},{"ruleId":"D1","level":"warning","message":{"text":"adapter.FetchArtifacts (cyclomatic 16): adapter.FetchArtifacts has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/tencentcr/artifact_registry.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"462a32cd97cc24732bb3a2e7b8efe539c62e3744ac69575ae93c4472dd55e175"}},{"ruleId":"D1","level":"warning","message":{"text":"artifactTagFilter.Filter (cyclomatic 16): artifactTagFilter.Filter 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":"src/pkg/reg/filter/artifact.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"39620f113a4d10193e89f17ca5df0b8c3be5899b5cd23c528b31ad04b5d0bcd9"}},{"ruleId":"D1","level":"warning","message":{"text":"Filter.Validate (cyclomatic 16): Filter.Validate 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":"src/pkg/reg/model/policy.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d7784baa8105c301ccb2fe99daa6a5d2cdc015e4ba4eddf1e707e190285390"}},{"ruleId":"D1","level":"warning","message":{"text":"client.Copy (cyclomatic 16): client.Copy 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":"src/pkg/registry/client.go"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb7641989b176e886f71a7d6ca76daa281720a0ae28c0fa6d7a0c5634861c20"}},{"ruleId":"D1","level":"warning","message":{"text":"nativeToRelationalSchemaConverter.toSchema (cyclomatic 16): nativeToRelationalSchemaConverter.toSchema 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":"src/pkg/scan/postprocessors/report_converters.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3da6adba6844e448d4d391f1c000b938efd4ef142f335da0504afcf2444123b"}},{"ruleId":"D1","level":"warning","message":{"text":"scheduler.Schedule (cyclomatic 16): scheduler.Schedule has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/scheduler/scheduler.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcace8a1a38711d8071066b743a7f305cd0aa5429ab1e736667bcd7833172c41"}},{"ruleId":"D1","level":"warning","message":{"text":"HookHandler.Handle (cyclomatic 16): HookHandler.Handle 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":"src/pkg/task/hook.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"05276c87897105473801431b7906c1c53e6cfedb2503e03aeb59ac57bca0de45"}},{"ruleId":"D1","level":"warning","message":{"text":"cosign.SignatureMiddleware (cyclomatic 16): cosign.SignatureMiddleware 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 102). 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":"src/server/middleware/cosign/cosign.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc2124958fe64af3830c0cadb961a3d10e8bd9e1dcb709bb2043f87ee5bd612"}},{"ruleId":"D1","level":"warning","message":{"text":"repoproxy.handleBlob (cyclomatic 16): repoproxy.handleBlob has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: 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":"src/server/middleware/repoproxy/proxy.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b2d56df3e2b84fa8d945bc2a3621a1d25260718d2e88c434e00a5949cd1d7a"}},{"ruleId":"D1","level":"warning","message":{"text":"registry.getManifest (cyclomatic 16): registry.getManifest 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":"src/server/registry/manifest.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7883dbb6a571ede0e52b925abf1106336a14f6ccd41696c460f80d08480ae1f"}},{"ruleId":"D1","level":"warning","message":{"text":"replicationAPI.ListReplicationExecutions (cyclomatic 16): replicationAPI.ListReplicationExecutions has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/replication.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfd1bb14bb2518972a065310b86762db8afaa2150b63c47d607af9742e459dc"}},{"ruleId":"D2","level":"warning","message":{"text":"GarbageCollector.sweep (cognitive 124): GarbageCollector.sweep has cognitive complexity 124 (threshold 15). Drivers by points: if/else 114, loops 8, boolean chains 2 (nesting depth added 89). Most of this is not in the body itself: 7 of the 124 points are its own statements and the rest belongs to one function literal inside it that branches (line 320). 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":"src/jobservice/job/impl/gc/garbage_collection.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"989c82c957979b88a35b121ab948dc73cd0d8f5de95ed14725704507f8fb227b"}},{"ruleId":"D2","level":"warning","message":{"text":"PolicyMigrator.Migrate (cognitive 57): PolicyMigrator.Migrate has cognitive complexity 57 (threshold 15). Drivers by points: if/else 55, boolean chains 1, loops 1 (nesting depth added 38). Of this number, 56 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":"src/jobservice/migration/migrator_v180.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9664ff56d24a537512fa600a107f138252ad4db2bbbb50cd1f3963b2dda10a"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.Walk (cognitive 56): controller.Walk has cognitive complexity 56 (threshold 15). Drivers by points: if/else 41, loops 15 (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":"src/controller/artifact/controller.go"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4a2066da97d1e7b7a138abb3e43b8de122f016af9d1adf405b8f170222279a"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.deleteDeeply (cognitive 51): controller.deleteDeeply has cognitive complexity 51 (threshold 15). Drivers by points: if/else 37, loops 8, boolean chains 6 (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":"src/controller/artifact/controller.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a9c3ad3c97953eabb14c87fee7b0f95236a03eac0a60449ffe795e59b65b91"}},{"ruleId":"D2","level":"warning","message":{"text":"Job.Run (cognitive 51): Job.Run has cognitive complexity 51 (threshold 15). Drivers by points: if/else 42, loops 5, match/switch 3, boolean chains 1 (nesting depth added 23). Of this number, 27 points are the body\u0027s own statements and 24 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":"src/pkg/scan/job.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa6b0e40d3403cf66fdcb9a107ee13963d3d1d6128ca283c5b3791febbf6fdc"}},{"ruleId":"D2","level":"warning","message":{"text":"projectAPI.CreateProject (cognitive 49): projectAPI.CreateProject has cognitive complexity 49 (threshold 15). Drivers by points: if/else 41, boolean chains 8 (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/project.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e15b624ee5156443002e7f4d9036760e0b026c13928b2825bc0fe1c272535e"}},{"ruleId":"D2","level":"warning","message":{"text":"projectAPI.ListProjects (cognitive 49): projectAPI.ListProjects has cognitive complexity 49 (threshold 15). Drivers by points: if/else 38, loops 6, boolean chains 5 (nesting depth added 22). Of this number, 47 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/project.go"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"5785b19b2673ecf20a705514185badc15555f28b1437ac1b5585085b26360357"}},{"ruleId":"D2","level":"warning","message":{"text":"Configuration.loadEnvs (cognitive 47): Configuration.loadEnvs has cognitive complexity 47 (threshold 15). Drivers by points: if/else 46, boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/config/config.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b126e92266590b89caaec163609458749f01602d3224916399e7f9f6ceca318"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.Create (cognitive 46): controller.Create has cognitive complexity 46 (threshold 15). Drivers by points: if/else 44, boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/member/controller.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afd158e6420a503178da452a182f109e2333dd5910d6546cef70f42b61fd3d7"}},{"ruleId":"D2","level":"warning","message":{"text":"artifactTagFilter.Filter (cognitive 44): artifactTagFilter.Filter has cognitive complexity 44 (threshold 15). Drivers by points: if/else 41, loops 3 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/filter/artifact.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32b2930358d111113dd8da961acf8a780aef0a78af415618e036bf11bc2167e"}},{"ruleId":"D2","level":"warning","message":{"text":"launcher.Launch (cognitive 43): launcher.Launch has cognitive complexity 43 (threshold 15). Drivers by points: if/else 31, loops 10, match/switch 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/retention/launcher.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"792ffdfd4e901cee08494e7ad261e8bbfb343349feb3382060e51a837880c71b"}},{"ruleId":"D2","level":"warning","message":{"text":"processor.Process (cognitive 43): processor.Process has cognitive complexity 43 (threshold 15). Drivers by points: if/else 29, loops 12, match/switch 2 (nesting depth added 22). Of this number, 16 points are the body\u0027s own statements and 27 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":"src/pkg/retention/policy/alg/or/processor.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e10396ddf645c4aba4e3e6d8a1040100b3d3e75cfc00de34ae2d827629e5a3"}},{"ruleId":"D2","level":"warning","message":{"text":"registryAPI.PingRegistry (cognitive 43): registryAPI.PingRegistry has cognitive complexity 43 (threshold 15). Drivers by points: if/else 39, boolean chains 4 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/registry.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"529b3e461e5c84a3397344bbf13276875283f64f7c6c6b5b00d95a426cc00640"}},{"ruleId":"D2","level":"warning","message":{"text":"model.parseFilters (cognitive 42): model.parseFilters has cognitive complexity 42 (threshold 15). Drivers by points: if/else 28, loops 9, match/switch 3, boolean chains 2 (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":"src/controller/replication/model/model.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15384249d9063169c666913aedf41c7303090989fee958fcdd27122cf07ad9d"}},{"ruleId":"D2","level":"warning","message":{"text":"ScanDataExport.writeCsvFile (cognitive 42): ScanDataExport.writeCsvFile has cognitive complexity 42 (threshold 15). Drivers by points: if/else 36, loops 5, boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/job/impl/scandataexport/scan_data_export.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a9397414c329693c35808180fe471134f98679566263f473251ba8a9bf98f1"}},{"ruleId":"D2","level":"warning","message":{"text":"subject.Middleware (cognitive 42): subject.Middleware has cognitive complexity 42 (threshold 15). Drivers by points: if/else 36, loops 3, match/switch 2, boolean chains 1 (nesting depth added 20). Most of this is not in the body itself: 0 of the 42 points are its own statements and the rest belongs to one function literal inside it that branches (line 99). 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":"src/server/middleware/subject/subject.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5313305face7a48eea9fd4f63ff1d86f941e280852639c58c8ea45f4d65013f8"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.FetchArtifacts (cognitive 41): adapter.FetchArtifacts has cognitive complexity 41 (threshold 15). Drivers by points: if/else 29, loops 12 (nesting depth added 21). Of this number, 16 points are the body\u0027s own statements and 25 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":"src/pkg/reg/adapter/dockerhub/adapter.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"97596731c6092816819bef1886b7e195ab2582f6fcb39aee67797fed190c18f0"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.FetchArtifacts (cognitive 40): adapter.FetchArtifacts has cognitive complexity 40 (threshold 15). Drivers by points: if/else 33, loops 7 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/gitlab/adapter.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"50782d640f2e7883263c3e0bcb215869cfb1c770f7a71bcd50f77b51906d7273"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.FetchArtifacts (cognitive 40): adapter.FetchArtifacts has cognitive complexity 40 (threshold 15). Drivers by points: if/else 31, loops 9 (nesting depth added 20). Of this number, 22 points are the body\u0027s own statements and 18 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":"src/pkg/reg/adapter/volcenginecr/artifact_registry.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"28176176798d68bd3ff81bafd2dfa2e9c08c59368d4efae041277cfb7ed35625"}},{"ruleId":"D2","level":"warning","message":{"text":"referrersHandler.ServeHTTP (cognitive 38): referrersHandler.ServeHTTP has cognitive complexity 38 (threshold 15). Drivers by points: if/else 37, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/registry/referrers.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbcd776c42a88a3553865c06f40ae6931fc0d153cc6c084446b2dfb89538fe6"}},{"ruleId":"D2","level":"warning","message":{"text":"ScanReportAssembler.Assemble (cognitive 38): ScanReportAssembler.Assemble has cognitive complexity 38 (threshold 15). Drivers by points: if/else 34, loops 4 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/assembler/report.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e3350ff848ce9aac0768e08d2ce4d640f1545fe56fd1d878a2b114704e8e28"}},{"ruleId":"D2","level":"warning","message":{"text":"basicController.Scan (cognitive 35): basicController.Scan has cognitive complexity 35 (threshold 15). Drivers by points: if/else 33, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/scan/base_controller.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"27598ed93a79fe56ff9b27524ba829fe1c146484feede7636925f7ecb5e2cd84"}},{"ruleId":"D2","level":"warning","message":{"text":"orm.setFilters (cognitive 35): orm.setFilters has cognitive complexity 35 (threshold 15). Drivers by points: if/else 32, boolean chains 2, loops 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":"src/lib/orm/query.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d19a32401f93c3e78455abb5a1321319ab9cd67d69b963f72d110906f35b763"}},{"ruleId":"D2","level":"warning","message":{"text":"basicManager.GetPeriodicExecution (cognitive 34): basicManager.GetPeriodicExecution has cognitive complexity 34 (threshold 15). Drivers by points: if/else 29, loops 3, boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/mgt/manager.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bd32df56c0ded87d86348a896632e885b99ba87201ba5443b287ed66a9bcb9"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.getProjectsByPattern (cognitive 34): adapter.getProjectsByPattern has cognitive complexity 34 (threshold 15). Drivers by points: if/else 28, loops 6 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/gitlab/adapter.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f705330f2d1a29be8f6f59c78120f48bdec89f54f12f46275483b38d065acd8"}},{"ruleId":"D2","level":"warning","message":{"text":"quota.RequestMiddleware (cognitive 34): quota.RequestMiddleware has cognitive complexity 34 (threshold 15). Drivers by points: if/else 29, boolean chains 3, loops 2 (nesting depth added 11). Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to one function literal inside it that branches (line 63). 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":"src/server/middleware/quota/quota.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b157f3b55b5a98ed2002a41fdf6cd5c7a56cdc922547f81a786fc9446b316a86"}},{"ruleId":"D2","level":"warning","message":{"text":"statisticAPI.GetStatistic (cognitive 34): statisticAPI.GetStatistic has cognitive complexity 34 (threshold 15). Drivers by points: if/else 28, loops 5, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/statistic.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"881fc476b0a213615058a2002124e7374de77fc731498a3a9195e2956b4779ce"}},{"ruleId":"D2","level":"warning","message":{"text":"OIDCController.Callback (cognitive 33): OIDCController.Callback has cognitive complexity 33 (threshold 15). Drivers by points: if/else 33 (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":"src/core/controllers/oidc.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ea72abc3b382b475e836a18bc48e78ad20e3b1bad788d2b724f76c841627ac"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisJob.Run (cognitive 33): RedisJob.Run has cognitive complexity 33 (threshold 15). Drivers by points: if/else 31, loops 1, match/switch 1 (nesting depth added 11). Of this number, 21 points are the body\u0027s own statements and 12 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/runner/redis.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7d19d50f529c4a8249f5f1827e2307952872bf9dc72f9d2ab2cff8c3cb2312"}},{"ruleId":"D2","level":"warning","message":{"text":"provider.MockDragonflyProvider (cognitive 33): provider.MockDragonflyProvider has cognitive complexity 33 (threshold 15). Drivers by points: if/else 32, match/switch 1 (nesting depth added 16). 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 33). 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. Note where this lives, though: it is a test double declared in the package\u0027s stand-in module, so its branching is FIXTURE SURFACE \u2014 the shape the tests need the stand-in to have \u2014 rather than production logic anyone will read or maintain. The measurement stands, but the usual payoff of splitting it does not: decompose it only if a test is hard to write or hard to read against it. The change that pays here is to shrink what the double has to imitate \u2014 narrow the interface it stands in for, or move it beside the tests that consume it so it is graded with them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/p2p/preheat/provider/mock.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"93816e8a150db4395f11ab3fedfb2ba41b399fc83350304ff4c2c30ee0993f9c"}},{"ruleId":"D2","level":"warning","message":{"text":"GarbageCollector.deletedArt (cognitive 32): GarbageCollector.deletedArt has cognitive complexity 32 (threshold 15). Drivers by points: if/else 28, loops 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/job/impl/gc/garbage_collection.go"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c109f603412418f13e75909c80a9713f28b164f1b9cc27009ae92306135426"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.UpdatePolicy (cognitive 31): controller.UpdatePolicy has cognitive complexity 31 (threshold 15). Drivers by points: if/else 26, boolean chains 5 (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":"src/controller/p2p/preheat/controller.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0b2cd1cdd7f5703012e2aba1dd604eef138f06e1351f3b942c4518e345d177"}},{"ruleId":"D2","level":"warning","message":{"text":"basicController.startScanAll (cognitive 31): basicController.startScanAll has cognitive complexity 31 (threshold 15). Drivers by points: if/else 27, match/switch 3, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/scan/base_controller.go"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"9207aaf914d3d3352c9cd2bb8bd615aebac6190ffc2d0e59b35b113a010a01fe"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.PrepareForPush (cognitive 31): adapter.PrepareForPush has cognitive complexity 31 (threshold 15). Drivers by points: if/else 26, loops 5 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/dtr/adapter.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadc822deb25b8210811f33d0f7663e08e3ea2e863f06179cdc7e98930011b76"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.FetchArtifacts (cognitive 31): adapter.FetchArtifacts has cognitive complexity 31 (threshold 15). Drivers by points: if/else 23, loops 8 (nesting depth added 15). Most of this is not in the body itself: 13 of the 31 points are its own statements and the rest belongs to one function literal inside it that branches (line 95). 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":"src/pkg/reg/adapter/tencentcr/artifact_registry.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7206af5874f380d2959e0fa82f9b8a8bc4baf9f008e11540222a5e8e16c92f"}},{"ruleId":"D2","level":"warning","message":{"text":"scan.scanTaskStatusChange (cognitive 30): scan.scanTaskStatusChange has cognitive complexity 30 (threshold 15). Drivers by points: if/else 30 (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":"src/controller/scan/callback.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c829f41f0a22f4af165f8d9cdd8279cd0a58ba5929afb0122d5a2d71dd090f7c"}},{"ruleId":"D2","level":"warning","message":{"text":"basicController.GetScanLog (cognitive 30): basicController.GetScanLog has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21, loops 8, boolean chains 1 (nesting depth added 9). Of this number, 25 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/scan/base_controller.go"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"8184cd3a940c5bd04392b8ba223637627ff0c5449e5fafe66a388423d72b118f"}},{"ruleId":"D2","level":"warning","message":{"text":"Bootstrap.LoadAndRun (cognitive 30): Bootstrap.LoadAndRun has cognitive complexity 30 (threshold 15). Drivers by points: if/else 29, match/switch 1 (nesting depth added 12). Of this number, 21 points are the body\u0027s own statements and 9 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":"src/jobservice/runtime/bootstrap.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"58cec2490a8765a850da9a9391a396fecced5a7213b7de6fb676883c768ec235"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.scanAndRefreshOutdateStatus (cognitive 30): dao.scanAndRefreshOutdateStatus has cognitive complexity 30 (threshold 15). Drivers by points: if/else 25, loops 3, boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/task/dao/execution.go"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e60a5899dea1e04676a3213665cfd28a9b8bdd94b81120ac16cc8d5d3dc9ab"}},{"ruleId":"D2","level":"warning","message":{"text":"repoproxy.handleManifest (cognitive 30): repoproxy.handleManifest has cognitive complexity 30 (threshold 15). Drivers by points: if/else 28, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/middleware/repoproxy/proxy.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b4574ee91f7771ed9918b4fee184ade07bad9495cf72b612f97eca03830f51"}},{"ruleId":"D2","level":"warning","message":{"text":"gcAPI.kick (cognitive 30): gcAPI.kick has cognitive complexity 30 (threshold 15). Drivers by points: if/else 29, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/gc.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"502e0a4d87a1cc1c16a8b5de22b5b11209d9ff119e544f2b5ec880f19eee8798"}},{"ruleId":"D2","level":"warning","message":{"text":"Policy.Validate (cognitive 29): Policy.Validate has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22, boolean chains 4, match/switch 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/replication/model/model.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ae88e01927ed15d6753297031651e8e47ce2b2227aec594ae5f588b849cf18"}},{"ruleId":"D2","level":"warning","message":{"text":"basicScheduler.UnSchedule (cognitive 29): basicScheduler.UnSchedule has cognitive complexity 29 (threshold 15). Drivers by points: if/else 26, loops 2, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/period/basic_scheduler.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96316dcbb315232f286b679ce94a9be2b4f2010ad7383ff274470442d5375d9"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.FetchArtifacts (cognitive 29): adapter.FetchArtifacts has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, loops 8 (nesting depth added 12). Of this number, 21 points are the body\u0027s own statements and 8 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":"src/pkg/reg/adapter/aliacr/adapter.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a9e13988429e173ba97ebf919c212e3b6ede1f39db6e266e486a967e82311e"}},{"ruleId":"D2","level":"warning","message":{"text":"Adapter.PrepareForPush (cognitive 29): Adapter.PrepareForPush has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22, loops 6, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/harbor/base/adapter.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c992b7875f776302e311b2985030872450a24d5616930c1ecbb71ea8199e723"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.copyDeeply (cognitive 28): controller.copyDeeply has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24, loops 3, jumps 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":"src/controller/artifact/controller.go"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e40434fdd228b61be69147aeed81e3918cf5ae4231c88a93ef9ccd857d6a1c"}},{"ruleId":"D2","level":"warning","message":{"text":"FileNode.AddNode (cognitive 28): FileNode.AddNode has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24, boolean chains 3, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/artifact/processor/cnai/parser/util.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5e323d908edc631796e1be0d0cd9833b91d5b3d0eab374a890a8743f0cbbba"}},{"ruleId":"D2","level":"warning","message":{"text":"defaultController.UpdateRetention (cognitive 28): defaultController.UpdateRetention has cognitive complexity 28 (threshold 15). Drivers by points: if/else 26, match/switch 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/retention/controller.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8bfcf06eece9e3572ad812ceca93b7e8ef3f8304821b77ddbca6be483c7102"}},{"ruleId":"D2","level":"warning","message":{"text":"GarbageCollector.mark (cognitive 28): GarbageCollector.mark has cognitive complexity 28 (threshold 15). Drivers by points: if/else 27, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/job/impl/gc/garbage_collection.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cca6d830fd219f56091ab9c7ae2fb65ed6dae0c3bec42c6bb495e419ed0f5a"}},{"ruleId":"D2","level":"warning","message":{"text":"GarbageCollector.markOrSweepUntaggedBlobs (cognitive 28): GarbageCollector.markOrSweepUntaggedBlobs has cognitive complexity 28 (threshold 15). Drivers by points: if/else 25, loops 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/job/impl/gc/garbage_collection.go"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"29248aadfa15b9d40c1cf8441f8e600c06e3039edd847a96686bdbc0107b6f93"}},{"ruleId":"D2","level":"warning","message":{"text":"Resolver.Resolve (cognitive 28): Resolver.Resolve has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, boolean chains 4, 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":"src/pkg/auditext/event/basic.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1152a3436ce20f23f8dc38130f4073709ec42692d6e01b41ef9c884bb55bf6db"}},{"ruleId":"D2","level":"warning","message":{"text":"retainAction.Perform (cognitive 28): retainAction.Perform has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24, loops 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/retention/policy/action/performer.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d485cb85244caa0daf9b4d879be65de27127b6aa2f764f31c4cf0f938a8c800d"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 27): main.main has cognitive complexity 27 (threshold 15). Drivers by points: if/else 27 (nesting depth added 3). Of this number, 24 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"src/core/main.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"097cfed522df258670c2449e0baf631726116cdbbad961f67774b3d6feac042f"}},{"ruleId":"D2","level":"warning","message":{"text":"Job.Run (cognitive 27): Job.Run has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19, match/switch 6, boolean chains 1, loops 1 (nesting depth added 10). Of this number, 25 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/p2p/preheat/job.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f59dd46a3c058b299e1f876f440800255ef62f039574b1782f6ba2726dec46"}},{"ruleId":"D2","level":"warning","message":{"text":"robotAPI.validate (cognitive 27): robotAPI.validate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18, loops 8, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/robot.go"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce70bfa8e778c2945fe01b3e013cd28510244d4f9b93b13794136a4efff4b1b"}},{"ruleId":"D2","level":"warning","message":{"text":"defaultEnforcer.PreheatArtifact (cognitive 26): defaultEnforcer.PreheatArtifact has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, loops 4, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/p2p/preheat/enforcer.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"968a4dec8884116593a5bd943929452b1eca46a365c5252fcfadb99733598195"}},{"ruleId":"D2","level":"warning","message":{"text":"reaper.syncOutdatedStats (cognitive 26): reaper.syncOutdatedStats has cognitive complexity 26 (threshold 15). Drivers by points: if/else 26 (nesting depth added 11). 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 139). 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":"src/jobservice/worker/cworker/reaper.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be3298fcfb88c2ea9768b3246aa38d22ab8daabe46035fd8f56aa40361b58b2"}},{"ruleId":"D2","level":"warning","message":{"text":"selector.Select (cognitive 26): selector.Select has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, boolean chains 3, match/switch 2, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/selector/selectors/doublestar/selector.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"576f9de303246f09ea59fd6bcb959729033fb20fc8f59ef0e9668b9d43c2d3f9"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.Sync (cognitive 25): controller.Sync has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, loops 7 (nesting depth added 10). Of this number, 20 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/blob/controller.go"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1e7fc53363f798856b4c0702270750ecbcf171edfdc489295e513b42fb15f4"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.StartRegularHealthCheck (cognitive 25): controller.StartRegularHealthCheck has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19, loops 4, match/switch 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/registry/controller.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecef5721ff9832134451cc475c5a94270a645ee1e500ddcfa3217c4a25b0c44"}},{"ruleId":"D2","level":"warning","message":{"text":"basicController.GetVulnerable (cognitive 25): basicController.GetVulnerable has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19, loops 4, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/scan/base_controller.go"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"763c8028d43349dc2aaa4ca6367bc69469877897b10073ea3c97a27edbc52b38"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.listCandidateTags (cognitive 25): adapter.listCandidateTags has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, loops 3, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/volcenginecr/volccr.go"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b92c10f356941ebf87260b27a16028dca04f9648d5e42300ded0e714c6fc28"}},{"ruleId":"D2","level":"warning","message":{"text":"client.Copy (cognitive 25): client.Copy has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, match/switch 2, boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/registry/client.go"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cf21d9e0b7ba0917c19ba7d09b3fed630c448bd75a5e7b7aa64116f450175e"}},{"ruleId":"D2","level":"warning","message":{"text":"registryAPI.UpdateRegistry (cognitive 25): registryAPI.UpdateRegistry has cognitive complexity 25 (threshold 15). Drivers by points: if/else 25 (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":"src/server/v2.0/handler/registry.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f4f221fa595476be85885e9a3ec7b8ce394923362dc4b67a39ad57f39ec9b1"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.GetAndIteratePagination (cognitive 24): Client.GetAndIteratePagination has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, loops 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/http/client.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a709c52503393fc831ba9c0e8dea41a91c88d4cdd142147b36ffd2abc5021ac7"}},{"ruleId":"D2","level":"warning","message":{"text":"processor.AbstractAddition (cognitive 24): processor.AbstractAddition has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, match/switch 3, boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/artifact/processor/chart/chart.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"2804a6582eeebc1ef811976b0f30bee9ae0ff49133667cf72592d5bd4cff22dc"}},{"ruleId":"D2","level":"warning","message":{"text":"basicController.GetRegistrationByProject (cognitive 24): basicController.GetRegistrationByProject has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, 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":"src/controller/scanner/base_controller.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"9feedf9a8b3e0193a68b3f0a927042be733dfecfa04584eeceef8d78b492b28b"}},{"ruleId":"D2","level":"warning","message":{"text":"Configuration.validate (cognitive 24): Configuration.validate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 22, 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":"src/jobservice/config/config.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae44163a419b6359204be071a48ff3346b3a32899ccff28306af1576083498e8"}},{"ruleId":"D2","level":"warning","message":{"text":"Filter.Validate (cognitive 24): Filter.Validate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, boolean chains 3, loops 2, 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":"src/pkg/reg/model/policy.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73b2503bc016165e62ffe53bb04e99d41d683749d454c69a16f5019fdbe46ca"}},{"ruleId":"D2","level":"warning","message":{"text":"cosign.SignatureMiddleware (cognitive 24): cosign.SignatureMiddleware has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, loops 1 (nesting depth added 9). 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 102). 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":"src/server/middleware/cosign/cosign.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d47c0d138fce148127fdb399899a0f4520d362216d95ea9cb2f68f46e95b878"}},{"ruleId":"D2","level":"warning","message":{"text":"projectAPI.validateProjectReq (cognitive 24): projectAPI.validateProjectReq has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/project.go"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc179c98869b4e8fe6efeecd97bd0cbddcc7a40f820ebe08d1843bcf6b63e94"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.Run (cognitive 23): Worker.Run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, loops 3, boolean chains 1 (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/sync/schedule.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9942aa8fb5693d969ec22222910ee4b2820ab8af8d07c67680d2ac0ee894336"}},{"ruleId":"D2","level":"warning","message":{"text":"reaper.scanLocks (cognitive 23): reaper.scanLocks has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, loops 4 (nesting depth added 13). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/worker/cworker/reaper.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d4a3878d5ea0ecc6838d6b9ae837afbf2753d757258de1c1360fed6a7384f5"}},{"ruleId":"D2","level":"warning","message":{"text":"CfgManager.ValidateCfg (cognitive 23): CfgManager.ValidateCfg has cognitive complexity 23 (threshold 15). Drivers by points: if/else 21, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/config/manager.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c3928b3205ee027fcd1ad44a7feb6796244affa95058404e175ecec1cc2792"}},{"ruleId":"D2","level":"warning","message":{"text":"basicClient.GetCandidates (cognitive 23): basicClient.GetCandidates has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, loops 8, match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/retention/dep/client.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21c55f208223429c2404dbec8305167f38fef9d7ffbf35cfc7ff0c8f10fae5e"}},{"ruleId":"D2","level":"warning","message":{"text":"Metadata.ValidateRetentionPolicy (cognitive 23): Metadata.ValidateRetentionPolicy has cognitive complexity 23 (threshold 15). Drivers by points: if/else 22, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/retention/policy/models.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f615058601f6b4bdf09718b8e5bc12ba8dda422e343d8d622d2dfe2cef1a8b3d"}},{"ruleId":"D2","level":"warning","message":{"text":"vulnerable.Middleware (cognitive 23): vulnerable.Middleware has cognitive complexity 23 (threshold 15). Drivers by points: if/else 21, boolean chains 1, loops 1 (nesting depth added 5). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 42). 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":"src/server/middleware/vulnerable/vulnerable.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c9a59784a8410467508de842ff1f8e48c081a4e65c39b7b67a577e15d5bb8f"}},{"ruleId":"D2","level":"warning","message":{"text":"auditlogAPI.checkPermissionAndBuildQuery (cognitive 23): auditlogAPI.checkPermissionAndBuildQuery has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, loops 3, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/auditlog.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7439d6ec20cbcee1b6239f53c7f2b224d27a3d7c66a3aa551b189887a913338"}},{"ruleId":"D2","level":"warning","message":{"text":"CfgManager.GetUserCfgs (cognitive 22): CfgManager.GetUserCfgs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/config/manager.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3176adacc8468f68d227e18d44ace115ea0b675f9385f6806097c57d6f6aa008"}},{"ruleId":"D2","level":"warning","message":{"text":"DragonflyDriver.CheckProgress (cognitive 22): DragonflyDriver.CheckProgress has cognitive complexity 22 (threshold 15). Drivers by points: loops 15, if/else 6, match/switch 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/p2p/preheat/provider/dragonfly.go"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed531ee90a6ad4f36a25e052e9ff6d91c10d908e34efbb95a91a80e80071889"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.buildInClauseSQLForExtraAttrs (cognitive 22): dao.buildInClauseSQLForExtraAttrs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, loops 6, 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":"src/pkg/task/dao/execution.go"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf40f2b814ba418c350b369a39311aa93162057819d01da396c4b5da33df57a"}},{"ruleId":"D2","level":"warning","message":{"text":"reqChecker.check (cognitive 22): reqChecker.check has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/middleware/v2auth/auth.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2851178a6d1337bb753f85b031db8a859f4f4b41d26801d348287fe4442c79"}},{"ruleId":"D2","level":"warning","message":{"text":"registry.getManifest (cognitive 22): registry.getManifest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/registry/manifest.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37d271fc1bf9f0242a498fffe27e42a7c50244470901d880b91481f8a2fef71"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.UseLocalManifest (cognitive 21): controller.UseLocalManifest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, boolean chains 6 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"src/controller/proxy/controller.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ae7159dcb7c52e1140509e254440538591447d982e9e1b51c650d5429f4ef2"}},{"ruleId":"D2","level":"warning","message":{"text":"OIDCController.RedirectLogout (cognitive 21): OIDCController.RedirectLogout has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/core/controllers/oidc.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa8b9669c50d81ee1fe67332eb774183143fdc7365b7cf022333d27b922d430"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationWatcher.UnHandle (cognitive 21): NotificationWatcher.UnHandle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, loops 3 (nesting depth added 11). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 133). 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":"src/pkg/notifier/notifier.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"88daa8fe85ff7c67449d0c904c7f6806e1c425fe565c8acbb99a0e2c3f0bbcb9"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.FetchArtifacts (cognitive 21): adapter.FetchArtifacts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, loops 5 (nesting depth added 11). Of this number, 15 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":"src/pkg/reg/adapter/harbor/v1/adapter.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd03f1600a3a6b0394ea2219e2ad0632a7037c44df999c232d4c56e4715694ac"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.FetchArtifacts (cognitive 21): adapter.FetchArtifacts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, loops 5 (nesting depth added 11). Of this number, 15 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":"src/pkg/reg/adapter/harbor/v2/adapter.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f71213aaef5e42e1de7b8e2ecf984db2eb695d5254f300b56aaa9c70655f03"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultFilterProcessor.ProcessTagFilter (cognitive 21): DefaultFilterProcessor.ProcessTagFilter has cognitive complexity 21 (threshold 15). Drivers by points: loops 12, if/else 9 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/scan/export/filter_processor.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"924f20f9a8bce3705545c8efc3322619ef2ba29c08149d758c5990ee254a27ac"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.checkQFilter (cognitive 21): dao.checkQFilter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, match/switch 3, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/securityhub/dao/security.go"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f46357a9ef179cee0a1ba98df7e64aa7bbfd9a06eb32ea39d35bcd466d5770"}},{"ruleId":"D2","level":"warning","message":{"text":"HookHandler.Handle (cognitive 21): HookHandler.Handle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/task/hook.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c690855f0410ac91206c5712fa51bda4eae91518df015da6710a0362f5d2ff0"}},{"ruleId":"D2","level":"warning","message":{"text":"repositoryHandler.ServeHTTP (cognitive 21): repositoryHandler.ServeHTTP has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/registry/catalog.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece84930a7b7dc2e6c42f461c68d09acf415f899a4e1d7ea9960637c028ee2fe"}},{"ruleId":"D2","level":"warning","message":{"text":"Artifact.ToSwagger (cognitive 21): Artifact.ToSwagger has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, loops 7 (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":"src/server/v2.0/handler/model/artifact.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b7edcaa9c2cae2ca41cb29c8cf2c5c76177db29b4da080252db7be49ff1374"}},{"ruleId":"D2","level":"warning","message":{"text":"replicationAPI.CreateReplicationPolicy (cognitive 21): replicationAPI.CreateReplicationPolicy has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/replication.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3058b3ad9691e56134ade9adfba73e77f417b74f5374aea1ef2e1392d43760"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtifactEventHandler.onDelete (cognitive 20): ArtifactEventHandler.onDelete has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 4, 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":"src/controller/event/handler/internal/artifact.go"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff03d82606df23740b2aeee74fce8de6da64beede557e949adc940b54998734d"}},{"ruleId":"D2","level":"warning","message":{"text":"logger.Init (cognitive 20): logger.Init has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/logger/base.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"1204f6058654c72ce3f56717ecdfa2ac156bb8532e13cccde1b5f60fc9f5984b"}},{"ruleId":"D2","level":"warning","message":{"text":"orm.parseModel (cognitive 20): orm.parseModel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/orm/metadata.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92d173b721e4fa8535ae688b3edbbac1df6d86f807dc5dcd75a53bf94bb3663"}},{"ruleId":"D2","level":"warning","message":{"text":"retry.Retry (cognitive 20): retry.Retry has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, loops 2, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/retry/retry.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6633cea1bbccb85b08f22b0db45e7edb088b89f8e010fb9eab63a8dac275d5"}},{"ruleId":"D2","level":"warning","message":{"text":"selector.Select (cognitive 20): selector.Select has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, match/switch 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/selector/selectors/severity/selector.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"438dd9027776ec31d0442259610f9a5ead4c2b2b2eefeca25944947233f49c95"}},{"ruleId":"D2","level":"warning","message":{"text":"selector.Select (cognitive 20): selector.Select has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/selector/selectors/signature/selector.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d063ff20826497a0cbcf8b4eb25d3bd090904908d994fa7e2929a26430c8caed"}},{"ruleId":"D2","level":"warning","message":{"text":"authproxy.UserFromReviewStatus (cognitive 20): authproxy.UserFromReviewStatus has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 7, 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":"src/pkg/authproxy/http.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cb21d14894fe810d2709dd2b80cbb40bc6e091caf0b2f43197ae65bf2a3ae1"}},{"ruleId":"D2","level":"warning","message":{"text":"Matcher.Match (cognitive 20): Matcher.Match has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/immutable/match/rule/match.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8edf1c303d7f9d1bfceb2800ba3d2306f64ea15debfbae144db80027915753"}},{"ruleId":"D2","level":"warning","message":{"text":"Adapter.ListProjects (cognitive 20): Adapter.ListProjects has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 6 (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":"src/pkg/reg/adapter/harbor/base/adapter.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb84def4872ae78d4a7dc0b061f29d30d10de8e41908bf06ff1beb91ae013792"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.PrepareForPush (cognitive 20): adapter.PrepareForPush has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/jfrog/adapter.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcca2bb5558cbbc70aac0b4d54b8bef55b7ceb526f8d36bd0e3110949bb3e7d"}},{"ruleId":"D2","level":"warning","message":{"text":"nativeToRelationalSchemaConverter.toSchema (cognitive 20): nativeToRelationalSchemaConverter.toSchema has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 5, 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":"src/pkg/scan/postprocessors/report_converters.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"03025acc46c88d6eccc5c1cf5a937cc6acfcd2a52bece2b8e685b1dba491fea5"}},{"ruleId":"D2","level":"warning","message":{"text":"projectAPI.UpdateProject (cognitive 20): projectAPI.UpdateProject has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/project.go"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b062c33a3b4abc44352e18d8e36f4742886c4399cf95a34c0415f2db813359"}},{"ruleId":"D2","level":"warning","message":{"text":"replicationAPI.UpdateReplicationPolicy (cognitive 20): replicationAPI.UpdateReplicationPolicy has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/replication.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c91424c08e2b3b5439ecb324a0ee1f1e119f4cf99939586b7d3bad4ab7277c1"}},{"ruleId":"D2","level":"warning","message":{"text":"robotAPI.ListRobot (cognitive 20): robotAPI.ListRobot has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/robot.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfb8b6c9b8453acc74949fcfe333af6d1d41ef96611d9a8c6577ed930aa13e4"}},{"ruleId":"D2","level":"warning","message":{"text":"searchAPI.Search (cognitive 20): searchAPI.Search has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/search.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ca5ca8170b9da84856b7e6a5c1e059ad85199dffe34fbf85b4eeb1ee055649"}},{"ruleId":"D2","level":"warning","message":{"text":"api.extractQuery (cognitive 19): api.extractQuery has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (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":"src/jobservice/api/handler.go"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1666469c457cd315d9a5e871dc0e17f42e616732d85a2dedcba55018271812d"}},{"ruleId":"D2","level":"warning","message":{"text":"replication.parseParams (cognitive 19): replication.parseParams has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (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":"src/jobservice/job/impl/replication/replication.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"70061ab70420b418dc28b452673d533ae842bf84348557877039eca11492fd69"}},{"ruleId":"D2","level":"warning","message":{"text":"lib.ParseLinks (cognitive 19): lib.ParseLinks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, loops 3, 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":"src/lib/link.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8138cdb24a90a2c0dac7523e16d3f5d0686f58c16fb83b85cc2c3f42639c5ae4"}},{"ruleId":"D2","level":"warning","message":{"text":"resolver.Resolve (cognitive 19): resolver.Resolve has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 5, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/auditext/event/member/member.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b80332d1eccac6f0c5c41855dc778cf9cdab3d8f3e5c68ec0b58f51beb13ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Metadata.Valid (cognitive 19): Metadata.Valid has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/retention/policy/models.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7452f5822bc1a6cfbd1d0e28f014979d33814265c5625b395cd067ceb01026d7"}},{"ruleId":"D2","level":"warning","message":{"text":"index.Valid (cognitive 19): index.Valid has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/retention/policy/rule/index/index.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2df1e3da4f3f43f9c3aa7051533a95bef601585ad9b118849f34aefc7d67043"}},{"ruleId":"D2","level":"warning","message":{"text":"Options.GetKey (cognitive 19): Options.GetKey has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/token/options.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1526bfcb54941c19f585f18096e603403636a820cfc04006231e6d473531ed23"}},{"ruleId":"D2","level":"warning","message":{"text":"scan.constructScanImagePayload (cognitive 18): scan.constructScanImagePayload has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/event/handler/webhook/scan/scan.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd1ff3706c9613dfe9964d246665a8f276694dd83e1c824f6c08c32fd68f9ce"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.Update (cognitive 18): controller.Update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/project/controller.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2683d775091ee0c9abb5853205243bc1883a68af12a30bd4f46ad9a9882e62"}},{"ruleId":"D2","level":"warning","message":{"text":"Provider.SessionRegenerate (cognitive 18): Provider.SessionRegenerate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/core/session/session.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25f7587dd7f5d32a2648b250586b31ccf72149f767e73ffb0d678a237c84c28"}},{"ruleId":"D2","level":"warning","message":{"text":"GarbageCollector.parseParams (cognitive 18): GarbageCollector.parseParams has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/job/impl/gc/garbage_collection.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"79181fa9bf5d6caf51f4593792fe736dcdbf911ba7e15ed92bf19c39c2f171c7"}},{"ruleId":"D2","level":"warning","message":{"text":"basicTracker.retrieve (cognitive 18): basicTracker.retrieve has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, match/switch 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/job/tracker.go"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f973e707b98946461831c45ef1c156870af92c659a341a8453bfdc81f2606c9"}},{"ruleId":"D2","level":"warning","message":{"text":"basicManager.GetJobs (cognitive 18): basicManager.GetJobs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/mgt/manager.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30882f9c4b48e1502c90b5f14c14654390125eb2f147edb79dd06b3f81731b5"}},{"ruleId":"D2","level":"warning","message":{"text":"redis.getSentinelPool (cognitive 18): redis.getSentinelPool has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/redis/pool.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"add8bad82f6d090c9f19e7522574ec6a88374f0c6027b0aeadad023ba9cbaf28"}},{"ruleId":"D2","level":"warning","message":{"text":"dao.listOrderBy (cognitive 18): dao.listOrderBy has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, 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":"src/pkg/quota/dao/util.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"030db256d0ff7faf7deb4a8eacd6ee32981f6256eb1830320f872bca257f33c1"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.PrepareForPush (cognitive 18): adapter.PrepareForPush has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/huawei/huawei_adapter.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eacb8610a1ff676368849a8fcc58f7c3e52707e16607dcd0f1867576b91d298"}},{"ruleId":"D2","level":"warning","message":{"text":"artifactLabelFilter.Filter (cognitive 18): artifactLabelFilter.Filter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 5 (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":"src/pkg/reg/filter/artifact.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe310c4812b449c8198486111d1a6c07fe7f3f0317253a58010f773fc739bad"}},{"ruleId":"D2","level":"warning","message":{"text":"scanHandler.MakePlaceHolder (cognitive 18): scanHandler.MakePlaceHolder has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 5 (nesting depth added 8). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/scan/vulnerability/vul.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e243b4c9cc0ab4b5cba4c32ce567bb34d295cbbfe0086f38b16de25a4ba2ce"}},{"ruleId":"D2","level":"warning","message":{"text":"projectAPI.ListArtifactsOfProject (cognitive 18): projectAPI.ListArtifactsOfProject has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, loops 1 (nesting depth added 5). Of this number, 14 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/project.go"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"409fabfd78e02ab88c9e3f586f3acde80d86985d963d28ace16d91c1c8ff6efe"}},{"ruleId":"D2","level":"warning","message":{"text":"robotAPI.updateV2Robot (cognitive 18): robotAPI.updateV2Robot has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/robot.go"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17c546c47eaab2329c601a59fa364b9669912220f3257b2ffa2a45cfd8436ee"}},{"ruleId":"D2","level":"warning","message":{"text":"SecurityContext.Can (cognitive 17): SecurityContext.Can has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 5, boolean chains 1 (nesting depth added 6). Most of this is not in the body itself: 2 of the 17 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":"src/common/security/robot/context.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc1d2c94c8f9b3b7f0be013c271ba06a87c1df4c70bcf6ca9d5cba52e403be2"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.Ensure (cognitive 17): controller.Ensure has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/artifact/controller.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cee7cc5e7eb36c0c3b2a2e63ea6f64a83921fb8be9f53d40357c7822a28ea5"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.Get (cognitive 17): controller.Get has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (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":"src/controller/icon/controller.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"08140315d4b3e7b970db85c7e001eecf2360c2307fc448e014f2c8a01f098f2c"}},{"ruleId":"D2","level":"warning","message":{"text":"Auth.PostAuthenticate (cognitive 17): Auth.PostAuthenticate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (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":"src/core/auth/ldap/ldap.go"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57ce9be84e12659768a8f0f14846c87607585b0909ac645c7867c7c06728080"}},{"ruleId":"D2","level":"warning","message":{"text":"Configuration.Load (cognitive 17): Configuration.Load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/config/config.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4677a01db8f127a7fd2c8123258574072f4147414292556b25a3afd747b0bd"}},{"ruleId":"D2","level":"warning","message":{"text":"basicAgent.isOutdated (cognitive 17): basicAgent.isOutdated has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, match/switch 4, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/hook/hook_agent.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7a6782cf0d7dba954aaaf291a8599d1092aedfd565e4b813a6633a2396317d"}},{"ruleId":"D2","level":"warning","message":{"text":"migration.clearDuplicatedPolicies (cognitive 17): migration.clearDuplicatedPolicies has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/migration/migrator_v180.go"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5a4b770d0ff41f9684a86b4c0acb62bb3b3006d683af0d4fea67b317540e03"}},{"ruleId":"D2","level":"warning","message":{"text":"enqueuer.scheduleNextJobs (cognitive 17): enqueuer.scheduleNextJobs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, loops 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":"src/jobservice/period/enqueuer.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d701975d9a0f83a4c09a6b9b88283d30576e4377b6ab0003d5ed9309cabdfb3"}},{"ruleId":"D2","level":"warning","message":{"text":"operator.GetDetails (cognitive 17): operator.GetDetails has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/chart/operator.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"56777f0a8c56ada873c4d33e3b0defad36f8cbc8e31ded76801e3980acf2213c"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.getAndIteratePagination (cognitive 17): Client.getAndIteratePagination has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/dtr/client.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f551d275a0f28b10df9e2faf0170a88af477f10bf3d44d3261cc6e93701c88"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.GetAndIteratePagination (cognitive 17): Client.GetAndIteratePagination has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/gitlab/client.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d330d45958b229cb174581c084644da287d2878d8e08a860d337e31462da139b"}},{"ruleId":"D2","level":"warning","message":{"text":"client.listArtifacts (cognitive 17): client.listArtifacts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 7 (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":"src/pkg/reg/adapter/harbor/v2/client.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"348f7b67fa52589ab3188ea0394b9044cf8ca18b736a0b486e9a0b9bba45df41"}},{"ruleId":"D2","level":"warning","message":{"text":"executionDAO.querySetter (cognitive 17): executionDAO.querySetter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/task/dao/execution.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acc02281227af7fdef5ddbc2680fd0407a86b6e89d899b2116748fc1c194c42"}},{"ruleId":"D2","level":"warning","message":{"text":"repositoryAPI.listAuthorizedProjectIDs (cognitive 17): repositoryAPI.listAuthorizedProjectIDs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/repository.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a413636e194001f61bfb44a8a03ce6a19671df32c46b27daa57fdf361bc8632"}},{"ruleId":"D2","level":"warning","message":{"text":"scanAllAPI.CreateScanAllSchedule (cognitive 17): scanAllAPI.CreateScanAllSchedule has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/scan_all.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45986ca3be70eddbb6b8839c293542731033328a274922663cd572e04c26418"}},{"ruleId":"D2","level":"warning","message":{"text":"artifact.constructReplicationPayload (cognitive 16): artifact.constructReplicationPayload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/event/handler/webhook/artifact/replication.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cd82d3099004a1029fe4ad7f339f0560cc986c1f7dbf67f909b326d8cd5355"}},{"ruleId":"D2","level":"warning","message":{"text":"controller.updateUsageByRedis (cognitive 16): controller.updateUsageByRedis 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: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 273). 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":"src/controller/quota/controller.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91f6db44b7fcb856fc7794ef6947a0c01c83052c8d6656eead727724a830065"}},{"ruleId":"D2","level":"warning","message":{"text":"basicController.GetReport (cognitive 16): basicController.GetReport has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 2, boolean chains 1 (nesting depth added 2). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: 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":"src/controller/scan/base_controller.go"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4076f2a0119131880ef6e825c9f41824277e6e7e9a99d4c2737e6833601ce36"}},{"ruleId":"D2","level":"warning","message":{"text":"Auth.attachGroupParallel (cognitive 16): Auth.attachGroupParallel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 5 (nesting depth added 6). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 155). 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":"src/core/auth/ldap/ldap.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3243e629b65b110005157bee6b1e9ebfc4184a4068b7d0379a910f9fed4f5b"}},{"ruleId":"D2","level":"warning","message":{"text":"migration.getAllJobStatsIDs (cognitive 16): migration.getAllJobStatsIDs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jobservice/migration/migrator_v180.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb9fc6f090c1f3bd78bf6bcd24f118207b59c1339098db5f93a241db5b8af36"}},{"ruleId":"D2","level":"warning","message":{"text":"Database.Save (cognitive 16): Database.Save has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/config/db/db.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1690febc05c22fa8c92a1f00ae70bda1eb7239f6bc06918da841cf363f95dd64"}},{"ruleId":"D2","level":"warning","message":{"text":"Session.SearchUser (cognitive 16): Session.SearchUser has cognitive complexity 16 (threshold 15). Drivers by points: loops 7, if/else 5, match/switch 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/ldap/ldap.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4f7a4ff7c7d0ba8702da23b09a9f330c176198d5f09316a2b2f3b950cf8d2f"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluators.Add (cognitive 16): Evaluators.Add has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 4 (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":"src/pkg/permission/evaluator/evaluator.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5be0009976fc0a0bc60ca921f2a6a9de59acf1e91aa4ffa68b8332ad1c65d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"Errors.Add (cognitive 16): Errors.Add has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 4 (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":"src/pkg/quota/errors.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"176bd9f5ff973b740e200506bf83e9b74ca950532717c0a3a16baabaa535aa4f"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.getRepositories (cognitive 16): Client.getRepositories has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/dtr/client.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f8da1d0e16dc0c68c3f080091004690b4d1523fe9aa744807b8fcce8ed0650"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.listRepositories (cognitive 16): adapter.listRepositories has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 7 (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":"src/pkg/reg/adapter/jfrog/adapter.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"696a48e61ba1ac01c62a7bb496ab78aa7cc5027a7db6a9c1452dde408a326a03"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.listCandidateNamespaces (cognitive 16): adapter.listCandidateNamespaces has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"src/pkg/reg/adapter/volcenginecr/volccr.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a317b9a565be520a1a56c2fb572fe96ac536ed63f30fbaa5c25224add72f1878"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.listNamespaces (cognitive 16): adapter.listNamespaces has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 3, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/volcenginecr/volccr.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83024bb0a1b4db6d18cfe1089f44748753ca2b57e46aaeca51aeeea70e3bbe2"}},{"ruleId":"D2","level":"warning","message":{"text":"adapter.listRepositories (cognitive 16): adapter.listRepositories has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 3, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/volcenginecr/volccr.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d0d6aa7fba72281202755159e36b74ff33faf27a5c61fcf4641e394b8d1bd2"}},{"ruleId":"D2","level":"warning","message":{"text":"index.Get (cognitive 16): index.Get has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/retention/policy/rule/index/index.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3945d72371d2e659842d6cf5dd34dfdedf432dd6de56a0b2784ae268b0ffcf2"}},{"ruleId":"D2","level":"warning","message":{"text":"scheduler.Schedule (cognitive 16): scheduler.Schedule has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (nesting depth added 1). Of this number, 11 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. 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":"src/pkg/scheduler/scheduler.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0516805bc30bb58b0eef600ae6b7771daf41c15f1f010be757ec81128e021f92"}},{"ruleId":"D2","level":"warning","message":{"text":"sweepManager.ListCandidates (cognitive 16): sweepManager.ListCandidates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/task/sweep_manager.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6892c1d8b68d9c5937701f1aee421062214c3b4f12e6eb147a723888d61b73"}},{"ruleId":"D2","level":"warning","message":{"text":"repoproxy.handleBlob (cognitive 16): repoproxy.handleBlob has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 3, match/switch 1 (nesting depth added 2). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: 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":"src/server/middleware/repoproxy/proxy.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"705853956eb0c95ee6960b4523a15bc334f5cf2f359be47bc06448d2e691d96f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scan/base_controller.go: FileTooLong \u2014 677 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":"src/controller/scan/base_controller.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c79971794b7f525b89c5160acb464cb8c557898557878545636a5ab868a2a1f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FakeOrmer: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/testing/lib/orm/orm.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e03fbbe6e266399fb4e69bbd9c551c44337c7fef5aa402b79d48f3e2601593"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/project.go: FileTooLong \u2014 606 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":"src/server/v2.0/handler/project.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6812a2a5bc0fe5180a997249791ee4de5975f6bdb776fcb75d7f6cf0c1e932a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/preheat.go: FileTooLong \u2014 543 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":"src/server/v2.0/handler/preheat.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce660cada78648351de008540d7f4097cb13e9dd8fe545f54a129451b8c90e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/controller/p2p/preheat/controller.go:504-520 | src/controller/p2p/preheat/enforcer.go:573-589 \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 \u0060src/controller/p2p/preheat/controller.go:504\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/p2p/preheat/controller.go"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dab2f4fe27ad45f8c9d37d26ee0877f3d49652e9e545b76d7a280fe15c5496d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/controller/scan/base_controller.go:1021-1037 | src/pkg/scan/vulnerability/vul.go:179-195 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/scan/base_controller.go:1021\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":"src/controller/scan/base_controller.go"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e58c1075748ca9a1da9e9a181500330af796e2779543d0ebd91d26e4c2fe9f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/pkg/reg/adapter/dtr/client.go:282-298 | src/pkg/reg/adapter/dtr/client.go:325-341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/reg/adapter/dtr/client.go:282\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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":"src/pkg/reg/adapter/dtr/client.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72ff7f68a973559cd862cb7edf9c4c7097139fc03aeed72f05054b3280e6b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/pkg/reg/adapter/jfrog/adapter.go:183-199 | src/pkg/reg/adapter/native/adapter.go:155-171 \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 \u0060src/pkg/reg/adapter/jfrog/adapter.go:183\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":"src/pkg/reg/adapter/jfrog/adapter.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"127f58c5c2193a34e7afabb6bac7d2d0d5b798bcbe151ec95641bbd80d68cc36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/pkg/registry/client.go:162-178 | src/pkg/registry/client.go:209-225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/registry/client.go:162\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/pkg/registry/client.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"398474d8277a42027b6a7f795abd05ac2ec2e787dedc8be6564546c5d10c8457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/pkg/project/dao/dao.go:77-92 | src/testing/suite.go:188-203 \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 \u0060src/pkg/project/dao/dao.go:77\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":"src/pkg/project/dao/dao.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3f8e38df89049087e856587b5475cc1d5e7f8106d97f1c468f33808c10204b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/pkg/p2p/preheat/provider/client/http_client.go:126-141 | src/pkg/p2p/preheat/provider/client/http_client.go:193-207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/p2p/preheat/provider/client/http_client.go:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/pkg/p2p/preheat/provider/client/http_client.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b7ffe433dd329747d42fe1504df9c616b5595030a2e85849f3d8de3fb1d163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/pkg/reg/adapter/dockerhub/adapter.go:232-246 | src/pkg/reg/adapter/quay/adapter.go:237-251 \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 \u0060src/pkg/reg/adapter/dockerhub/adapter.go:232\u0060 it does not close everything it opens, so those exact 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":"src/pkg/reg/adapter/dockerhub/adapter.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"da117b489acfe4d501816161c8299aa2b1f8a66def3197286bed40ab081e1efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/pkg/reg/adapter/harbor/v1/adapter.go:45-59 | src/pkg/reg/adapter/harbor/v2/adapter.go:55-69 \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 \u0060src/pkg/reg/adapter/harbor/v1/adapter.go:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/harbor/v1/adapter.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d03cbbbe3980257bee5625c52eded20f206eb9863577edb5f827e69de315e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/pkg/reg/adapter/volcenginecr/volccr.go:158-172 | src/pkg/reg/adapter/volcenginecr/volccr.go:202-216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/reg/adapter/volcenginecr/volccr.go:158\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":"src/pkg/reg/adapter/volcenginecr/volccr.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"56758c1c4a0e9c2aa7545032378694ac926e1aff0dd326d40dbe4ee714b21a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/pkg/reg/adapter/huawei/huawei_adapter.go:104-117 | src/pkg/reg/adapter/huawei/huawei_adapter.go:221-234 | src/pkg/reg/adapter/huawei/image_registry.go:37-50 | src/pkg/reg/adapter/huawei/image_registry.go:208-221 \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 \u0060src/pkg/reg/adapter/huawei/huawei_adapter.go:104\u0060 it does not close everything it opens, so those exact 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":"src/pkg/reg/adapter/huawei/huawei_adapter.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b5b8ac71d7cdb8446663e3e6acdd1341d6610b14eb2be6740ff2a1289642ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/pkg/audit/dao/dao.go:182-195 | src/pkg/auditext/dao/dao.go:108-121 \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 \u0060src/pkg/audit/dao/dao.go:182\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":"src/pkg/audit/dao/dao.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbf0a536a67713bf3a5b8dcaab2a44888e09699fb0c05186f564c1163035731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/pkg/project/dao/dao.go:59-72 | src/testing/suite.go:170-183 \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 \u0060src/pkg/project/dao/dao.go:59\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/project/dao/dao.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a49b47ac337139a0de40c6376951302f690e55b470760156872247b735b864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/pkg/reg/adapter/aliacr/adapter.go:356-369 | src/pkg/reg/adapter/tencentcr/artifact_registry.go:130-145 \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 \u0060src/pkg/reg/adapter/aliacr/adapter.go:356\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":"src/pkg/reg/adapter/aliacr/adapter.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8fa4796588d3e97581f4c35b89b451f789d8ec5d18547ce54228980f8e6e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/pkg/reg/adapter/githubcr/adapter.go:181-196 | src/pkg/reg/adapter/harbor/v1/adapter.go:83-96 \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 \u0060src/pkg/reg/adapter/githubcr/adapter.go:181\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":"src/pkg/reg/adapter/githubcr/adapter.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"03587dacfe43bf5d74571b57ffb92fa48a2e1aca05ea532dcb64b277679bd355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/pkg/p2p/preheat/provider/mock.go:44-57 | src/pkg/p2p/preheat/provider/mock.go:96-109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/p2p/preheat/provider/mock.go:44\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":"src/pkg/p2p/preheat/provider/mock.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f4ed4b58ad4d90a07c6e0f79af7adb1d843540c9b26c3b81279ad9263edb85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/pkg/p2p/preheat/provider/mock.go:71-84 | src/pkg/p2p/preheat/provider/mock.go:123-136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/p2p/preheat/provider/mock.go:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/p2p/preheat/provider/mock.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04c12f97c9f856335138b7b140af468ee36a659fead693539dc7a4e46b7852a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/pkg/reg/adapter/dockerhub/adapter.go:353-365 | src/pkg/reg/adapter/jfrog/adapter.go:197-209 | src/pkg/reg/adapter/native/adapter.go:169-182 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/reg/adapter/dockerhub/adapter.go:353\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":"src/pkg/reg/adapter/dockerhub/adapter.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"024ea91efe3fe8609ef1dc07fd7892bc17396ed27721315a348ca1fb5812e86b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/controller/quota/controller.go:227-239 | src/controller/quota/controller.go:297-309 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/quota/controller.go:227\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also 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":"src/controller/quota/controller.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"66497f6e58fd1ec3168ce5ad99b401af0f580e12a064f3ecd03c265914357787"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/controller/scan/base_controller.go:1076-1088 | src/pkg/scan/vulnerability/vul.go:139-151 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/scan/base_controller.go:1076\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/scan/base_controller.go"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03284151138dbc5e78c36663c9165afa1fdb33c3c4b2b011898a986d92f3ffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pkg/artifact/manager.go:74-86 | src/pkg/artifact/manager.go:154-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/artifact/manager.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 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":"src/pkg/artifact/manager.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d10d5c85513f6c77f6ab33bc7fef87d0a6fd3c66c82a3b4354d9650e1081b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pkg/audit/dao/dao.go:90-102 | src/pkg/auditext/dao/dao.go:159-171 \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 \u0060src/pkg/audit/dao/dao.go:90\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":"src/pkg/audit/dao/dao.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f7a59437b2eb535a36502265467de7145d4983dc778a4a9950ec75bb7bcca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pkg/reg/adapter/dtr/client.go:146-159 | src/pkg/reg/adapter/dtr/client.go:227-239 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/reg/adapter/dtr/client.go:146\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":"src/pkg/reg/adapter/dtr/client.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f937e3ae86359dd7ee7d11627243a2b746122bdac1df484c1225ca4d4a4c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pkg/retention/policy/rule/dayspl/evaluator.go:78-90 | src/pkg/retention/policy/rule/daysps/evaluator.go:78-90 \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 \u0060src/pkg/retention/policy/rule/dayspl/evaluator.go:78\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":"src/pkg/retention/policy/rule/dayspl/evaluator.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ae7c1c0ee2c4460431ad12594577875f5e65fef77dacf9b2d4531bb4956b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/server/v2.0/handler/preheat.go:705-717 | src/server/v2.0/handler/webhook.go:266-278 \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 \u0060src/server/v2.0/handler/preheat.go:705\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":"src/server/v2.0/handler/preheat.go"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b5d1e2c3703028f2e78fda1ac1005bb853dd7f76b2a056e1dc87299c4b8ac1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/server/v2.0/handler/preheat.go:789-801 | src/server/v2.0/handler/webhook.go:310-322 \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 \u0060src/server/v2.0/handler/preheat.go:789\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":"src/server/v2.0/handler/preheat.go"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"c523aba0f78642487c6ace322f3932ff0aea8b25e04129c3694bc30e94e69621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/server/v2.0/handler/replication.go:106-118 | src/server/v2.0/handler/replication.go:182-194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/replication.go:106\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":"src/server/v2.0/handler/replication.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9110f1de4b057f35ec558e009e756a7fcd97c3415120e653cea90c171db580e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pkg/reg/adapter/volcenginecr/volccr.go:229-241 | src/pkg/reg/adapter/volcenginecr/volccr.go:273-285 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/reg/adapter/volcenginecr/volccr.go:229\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/volcenginecr/volccr.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"111f9df51195b1f6ce18a65979a4136eb863a098fbfedc12ea6fdec30012a0dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/common/job/client.go:159-170 | src/common/job/client.go:184-195 | src/common/job/client.go:237-248 | src/pkg/reg/adapter/quay/adapter.go:233-247 \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 \u0060src/common/job/client.go:159\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":"src/common/job/client.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2176ecdf0b55551b186969fcd066d0b82b9dd1c23dd273e5730b994e14aca164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/common/http/client.go:212-223 | src/pkg/reg/adapter/gitlab/client.go:151-162 \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 \u0060src/common/http/client.go:212\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":"src/common/http/client.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf52f386f43182f85349102d77e4173dba664316a3b3684ecc0d7fa42fa2c1d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/controller/artifact/processor/cnai/parser/license.go:44-55 | src/controller/artifact/processor/cnai/parser/readme.go:44-55 \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 \u0060src/controller/artifact/processor/cnai/parser/license.go:44\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/artifact/processor/cnai/parser/license.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"922201a8bc1c33a4d452f9c57a5e225b1b7b2e7339ce54dba923652772cdb12f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/controller/event/handler/replication/replication.go:70-81 | src/controller/event/handler/replication/replication.go:130-141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/event/handler/replication/replication.go:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/event/handler/replication/replication.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e879b5095a2f2b5bd97f96b2889c9d90dec97d9771c08f15c141010a036a380"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/controller/event/handler/webhook/artifact/replication.go:70-81 | src/controller/event/handler/webhook/artifact/retention.go:74-85 \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 \u0060src/controller/event/handler/webhook/artifact/replication.go:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/controller/event/handler/webhook/artifact/replication.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc698faad8533f71bb8acc8120a7002c37428fc309c2ea6fd9987845480d48b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/controller/scan/base_controller.go:1055-1066 | src/pkg/scan/vulnerability/vul.go:118-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/scan/base_controller.go:1055\u0060 it does not close everything it opens, so those exact 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":"src/controller/scan/base_controller.go"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c5921f31958244d2cdc66db0c6cf48c10518a2133c1597ff467532e160b607"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/pkg/immutable/model/rule.go:52-63 | src/pkg/retention/policy/rule/models.go:52-63 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/immutable/model/rule.go:52\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":"src/pkg/immutable/model/rule.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"467946bed63ce8be31ca5fdaa5551401f43d494a64e586eb4f45ded0e7996afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/pkg/notification/policy/dao/dao.go:142-153 | src/pkg/replication/dao/dao.go:118-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/notification/policy/dao/dao.go:142\u0060 it does not close everything it opens, so those exact 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":"src/pkg/notification/policy/dao/dao.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"849254524201c7e060a75b47f49b521dde918c3e0d469d6cd86863895d27da41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/pkg/reg/adapter/aliacr/adapter.go:336-347 | src/pkg/reg/adapter/dockerhub/adapter.go:328-339 \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 \u0060src/pkg/reg/adapter/aliacr/adapter.go:336\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/aliacr/adapter.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"6076c281cdc1398be190c4edca3dca002b0ce1c4c448466dd1cbfcb63f5a2182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/pkg/reg/adapter/dockerhub/adapter.go:414-425 | src/pkg/reg/adapter/dockerhub/adapter.go:441-452 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/reg/adapter/dockerhub/adapter.go:414\u0060 it does not close everything it opens, so those exact 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":"src/pkg/reg/adapter/dockerhub/adapter.go"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8ec290e3846fc5b748e07b6ae938c6b94eb46f6395176121ea84c6a5a4e837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/pkg/reg/adapter/dtr/client.go:88-99 | src/pkg/reg/adapter/gitlab/client.go:144-155 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/dtr/client.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c748216c197fb70f29a2e9fe35367a3d370b6212b90c91b442624abd8bef4305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/pkg/registry/client.go:182-193 | src/pkg/registry/client.go:229-240 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/registry/client.go:182\u0060 it does not close everything it opens, so those exact 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":"src/pkg/registry/client.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e998a06978ed216d24242d79849917ca3e4b71d70c30383688db9488b9e1fca0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/pkg/registry/client.go:373-384 | src/pkg/registry/client.go:401-412 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/registry/client.go"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8682552ed5720c81dd554e56e0fff944b25165b99a652861a1191ebb2aaddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/pkg/registry/client.go:654-665 | src/registryctl/client/client.go:123-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/registry/client.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":"src/pkg/registry/client.go"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed824fb1a4a47910053879e8895b7cf1b1e22893bbb6883b1b631b2e9b985630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/pkg/retention/policy/rule/index/index.go:193-204 | src/pkg/retention/policy/rule/index/index.go:230-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/retention/policy/rule/index/index.go:193\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/retention/policy/rule/index/index.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc8297aba0feaf84dfabb5092c11c51aef2ef80100229afbb6b300877dc7a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/pkg/reg/adapter/githubcr/adapter.go:156-166 | src/pkg/reg/adapter/jfrog/adapter.go:167-177 | src/pkg/reg/adapter/native/adapter.go:139-149 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/reg/adapter/githubcr/adapter.go:156\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/githubcr/adapter.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5528276452415908c66823c272505d578f82bb32156667e748cdc7427bce922b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/pkg/retention/policy/rule/dayspl/evaluator.go:61-71 | src/pkg/retention/policy/rule/daysps/evaluator.go:61-71 | src/pkg/retention/policy/rule/latestpl/evaluator.go:59-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/retention/policy/rule/dayspl/evaluator.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dce404c11193adca16792340c20e6b428d2a0632c12bc8fd4a8c557b08da021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/controller/artifact/processor/image/manifest_v2.go:103-113 | src/controller/artifact/processor/wasm/wasm.go:119-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/artifact/processor/image/manifest_v2.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":"src/controller/artifact/processor/image/manifest_v2.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"672a3eb3700e3468bb81341e0f2a05d2a9439645917ec495553569c3461859b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/controller/event/handler/replication/replication.go:103-113 | src/controller/event/handler/replication/replication.go:164-174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/event/handler/replication/replication.go:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/controller/event/handler/replication/replication.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcf4a077d5c3c0b5bd01f875329642ed7cdae023742baabd4b668c03a228d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/controller/gc/controller.go:133-143 | src/controller/gc/controller.go:151-161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/gc/controller.go:133\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":"src/controller/gc/controller.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ff942c85c09c5a4ce240216cde164517c3bcabc67156137b42340913759a51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/controller/replication/execution.go:233-243 | src/controller/replication/execution.go:270-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/replication/execution.go:233\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":"src/controller/replication/execution.go"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf089b516fa62b2acf1d56dd8db20549caf7b9655ec0a003a4a090ec881fcd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/jobservice/job/impl/notification/slack_job.go:138-148 | src/jobservice/job/impl/notification/webhook_job.go:122-132 \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 \u0060src/jobservice/job/impl/notification/slack_job.go:138\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":"src/jobservice/job/impl/notification/slack_job.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca14e7c2188e5c569595c8dc37a7dc174e45a6026e9017758ea5c635d2f31028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pkg/audit/dao/dao.go:167-177 | src/pkg/auditext/dao/dao.go:93-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/audit/dao/dao.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":"src/pkg/audit/dao/dao.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c5b27360d984929b746c3cd971c1c0ab12a129b268afffa275700f7424a208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pkg/cached/artifact/redis/manager.go:98-108 | src/pkg/cached/artifact/redis/manager.go:122-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/cached/artifact/redis/manager.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":"src/pkg/cached/artifact/redis/manager.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3709d84d03beee9fe1c29cb6c4fa4bee85256ca5f4a72a6ee17fb9ac1f2012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pkg/cached/repository/redis/manager.go:91-101 | src/pkg/cached/repository/redis/manager.go:115-125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/cached/repository/redis/manager.go:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/pkg/cached/repository/redis/manager.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"893034b122c1363e839582e297f245bba3a6e3c1683dd633ae077e81fb22102b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pkg/reg/adapter/dockerhub/adapter.go:131-141 | src/pkg/reg/adapter/quay/adapter.go:153-163 \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 \u0060src/pkg/reg/adapter/dockerhub/adapter.go:131\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/dockerhub/adapter.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5e60d607d4380c99c5eb84d9044bbda90429723998309087e83091604dc6d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pkg/reg/adapter/githubcr/adapter.go:96-107 | src/pkg/reg/adapter/huawei/huawei_adapter.go:273-283 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/reg/adapter/githubcr/adapter.go:96\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/pkg/reg/adapter/githubcr/adapter.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c4494422c993832eb86157f95f69a8d31365649f31c152ba2e17a2027fd4de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pkg/reg/adapter/githubcr/adapter.go:202-212 | src/pkg/reg/adapter/native/adapter.go:217-227 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/githubcr/adapter.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57887bcc2294507a3322259d24883f95b411f79430f4494cbea215274b6149f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pkg/reg/adapter/harbor/v1/client.go:33-43 | src/pkg/reg/adapter/harbor/v2/client.go:40-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/reg/adapter/harbor/v1/client.go:33\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":"src/pkg/reg/adapter/harbor/v1/client.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"58326e7b20e488ac55a727dbd7c6df9a2a38e1ee1242bc6c474a97e0c93242da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/server/middleware/cosign/cosign.go:125-135 | src/server/middleware/blob/put_manifest.go:70-80 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"src/server/middleware/cosign/cosign.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e98de25fca170f9b9667d244fa1f894288df5e0505bbda8148ae75479eb54d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/server/v2.0/handler/preheat.go:262-272 | src/server/v2.0/handler/preheat.go:295-305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/preheat.go:262\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":"src/server/v2.0/handler/preheat.go"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d523f2199cedccef89a07fee190e0ac3c6f1b9b2ec44fa68f8019edcc3e971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/server/v2.0/handler/project.go:646-656 | src/server/v2.0/handler/scanner.go:149-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/project.go"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"6faa1857dd0f48bb82c0c15ad83e5381b6cefc4de353534d0b0a2e6a7035986f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/server/v2.0/handler/scanexport.go:115-125 | src/server/v2.0/handler/scanexport.go:164-174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/scanexport.go:115\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":"src/server/v2.0/handler/scanexport.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25b0c18bc8c77375d11fbdb40e513a24e384d77c1309d7c85404cc1ef9cf8a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/server/v2.0/handler/scanexport.go:135-145 | src/server/v2.0/handler/scanexport.go:232-242 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/scanexport.go:135\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":"src/server/v2.0/handler/scanexport.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"236c4f90c1df2ff716fee27538073481d1688307992b46897980974fe33621e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/server/v2.0/handler/scanner.go:73-83 | src/server/v2.0/handler/scanner.go:213-223 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/scanner.go:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/scanner.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4bb2a65a44512d95daf6b2a4cc0cbeac2e7e1a9f3e1f34b27f357d493b65f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/common/http/client.go:157-168 | src/pkg/reg/adapter/dtr/client.go:135-144 | src/pkg/reg/adapter/dtr/client.go:216-225 \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 \u0060src/common/http/client.go:157\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/http/client.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b757df06bc67d9234ba2908753cfef69bb2b07a3c95792c3bcaa61d86112ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/common/http/client.go:181-191 | src/pkg/reg/adapter/dtr/client.go:63-73 | src/pkg/reg/adapter/gitlab/client.go:121-130 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/common/http/client.go:181\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/http/client.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42e63e727cb155079c8f56c0dca99c50245c38fbce2a5ddb8df3b0a196200de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/server/v2.0/handler/preheat.go:334-343 | src/server/v2.0/handler/preheat.go:428-437 | src/server/v2.0/handler/preheat.go:679-688 \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 \u0060src/server/v2.0/handler/preheat.go:334\u0060 it does not close everything it opens, so those exact 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":"src/server/v2.0/handler/preheat.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e32d1883f9b4e9377bce4435ab4a9232dfec0c41247b6faae43c807d9243362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/controller/event/metadata/tag.go:39-48 | src/controller/event/metadata/tag.go:66-75 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/event/metadata/tag.go:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/event/metadata/tag.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1584604dd276e00dadc09cbe03c7f789b448c1bf04f3f3db528e41927d7d3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/core/auth/ldap/ldap.go:61-70 | src/core/auth/ldap/ldap.go:276-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. 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":"src/core/auth/ldap/ldap.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed8daa89edbf74333d8e34fa5a447899000d662eb865735153796ae13610ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/pkg/reg/adapter/dtr/adapter.go:156-165 | src/pkg/reg/adapter/jfrog/adapter.go:120-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/reg/adapter/dtr/adapter.go:156\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":"src/pkg/reg/adapter/dtr/adapter.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3899b743c61dc4757d150ec17794ef32374238937c80b54634cac6eefe4044c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/server/middleware/repoproxy/proxy.go:140-149 | src/server/middleware/repoproxy/proxy.go:309-318 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/middleware/repoproxy/proxy.go:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/server/middleware/repoproxy/proxy.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02d99f5c6b9252d1cd1fc9af235cc607bee8dc4ed2924ce3364a76f6470bda7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/server/v2.0/handler/auditlog.go:105-114 | src/server/v2.0/handler/project.go:321-330 \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":"src/server/v2.0/handler/auditlog.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5127cca103cd85f9295f0c88e07e1520fec08d9f8d5ef157787f0e478de73b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/server/v2.0/handler/gc.go:94-103 | src/server/v2.0/handler/gc.go:121-130 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/gc.go:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/gc.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00b47790b4382c8b32678055145982d6aebf5be8d8a1296e9d839ed14e401d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/server/v2.0/handler/preheat.go:379-388 | src/server/v2.0/handler/preheat.go:684-693 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/preheat.go:379\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/preheat.go"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e6e5268a83a7d4d7a095e9660d38901ec94d041dc0901e9987c04a1593d25b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/server/v2.0/handler/robot.go:130-139 | src/server/v2.0/handler/robot.go:264-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/robot.go:130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/robot.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9107d372ddbecba7403bab44d972c59e845a8e013c5499d44435582f1d8857f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/server/v2.0/handler/robot.go:223-232 | src/server/v2.0/handler/robot.go:242-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/robot.go:223\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":"src/server/v2.0/handler/robot.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cd1de95968bde9a6688a9247fde26b9750d1adcb8f4f398e5083ad08f9a69f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/pkg/reg/adapter/volcenginecr/helper.go:63-72 | src/pkg/reg/util/util.go:49-58 \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 \u0060src/pkg/reg/adapter/volcenginecr/helper.go:63\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. 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":"src/pkg/reg/adapter/volcenginecr/helper.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86f9eb308984918abfe00439765be3ca4f2df1b5035f4e997d82a623921b9a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/server/middleware/blob/post_initiate_blob_upload.go:36-45 | src/server/middleware/blob/put_manifest.go:57-66 \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 \u0060src/server/middleware/blob/post_initiate_blob_upload.go:36\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":"src/server/middleware/blob/post_initiate_blob_upload.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7088aa83c5ad31b5d47e09722a2b928118d06821a149392897b8c17628f37a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/controller/proxy/controller.go:310-318 | src/controller/proxy/manifestcache.go:242-250 \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 \u0060src/controller/proxy/controller.go:310\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":"src/controller/proxy/controller.go"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efaf945e1778f1990599ad3168d59bbba09bba3f543bd08451086931c77a383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/pkg/exporter/statistics_collector.go:123-131 | src/server/v2.0/handler/statistic.go:65-73 \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 \u0060src/pkg/exporter/statistics_collector.go:123\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/exporter/statistics_collector.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d14283cf3cf910ef60ee3b5a45e924dacf4271044e44e74f34297087dfb6ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/pkg/notification/policy/dao/dao.go:130-138 | src/pkg/replication/dao/dao.go:59-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/notification/policy/dao/dao.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. 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":"src/pkg/notification/policy/dao/dao.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b589783e50d039250de59e3dc9799bf5d2d1322477c0139b9f285e70a5dfea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/pkg/reg/adapter/googlegcr/adapter.go:217-225 | src/pkg/reg/adapter/googlegcr/adapter.go:240-248 \u2014 both copies are in the same file, so extract the block 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":"src/pkg/reg/adapter/googlegcr/adapter.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a2c3d96249c4b9b53e0e6361b4485044ad26c9514c7805aa0125d11b90ac55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/pkg/reg/adapter/huawei/huawei_adapter.go:197-205 | src/pkg/reg/adapter/huawei/image_registry.go:136-145 \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. 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":"src/pkg/reg/adapter/huawei/huawei_adapter.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f85bee3229f8c5d765ca99db2627469258413f98caf3e5e0ff60c8ac650403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/pkg/user/dao/user.go:62-70 | src/pkg/user/dao/user.go:82-90 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/user/dao/user.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"321176f2766b6af7484161cee25ecf59e1a00a54ea4e4122a109f5c4a5d1c39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/server/v2.0/handler/artifact.go:112-120 | src/server/v2.0/handler/project.go:751-759 \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":"src/server/v2.0/handler/artifact.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb193d50108c9df9161d3d45722da57a2e8a2c089f3c41b5951d1f50b572f1dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/server/v2.0/handler/artifact.go:322-330 | src/server/v2.0/handler/artifact.go:365-373 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/artifact.go:322\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":"src/server/v2.0/handler/artifact.go"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0c98b79b9b29275708fac58ba02aff8a4b386f168ef1ecd678a25f28234fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/server/v2.0/handler/base.go:200-208 | src/server/v2.0/handler/base.go:218-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/base.go:200\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/base.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc2f342f68e59b3c54f8ef4495695ff5727d1838ae35bb4aee2373de1855b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/server/v2.0/handler/permissions.go:87-95 | src/server/v2.0/handler/permissions.go:98-106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/permissions.go:87\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/permissions.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5d3adef6b7c57235481159905f2ea6eb4c17982e2db396d0c72e39fd7808ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/server/v2.0/handler/project_metadata.go:52-60 | src/server/v2.0/handler/project_metadata.go:121-129 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/project_metadata.go:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/project_metadata.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe2eabf57ed7a42d123f42d38ad4a5cc651610fa26003243b1280f913cdce5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/server/v2.0/handler/repository.go:96-104 | src/server/v2.0/handler/repository.go:184-192 \u2014 both copies are in the same file, so extract the block 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":"src/server/v2.0/handler/repository.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"850b4ecc4533beddedd7edad05cf4873f87811ec166cfb6be451e0883b5d8939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/server/v2.0/handler/webhook.go:251-259 | src/server/v2.0/handler/webhook.go:295-303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/webhook.go:251\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":"src/server/v2.0/handler/webhook.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"9362ca16673411b6a82762d80776ad61961ec015789188bbcfb8c21231784563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/server/v2.0/handler/webhook.go:222-229 | src/server/v2.0/handler/webhook.go:243-250 | src/server/v2.0/handler/webhook.go:284-291 | src/server/v2.0/handler/webhook.go:328-335 \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 \u0060src/server/v2.0/handler/webhook.go:222\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/webhook.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"8667786a80df839e831bbbbfec60d30160b7139cf940c412a8aa25fcb848c34c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/server/v2.0/handler/project.go:312-319 | src/server/v2.0/handler/project.go:964-971 | src/server/v2.0/handler/repository.go:173-182 \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":"src/server/v2.0/handler/project.go"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f3a01fc5919d25021b8c7385f313aeaf15f3423e18c843a473c463fbade446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/controller/event/topic.go:177-184 | src/controller/event/topic.go:208-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/event/topic.go:177\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":"src/controller/event/topic.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"720306f13b1cd605ab6b46c26803117867f639d909a8f463888d636602d05556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/pkg/reg/adapter/dtr/client.go:105-112 | src/pkg/reg/adapter/dtr/client.go:160-167 \u2014 both copies are in the same file, so extract the block 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":"src/pkg/reg/adapter/dtr/client.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c430fb73f5474999255b6c4ba62288dcfbd95571b64abc325d13f1a79d8433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/pkg/reg/adapter/huawei/image_registry.go:51-58 | src/pkg/reg/adapter/huawei/image_registry.go:222-229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pkg/reg/adapter/huawei/image_registry.go:51\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/reg/adapter/huawei/image_registry.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c2f7e8bb7476fcd9a71ffe55e40564a44de2b0e93b294c16c182dddd1d778c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/server/middleware/repoproxy/proxy.go:399-406 | src/server/middleware/repoproxy/proxy.go:449-456 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/middleware/repoproxy/proxy.go:399\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/server/middleware/repoproxy/proxy.go"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67fe0d2e8d29f5f41e92b0acfbdbd95a5ff32259b8b49b370e7070477a90d07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/server/v2.0/handler/label.go:77-84 | src/server/v2.0/handler/label.go:147-154 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/label.go:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/label.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f433e2fad8b4cd35e214bc1a90d93272411bcd43434b892a936e9b9e753f037a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/server/v2.0/handler/model/gc.go:96-103 | src/server/v2.0/handler/purge.go:275-282 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/model/gc.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d4cda70714baf521d22c16c81687027e662258993cbc0fa3e75c664cdce18d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/server/v2.0/handler/preheat.go:652-659 | src/server/v2.0/handler/preheat.go:766-773 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/preheat.go:652\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":"src/server/v2.0/handler/preheat.go"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5d3dde3428f7bb74a2eb6b8749fa503387e41ed705578e411adaf97d2a6e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/server/v2.0/handler/project.go:699-706 | src/server/v2.0/handler/webhook.go:110-118 \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":"src/server/v2.0/handler/project.go"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"729b62a7fd1c2d8b807332c4836b9d1d3f85bf6347bce9e43bc0794f70353503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/server/v2.0/handler/purge.go:84-91 | src/server/v2.0/handler/purge.go:312-319 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/purge.go:84\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":"src/server/v2.0/handler/purge.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dd6e5affad5547a6c348aad40872875fbf9d290aece4d82549459b5ff056bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/server/v2.0/handler/registry.go:93-102 | src/server/v2.0/handler/replication.go:208-215 \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 \u0060src/server/v2.0/handler/registry.go:93\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":"src/server/v2.0/handler/registry.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79dc6b5e7c6e4921045899dd77389e5d90f1b9fb13d9dabadbeb131f0e25c55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/server/registry/route.go:54-61 | src/server/registry/route.go:62-69 \u2014 both copies are in the same file, so extract the block 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":"src/server/registry/route.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f1f0fc03eb6dea624a5c63fd01f0536d491e730acbf845123abc0e0a0b40fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/server/v2.0/handler/artifact.go:153-159 | src/server/v2.0/handler/artifact.go:471-477 | src/server/v2.0/handler/artifact.go:485-491 | src/server/v2.0/handler/scan.go:63-72 \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 \u0060src/server/v2.0/handler/artifact.go:153\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":"src/server/v2.0/handler/artifact.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b90c2835db30fa9ce1e356bb2e359cb2432370b2bc5a453906a3f9c08831da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/server/v2.0/handler/retention.go:294-300 | src/server/v2.0/handler/retention.go:351-357 | src/server/v2.0/handler/retention.go:385-391 \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 \u0060src/server/v2.0/handler/retention.go:294\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/retention.go"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac1753cbc0c3735a35de65bd03750fa0d521c5f1f0a69d418767e212c828f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/core/controllers/base.go:77-83 | src/core/controllers/base.go:121-127 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/core/controllers/base.go:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/core/controllers/base.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4facc00d6695218f1bfcbad50678da0a5d632fe6996e645ac32201023b420b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/server/v2.0/handler/preheat.go:229-235 | src/server/v2.0/handler/preheat.go:423-429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/preheat.go:229\u0060 it does not close everything it opens, so those exact 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":"src/server/v2.0/handler/preheat.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e00cf747dc168eb686477358e2bf810e6b3cbc91c565d2094ff37af1aa04835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/server/v2.0/handler/project_metadata.go:69-75 | src/server/v2.0/handler/project_metadata.go:100-106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/project_metadata.go:69\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":"src/server/v2.0/handler/project_metadata.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"440e443e695f1874d6cf6618c2b61e356d4be19c539676eb962b312e343618d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/server/v2.0/handler/repository.go:230-236 | src/server/v2.0/handler/repository.go:248-254 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/repository.go:230\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":"src/server/v2.0/handler/repository.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cabe21c7bb31c301a2c13b4cfbdd388816dd5a1dd13f4cf418469e9e7d56d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/server/v2.0/handler/retention.go:222-230 | src/server/v2.0/handler/retention.go:300-306 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/retention.go:222\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/server/v2.0/handler/retention.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0de0b90ef1ed441a9443e60fa090b1d99a671b53bdb3483e7696b02e866f63e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/server/v2.0/handler/retention.go:301-307 | src/server/v2.0/handler/retention.go:358-364 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/retention.go:301\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":"src/server/v2.0/handler/retention.go"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c1218b1267b3af5137ece819ee714c36f36621daebf003fd08fb65758e2e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/server/v2.0/handler/retention.go:316-322 | src/server/v2.0/handler/retention.go:346-352 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/retention.go:316\u0060 it does not close everything it opens, so those exact 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":"src/server/v2.0/handler/retention.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1035413caa789528620967d131b21780beab9fb6198973290d7ae2feed312e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/server/v2.0/handler/scanner.go:127-136 | src/server/v2.0/handler/user.go:108-114 \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 \u0060src/server/v2.0/handler/scanner.go:127\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/scanner.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7814fa538f4003b7f11b58681bf9898d9192598d2bd85b3526d2132f5ef8eb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/server/v2.0/handler/repository.go:204-209 | src/server/v2.0/handler/repository.go:230-235 | src/server/v2.0/handler/repository.go:248-253 \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 \u0060src/server/v2.0/handler/repository.go:204\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":"src/server/v2.0/handler/repository.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8ba3fdf03fe94f9fe9dba7a9b4ba0b1b88d204677434a63397bf3440256246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/controller/robot/controller.go:399-404 | src/server/v2.0/handler/user.go:443-448 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/controller/robot/controller.go:399\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/controller/robot/controller.go"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d1e2215adec411497ed2b94638669231d6bf3e09467cb65082e966648476cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/jobservice/job/impl/notification/slack_job.go:125-130 | src/jobservice/job/impl/notification/webhook_job.go:102-107 \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 \u0060src/jobservice/job/impl/notification/slack_job.go:125\u0060 it does not close everything it opens, so those exact 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":"src/jobservice/job/impl/notification/slack_job.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d3eaf71e7c5b92361e4e13f9ebc78795d13a955251704ca6b3dc2a664a4d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/server/v2.0/handler/artifact.go:401-406 | src/server/v2.0/handler/artifact.go:443-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/artifact.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 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":"src/server/v2.0/handler/artifact.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86c1a965a15ad76b1e7924a75e6b29b8e3bd44d712e53e93dfb2d70594442e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/server/v2.0/handler/replication.go:355-360 | src/server/v2.0/handler/replication.go:426-431 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/replication.go:355\u0060 it does not close everything it opens, so those exact 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":"src/server/v2.0/handler/replication.go"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"064a88fd5bee2ad8a8fd8281224c72256f837e73641c134292f10d89236c2305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/server/v2.0/handler/scan.go:94-99 | src/server/v2.0/handler/scan.go:111-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/scan.go:94\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":"src/server/v2.0/handler/scan.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"74da5c7f861bf877dd8502a55e72ad996d372bc2318a2e6989aecceb6bc1d93b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/server/v2.0/handler/user.go:266-271 | src/server/v2.0/handler/usergroup.go:187-192 \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 \u0060src/server/v2.0/handler/user.go:266\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/server/v2.0/handler/user.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"df27e505b9801fa9391873b993de14bf580b840182ff6c94d6a5f3ac148d8e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/server/v2.0/handler/registry.go:57-61 | src/server/v2.0/handler/registry.go:153-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/v2.0/handler/registry.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/registry.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b569d53a60cab204c87e444c76c9389a63bfd78a56b8ef8e4decb6490892ed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/server/middleware/blob/head_blob.go:64-68 | src/server/middleware/blob/util.go:49-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/server/middleware/blob/head_blob.go:64\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/middleware/blob/head_blob.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0df4aa288b09453a9f54b9f45ed84549007b56e0e6026d5536723ed759811e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/server/middleware/quota/copy_artifact.go:140-144 | src/server/middleware/quota/util.go:63-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/middleware/quota/copy_artifact.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b5633eb53aba18c751c3cef04104b5e7f222896ee7cc2e48c9d6d125bc5e22"}},{"ruleId":"D13","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":"7a87419044e38d5bbfd5a8134ff8173d3710582282f3846d5bc0a65774ea69ad"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/server/middleware/repoproxy/proxy.go: src/server/middleware/repoproxy/proxy.go changed 3 times in last 90 days, max complexity 22. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, 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":"src/server/middleware/repoproxy/proxy.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e0c5f6ee530539789fb0929e5abd5076802b0711233280bf5f3c7058766f1c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/pkg/auditext/event/member/member.go: src/pkg/auditext/event/member/member.go changed 2 times in last 90 days, max complexity 21. 1 of those changes was a fix/bug commit, and the other 1 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":"src/pkg/auditext/event/member/member.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce67c84cff26f002b2ff299c97ab31244a0dfed17bd3c97178aca529b7482d13"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/pkg/registry/client.go: src/pkg/registry/client.go changed 2 times in last 90 days, max complexity 16. 1 of those changes was a fix/bug commit, and the other 1 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":"src/pkg/registry/client.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8f177a49016fb9f147127042972bcc9c4c419d2b252a650b69a03ba3b29779"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.ts: src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.ts changed 2 times in last 90 days, max complexity 15. 1 of those changes was a fix/bug commit, and the other 1 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":"src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"795aadffdbaaf94fbd16cf85ea4e829b6ef4260648c14621b5ab9952aa6fb7c3"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 12 significant file(s) lose their only recent owner: src/jobservice/config/config.go, src/pkg/scan/scanner/manager.go, src/server/v2.0/handler/auditlog.go, src/pkg/accessory/manager.go, src/server/registry/route.go, src/pkg/accessory/model/accessory.go, src/pkg/reg/adapter/adapter.go, src/pkg/chart/operator.go (\u002B4 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"840434708de63dd496619c5fe05f7b78493bde024ac0cf8f48d630f4985b861c"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 8 significant file(s) lose their only recent owner: src/controller/tag/controller.go, src/pkg/cached/repository/redis/manager.go, src/server/middleware/blob/put_manifest.go, src/pkg/repository/manager.go, src/pkg/notifier/event/event.go, src/server/middleware/quota/util.go, src/lib/request.go, src/server/middleware/quota/put_manifest.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91de5de85718fbd46892d6c076db69eff915f7d2fd28bcfd3c2208a2a175c21b"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 6 significant file(s) lose their only recent owner: src/pkg/scan/rest/v1/client.go, src/controller/artifact/processor/cnai/parser/base.go, src/server/v2.0/handler/model/gc.go, src/jobservice/hook/hook_client.go, src/controller/event/handler/replication/event/handler.go, src/pkg/artifact/dao/model.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"614204f87e4bd24690d3e7c6bc8f921219c3d2d40398c09f0f41167045305d67"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 6 significant file(s) lose their only recent owner: src/pkg/project/dao/dao.go, src/pkg/reg/filter/artifact.go, src/pkg/retention/policy/models.go, src/pkg/retention/manager.go, src/pkg/scan/vuln/summary.go, src/pkg/reg/filter/repository.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"82966a7e51305cccdcb6cb77b50df75608de622a0fa912e78537f00d54ad367f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #5: If anonymized user #5 becomes unavailable, 3 significant file(s) lose their only recent owner: src/portal/src/app/base/project/project-detail/project-detail.component.ts, src/portal/src/app/base/project/scanner/scanner.component.ts, src/portal/src/app/base/project/project-config/project-config.component.ts. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5ba30fc5711846fc1ba737ae3d36833bef3092b76624cc615478b29ac1bb97e9"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #6: If anonymized user #6 becomes unavailable, 3 significant file(s) lose their only recent owner: src/controller/member/controller.go, src/pkg/blob/models/blob.go, src/pkg/oidc/secret.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"72cbda6b5059135e59124e79082471299dbb153db9f82b95d7b1b07bf01a37c3"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 17 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 (59 single-owned of 708 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 #7 (2 file(s)), anonymized user #8 (2 file(s)), anonymized user #9 (2 file(s)), anonymized user #10 (2 file(s)), anonymized user #11 (1 file(s)), anonymized user #12 (1 file(s)) (\u002B11 more) \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":"D19","level":"note","message":{"text":"The \u0027Install the chart\u0027 section is present in the outline but not shown in the visible text, so whether it actually installs the chart rather than just describing its configuration options cannot be confirmed.: Verify that Install the chart (or a separate install doc) actually performs a helm install and deploys Harbor."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/chart/testdata/harbor-schema2/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fb4e7b5227ba85a8e70ce3306df6f308e008ec8e88e6f866210d04bf901875"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5d6856e8e085b81334892d74a2ede2f2fd7b01ec2f6587f55134a5cc5e94c87e"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4b1b4051750b97be5adcecb8af9c1789cf3334cb74f5baebcc26794a8fd2a686"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3d7f3b09611bdf9d6143f8f53060368ae56bb7e8889eb53511360ad6cf76e5d2"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c749f363bac9e48bee8dc434f3124b8232c3ba7a07b996ddbf1a7cfe2d4c8b87"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"10dcf2f7ec39054a4c8c87474451f30d039688f42bcf692d128da8f40db959f8"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"541a6951a75244fe950d9750950a7da198b1372b8e232758e681626259687b39"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"85483f6564ecd686344684bb5f7ae0333273d125396cf84c5191241bd6fbc3ea"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a74561cb4b905b6b5cb1e9313379979ce10bdae1c7ec5da007188b55e96e2dbb"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9be0c823da5ad6580f3426ad99233db39bc05fc2a04a4502aebba4e4005ee11e"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"458de4b14c96912b8ad7e7ebf9ce3cea26ebd5381c94b2e08ad0bdb1592964c4"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"de530f8dfedb6dd25c45ab0ff9d3f490f81e3c300fcab8ef5f840b129f74c8da"},"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":"a8c16d2e189b2ec576f306c461057716a53488135b028d09c93dbf70e6e94037"},"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":"f6971ea6b5f5fa9f7a9a014bea86d36cdcebdd306d98864bae6bc6c33e8b22a4"},"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":"484869b462c4c590041ac6ab96c38a5d8613c12764e5920bbba79306d815752c"},"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":"f49571ca9a6d2bd512dd338cd1b89c4568a2fac6c7cabedd9a1e3b0dc8ac1a80"},"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":"eb34c7dcac960edb5f637ab2d2f9b0ff6543ce54cdc6090f8475db0712f2befb"},"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":"8fe5033e830c38bc3eb60991b8547e1fe89e6858301a74c9d6ec40b668415033"},"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":"d0690626448bc60068d51bd21083191ba957e533cf687b22c291b32fde2d3609"},"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":"b60ecd3f71a064697de728733bfdcf18489dba29d0c8dfc82cde920f3465cb19"},"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":"f85f0f10ce1cfe3296db6713c1b084c060f20458595a1bae6f761bbef9168626"},"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":"527ac4257c3a16d79279c4040d81ec7a3c447af0283bb1c7f135d77ea3ad7de0"},"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":"dcf4d16d2d875a57256452c139fd566d69dd98ab29e4bc2226a24a956fa9be3f"},"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":"6b1ede49d8967ed02de0fab2d928ba1710a4fdebf66cc843cdc4788f962fd41f"},"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":"2693ba04a0e66d271881b9ef8e10dc3ee08a95eefa10f64d9b1c41701c99c828"},"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":"490fb4a19be620a8053617e0c8b8072050f36218b077589e4def09919078544d"},"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":"8629ca0af9152ac4f724955473e9d8487131a8eebf6612b5ae2863b67e6d55af"},"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":"2bb337994dbd90be97828f9181a1d6a81fc06d5c061abd8cbc8b73e2c99fd8d2"},"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":"f93ca1b74aa4442ec7ab772409a9f1c72d3a40df3abe1cd7c63356023aa55e46"},"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":"b938065286001314a06b314a9b8814ad0526cf877b9404a1d27ebf302f76e24c"},"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":"61585ec0a66d364ffd5fcb5abba0aa3047edb4e8493a8351cef2295e7471ec79"},"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":"8620d1acd9af92bb5f9b7b27e4520b83d43fccc36af03a1b5329628781022a58"},"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":"18759fcffdf79919f441a5d4d92729f219556e6b15527da251e479395ea2ae11"},"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":"cb112133d44d13063f8a9d6d785ee73d3abb82add55019a8d51adbf24bf291b3"},"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":"39f2d13404aaffc30201d6fade92119fce341cebb840f347a5f06f6666369942"},"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":"425df6409fc0827fccebc26c1e0ae5d6364f4ef84a8fb16e55731057725d36dc"},"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":"3d8fea915e85540ffa149cf08059be58774c39be390e08bcedf215361a059374"},"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":"8c28ad9706ad48c562aee9bdaaf2bf1796a37b0ca1bf5b37068a69dfdfdaaa7f"},"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":"6e6ce316963a27627ebd41313111f236e3531a29baf6a13df641fa7a910e3d21"},"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":"163f0b6bf66e072cb9302a3439a2af7a29d6ab7c4f45f31e775f602782edee77"},"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":"55f69cdd254b205905e4196b86b7be9ab3e983de7c4e69fc85de61522a241d52"},"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":"e67ee3c195084d96479233bb5cc6a694cc8707115dd5d621027ae527e861f2d7"},"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":"85997a0866cf3577b6efa522fca0feec8e8d3bb6207e96ba9e90beae13f5023b"},"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":"de2a8e28c2f16e59240209651cdd4b8acdff8398b77d44ea65c7b55bd839c7c4"},"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":"7dc5db3fb556c21c639c6723ffba8ee9586d32a6587bfd3de87d7f4797dad2e6"},"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":"db572b4b6ebfa4863e9cd49eaf64fa9b025e53e7a748e781dbb52f26b598e054"},"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":"eb0a7a97ba16a809a94c29ae7f33cd752468bb6440dd2e177d5ae0778d8ff84c"},"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":"c717e2a4e21fe7844298ce390bc58e5fdf1c8d12d363910c8fb300fb11fda3cd"},"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":"6be9d964f0c90ca981ec7964029baa034e6de869effaadabf1b6507b17398e0b"},"taxa":[{"id":"CWE-732","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":"7aed07016481f0f7c6ae511826a7a22dcd38023b65827ac924fce492bf0c1b03"},"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":"0d5fffdfaed78258812d904005cf48f2eefcb9944b0b8dcbcd828ac1012b265a"},"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":"b31cd8f41a4d738f716600fa4c473f087e332593613a002d4f6279b423451b91"},"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":"be0c3b0cf9f64e9a13c947f0588aa708a0c0cbc92d61a12d66a7ff156f7948d1"},"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":"03b2e2e192153b91f1f79830f3904b46bab57bb5c2195b9260346fc94a5fb97e"},"taxa":[{"id":"CWE-78","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":"0ddbb687ba6653a6881469cc52e0136a9b55065b3c2c7ad87d4ed531769f9bef"},"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":"51a03aa0bf85055d4fdcc0399c61ffbd54237ad45005c9cb1b72b5bcb98366f5"},"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":"9655fc55ff8ca0f298a3dd36916743eb9079f5126a842bbbfdcbc40914264c29"},"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":"8b1d51d0a679734dbb4f49d7d8ac32a3c52877519aa8633205cb60f47a455844"},"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":"8329c856b487865fc856589230c6877402fbe1b8a5aefa5796d391ccf2dd44ad"},"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":"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":"2ffee2341e1d9955694fc0899d25e705a71c83a20385565d021ac34845605408"},"taxa":[{"id":"CWE-338","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":"b50849e2d65f3c275646a630e9416f0b51db14e8e5e6bca7477a391967565be3"}},{"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":"cd20fc412f124d90d84c1cb30a76949c9ae337395ba9daf9f803b461bad53408"}},{"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":"cd8a1038e725d3627b27fb925c4b62a892124e542818c21831833aa1fa919d86"}},{"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":"d97c4cf6454bd7c40e50b7b809bd7fe24f644839fa00c28bdd0cc35daaf1ffa8"}},{"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":"e1d34e0baf48f6077fb1a01834ef869c21a9b75da4185f10de2da8bb26fdc377"}},{"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":"8e9d98d0be7801d004a9e2e31894f564de6fc66c434f75138e02928801e2bb9e"}},{"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":"49468622011344c7d3294678dbed5786bdf759c88e1191eec7f96dbc9ee14c48"}},{"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":"988dcd842268d3884edf540e70d0803be0281026f7ce6fef8c0a0f28376af813"}},{"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":"f12ff620c77e3325b297cd195903916ef9b281c8fab23c542cf7353f48b476f8"}},{"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":"5502092a6582ccc2352d69e22777b5931da2f04676e7163c086b5d9667357503"}},{"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":"8715966c017484719b27b83b853b39959edad71b66546bb7c18fdacc6780992f"}},{"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":"d5f0e28ac16d760069953f1f184d638a19e8f0bc2470fcfea4513219c53e79d9"}},{"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":"224d05ac9e5f32c5ab6e2bb6e7c09e04ff08b65b62f0e3af4c9bcf91025d8590"}},{"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":"9dfcf5e4d5b936608d462e7121100edcb04111a4f433468e264867601156aa97"}},{"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":"08484da8f44ba8d7836f96bc05544aa4002f540db5f13aaae4d32bde8d1de2e3"}},{"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":"1628cd0cf8f45f76cc8b31272c61c53294673670873f5fa737b598a29c73869d"}},{"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":"aa83d80373ecc80f635c1c764f0965fe25f369bf72748860a7a65db39b0462b5"}},{"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":"8749487739183cc1f48485bc14360d464a28f42b20e4f64cd51c142ee8c2ee38"}},{"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":"4c644f5981b7944497a40fcf6602dcf6376ace4c5c70c6fe59e63726aa937a33"}},{"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":"e2cb75385f66aa102ff19977ea891d6e3e47b42a780269444f65515fef40b5f2"}},{"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":"98ef65977685d1dac895cde00cc7c0332a8bbf629201b55a6f5e03cb300ad890"}},{"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":"747190a27025f775f160246669e4a40abfb00c16570bc6945a339b152490936f"}},{"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":"0263a530cb85f4b01f836f68b21d5702f4fd29b221daa9e1b8ace2118f8d75af"}},{"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":"08922cfdb43661c44c1a59f0bc08a398eeabc51e22a8ba23d8a64f4855e028f3"}},{"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":"73d60db909807352e98eb36e055f998097ce175f3362676a9964aecfbc87f81c"}},{"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":"2c921a4923545ef5f82d72ef993c1df7a214e8b62aebee00068648a0af216abe"}},{"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":"71c9264eacb5aa161f28f19f02dc327a65c416bab089daee3fd996ff16bfdcf5"}},{"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":"717dbe84dba51b76c6496f4b6bb92a2802937b351acf55f76fa1f1e2bb827959"}},{"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":"9abbe3c51c2705ee84fa535f5cf506c9c83c01ac356ec1044ab9edd2b4a61dac"}},{"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":"a3ed80f65d82c4a52c7bf50349867c201d546654b829eeb33c60d006377f77b8"}},{"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":"b281daa4540761655886558d1f7d8fa46c036a51224498b1f246f2c4cd041c48"}},{"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":"046d5599ab0dc4f1d32a0a3f10135618a1e1efda7431fd2a178a04c3f5049870"}},{"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":"2ca3f85108bbb0965937269ad929da9b6047778c2c5158f18a2fafdf4f2ef0a2"}},{"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":"1fc2793f51d849a67f21aec3ff145fce5bc5d6f92c361eeda914fea81af2557b"}},{"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":"6aae1ba1963d584615a76c9896b66d71a323298a7b7af1c2effe397e50b8b77e"}},{"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":"69967371515720ded251fcde34b140d6f74c087246e10b87dcbcecc91b3e5a8f"}},{"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":"d8ba6b1f99255dcc52d85d6993632b9af21648eef6657ff4f809b2b1ebe32e27"}},{"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":"be1bf31da2bb60189e2c3d8b961a7c892cfd473ed2b164d2494a02d8f411f685"}},{"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":"3513c1440351f6fe013d325f44897dff6f1d4615df1fdcb9c2a60891ab1b73c0"}},{"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":"fb68a1a03d0316d28ce558815395543845bc9a771468954874367153211f00b7"}},{"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":"4c86e35f7639afe43c25f28aba451c7e7d0234fea83fb6501832872e07bd47e3"}},{"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":"74467b8964d09d1bb896a80c82d8c4ae569ae9bc56762714fc0273282f240ff2"}},{"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":"39ba4bd77bf3dae886a706170c084beb1f902cafce168838bc3658c9efa38ac6"}},{"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":"202acc718b1fde0ccb9ea4c0b9df50dc8b7cfe55481171b42b9a92bf85b1a895"}},{"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":"d84136a0caeca4e5ece4b92cb48c4563b7b47034cb178f5c4bb38c0905387cad"}},{"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":"98f70c1ee8fa3f22640600c5995c411cc05b3cdecaa1ba61af63b78515ed0fd7"}},{"ruleId":"D32","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fb746553eb783aa5cc32cd9958021e0239932a2ef7b97b8e02189fe6d313e5aa"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server/v2.0/handler/replication.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a232481a452aae4f8f859035d51579dfb4a46b1137099b186e76d0e8690114"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 224 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (225 orphaned of 713 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)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: const.go \u2194 model.go: \u0060src/common/const.go\u0060 (context common) and \u0060src/lib/config/models/model.go\u0060 (context config) sit in DIFFERENT parts of the tree yet change together 85% of the time (23 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/const.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"555c17d3a4472ab3fcdbb132f6a0ac91f8ecfde65a801d66b348a40efe5c1b0d"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: project.go \u2194 project_metadata.go: \u0060src/pkg/project/models/project.go\u0060 (context pkg) and \u0060src/server/v2.0/handler/project_metadata.go\u0060 (context v2.0) sit in DIFFERENT parts of the tree yet change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pkg/project/models/project.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f4eb7f04824613f5d561b57950e74e03f199e64e7b4ef9ec6439a4e9a15b7c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: metadatalist.go \u2194 model.go: \u0060src/lib/config/metadata/metadatalist.go\u0060 and \u0060src/lib/config/models/model.go\u0060 change together 70% of the time (19 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/config/metadata/metadatalist.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26528eda1f28a1b18427bd5ed81ce7c8ba578f8f90ac03d2f25183c90e988573"}},{"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":"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":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}},{"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":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"}},{"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":"c4de2c281806a70beb8f97b3499b5ea34085728eeae037eab4a2a61682901158"}},{"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":"bed1fc9ad74a81cec9e748aa7bb12ccd0a4040ad05c47126bc3117f71982592c"}},{"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":"5ba34be79245c352c52e5f927c7feddac3e2e9983857f287c0a55b9f8cddd180"}},{"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":"5ff0b56fa8f8f2dc9f52d4250c15deb3e3dad0b06539df2d4ff9f0424786a602"}},{"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":"912f12c3beaad4277dcc1f4f54ceeee81cbd3d16db56885f0400211582e73cf4"}},{"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":"4a387fbbe3fd81e1df37f0afc2d85a0a0c782d9806ce2a2408382428c82daf50"}},{"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":"003fe4b05b737aa7ea0fd739f697c5bf995637bc24c84ae42fbf95e5705178e2"}},{"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":"b5ba447f3ff0486237b83c346c17eb9c06bd4c3e405a31d95c489031a8f40bc8"}},{"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":"836d215fbb0763927f9a1786982383ea3a5afe3e9274956b5fa43588087d9aa5"}},{"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":"f35feaf9b675aaab16cfd1fed59897a54db275531f9223b6080abf22d70e087c"}},{"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":"5eb170e7783adc7235d336beb2f1f8c403a6d11a778024541be2c19daa2de219"}},{"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":"5482fec6270ad1ad6703bf6ff4fa753d43d03293db8561b8664c2e1793efed03"}},{"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":"7b7ed330d5a6172c3e07ec4e04e465b79804eb3ebb1a39f6b8be5c2eea9c532f"}},{"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":"0d360f2202f5f9d2f0f6d1bb44016f86b5f9b3d382056977f252438bc11a72e9"}},{"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":"2e133d707977a5040836cf245e5675a0e44b5f071a21cbc1390424cec7a5e5e6"}},{"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":"3bae6c2384bda365138a3456de703a06292acaf92ffd7afb26ece303ebbe0610"}},{"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":"b66d098bda96b51cf56728103e4303a65dd7b4c16d962081a7c5a21a684e9c73"}},{"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":"52ddf76afb36f11c06c2d627a7525930e7cd89023a09b77bb951d1d1e1bb870c"}},{"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":"cfd4c6981b7f56314ec36d08f84984520031c212ead6792f464dffa90269b759"}},{"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":"7488f5393a1bdd407231072b6943cc9f9623ce5e1ae8e8df550d37335e4ff4df"}},{"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":"76662da9e16c16a8b184219b1b9fcd6e2eb697c1f8ed7dbd78b292b67d243102"}},{"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":"4db3d6e94a73fa3811456467730e898db839a2cc868cbe6a2e271c6435ba28b9"}},{"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":"22f81d885cc8cc46c24df984f5dc4463160cfbd9638b700f2ad7f5241eaad55c"}},{"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":"1449c3308ec16f5f62bf9747b9f832645082614a40100a0aecb891db00904bbf"}},{"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":"6abe6eb1ef712cb28412d1903498fc3e165e868cddde757307a7ad1f3a32e238"}},{"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":"27a9a0b5f68ca4fe7f445f3806fec0ee566ac3a69f3726029e7e9bfd3f4f24ae"}},{"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":"d8bb39eeaf46b77b87b52e18c45cb8b7569164cffc243edb4822f0616fff1521"}},{"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":"58708f499f24893ff38bf22d82d9527d11af45d5094f4792756286c30e56c085"}},{"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":"d562fefb5f58928922bdbddad61ae66b131bb0df6c8a533be0e3bb4a5f48d733"}},{"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":"164408f95c97f0b18dfa19c9f098592b61ba1cec574ff21862e539062e4aacb8"}},{"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":"8c7012395970839ebdda280d6a05ff982c8a62eb7d560a57c9e2fde7f20644db"}},{"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":"715ce86293b16e7887bea3f0ceb13bc8b27105039dc3c31e40dcc62af47561bf"}},{"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":"d6554eb62f4e423a7a9d842f7156a0a00fd17af4a2a8dc130f8e2e216f95c226"}},{"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":"56a5eb9c5ab56ea84347aecdcbdeb33a95a40db1320acdb3d1f41c470c80aa32"}},{"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":"ad9d412b575dbc742b905574cbd7429978d2821b535cc52fc8a6d59914678e79"}},{"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":"f3cc03ee653a3faee81d5cdbbdc5efb1ead203d6823fbb4b704589248f08be01"}},{"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":"67adaaad2c41da22dfb3ba565b5abde6b1b99d31d2a35d6743a437e07ab460c7"}},{"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":"a217c8243f6011f49e088201883474f0f5c942dd63b6d9e67515d84474fa8317"}},{"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":"03dc2c192b2b137f12317c1842eee6e4a34a7e09f7b1e31e9333ac7ae18370bb"}},{"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":"b441e946291d967e3aa57cfd8a0bd4790de1eb3519ea38cbb5cbe48fc5697f9f"}},{"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":"a98adfaad54340c7cdf46355ea13ede420740ad676563a354296e5c38767029d"}},{"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":"b12eab87fd3d157b7eeac39936e9c9bc000e11f08b57cc79489e95b67f333358"}},{"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":"ecc528b8b839ef8db8d4dddfd2a234b327c83826bee5b0691a22d23ca0abac3b"}},{"ruleId":"D38","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":"6b51a56b92bd649aa0a463b134e94343726e10bfc1ffd70ea5b69e3d1b829ea0"}},{"ruleId":"D38","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":"0002d55b05b11e00c5f166437baa29a79c481ec0d02412292ba79feab62f526c"}},{"ruleId":"D38","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":"e2b3acbf84d36308611697e3ee806263774245a64be8956053f3730f0bad9a1d"}},{"ruleId":"D38","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":"18cdeb40abc0bfaac931b354200ab3327df2751560ff8e83aedd96381df1dfe8"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-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-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-338","guid":"e89b7604-c3f7-8b53-bc8c-4d4718c28617","name":"CWE-338","shortDescription":{"text":"CWE-338"},"helpUri":"https://cwe.mitre.org/data/definitions/338.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-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.html"},{"id":"CWE-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":160,"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."]}]}