{"$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":"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":"form.parseMessage (cyclomatic 31): form.parseMessage 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":"encoding/form/proto_decode.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82dbcb102f26ba3e40e7efe2bba40160ee64317b1f3e0cb6d01b27c8d6e8b95"}},{"ruleId":"D1","level":"warning","message":{"text":"Watcher.Next (cyclomatic 25): Watcher.Next has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/polaris/registry.go"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"02125d508148a7488ea6d40311bf752118a45fc6e73984845843846afdf33cfe"}},{"ruleId":"D1","level":"warning","message":{"text":"form.parseField (cyclomatic 25): form.parseField has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"encoding/form/proto_decode.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"209fb4cc2c8df664194bb01e2abfe1df660348c64f4e5b182c4fa60dae504a70"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.WebSocket (cyclomatic 24): Client.WebSocket has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 11 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 707). 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":"transport/http/stream.go"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28c1e4bf243d5781806fa9cecea026b1ca5099dacd07d9b37601650b30bea35"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.Register (cyclomatic 23): Client.Register has cyclomatic complexity 23 (threshold 15). Of this number, 13 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":"contrib/registry/consul/client.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"887372b8ca0602110324f63a31a664bb9b7d12beffa263d7c6ef5017ad110391"}},{"ruleId":"D1","level":"warning","message":{"text":"host.Extract (cyclomatic 21): host.Extract has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/host/host.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a634a20692661ff075579ef48f2372a9a6609d6945a2f91b5c86061c5c6d6dc2"}},{"ruleId":"D1","level":"warning","message":{"text":"form.encodeByField (cyclomatic 19): form.encodeByField 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 30). 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":"encoding/form/proto_encode.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa433ef01fd387d43805d797a5647c1dd3673efdafa49b951044036b77a3a310"}},{"ruleId":"D1","level":"warning","message":{"text":"form.populateFieldValues (cyclomatic 17): form.populateFieldValues 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":"encoding/form/proto_decode.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b144313f6b72cce9d0edfe69dfd243abc01aed6fa1e03c913dd83446801252e"}},{"ruleId":"D1","level":"warning","message":{"text":"change.ParseCommitsInfo (cyclomatic 16): change.ParseCommitsInfo has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/kratos/internal/change/get.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba680da842a2667bd90a54894f5cbf8e97678421189a934a4e7d9dd349ca0c1f"}},{"ruleId":"D1","level":"warning","message":{"text":"project.run (cyclomatic 16): project.run has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 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":"cmd/kratos/internal/project/project.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b216b45497b9b7cc1877e697c154bf5bd1dfad7859eb07347674e6acc23fa30"}},{"ruleId":"D1","level":"warning","message":{"text":"Registry.heartBeat (cyclomatic 16): Registry.heartBeat has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/registry/etcd/registry.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc6e03a4af69b86a7255dde2a5dbdcf1acc86e118a22dd42370d825184ea223"}},{"ruleId":"D2","level":"warning","message":{"text":"Watcher.Next (cognitive 122): Watcher.Next has cognitive complexity 122 (threshold 15). Drivers by points: if/else 78, loops 43, match/switch 1 (nesting depth added 97). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/polaris/registry.go"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9577a560023594b328c0b985a0f94e2581bfe0423fbfcc2aaac6aad7bf34928"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.Register (cognitive 44): Client.Register has cognitive complexity 44 (threshold 15). Drivers by points: if/else 35, loops 5, match/switch 3, boolean chains 1 (nesting depth added 22). Most of this is not in the body itself: 15 of the 44 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 243, 222). 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":"contrib/registry/consul/client.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a79be7875e9214cee796e3c004ac962ee816cb5e86bad335f75ced462dfb6d"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry.heartBeat (cognitive 36): Registry.heartBeat has cognitive complexity 36 (threshold 15). Drivers by points: if/else 26, match/switch 6, loops 4 (nesting depth added 23). Of this number, 31 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/registry/etcd/registry.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ada88b3daf69c09556e512b7ba5c2f431c4297b5852d26ca944fbd0b1c372dd"}},{"ruleId":"D2","level":"warning","message":{"text":"form.parseMessage (cognitive 34): form.parseMessage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 31, loops 2, match/switch 1 (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"encoding/form/proto_decode.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1a9a9a3acfdcba079a2c6837211eedc9fa8d9f5bd8f589436821c492506bd1"}},{"ruleId":"D2","level":"warning","message":{"text":"form.encodeByField (cognitive 32): form.encodeByField has cognitive complexity 32 (threshold 15). Drivers by points: if/else 23, loops 6, boolean chains 2, match/switch 1 (nesting depth added 14). Most of this is not in the body itself: 0 of the 32 points are its own statements and the rest belongs to one function literal inside it that branches (line 30). 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":"encoding/form/proto_encode.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea031ceba0ca07de63d703ed81e0673bf8795150995ddec3bcbeedcfa3448b66"}},{"ruleId":"D2","level":"warning","message":{"text":"host.Extract (cognitive 30): host.Extract has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20, boolean chains 4, loops 3, match/switch 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/host/host.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf59ed10e74ef7d749057dd1dc42b91ad511bcf8da17925e4167724bae937b5"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.WebSocket (cognitive 30): Client.WebSocket has cognitive complexity 30 (threshold 15). Drivers by points: if/else 25, loops 3, boolean chains 2 (nesting depth added 6). Most of this is not in the body itself: 11 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 707). 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":"transport/http/stream.go"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"240a9e90f9b1efbeb1108454a1fb0cbf9878a014344a0a0cca5d848d68cd880e"}},{"ruleId":"D2","level":"warning","message":{"text":"http.newResolver (cognitive 28): http.newResolver has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, loops 3, match/switch 2 (nesting depth added 16). Of this number, 14 points are the body\u0027s own statements and 14 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":"transport/http/resolver.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e858dd72706664f09633cda1c970505ecc68e39a8be5f0ca45526252f90918b"}},{"ruleId":"D2","level":"warning","message":{"text":"form.parseField (cognitive 27): form.parseField has cognitive complexity 27 (threshold 15). Drivers by points: if/else 24, match/switch 3 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"encoding/form/proto_decode.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7263fa90d1d43cbbbea473c16ef6fe123f2a4d3faee0ef84547921b56512ae"}},{"ruleId":"D2","level":"warning","message":{"text":"jwt.Server (cognitive 24): jwt.Server has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, boolean chains 3, loops 1 (nesting depth added 10). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to one function literal inside it that branches (line 96). 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":"contrib/middleware/jwt/jwt.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91c00a75837770139ff946c1ea917419a442f93d3d320f78d3381a9309c698a"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry.Register (cognitive 24): Registry.Register has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, loops 7 (nesting depth added 13). Of this number, 17 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/registry/polaris/registry.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"16485e14f3ea00d38824514cae7d32f15e1474e2791fb64f364b685dd6c29a6e"}},{"ruleId":"D2","level":"warning","message":{"text":"form.populateFieldValues (cognitive 22): form.populateFieldValues has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 3, loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"encoding/form/proto_decode.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"112bd6230ca560af3f3bb7e95039247060f6a1d0316ada3c766439e99d043d4d"}},{"ruleId":"D2","level":"warning","message":{"text":"metadata.Client (cognitive 21): metadata.Client has cognitive complexity 21 (threshold 15). Drivers by points: loops 15, if/else 6 (nesting depth added 10). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to one function literal inside it that branches (line 82). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"middleware/metadata/metadata.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bca28ed8d7f47308747c95ced79735eed179c5dd33f30c4d9882e2ed11fe59b"}},{"ruleId":"D2","level":"warning","message":{"text":"project.run (cognitive 20): project.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 1, match/switch 1 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, 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":"cmd/kratos/internal/project/project.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c7fd6252772027cc6fe5c3d1419cbdc7aa174aab10f9e8df05f7af543541e4"}},{"ruleId":"D2","level":"warning","message":{"text":"Polaris.NodeFilter (cognitive 20): Polaris.NodeFilter has cognitive complexity 20 (threshold 15). Drivers by points: loops 11, if/else 9 (nesting depth added 7). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 45). 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":"contrib/polaris/router.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b03c799b09267d9c37a720357d50df127cc6f3dee637a7df3067248357cd12"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry.Register (cognitive 20): Registry.Register has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/registry/nacos/registry.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4f05ab5c05573acf7d58a8f74ecc7b5d2ad9cb89c2b902d5bce098b17e5ade"}},{"ruleId":"D2","level":"warning","message":{"text":"Discovery.newSelf (cognitive 19): Discovery.newSelf has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 8, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/registry/discovery/discovery.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f60b08b1ab6e2f74e875a33b7db318dec0eb8a06b8ed066dffd310dad73f2d8"}},{"ruleId":"D2","level":"warning","message":{"text":"Discovery.broadcast (cognitive 19): Discovery.broadcast has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, loops 6, match/switch 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/registry/discovery/discovery.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fe43a81cba5af2b33e5e435ea456b9a3e5e031f1a4c646ecde2262fdbb96e4"}},{"ruleId":"D2","level":"warning","message":{"text":"run.Run (cognitive 18): run.Run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, loops 6, match/switch 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":"cmd/kratos/internal/run/run.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"38662f42c4fed435e40ba87906c6382f042c9a813b64214326070634c9b359fe"}},{"ruleId":"D2","level":"warning","message":{"text":"run.findCMD (cognitive 18): run.findCMD has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, loops 3 (nesting depth added 7). Of this number, 9 points are the body\u0027s own statements and 9 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/kratos/internal/run/run.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d00500faa8c9ea33100cd1c0fea0d027678ccc166ff230a40626439765b7c08"}},{"ruleId":"D2","level":"warning","message":{"text":"config.resolver (cognitive 18): config.resolver has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, match/switch 6, loops 4 (nesting depth added 12). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 115). 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":"config/options.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9828d01cfe8b7e6f2ed2a4310c4da08b2eaf1bb62576a4f33fb80f6244e687b7"}},{"ruleId":"D2","level":"warning","message":{"text":"change.ParseCommitsInfo (cognitive 17): change.ParseCommitsInfo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 6, 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":"cmd/kratos/internal/change/get.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b318033649ba961638045506b536e84899c46c766c7a810423fb189750ef8e"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry.resolve (cognitive 17): Registry.resolve has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, match/switch 2, boolean chains 1, loops 1 (nesting depth added 8). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 261). 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":"contrib/registry/consul/registry.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b144034da360bfdd4452f3a4921c27df68b4149bc3135e05044f1fcb4b2c352"}},{"ruleId":"D2","level":"warning","message":{"text":"Registry.Register (cognitive 17): Registry.Register has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, loops 1 (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/registry/servicecomb/registry.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d0385596355253232133ba413773b1f02edf5ba15e6271bc9c834c05cc850b"}},{"ruleId":"D2","level":"warning","message":{"text":"App.Run (cognitive 17): App.Run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 1, match/switch 1 (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e9341eebf54975b3d39652763a7c81c8e4411b56aaf18feb157297727058cc"}},{"ruleId":"D2","level":"warning","message":{"text":"watcher.Next (cognitive 17): watcher.Next has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/file/watcher.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce1cbababed346894cf52be354ceb81652b0560cb3f1880942da310c4bfc244"}},{"ruleId":"D2","level":"warning","message":{"text":"Service.execute (cognitive 16): Service.execute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 7, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/kratos/internal/proto/server/template.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c00cec17ff2175e551ea5d6382517e72eb8a94734fb03dfb6bddab19abaf88d"}},{"ruleId":"D2","level":"warning","message":{"text":"consul.defaultResolver (cognitive 16): consul.defaultResolver has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, loops 5, boolean chains 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":"contrib/registry/consul/client.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b92ac7d1df820d712996f519ca5c78dff91e86b91ceca4b3cf4b2d80d14139b"}},{"ruleId":"D2","level":"warning","message":{"text":"config.watch (cognitive 16): config.watch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1 (nesting depth added 8). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/config.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe6ba64788f52b5b8185d359ff168ff032c8c9e37fafb21b87b139501140e23"}},{"ruleId":"D2","level":"warning","message":{"text":"http.BuildPath (cognitive 16): http.BuildPath has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 3, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/http/path.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"534d9603d5fa5eaf0c5a51cd130c8e1d7be04510f7561f7477b52fdd7b275ec6"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.ServerSentEvent (cognitive 16): Client.ServerSentEvent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 3 (nesting depth added 4). 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, 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":"transport/http/stream.go"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d0ff29e38f43a8857f970c55b34a76c2ab55ad55763bccd2f30ba25c560e31"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: http/stream.go: FileTooLong \u2014 596 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":"transport/http/stream.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aee8975e251eff12599dc32f531afa471784df9a9f56df3dc626b1d033b88f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): contrib/polaris/registry.go:160-177 | contrib/registry/polaris/registry.go:264-281 \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 \u0060contrib/polaris/registry.go:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/polaris/registry.go"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e5ba6c7ae016ffd4ac56d39d5a6310c10b090f8836a59a8f5a1f8252a020e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): contrib/otel/metrics/metrics.go:143-156 | contrib/otel/metrics/metrics.go:196-209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060contrib/otel/metrics/metrics.go:143\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/otel/metrics/metrics.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5667d900f63eb71be95bc135b795aa60fddec6159d0f5d7405e0c56ef28d6a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): middleware/logging/logging.go:24-37 | middleware/logging/logging.go:73-86 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060middleware/logging/logging.go:24\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"middleware/logging/logging.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eccd48a507d5a431356618a6adbcdbe1ecc2a32a83b69a24186382bf6b5ed88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): contrib/polaris/registry.go:101-117 | contrib/polaris/registry.go:160-177 | contrib/registry/nacos/registry.go:99-111 | contrib/registry/polaris/registry.go:264-281 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060contrib/polaris/registry.go:160\u0060 it does not close everything it opens, so those exact 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":"contrib/polaris/registry.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"959963eb2bf23c23da166fe5956e6cd803706b8b972d408e233422fbd18f95f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): transport/grpc/server.go:252-264 | transport/http/server.go:353-365 \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 \u0060transport/grpc/server.go:252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/grpc/server.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7e1aac593b4f95177742ea9904d3b54e6cf6e5059cd80ed892504253aed7ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cmd/kratos/internal/project/add.go:51-64 | cmd/kratos/internal/project/new.go:43-54 \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 \u0060cmd/kratos/internal/project/add.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/kratos/internal/project/add.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d0019849bad1329920d820cc49b21949c1cea2072bf392a5295d81774f8ea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): middleware/logging/logging.go:42-51 | middleware/logging/logging.go:91-100 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060middleware/logging/logging.go:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"middleware/logging/logging.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"057e7947019f3f9098d43bc739c660404074dd6905ae94cb0dda2a3e35dfafa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): contrib/registry/etcd/registry.go:135-143 | contrib/registry/etcd/watcher.go:73-81 \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 \u0060contrib/registry/etcd/registry.go:135\u0060 it does not close everything it opens, so those exact 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":"contrib/registry/etcd/registry.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e1dc668638cbe24d2546f67d7be2879b0d813781809cbfcfdde06b327f0618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/circuitbreaker/sre.go:151-159 | internal/ratelimit/bbr.go:326-334 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/circuitbreaker/sre.go:151\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/circuitbreaker/sre.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda27bc796d640d5f661cb5a9b28db0005646ab60ba396eb1d6838dc4f3a78b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): transport/grpc/client.go:252-260 | transport/grpc/client.go:270-278 \u2014 both copies are in the same file, so extract the block 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":"transport/grpc/client.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"c209621254158d8e628a9749c4450942e094a6efff406869b1b6517bd3a439ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): transport/grpc/interceptor.go:120-128 | transport/grpc/interceptor.go:138-146 \u2014 both copies are in the same file, so extract the block 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":"transport/grpc/interceptor.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"748f576b8a2768a23c2a9ca5cb0ed4364589c398e246dd70b546e3ea17f3afba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): contrib/otel/tracing/span.go:28-35 | contrib/otel/tracing/span.go:67-74 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060contrib/otel/tracing/span.go:28\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/otel/tracing/span.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9d15a242b0c99f4728c737535dd5ab0f26ff15ca71bece838bb3fc46c2bf58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): contrib/registry/eureka/register.go:83-91 | contrib/registry/eureka/watcher.go:45-52 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060contrib/registry/eureka/register.go:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/registry/eureka/register.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bd888f8052573562e3ac4c1bee60ce689ad26720811bc0bb35bef93afc0fa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): transport/http/client.go:261-268 | transport/http/stream.go:641-648 \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 \u0060transport/http/client.go:261\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/http/client.go"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a3ace02d4a56743958a3b503abacb50f9510a0c0285369408dc8c89aff6d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): transport/http/stream.go:633-640 | transport/http/stream.go:699-707 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060transport/http/stream.go:633\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/http/stream.go"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"140a1fd55c6ab3d6f929d30fa8d8c8f9156865c4a5427b2d64c09be0aa9dfcb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): log/log.go:96-103 | log/log.go:109-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"log/log.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4d0963a89f4df59842d58c997ee58fec10405a9f081d141621593674e10760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cmd/kratos/internal/project/add.go:70-76 | cmd/kratos/internal/project/new.go:60-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 \u0060cmd/kratos/internal/project/add.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":"cmd/kratos/internal/project/add.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d17085f9055a109284b61bb5e721e62387be8b74c93fda3b1acf9ad44234ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): middleware/logging/logging.go:54-60 | middleware/logging/logging.go:103-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 \u0060middleware/logging/logging.go:54\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"middleware/logging/logging.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf9d70c2fd1616caadb73b0e26d6698f4000824ba522a3c11f10ba2125611bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: transport/http/stream.go: transport/http/stream.go changed 3 times in last 90 days, max complexity 24. 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":"transport/http/stream.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c397f8022fefb004ab9ba415c688d11244275bf3771d0325617f15734fa2351d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: transport/http/stream.go, errors/types.go, errors/wrap.go, contrib/transport/mcp/server.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8a1b48d40f69c83391c2a7da67ad7be13bdd30f88427b0b7f1cc5e01a3b0a88d"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (7 single-owned of 78 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"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":"f82466c4da3f91514fad547101f2c64f2e6aad2270af179f07ba8d5e756184a9"},"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":"d19cea80b8474083425fb2ea6a3673ff75b97d637d9d98a4e459b33a76279b65"},"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":"1f1a160f3eb8dbe4a4d881adf4ebbed82390f7df62b2231827d934b7c2f69c0c"},"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":"b995f1f7fc4a918ef6c05166760e4c053ea834d12e360f14d59a6c0338521440"},"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":"c23be7b32f76b0243da09fdb264952cac4fb82f4ad172e08f3560dfbfdf203d3"},"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":"7974aefda79c0fa5ab04e779b429d1579bcde8955350c3cf5e13340c29cb143e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a3dd2adaf81da38e3c48e60bbce3a1ca78f660c5f277cb0761c656c0351fd49d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a9f46758d906c19d1e95367445ea12a19107535d8b22ec81925f9e95e3303cee"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"709e697918a796f5eb4535035fade5e155d967ba0eacf5e844d091777a939421"},"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":"e9adc0d6f482c24590f8a44d3b241eca6d739bb4f405bfbf11177f604b0d6e75"},"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":"477b542c6dbaab323f6733f1033b9f30f91bfa4c67281b19e097bfb41282826e"},"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":"928b0a9c70915a009bd913337aa19e85e462b18804302cc0a868e9bb1c5bcdd3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c87ae30254db4e37050be3f8b40fb0933cc4b677502e8fca8e614526ae4f3255"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"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":"c6e21ed4d015296b6b21e0fb82624a907d3b5fd4a7e6be2bdcbd86ff5d6e3408"},"taxa":[{"id":"CWE-338","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":"33b7bba9fb348670c24f6ae89e3320c0e21ead1da3dd4eaa231284b6c140fcce"},"taxa":[{"id":"CWE-338","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":"9f1a42a03ff423ae8fd7402c71922c6fd978fe1e132a605ef5f53610cb917ac5"},"taxa":[{"id":"CWE-338","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":"47d148b9edaf6623d1fdafdee6119a2164421214eefcaf3ce057c6886d5ddb85"},"taxa":[{"id":"CWE-338","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":"eeea8331dc74f312fe52b2b7504a5d702f00eebf4710f57d8c5a02f36d94895e"},"taxa":[{"id":"CWE-338","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":"eb30b47c0a9424457da62663ea484db3e24caac1838b7c26dc5edc9ff7d8a9b2"},"taxa":[{"id":"CWE-338","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":"2917ef4eca94777c74e0d07f4dae986b71be1e0ee6829c5f1f6aeee6a020372b"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dd2c1923ace67742212ab24f50d654f248ee80e2fbeb1d7b3974a4d4ca74f85a"},"taxa":[{"id":"CWE-352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 14 of 78 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 largest first: contrib/registry/polaris/registry.go, contrib/registry/discovery/discovery_helper.go, contrib/registry/servicecomb/registry.go (and 11 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: version.go \u2194 version.go: \u0060cmd/protoc-gen-go-errors/version.go\u0060 and \u0060version.go\u0060 change together 96% of the time (23 of the 24 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":"cmd/protoc-gen-go-errors/version.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45eba16118c6a7266673d0704f89d8c7c386d058dbb53b1b526f0c5499eb75d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: version.go \u2194 version.go: \u0060cmd/kratos/version.go\u0060 and \u0060version.go\u0060 change together 92% of the time (23 of the 25 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":"cmd/kratos/version.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3fc3e8a3dd9987dfa0e25d7448a629c5837d7907b6dae9f7af2a4ef80bf30c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: version.go \u2194 version.go: \u0060cmd/protoc-gen-go-http/version.go\u0060 and \u0060version.go\u0060 change together 92% of the time (23 of the 25 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":"cmd/protoc-gen-go-http/version.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0ca411f11d4c6f38ea59581a5f4de131e0d2fa6028af43f4bb5802103a1dcd"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"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":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"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":"D37","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":"9d03e50e45de791a350ebf595fcb3269575c0543260ac6707c4b73e65639738e"}},{"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":"e84a25d64757e85318d63b5ca9a240ce161e13fa862d3cfa5e419c4dd1249efe"}},{"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":"2b6a29979d200a78a8e2401db8a1053f8da6d0e61bd95a9366c0e8874a3ff42e"}},{"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":"b1a699425dd404118f9cbddef6208bf9c963f3e325732f398caadd691625cc2e"}},{"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":"cc803ece1363cae2078e49733d1369b4d886c55f9dc1907ea40f1b3fd2933995"}},{"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":"108686299bd93e7af1101b7fb1112a355e2f00f6068a4604069118778bb3453a"}},{"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":"79ffb2363ffce783bfeabb6052f93efcc2e80a5756fff246f83883654dda1a45"}},{"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":"58c1ceabf8daa3f55a9f5f067cf421f2a316d1d16248314cf3c21b8ac2b8fa4c"}},{"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":"28b3fdff914cd98b92b625abe7df2842427a6bf0ee32066365e811620c698ce9"}},{"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":"97b584e3afdc450f9837490d66c2f2f904260f2ec3b76c17cb98f824c7c20b95"}},{"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":"ad6c428ccb2aaa09e67242c0d9f0859691fda1b0d981b427abf320e10451e131"}}],"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-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-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-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-352","guid":"2afe7bdb-7330-195f-b3bf-8cf5b789b3ae","name":"CWE-352","shortDescription":{"text":"CWE-352"},"helpUri":"https://cwe.mitre.org/data/definitions/352.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-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":41,"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."]}]}