{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Field.setupValuerAndSetter (cyclomatic 192): Field.setupValuerAndSetter has cyclomatic complexity 192 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 175 belong to 14 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":"schema/field.go"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"2beaa6e1a4b279cab41d13ef3bd5d47b63e49aee2a81d6b3716c4b2e8606ddf3"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema.ParseField (cyclomatic 121): Schema.ParseField has cyclomatic complexity 121 (threshold 15). Of this number, 112 points are the body\u0027s own statements and 9 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/field.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8304e651b8895e1cbeb9940c6c33aae111ebc1cf08cd0cf91ab03fd26a236a27"}},{"ruleId":"D1","level":"warning","message":{"text":"schema.ParseWithSpecialTableName (cyclomatic 76): schema.ParseWithSpecialTableName has cyclomatic complexity 76 (threshold 15). Of this number, 75 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":"schema/schema.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91999a657645a7db7f16240a6aa391aa72f93eacc64168b047164bf1aa4c3d8"}},{"ruleId":"D1","level":"warning","message":{"text":"callbacks.ConvertToAssignments (cyclomatic 75): callbacks.ConvertToAssignments has cyclomatic complexity 75 (threshold 15). Of this number, 72 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/update.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b588439b4ec1b59781910853ef2b1c5cd313f244ec1708dfff474d20d23127"}},{"ruleId":"D1","level":"warning","message":{"text":"callbacks.SaveAfterAssociations (cyclomatic 74): callbacks.SaveAfterAssociations has cyclomatic complexity 74 (threshold 15). Most of this is not in the body itself: 1 of the 74 points is its own statement and the rest belongs to one function literal inside it that branches (line 111). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/associations.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b0f1758c0478cfd4b85b4f10c17f07fb8a54d3e42fbf5ce8a313e784c2853c"}},{"ruleId":"D1","level":"warning","message":{"text":"callbacks.ConvertToCreateValues (cyclomatic 73): callbacks.ConvertToCreateValues has cyclomatic complexity 73 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/create.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"507b8d512996ced326b7883b110d2ff96f11cb339fa9e547e88bbeb5318f4f23"}},{"ruleId":"D1","level":"warning","message":{"text":"Statement.BuildCondition (cyclomatic 73): Statement.BuildCondition has cyclomatic complexity 73 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"statement.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"91759d53696141e19f4bb20c3fa83c0b678d04744cf8e4583f23b5e5830adec9"}},{"ruleId":"D1","level":"warning","message":{"text":"gorm.Scan (cyclomatic 71): gorm.Scan has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scan.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4266f9598a9851a318122299d54af938f15a53c0c6556b224d5d826ac2f2ae93"}},{"ruleId":"D1","level":"warning","message":{"text":"Association.saveAssociation (cyclomatic 64): Association.saveAssociation has cyclomatic complexity 64 (threshold 15). Of this number, 38 points are the body\u0027s own statements and 26 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":"association.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5c1d4d1ec3db97cab2fcb62e2884e4727321481b4576bbd57b38079d389b18"}},{"ruleId":"D1","level":"warning","message":{"text":"callbacks.BuildQuerySQL (cyclomatic 64): callbacks.BuildQuerySQL has cyclomatic complexity 64 (threshold 15). Of this number, 49 points are the body\u0027s own statements and 15 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":"callbacks/query.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9322dcadc20b5c21fed52779e1a085aae45ca133816a0c98cc957af07604e6"}},{"ruleId":"D1","level":"warning","message":{"text":"callbacks.Create (cyclomatic 51): callbacks.Create has cyclomatic complexity 51 (threshold 15). Most of this is not in the body itself: 1 of the 51 points is its own statement and the rest belongs to one function literal inside it that branches (line 40). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/create.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e509210f00803ba054e44a099c97739c497b5be526de0605c45e32f1a28baaa3"}},{"ruleId":"D1","level":"warning","message":{"text":"Migrator.MigrateColumn (cyclomatic 51): Migrator.MigrateColumn has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator/migrator.go"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64043a5296d24dd981a0a806053b5bc950511c5a2e9426d01bee11313532586"}},{"ruleId":"D1","level":"warning","message":{"text":"logger.ExplainSQL (cyclomatic 49): logger.ExplainSQL has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 6 of the 49 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 57, 172). 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":"logger/sql.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e31b8a0101daddbe84af2821b4eb2009aa9f3c95dcf02c8c11761d8c43b8bfc"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema.guessRelation (cyclomatic 47): Schema.guessRelation has cyclomatic complexity 47 (threshold 15). Of this number, 43 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":"schema/relationship.go"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d897cc1ff7d078b648b1964562e4ef979a73e236d750a0c0b18300bdcd878b"}},{"ruleId":"D1","level":"warning","message":{"text":"Association.Delete (cyclomatic 35): Association.Delete has cyclomatic complexity 35 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 13 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":"association.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d4e96f12d643f8c22c93ca63dc31a85542c83cf41de166d16008571d865d5e"}},{"ruleId":"D1","level":"warning","message":{"text":"callbacks.preload (cyclomatic 35): callbacks.preload has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/preload.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9768426812fcfa4a7603a2fd2424f396952a00ffeb6853b8b31b415e1443be4"}},{"ruleId":"D1","level":"warning","message":{"text":"gorm.sortCallbacks (cyclomatic 34): gorm.sortCallbacks has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 10 of the 34 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 284, 266). 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":"callbacks.go"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f5a086658b71fefc897f925743d5f0f02342afaded57e9dbe7613e332a4570"}},{"ruleId":"D1","level":"warning","message":{"text":"NamedExpr.Build (cyclomatic 31): NamedExpr.Build has cyclomatic complexity 31 (threshold 15). Of this number, 27 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":"clause/expression.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3956b1696d009aaff54f313d80feb925dc43309228e0b8914bffab32c7d8a3f9"}},{"ruleId":"D1","level":"warning","message":{"text":"Association.Replace (cyclomatic 30): Association.Replace has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"association.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd57306862f003f53ee91de0615246fde37236668a137184a91a9cc318e15db2"}},{"ruleId":"D1","level":"warning","message":{"text":"gorm.Open (cyclomatic 30): gorm.Open has cyclomatic complexity 30 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gorm.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"d968bf46c511920cc4057148c4dcaf711c2b9fc2578097431c801acc7160f684"}},{"ruleId":"D1","level":"warning","message":{"text":"callbacks.SaveBeforeAssociations (cyclomatic 30): callbacks.SaveBeforeAssociations has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to one function literal inside it that branches (line 14). 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":"callbacks/associations.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c3394c29c881863bb03a8822e2fd742fc2271939ffa2e6694960242f5d3296"}},{"ruleId":"D1","level":"warning","message":{"text":"setCreateOrUpdateG.handleAssociation (cyclomatic 30): setCreateOrUpdateG.handleAssociation has cyclomatic complexity 30 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generics.go"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11791e9fd62ccc340f551552906a7eab4806989511aefe555c7201f1c2d490b"}},{"ruleId":"D1","level":"warning","message":{"text":"processor.Execute (cyclomatic 27): processor.Execute has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"61447310aafdf9364caca39fc960c078cd680eadedebf7cd1666ff6adcec5aac"}},{"ruleId":"D1","level":"warning","message":{"text":"Migrator.AutoMigrate (cyclomatic 27): Migrator.AutoMigrate has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 5 of the 27 points are its own statements and the rest belongs to one function literal inside it that branches (line 130). 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":"migrator/migrator.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11bf19977f7ab5a26c5c769913f286b493a1260b7379d3ceac9efffac9dceca"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema.buildMany2ManyRelation (cyclomatic 27): Schema.buildMany2ManyRelation has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/relationship.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9818e58644ccd6bd532990b61a24f217e32c30919318ee6fe07caaf77a6783"}},{"ruleId":"D1","level":"warning","message":{"text":"Migrator.CreateTable (cyclomatic 25): Migrator.CreateTable has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 219). 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":"migrator/migrator.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"4550df1a5b608bb1ac51d02a0bd725b96aaaf17359520a774b81412f2a1081d9"}},{"ruleId":"D1","level":"warning","message":{"text":"callbacks.DeleteBeforeAssociations (cyclomatic 24): callbacks.DeleteBeforeAssociations 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":"callbacks/delete.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86fbb3f74d3d787c174fafcb5497cf6bfe0a236fa6c4e4fca5a7fa43b80ce70"}},{"ruleId":"D1","level":"warning","message":{"text":"Statement.QuoteTo (cyclomatic 24): Statement.QuoteTo has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"statement.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2118e6448f6220ab6dce41621aec7ea7c0839874c4bd4d63c4132374efd41e9"}},{"ruleId":"D1","level":"warning","message":{"text":"Statement.AddVar (cyclomatic 23): Statement.AddVar 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":"statement.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a748515e42b042e72bab50d23aac956a699f84da9bb88194237f3e84a6f88c9"}},{"ruleId":"D1","level":"warning","message":{"text":"Statement.SelectAndOmitColumns (cyclomatic 23): Statement.SelectAndOmitColumns has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 11 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 719). 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":"statement.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a2b5d0abfac0027c1c6a40853fb7ce80b9f994af0040386895c6cab1f8519c"}},{"ruleId":"D1","level":"warning","message":{"text":"callbacks.preloadEntryPoint (cyclomatic 22): callbacks.preloadEntryPoint has cyclomatic complexity 22 (threshold 15). Of this number, 16 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":"callbacks/preload.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7881b390771a72455c527b6221caa078bb3819dc7e5d039d39bc6c97360e97c9"}},{"ruleId":"D1","level":"warning","message":{"text":"NotConditions.Build (cyclomatic 22): NotConditions.Build 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":"clause/where.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2284bd18911ef7f3a2cb1018905caf6bb9bbc6519e2fa71a51c34c346a8e14"}},{"ruleId":"D1","level":"warning","message":{"text":"Migrator.ReorderModels (cyclomatic 22): Migrator.ReorderModels has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 934, 983). 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":"migrator/migrator.go"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"5860291277a1a3ea9a276faa23547fb8f7471d0f35b0f56fb3e48a4491125f3f"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.Session (cyclomatic 21): DB.Session 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":"gorm.go"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"28905f6e93f44a4f793758284fa5cee1a2a9c0f8fecd6c1210a8f0d3d04286be"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.assignInterfacesToValue (cyclomatic 20): DB.assignInterfacesToValue 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":"finisher_api.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8b8086b5b3f8ea1bfaf6a922e66f0c750d26a84b2e42ad0e3f5a03fb1e46c5"}},{"ruleId":"D1","level":"warning","message":{"text":"Statement.Changed (cyclomatic 20): Statement.Changed has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 8 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 651). 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":"statement.go"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"835b4dadc203f1fa525f40b12e18ed3bf384a985ed37b74178de6b8dcd491bd4"}},{"ruleId":"D1","level":"warning","message":{"text":"callbacks.Delete (cyclomatic 19): callbacks.Delete 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 116). 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":"callbacks/delete.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d26c68d7baafb390a507499fe6a8ec19eb2f8370d53bb05d5ec3d11bcac6bf"}},{"ruleId":"D1","level":"warning","message":{"text":"clause.buildExprs (cyclomatic 19): clause.buildExprs 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":"clause/where.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d2186fdd4401a60c105a56336cca2ee4713496b95be02c8ab0d7739834faf2"}},{"ruleId":"D1","level":"warning","message":{"text":"schema.GetIdentityFieldValuesMap (cyclomatic 19): schema.GetIdentityFieldValuesMap 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":"schema/utils.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"877b51ef7022d5e3f49acfaaf22f2ac1859e79353cd359f60ad4dec4a180eb7a"}},{"ruleId":"D1","level":"warning","message":{"text":"NamingStrategy.toDBName (cyclomatic 19): NamingStrategy.toDBName 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":"schema/naming.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b18ed886867d6edbb315ddfb4e37714b6922c507d7279df42d93d6d97272f68"}},{"ruleId":"D1","level":"warning","message":{"text":"Relationship.ParseConstraint (cyclomatic 19): Relationship.ParseConstraint 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":"schema/relationship.go"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e14e7e1e11b1cc152e85eb7cd9c4d6c1cc4d4ed7382bc142bbb1554577157ee"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.Count (cyclomatic 18): DB.Count 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":"finisher_api.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacd3c2f37a492ad3853cac1deb82d4fcd8feb462a2e11ae6df8d1ecfcb4d69a"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema.parseRelation (cyclomatic 18): Schema.parseRelation has cyclomatic complexity 18 (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":"schema/relationship.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e644678b34e57b90bc838741612d9e57742620a995c6c8afb9dbd449039b2ef8"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.FindInBatches (cyclomatic 17): DB.FindInBatches 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":"finisher_api.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e0c62f7c22637e7702a7da4ca4db5cb395a78c9ada013bf66ae73e64fa64cb"}},{"ruleId":"D1","level":"warning","message":{"text":"Migrator.GuessConstraintInterfaceAndTable (cyclomatic 17): Migrator.GuessConstraintInterfaceAndTable has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator/migrator.go"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"15563de48578bbc94678407584c81dcadeba058f3712580619c0090e02037eb3"}},{"ruleId":"D1","level":"warning","message":{"text":"chainG.Preload (cyclomatic 16): chainG.Preload 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 482). 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":"generics.go"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f78a2643dbeabfa46d60ce66bb6fc9829429ac59f772676c204ecaf35ced784"}},{"ruleId":"D2","level":"warning","message":{"text":"Field.setupValuerAndSetter (cognitive 282): Field.setupValuerAndSetter has cognitive complexity 282 (threshold 15). Drivers by points: if/else 96 (228 pts), boolean chains 29, match/switch 11 (21 pts), loops 2 (4 pts) (nesting depth added 144). Of this number, 16 points are the body\u0027s own statements and 266 belong to 14 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/field.go"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e6915101f261f917a92dd1e08a8b546a7cb5d3c91853205a271636c415aa06"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.SaveAfterAssociations (cognitive 246): callbacks.SaveAfterAssociations has cognitive complexity 246 (threshold 15). Drivers by points: if/else 39 (155 pts), loops 17 (69 pts), boolean chains 13, match/switch 3 (9 pts) (nesting depth added 174). None of this is in the body itself: all 246 points belong to one function literal inside it that branches (line 111). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/associations.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0fc7f20ea658fb8b8058874d448158c0204fb8a88829d0dc54d3faf7f653d9"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.BuildQuerySQL (cognitive 241): callbacks.BuildQuerySQL has cognitive complexity 241 (threshold 15). Drivers by points: if/else 42 (161 pts), loops 13 (63 pts), boolean chains 13, match/switch 1 (4 pts) (nesting depth added 172). Of this number, 154 points are the body\u0027s own statements and 87 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/query.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ae425d37c869a4d57e527a596bcc2bb0febc28d9e2bb12508842f0f37adb59"}},{"ruleId":"D2","level":"warning","message":{"text":"gorm.Scan (cognitive 225): gorm.Scan has cognitive complexity 225 (threshold 15). Drivers by points: if/else 44 (165 pts), loops 9 (39 pts), boolean chains 15, match/switch 3 (5 pts), jumps 1 (nesting depth added 153). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scan.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c01333ee3ac3cd6c15e99ab5c1b34c2aec1c88e1c84daaadaf3c08b9cc007e"}},{"ruleId":"D2","level":"warning","message":{"text":"Statement.BuildCondition (cognitive 221): Statement.BuildCondition has cognitive complexity 221 (threshold 15). Drivers by points: if/else 38 (142 pts), loops 13 (52 pts), match/switch 4 (15 pts), boolean chains 12 (nesting depth added 154). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"statement.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"6137b40b6a227e6c7b240c9141f329937c8178655dfc738af2900957ddbfd96c"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.ParseField (cognitive 204): Schema.ParseField has cognitive complexity 204 (threshold 15). Drivers by points: if/else 66 (143 pts), boolean chains 26, loops 7 (26 pts), match/switch 5 (9 pts) (nesting depth added 100). Of this number, 166 points are the body\u0027s own statements and 38 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/field.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e452f696f45dfeb7929fb268876dbc791d14a0980efc3f071d334a4ddd7f115"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.ConvertToAssignments (cognitive 192): callbacks.ConvertToAssignments has cognitive complexity 192 (threshold 15). Drivers by points: if/else 36 (137 pts), loops 9 (25 pts), boolean chains 24, match/switch 4 (6 pts) (nesting depth added 119). Of this number, 185 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/update.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0fd1a1927b38b843bb343c475f011db26c6c547c996c4267d8f56c5c3d575f"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.ConvertToCreateValues (cognitive 187): callbacks.ConvertToCreateValues has cognitive complexity 187 (threshold 15). Drivers by points: if/else 30 (117 pts), loops 10 (36 pts), boolean chains 22, match/switch 3 (12 pts) (nesting depth added 122). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/create.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"a261fdfcaf413536f8da5b7bd79e463a2a3bdff694ba36cce1c61bf6b44a174b"}},{"ruleId":"D2","level":"warning","message":{"text":"Association.saveAssociation (cognitive 151): Association.saveAssociation has cognitive complexity 151 (threshold 15). Drivers by points: if/else 39 (107 pts), loops 11 (30 pts), match/switch 5 (8 pts), boolean chains 6 (nesting depth added 90). Of this number, 95 points are the body\u0027s own statements and 56 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"association.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6041fd7766e0aafd5b06117db006666884860e52ac8a4e3e6004708a03cdee"}},{"ruleId":"D2","level":"warning","message":{"text":"schema.ParseWithSpecialTableName (cognitive 137): schema.ParseWithSpecialTableName has cognitive complexity 137 (threshold 15). Drivers by points: if/else 50 (104 pts), loops 9 (16 pts), boolean chains 12, match/switch 2 (5 pts) (nesting depth added 64). Of this number, 136 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/schema.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ef706e361b05a18056f482426af6c6be33a0d51b2d4a8a40fc12efdc6e6082"}},{"ruleId":"D2","level":"warning","message":{"text":"Association.Delete (cognitive 127): Association.Delete has cognitive complexity 127 (threshold 15). Drivers by points: if/else 26 (81 pts), loops 8 (36 pts), match/switch 3 (9 pts), boolean chains 1 (nesting depth added 89). Of this number, 64 points are the body\u0027s own statements and 63 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"association.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"337ca4cc44e15bf5ab140bbe32ce1bec2990fc1e37ac2271353d1352d857d864"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.SaveBeforeAssociations (cognitive 111): callbacks.SaveBeforeAssociations has cognitive complexity 111 (threshold 15). Drivers by points: if/else 17 (82 pts), loops 5 (21 pts), boolean chains 5, match/switch 1 (3 pts) (nesting depth added 83). None of this is in the body itself: all 111 points belong to one function literal inside it that branches (line 14). 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":"callbacks/associations.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9952739b7ad7f4e27088fc940399dd956fd10cc0536b797d687b4fd70f1ca39a"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.Create (cognitive 109): callbacks.Create has cognitive complexity 109 (threshold 15). Drivers by points: if/else 35 (84 pts), loops 5 (17 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 62). None of this is in the body itself: all 109 points belong to one function literal inside it that branches (line 40). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/create.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"64204bb60abe8a3a0ee1fa0126da4261fcbf475c516c54e6de5c98045e4dd666"}},{"ruleId":"D2","level":"warning","message":{"text":"Migrator.AutoMigrate (cognitive 92): Migrator.AutoMigrate has cognitive complexity 92 (threshold 15). Drivers by points: if/else 19 (72 pts), loops 6 (18 pts), boolean chains 2 (nesting depth added 65). Most of this is not in the body itself: 10 of the 92 points are its own statements and the rest belongs to one function literal inside it that branches (line 130). 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":"migrator/migrator.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e277add54aae83780a74c1a8d555d24ee7dc97bab96abc8d6d6a49c1490d22d"}},{"ruleId":"D2","level":"warning","message":{"text":"Migrator.MigrateColumn (cognitive 87): Migrator.MigrateColumn has cognitive complexity 87 (threshold 15). Drivers by points: if/else 31 (65 pts), boolean chains 16, loops 1 (3 pts), match/switch 1 (3 pts) (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator/migrator.go"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"beffc005a00d71aea55747277c2ba601b0aae6e8df79ed7eb0defcabe9b5b606"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.guessRelation (cognitive 85): Schema.guessRelation has cognitive complexity 85 (threshold 15). Drivers by points: if/else 29 (59 pts), loops 7 (16 pts), boolean chains 5, match/switch 3, jumps 2 (nesting depth added 39). Of this number, 84 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":"schema/relationship.go"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"631bda9293ce2ddfaa4692cfb9424d101ca88a6513c14ad88d04f73d4a3558fa"}},{"ruleId":"D2","level":"warning","message":{"text":"Association.Replace (cognitive 82): Association.Replace has cognitive complexity 82 (threshold 15). Drivers by points: if/else 21 (56 pts), loops 5 (18 pts), match/switch 2 (6 pts), boolean chains 2 (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"association.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3765ba082f8ad22fd38aab7e1e326d5eb70c406250d83d00d2a298c5738957"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.preload (cognitive 72): callbacks.preload has cognitive complexity 72 (threshold 15). Drivers by points: if/else 21 (40 pts), loops 11 (22 pts), match/switch 4 (9 pts), boolean chains 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/preload.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33a45866a8a953b2659caa0b4207841fd3ed479b1f166b3c77fd147642304ef"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.DeleteBeforeAssociations (cognitive 69): callbacks.DeleteBeforeAssociations has cognitive complexity 69 (threshold 15). Drivers by points: if/else 14 (48 pts), loops 4 (15 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/delete.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e84e26f3110911875a65f775440a516aedb714e80ee4b37312fb612ea31e4c8"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.preloadEntryPoint (cognitive 69): callbacks.preloadEntryPoint has cognitive complexity 69 (threshold 15). Drivers by points: if/else 16 (54 pts), loops 4 (9 pts), match/switch 1 (4 pts), boolean chains 2 (nesting depth added 46). Of this number, 59 points are the body\u0027s own statements and 10 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/preload.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c349daad95e5b224b414aad25f1e0106249a49349a55038045ed6a58fc1e8f2c"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.assignInterfacesToValue (cognitive 69): DB.assignInterfacesToValue has cognitive complexity 69 (threshold 15). Drivers by points: if/else 11 (49 pts), match/switch 3 (11 pts), loops 3 (9 pts) (nesting depth added 52). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"79dcbbf4307f40636e0151e495de68f7ac4bcf22e7bd191ed73644a36fc17d79"}},{"ruleId":"D2","level":"warning","message":{"text":"Migrator.CreateTable (cognitive 64): Migrator.CreateTable has cognitive complexity 64 (threshold 15). Drivers by points: if/else 15 (46 pts), loops 7 (15 pts), boolean chains 3 (nesting depth added 39). Most of this is not in the body itself: 3 of the 64 points are its own statements and the rest belongs to one function literal inside it that branches (line 219). 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":"migrator/migrator.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d41685eb615ff019c08f1c45a70269db8c0c6fec1008481d045e33f11a5c0c4"}},{"ruleId":"D2","level":"warning","message":{"text":"logger.ExplainSQL (cognitive 63): logger.ExplainSQL has cognitive complexity 63 (threshold 15). Drivers by points: if/else 23 (41 pts), boolean chains 10, loops 3 (6 pts), match/switch 3 (6 pts) (nesting depth added 24). Most of this is not in the body itself: 12 of the 63 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 57, 172). 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":"logger/sql.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34f23e5c871d69da969e79bd74bbdd2e20c6dca857a6023f35b3bb82bbb6af1"}},{"ruleId":"D2","level":"warning","message":{"text":"NamedExpr.Build (cognitive 60): NamedExpr.Build has cognitive complexity 60 (threshold 15). Drivers by points: if/else 19 (43 pts), loops 4 (9 pts), match/switch 2 (5 pts), boolean chains 3 (nesting depth added 32). Of this number, 42 points are the body\u0027s own statements and 18 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/expression.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"589603bf4c3551ea77a6d1ea9fc19b42591c2d9e2e3055d9ec79c1d893ca7391"}},{"ruleId":"D2","level":"warning","message":{"text":"NotConditions.Build (cognitive 56): NotConditions.Build has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (45 pts), loops 3 (5 pts), match/switch 1 (4 pts), boolean chains 2 (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/where.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9690ca8b02523a3b9a54c5a794562fb23d1312a1565f37eeb9f818093be5da"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.buildMany2ManyRelation (cognitive 54): Schema.buildMany2ManyRelation has cognitive complexity 54 (threshold 15). Drivers by points: if/else 24 (46 pts), loops 5 (7 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/relationship.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"948c290c366a531343e86cbfcb1cf7e1839a15161faff5ae3716f5c1d8309835"}},{"ruleId":"D2","level":"warning","message":{"text":"gorm.Open (cognitive 51): gorm.Open has cognitive complexity 51 (threshold 15). Drivers by points: if/else 27 (48 pts), boolean chains 2, loops 1 (nesting depth added 21). Of this number, 44 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gorm.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d0c75a30840d4d781034d692aaa26c8b9e8bf09aefeedfc4ce82c62d98ddde"}},{"ruleId":"D2","level":"warning","message":{"text":"gorm.sortCallbacks (cognitive 50): gorm.sortCallbacks has cognitive complexity 50 (threshold 15). Drivers by points: if/else 23 (42 pts), boolean chains 5, loops 3 (nesting depth added 19). Most of this is not in the body itself: 10 of the 50 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 284, 266). 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":"callbacks.go"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb644bcb50501b46e3a96363e6db7643e62e08804923a608f19985175b8296a"}},{"ruleId":"D2","level":"warning","message":{"text":"Statement.AddVar (cognitive 47): Statement.AddVar has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (31 pts), loops 3 (10 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"statement.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"1944983af9571c3d5d18f6f311434cd48e4c90ece534cc62a099243f75981e7b"}},{"ruleId":"D2","level":"warning","message":{"text":"Statement.Changed (cognitive 44): Statement.Changed has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 3 (7 pts), boolean chains 4, match/switch 1 (nesting depth added 23). Of this number, 17 points are the body\u0027s own statements and 27 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"statement.go"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"0099c39870ab74bb8eec3785c1cc7f678bb4a06220965092c3af7358d60bbdd6"}},{"ruleId":"D2","level":"warning","message":{"text":"setCreateOrUpdateG.handleAssociation (cognitive 41): setCreateOrUpdateG.handleAssociation has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 5 (9 pts), match/switch 4 (7 pts), boolean chains 5 (nesting depth added 19). Of this number, 38 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":"generics.go"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1112a6bd7fb708b9a2320d0af1cab6c3f9d7580d684b4eec9cdd15b2d313e8"}},{"ruleId":"D2","level":"warning","message":{"text":"Statement.QuoteTo (cognitive 40): Statement.QuoteTo has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20 (35 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 17). Of this number, 38 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":"statement.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6871b7a584486625a6cacbe95cda9627d17d65ad0a6f600549052e19517b8d27"}},{"ruleId":"D2","level":"warning","message":{"text":"Statement.SetColumn (cognitive 40): Statement.SetColumn has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 3 (10 pts), match/switch 2 (7 pts) (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"statement.go"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6bb9e94f03388efb881af4b8c999d13ac8498785bb3ce93ed6b5c368f65582"}},{"ruleId":"D2","level":"warning","message":{"text":"Migrator.ReorderModels (cognitive 39): Migrator.ReorderModels has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 5 (7 pts), boolean chains 2 (nesting depth added 16). Most of this is not in the body itself: 6 of the 39 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 934, 983). 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":"migrator/migrator.go"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"65da31296de2357fd07d3e2243e6d9caa0cf1ed8825e012be2cccf543cc40993"}},{"ruleId":"D2","level":"warning","message":{"text":"clause.buildExprs (cognitive 38): clause.buildExprs has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (29 pts), boolean chains 5, match/switch 1 (3 pts), loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/where.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d839b16b31e85eb5df8d040de0056c88e40d4d067dd184faf9dcb05fcfbdb66"}},{"ruleId":"D2","level":"warning","message":{"text":"chainG.Preload (cognitive 38): chainG.Preload has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (27 pts), loops 4 (11 pts) (nesting depth added 20). None of this is in the body itself: all 38 points belong to one function literal inside it that branches (line 482). 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":"generics.go"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d8e854a5a6d9a817a9c1ec7fe31f13fc729033c43ea1e3c84d651fcfc5efc6"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.ParseIndexes (cognitive 38): Schema.ParseIndexes has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (31 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/index.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b29e7f56e010dc1a8c8142dbc79ed9d99d3b24e500ce8693a78a389f349f99"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.Delete (cognitive 37): callbacks.Delete has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (33 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 20). None of this is in the body itself: all 37 points belong to one function literal inside it that branches (line 116). 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":"callbacks/delete.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0710c0c4a90d6e1584a0239712b796c818769b387f2e0dd5c330adffb17294"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.scanIntoStruct (cognitive 37): DB.scanIntoStruct has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scan.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6c546895017a5a25e509d823f615627fb0dbb12840796ba953bf33fc881dd3"}},{"ruleId":"D2","level":"warning","message":{"text":"schema.parseFieldIndexes (cognitive 36): schema.parseFieldIndexes has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (32 pts), boolean chains 3, loops 1 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/index.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e99552107edda3ea3dced3c8748ee2398c355b6215fd44249f53dd536438585"}},{"ruleId":"D2","level":"warning","message":{"text":"processor.Execute (cognitive 34): processor.Execute has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 9). Of this number, 32 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8723d3fc37a90978405e2163060fa042b99d8a556470512dc9f191d916c351f1"}},{"ruleId":"D2","level":"warning","message":{"text":"schema.GetIdentityFieldValuesMap (cognitive 34): schema.GetIdentityFieldValuesMap has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 4 (9 pts), boolean chains 4, match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/utils.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5feee8b776c0db96bb49bdb14cb291054003587983a966dc2c95805a0cfbedc"}},{"ruleId":"D2","level":"warning","message":{"text":"Relationship.ParseConstraint (cognitive 34): Relationship.ParseConstraint has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 3 (7 pts), boolean chains 5 (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":"schema/relationship.go"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"0182a20361aaa9baff5875a90f9712d078c71cf4fb2681c151fed9833936e2e2"}},{"ruleId":"D2","level":"warning","message":{"text":"Statement.SelectAndOmitColumns (cognitive 34): Statement.SelectAndOmitColumns has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 6 (11 pts), boolean chains 6 (nesting depth added 10). Most of this is not in the body itself: 15 of the 34 points are its own statements and the rest belongs to one function literal inside it that branches (line 719). 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":"statement.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"1530ba93b1aaa70525249bb3f49411c63f6fcc70639a34379637172f83920b9f"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.Update (cognitive 33): callbacks.Update has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (30 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 17). None of this is in the body itself: all 33 points belong to one function literal inside it that branches (line 59). 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":"callbacks/update.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60db23c52efc8e2b911b71927777f141d2351095ea7cf4fc696715dd9d01b82"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.Count (cognitive 32): DB.Count has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 4 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1896640a775b04e1716987092675bf93cd6a39f34c50a073df78dc03787ca43"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.FindInBatches (cognitive 30): DB.FindInBatches has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (26 pts), 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":"finisher_api.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"69707f56a3b5fbc9943afda52c8b4c7546db442153c2af8f8ed5416609cd34dd"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.ConvertSliceOfMapToValuesForCreate (cognitive 28): callbacks.ConvertSliceOfMapToValuesForCreate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 4 (6 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/helper.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"072db27306fe8a292d63dd9f6a0ad61a1c0e8d04b5e3554f425b326e96863fe4"}},{"ruleId":"D2","level":"warning","message":{"text":"NamingStrategy.toDBName (cognitive 28): NamingStrategy.toDBName has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 7, 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":"schema/naming.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"568065bb47d8e0d7c0b7a3db0bec7df3a01279d35f2f347693e681d351255b98"}},{"ruleId":"D2","level":"warning","message":{"text":"Migrator.GuessConstraintInterfaceAndTable (cognitive 25): Migrator.GuessConstraintInterfaceAndTable has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (7 pts), boolean chains 2, match/switch 1 (nesting depth added 10). Of this number, 24 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator/migrator.go"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea341c9d5fb21aaaa4d5d755fa43392272d0ddf429e075379d29a69a9296aaea"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.Select (cognitive 24): DB.Select has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 3 (8 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chainable_api.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3ecb5745f65b6b730b121277437620bb8f921b10912255862282e9bdda0471"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.FirstOrCreate (cognitive 22): DB.FirstOrCreate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 1 (4 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"40240a02be809549705082bcfbac282bf5b56ec36d4a51d80c907e9b3f160193"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.Session (cognitive 22): DB.Session has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18 (19 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gorm.go"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd398f4ec9266c799da8be23178cc12ee3614e64527b299865ab5dcf5621c38e"}},{"ruleId":"D2","level":"warning","message":{"text":"schema.GetRelationsValues (cognitive 21): schema.GetRelationsValues has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (8 pts), match/switch 2 (5 pts) (nesting depth added 13). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 74). 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":"schema/utils.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3010ab3d3a4aa9c552c06b163212c40820adec248bce6406913558424e9ada"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.parsePreloadMap (cognitive 20): callbacks.parsePreloadMap has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 5 (9 pts) (nesting depth added 11). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, 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":"callbacks/preload.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f59ae44581312581d27a8be54b0f4a826367f3c24e7672abe3cbfddb0d5f2b"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.SetupUpdateReflectValue (cognitive 20): callbacks.SetupUpdateReflectValue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (7 pts), boolean chains 2 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/update.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f0c6ef8a3421fb3d5cfcb4a728f0d888cc87357cac484bb2552a778d5de764"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.Save (cognitive 20): DB.Save has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc2f2f64598c51659a012101e3a00304e43b6816c8815dbc21ce1e7d6660ba4"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.Transaction (cognitive 19): DB.Transaction has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3 (nesting depth added 8). Of this number, 12 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"38298bd8ffd53a68a441ac98776e5e1c2c60b545ffec4511d33fd967ebea132d"}},{"ruleId":"D2","level":"warning","message":{"text":"chainG.Joins (cognitive 18): chainG.Joins has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (18 pts) (nesting depth added 8). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 377). 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":"generics.go"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"423d996447ff2a18b305fa2d9374972e0aaa51c4cef2a343b8e868bebfc79924"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.setRelation (cognitive 18): Schema.setRelation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/relationship.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"d499308ed9894c2dadbb29e6fbeae6c989bf43d8e7be7ded07b89492524f56ae"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.buildPolymorphicRelation (cognitive 18): Schema.buildPolymorphicRelation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/relationship.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4af79d3a790172f0b18207d31fff0d7eed2ee367eeee5b6f2befaa616d4afa"}},{"ruleId":"D2","level":"warning","message":{"text":"SoftDeleteQueryClause.ModifyStatement (cognitive 18): SoftDeleteQueryClause.ModifyStatement has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 1 (4 pts), boolean chains 3 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"soft_delete.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76c38b9beaa610f8a20e5045ff2cbadf89c4990373be377a7e4eb94e96deee7"}},{"ruleId":"D2","level":"warning","message":{"text":"Expr.Build (cognitive 17): Expr.Build has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/expression.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cde616a68a8684f9e0fc710694961323ec59a1d11da2194a7c8796f01d79f38"}},{"ruleId":"D2","level":"warning","message":{"text":"gorm.prepareValues (cognitive 16): gorm.prepareValues has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (6 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scan.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"920dfce7a866860df7e9271ac3cf5923fd4ec1b98d614dd3b8e3d59364c5f9ea"}},{"ruleId":"D2","level":"warning","message":{"text":"OnConflict.Build (cognitive 16): OnConflict.Build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/on_conflict.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b291dd2c20cbb3d54d98b8c39299dd72c8db3283e97357ed413a1fc951ac15"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.CreateInBatches (cognitive 16): DB.CreateInBatches has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 8). 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 41). 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":"finisher_api.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fc18735294aa703670022870189fcee05469517b483f745c8ced029d49be46"}},{"ruleId":"D2","level":"warning","message":{"text":"Relationship.ToQueryConditions (cognitive 16): Relationship.ToQueryConditions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/relationship.go"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"507385843f73d48f7d9a4f896dede6e99af07505072d5205b923601b238633f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.parseRelation (cognitive 16): Schema.parseRelation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), match/switch 3 (6 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/relationship.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"549b108ed4eab9397d0a89184b3f26484c06083b5dd3fe477f7ba5d195aa1bc6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Field.setupValuerAndSetter: MethodTooLong \u2014 setupValuerAndSetter runs 421 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 321 over it, 4.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/field.go"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"d496cf4526a64946d6a0fee85f175779d993a7c75595f43fda7a99ae57b94e78"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DB: TooManyMethods \u2014 72 methods, declared across 6 files: ./finisher_api.go (30), ./chainable_api.go (24), ./gorm.go (14), ./migrator.go (2), \u002B2 more file(s). The bar is 30 methods; this is 42 over it, 2.40\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gorm.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a79d1b9eb3f52d5529663816c7f1a7a9857345cd4a85804c55ccd73e54d504"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Schema.ParseField: MethodTooLong \u2014 ParseField runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/field.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5931c827c68477face65d170ac6b6a1cec0af144609b3176d19d3aba64822a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: gorm.Scan: FunctionTooLong \u2014 Scan runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scan.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed299926746dfab8f0343d7d235c135bb643ef114189adb6be467eac2c57447"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: callbacks.SaveAfterAssociations: FunctionTooLong \u2014 SaveAfterAssociations runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/associations.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c25cd63122418b20fc737e516ac877768b97f90a30d7a8c0e32bdb7bee317f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: callbacks.BuildQuerySQL: FunctionTooLong \u2014 BuildQuerySQL runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/query.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd368bc94576fba03785b718bfe1649f9f72b73b5bbe107e93378d4c147cf07"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: schema.ParseWithSpecialTableName: FunctionTooLong \u2014 ParseWithSpecialTableName runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/schema.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef780db8df683636648bda5746f4415cafa627362bf5f084d5bb8d3116dd9376"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schema/field.go: FileTooLong \u2014 739 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: Field (4 blocks, 55-1011). The bar is 500 significant lines; this is 239 over it, 1.48\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/field.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"696cea3c8fc38fe195aa4663fbddb45e5b8df7903d5653b20f268d292b73e649"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Association.saveAssociation: MethodTooLong \u2014 saveAssociation runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"association.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"475cc53d156eef3c9a28b9da65c9610dc02b04014ea3b7f3dc0361133f8f4a09"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Migrator: ClassTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods, 37 blocks, lines 35-1043. The bar is 400 significant lines; this is 159 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator/migrator.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"523577b4182006adc4b5d2bc9bd91810cc735b504706ee672920ca3da0893900"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Statement.BuildCondition: MethodTooLong \u2014 BuildCondition runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"statement.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"4829faf03de36089a97564ce204d9f0000bbc5a4cb93d83dc2a810c42a365a88"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Field: TooManyFields \u2014 38 stored fields beside 3 methods. The bar is 30 stored fields; this is 8 over it, 1.27\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/field.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a50aba4b3cfb56da0beded422783d0785988d47aa846b2607d81c1515bfb2c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Statement: ClassTooLong \u2014 484 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods, 17 blocks, lines 22-772. The bar is 400 significant lines; this is 84 over it, 1.21\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"statement.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1902fa7da2a5b6974430d0f96f6a7395bc10f6865327b9fe4754647149f5e7f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Migrator: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator/migrator.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"027c1833d30b8029a85b691cede75ba23c01010b9e5b43273f413c77c83b8486"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Field: ClassTooLong \u2014 475 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods, 4 blocks, lines 55-1011. The bar is 400 significant lines; this is 75 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/field.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8dfe294d033b39d875da9b937d715e644671265770fc52b18297d65f621178"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: migrator/migrator.go: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: Migrator (37 blocks, 35-1043). The bar is 500 significant lines; this is 90 over it, 1.18\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator/migrator.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b9cc2a9c4d5beb1c724038e830b18559bcc699dfe2dc796deb0eaa54fee279"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Schema.guessRelation: MethodTooLong \u2014 guessRelation runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/relationship.go"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"249211d6f238b9e55f3b810dc035156aaea1f74450bcabed9b45b3b794a5863f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Schema.buildMany2ManyRelation: MethodTooLong \u2014 buildMany2ManyRelation runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/relationship.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fa14faebbdeef3cc41aafa37aa671f95e718049a4f0ced68cfcb1760ea3ec7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: callbacks.ConvertToCreateValues: FunctionTooLong \u2014 ConvertToCreateValues runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/create.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c0904591e77481847c1270de04c6afc34696423f0c32bbe741d79cace12df5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./generics.go: FileTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 71 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generics.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d249b54b30209efd702c0b33b547f0ccc375491594115951275622500ce9be8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: callbacks.ConvertToAssignments: FunctionTooLong \u2014 ConvertToAssignments runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/update.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eafe65e379148004ea5fbcb62c7d1d08f0730eaab5be644bf4cad11bae4d8e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: callbacks.Create: FunctionTooLong \u2014 Create runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/create.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2d238a038d0dae909d1f51db4d12dd3cbff018493b05d57ba83ec327f94d7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Association.Delete: MethodTooLong \u2014 Delete runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"association.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36be55a66793f9dc22127b7dc0765fdbe06e35f5bd2005a3285c890b7cfeed9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: callbacks.preload: FunctionTooLong \u2014 preload runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/preload.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59e38f09e1bd567061d9203fd03fa46dbbd75fd7aca0d3eafa1549f94582fe1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: logger.ExplainSQL: FunctionTooLong \u2014 ExplainSQL runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"logger/sql.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e1c8ce1b59df32deb969c8456995e93c0dd3594c291815b1137b7b70dfd110"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./statement.go: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: Statement (17 blocks, 22-772). The bar is 500 significant lines; this is 22 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"statement.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"248d63166f62c0a79d3927e5d1762ec193568a02c2095614ae204c27877b8b77"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schema/relationship.go: FileTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: Schema (5 blocks, 65-622). The bar is 500 significant lines; this is 11 over it, 1.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/relationship.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a73df6929331c6efb37b89e3d6084d31f05f12b6875d8d6d809c19427779ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): clause/expression.go:237-263 | clause/expression.go:272-294 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/expression.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7274176d90d8fc78db931534e48b575a73002a3bc4f651f8bae54d9eec72b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): callbacks/create.go:15-34 | callbacks/create.go:223-242 | callbacks/update.go:33-53 | callbacks/update.go:122-142 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/create.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"251238af3e5e9978c92becc3d09f9daae650815ab723145feacda218da91db6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): clause/expression.go:190-209 | clause/expression.go:211-229 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/expression.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a7fb8efefb4502c34f1dc95375c7ca48e4cce1803557b891c40c16ee283377"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): finisher_api.go:130-142 | finisher_api.go:145-155 | finisher_api.go:158-171 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65b4a0dbc911a4c47c5ad224dac725483a3705802553a0075241812c20c4fc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): callbacks/query.go:14-34 | callbacks/raw.go:7-22 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/query.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"47dea821b6e934b5fb26135ebdc705e01fb9b3d7783983568f63b3a4574a181c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): finisher_api.go:737-758 | finisher_api.go:760-781 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"74fa3f06bc45c416050ff6e0015d712cda5b47a4f0a6de95acac53148a2c51d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): schema/serializer.go:77-101 | schema/serializer.go:164-182 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/serializer.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b685b2dbe3977312a0ea72c74762e09c228ae4785260f917e7d457534a784e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): finisher_api.go:174-183 | finisher_api.go:443-452 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6127144e89f231e0ef658ec17f60a38f4a92d4cce8e6fc8f934cc0259908be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): migrator/migrator.go:429-447 | migrator/migrator.go:789-805 | migrator/migrator.go:883-900 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator/migrator.go"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"39afe4cfc24f32baf2da3c73307a6da0add24ec219898d3d1cd3b7119acdcfae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): callbacks/delete.go:13-24 | callbacks/delete.go:190-200 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/delete.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9269a1fee85c4f1cc446188fb301e022a5712fb07bd356cabf82af99ef2a2a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): migrator/migrator.go:397-409 | migrator/migrator.go:412-426 | migrator/migrator.go:450-467 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator/migrator.go"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a9ff7e63d69334e69035d0068fa90b65111dbac76516123d08c745fc7c1ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): chainable_api.go:461-471 | finisher_api.go:784-795 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chainable_api.go"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d0950473fd26062b93cc3f8c03129bbf66f7ed3c1fad02acb36196e455543b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): internal/lru/lru.go:220-233 | internal/lru/lru.go:237-249 | internal/lru/lru.go:253-265 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/lru/lru.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7911dea8bc60646fea323a8762f82ce8eb33824d392e635ca40912d7c29e915"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/lru/lru.go:147-160 | internal/lru/lru.go:173-185 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/lru/lru.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bec1fba00e270ba477a275e4ee4e078763788b410a7aeea2da66cd2ce25506"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): prepare_stmt.go:109-118 | prepare_stmt.go:120-129 | prepare_stmt.go:170-179 | prepare_stmt.go:181-190 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"prepare_stmt.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"563e8f430b35aebaa3d4a96a63baa818e063d026061eef8e85951c06364a19a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): chainable_api.go:221-227 | chainable_api.go:235-241 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chainable_api.go"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e8cc9d6892eca740ac246806611eb1e1d1cb3aee20003335cf16e457ac5aed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): finisher_api.go:516-524 | finisher_api.go:526-534 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf1e1859686948bdc713137b98ac4798a26dc3708d3dd966ebc98e52588c851"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): callbacks.go:234-240 | callbacks.go:242-249 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1625ad18a3c692aff376ffb5b2b99289a7466d33cc2d2c3f8cc2eb6eae304e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): clause/insert.go:29-39 | clause/update.go:28-38 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/insert.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"575eda21f0c8c4efd4f504f5f11e9aaddfd1599e38b8eb42833df36b26c50225"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): clause/insert.go:14-26 | clause/update.go:14-25 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/insert.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7ea04e74d39dc777455781072301f98182c3be965db6f0b9786d34c3c2752c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): clause/select.go:14-29 | clause/returning.go:13-25 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/select.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a41c22139ea4d74f0972da33a669ea022c7ab2cacae2013a14443c71331283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): generics.go:593-620 | statement.go:217-244 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generics.go"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"d656960d42cee3aea54275c87fa8222c4ec2848f044f464e125a0c921483a1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): callbacks/associations.go:72-84 | callbacks/associations.go:309-323 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060callbacks/associations.go:72\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":"callbacks/associations.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"038e97b727890ba72b44f696624602214f266ec62d9d6bfe8ce00b031e93b915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): clause/where.go:191-204 | clause/where.go:226-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 \u0060clause/where.go:191\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":"clause/where.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e39f7741216abf844e327afa36c8a7ac8b294a6da4aacdb5b35b1b2f6969e6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): association.go:165-176 | association.go:276-287 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060association.go:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060association.go:164\u0060 calls \u0060Model\u0060 and \u0060association.go:275\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"association.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"6594c75bdb1c9253e13f6a7da195ac12845e20235a262563424bea424fa03010"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): callbacks/associations.go:69-79 | callbacks/associations.go:217-228 | callbacks/associations.go:306-317 \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 \u0060callbacks/associations.go:69\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":"callbacks/associations.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"318585e029acd02d41dfa7dd17d4eb191c7007941bd992f17aadd377aa75824d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): schema/schema.go:154-164 | schema/schema.go:397-407 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060schema/schema.go:154\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":"schema/schema.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fe2e832df3a1670aba87ad8d2fa81ccb09789656b25c693ef026e40c6fbd19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): callbacks/associations.go:191-200 | callbacks/associations.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/associations.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3419ff4ab956cb1bd8f5cf5f700ed8e317fca2ecce228afaf7ca3db625ed9b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): callbacks/delete.go:88-97 | schema/relationship.go:735-743 \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 \u0060callbacks/delete.go:88\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":"callbacks/delete.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa50c9fdd263a499eaf4c14d75319602d511af2b913fa7e26a1f854062f6be0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): finisher_api.go:325-334 | finisher_api.go:371-380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a55915255d572c144ec9e365b6dfbf4eff16cdbe69ba03e09592b0a34f89d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): migrator/migrator.go:348-357 | migrator/migrator.go:359-368 \u2014 both copies are in the same file, so extract the block 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":"migrator/migrator.go"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"678335c05dd3219575260ec91234c6827f9646fdaf0f7c72d949636bec683733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): finisher_api.go:134-142 | finisher_api.go:147-155 | finisher_api.go:163-171 \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 \u0060finisher_api.go:134\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c37cdd6f31e6f874b08827271c460314a247a92b0a4982005cef7a5c687751f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): callbacks/associations.go:240-250 | callbacks/associations.go:326-336 \u2014 both copies are in the same file, so extract the block 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":"callbacks/associations.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a0f6e7a77b5a47a93a99c4a91381e2e58b7d172dbacc2ad210df983fda372b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): chainable_api.go:462-470 | finisher_api.go:785-792 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chainable_api.go"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc67bd5651e842ca78264c2d81fc66b2e251ec922d3c36e63e1833cc5e5b5a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): schema/relationship.go:318-326 | schema/relationship.go:346-354 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060schema/relationship.go:318\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":"schema/relationship.go"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d4640a16969cf2a524e3520ffa6548a2d5bd100e833246f97f9890d04f6133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): callbacks/associations.go:158-165 | callbacks/associations.go:252-259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060callbacks/associations.go:249\u0060 calls \u0060appendToElems\u0060 and \u0060callbacks/associations.go:155\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/associations.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4995681ae39ef59b181e03d0a5c7700429e16ae6b95f6b8085332164be20105d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): callbacks/preload.go:203-210 | callbacks/preload.go:249-256 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060callbacks/preload.go:203\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":"callbacks/preload.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ad78c9aaa35b994a7bae8605a5660f4a742947b036b4593c0eb55708ad079d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): association.go:85-92 | association.go:240-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060association.go:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"association.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7d9cded2e141bb05a685de747324ca68b3cfd5592bfe15472f7af5135d2839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): callbacks/create.go:17-23 | callbacks/update.go:35-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060callbacks/create.go:17\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":"callbacks/create.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"fecef3a63ff604dd0ceb143fed76c3682f6ca6ed2c6e5f2418aa07e09e2d1ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): chainable_api.go:119-125 | chainable_api.go:149-155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chainable_api.go:119\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":"chainable_api.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"822dac4e7893b613934007c3baa97eaca5ec20d71f40feecc47ef1102cb2d1bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): finisher_api.go:175-181 | finisher_api.go:444-450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da67295917cca995e1f32bd90a307af46d78a13824155d8014281952caeea13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): association.go:229-234 | association.go:294-299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060association.go:229\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":"association.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e6ddfe30d58f7bcf417b04f9c22cb22412ed5d69d5b3fb5de4031aeb488f87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clause/where.go:58-63 | clause/where.go:65-70 \u2014 both copies are in the same file, so extract the block 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":"clause/where.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d23d3aa46426eba2ebe427f8fc376d0f2db54be867f903a6063d4a08f467ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): statement.go:432-439 | statement.go:446-453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060statement.go:432\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":"statement.go"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"596f954013412e691d50269594379b21ac00c60ca3c2a2d6a40fccba66263690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): callbacks/associations.go:147-151 | callbacks/associations.go:211-215 | callbacks/associations.go:280-286 \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 \u0060callbacks/associations.go:147\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":"callbacks/associations.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb977b3cd70e5b2241df6774980413051697891618e8d0005c255682ccc2a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): callbacks/delete.go:173-178 | callbacks/update.go:89-94 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060callbacks/delete.go:173\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"callbacks/delete.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"beda33f1f2c78cee19a68cd7d20882ef481ac058e14a22b49131302d63fd5e8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/lru/lru.go:241-245 | internal/lru/lru.go:257-261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/lru/lru.go:241\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/lru/lru.go"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"30df8c3c6913fbf75d60309f15e10000acdb8468fa3ff5792e27199bdd1d8bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): schema/field.go:672-678 | schema/field.go:681-687 \u2014 both copies are in the same file, so extract the block 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":"schema/field.go"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a06cbf5b8a86d79aa01fb4a6c9713a94418b5fbf866d142f1ed5f2301fffc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): schema/field.go:897-907 | schema/field.go:923-933 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060schema/field.go:897\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":"schema/field.go"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"6434cb03594530c43561dc2b2f7ce2b9f37a340e4498e3d5e8bd4256f23ca48c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): callbacks/associations.go:93-98 | callbacks/associations.go:166-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060callbacks/associations.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/associations.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e242cf0e50d4f26923b7fa2bcf9909993611e7e1cc94bb5043f8a22d40efd8d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): generics.go:47-54 | generics.go:77-84 \u2014 both copies are in the same file, so extract the block 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":"generics.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5579968524eb8928a2f8dd5cd818dda5e8876f7f7bda9d94b7ad00d023671f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): generics.go:57-61 | generics.go:87-91 \u2014 both copies are in the same file, so extract the block 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":"generics.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f50e7d8bd5070432e11642f1dee973fb9ccd130934863e3087828c84c14326"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: logger (LCOM4 6): logger\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"logger/logger.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c329c308ab54a8a727898e8471b9dcedea4af5d99f86cafeca2b01838810369"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: logger/sql.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6da7f53501738b18eec441228206d1e4f480795383f3ead5bc1f88843dce4798"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 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 (2 single-owned of 37 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 37 of the 66 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: migrator/column_type.go."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO support save slice data, sql with case? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"association.go"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"21898e743d5d98e2db986e3bec479c5794d89a572665b186c9a3427f56403eea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: function gen_random_uuid() does not exist \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/gaussdb_test.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"203c99f66cf48ca722d90e1860f1c8c41216023eec7d3049e129250222272c8a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: function gen_random_uuid() does not exist \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/gaussdb_test.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"625676b9ff38345a340b50b05324ede3732c21b51a1bf0988f35f7cd46bae9cd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/migrate_test.go"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"4831c43d0b3e9b7c011d80b6d978a71e727aa05a0181bfd8a199759668ab9107"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: ERROR: could not open extension control file: No such file or directory (SQLSTATE 58P01) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/migrate_test.go"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6414988e3ae9afc08e652780304ebbd8545d15f053dde06a63122f03e8cfe9b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: ERROR: must have at least one column (SQLSTATE 0A000) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/migrate_test.go"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"f078e0752fb1ba0a79972e259f7cc0dca03e092513c4d89210f73391b8df2eaf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO:? Create const vars for raw sql queries ? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator/migrator.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"103e67420535fd27572103dc2182caab44cd59f1c0df03350ce78ffce483e7eb"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: the repository holds project manifests and neither \u0060README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33a5992d4bd6ac1ea4b853ae69753fcd7e0410099c58731c86be53325ba8c96"}},{"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":"b854f1d357377cc1111101f23ae7143595aa248db48c56611bda938c836a5a20"},"properties":{"commitSha":"e0f9087c8d67b035172c15aabe1953aae4293d9f"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"887b0cafcb85e11c3f2611cb5f8cd98217d5064cedf88ab5c41ab14c5decba5c"},"properties":{"commitSha":"e0f9087c8d67b035172c15aabe1953aae4293d9f"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ff4cd9680f1e13e8d9334ed6d16f42484b9f6f7f9c976b0ffd307a98d063cfe"},"properties":{"commitSha":"e0f9087c8d67b035172c15aabe1953aae4293d9f"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"da444601bcbda37607657b317138b36b5bc7cd761dd420552bba8c15c7ecc0ed"},"properties":{"commitSha":"e0f9087c8d67b035172c15aabe1953aae4293d9f"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c9a0946fe939f90c54b730d7e30b61b91c1e6612e01c2ff606b91a918407e52"},"properties":{"commitSha":"1acbb34406b2f2396bd843fe57595f031494610c"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25575659f55e3dc1cf37bae405f80d3cbe828893f8b6c408a914ccb83f2b6cf8"},"properties":{"commitSha":"ef9d2070bbed3d9186f8e0aa1b86c55b20411a55"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"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"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0ec4d1455cf61acfa62b7aa8e596cfbec3a905cd225bf5db33a3bae350022a8c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"32b327306dfebbce93d872e619812a07ba1a4fdb7d85b5c58497785179121f87"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a6c34ea225f52222988a05ef13a113513b8a9973dd4bf3676ebbfdf9c41bbe36"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9a187991eb5ec7c3173a6cf56cbb9544c492b756981f61e414bd32a1dd12e36"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"08bc5c1db14242ca6a0e8cd9a6ef237fa56fafe6fedd28afec6f6b0e52331dbb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0064c04ba2c28d5780b008ff6bf5ae68c4c156bd695ec468299ecafa71076e3e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f9ab7342ed302c6d3f03866ca300f153d6cb3f17a7abc653705e7e32af47bfd3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a3e71a85b30350b0e3fc279affb7ce784e84d5e6b1b73b45db97affc36bfa4c4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7814580f079ce97cfddaa45b3b14bd1b7c4b99e1404ac4c3710b92c49e7fa43b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5347ecec7591170629c15c4fa6ca3de2ee2c5ba0078db47a37988365a2931868"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e1fb1af44a054712de221e9144bb4cf74e541340d3ce2cc2809788b98f0eca08"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab8d83539c5ebe567cb6deae98d392d6617f9ea4001a34a9a21fb3f393c0be8f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e39fd21d07f886a2b296e25263389bae40f24917b54fa0c4c991835b1daed8a4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c9b7062ff2570529693c7a6c6b3652920b327bf1ddb4553a1781d2ac0dedca7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9e1bae085e74df725d6fccaf415d730541a4926aaa6c6bb9aad99771235953f9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3873adbba6227125e26e501934964f6d49da5d87165383ff95af290192ea23f2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c98b9b97919003d5f61034eb9b717e6ea89253211b430c2cfcf2ec6aef2c8ab9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"32a8bd1a8cfcd5ff3917d08c69617ef5d92e9caaddbd54eda637f77e9597c3f1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f96bfdc54de436ffce0b7b8e1aef47a29998e7735584876a7d9a4fbe56e7a74b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"45a7a3c296d604d089618ecc3c420a6686670e223d2fb39fcf9d29e5da0b6980"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0eee103693b5ebc2238a6bdac3e6cecbe0d480f79baffd781645205f36d1167b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"309cea3e75cffd51f5d030d1b858e73bf31ad26a8d3725d0d6d99c7775d24dbd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a064487a051e6e65048327c180326f5e316a0c57faf50afc3e5a0b8e3bec933c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4a1b2ef3a5ed48c92f3f33980ab492fbb8ae50416d5f9861da0e4fd7630316b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a666b42905d8f94f3a160cb5a02c3f4cddd3b3b246e02a7e56d23ac542c44bd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b98cbb8f083f720b982911a0578b63b23762e12929c81ab96af22d37fcc4642a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c86014d4a654804e46f5a5be9b79ea1773cfa83d39e5e4c7949f8c462082edbf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9439627909c781396353dace65c52db9a334de92ae85a09e22bbc65f46cf6d7f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"63975acfd2644f97888e556aa1c49003ced05c627abb1eea0d27ba79ed1f2b77"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c3e24534085ed87ce1423fb5b2c749e17f719d3abe8d0590e70dffefc9ca0369"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f6248f32cb3a92822748437887827ca7dd23cf3c7ecfc15a0c5e6c4e25aeb395"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"489113512d7bdcc95c29edf2cb8b7c5c11da68e57fdae1233772b535daa0e788"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1c0167198b31cb058c96d042b79b3286187c742ae65886c81ee16052b5d960cc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2401cb8c0210c13d3ac0a8468a4b17dea9f447ca5fa052931ede9a5105bf644e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"1565883df75385a1b207f5259f3dbab918cdee06070ebc6950ed5da06d6b66ca"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"9eea85c954a2987bd5bf8511bc58f2e5efaeeb048964b2db197544ecf73ae013"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe513dc4b825d72f0c17cbcdbca2a635adb3e19c0c59e0c00a24f4cc88dd9195"},"properties":{"dependency":{"package":"stdlib","version":"1.18.99","advisory":"GO-2023-1568","aliases":["BIT-golang-2022-41722","BIT-golang-2022-41723","BIT-golang-2022-41724","BIT-golang-2022-41725","BIT-golang-2023-24532","BIT-golang-2023-24534","BIT-golang-2023-24536","BIT-golang-2023-24537","BIT-golang-2023-24538","BIT-golang-2023-24539","BIT-golang-2023-24540","BIT-golang-2023-29400","BIT-golang-2023-29403","BIT-golang-2023-29406","BIT-golang-2023-29409","BIT-golang-2023-39318","BIT-golang-2023-39319","BIT-golang-2023-39325","BIT-golang-2023-39326","BIT-golang-2023-45283","BIT-golang-2023-45284","BIT-golang-2023-45287","BIT-golang-2023-45288","BIT-golang-2023-45289","BIT-golang-2023-45290","BIT-golang-2024-24783","BIT-golang-2024-24784","BIT-golang-2024-24785","BIT-golang-2024-24789","BIT-golang-2024-24790","BIT-golang-2024-24791","BIT-golang-2024-34155","BIT-golang-2024-34156","BIT-golang-2024-34158","BIT-golang-2024-45336","BIT-golang-2024-45341","BIT-golang-2025-0913","BIT-golang-2025-22866","BIT-golang-2025-22871","BIT-golang-2025-22873","BIT-golang-2025-4673","BIT-golang-2025-47906","BIT-golang-2025-47907","BIT-golang-2025-47912","BIT-golang-2025-58183","BIT-golang-2025-58185","BIT-golang-2025-58186","BIT-golang-2025-58187","BIT-golang-2025-58188","BIT-golang-2025-58189","BIT-golang-2025-61723","BIT-golang-2025-61724","BIT-golang-2025-61725","BIT-golang-2025-61726","BIT-golang-2025-61727","BIT-golang-2025-61728","BIT-golang-2025-61729","BIT-golang-2025-61730","BIT-golang-2025-68121","BIT-golang-2026-111943","BIT-golang-2026-25679","BIT-golang-2026-27139","BIT-golang-2026-27142","BIT-golang-2026-27145","BIT-golang-2026-32280","BIT-golang-2026-32281","BIT-golang-2026-32282","BIT-golang-2026-32283","BIT-golang-2026-32288","BIT-golang-2026-32289","BIT-golang-2026-33811","BIT-golang-2026-33814","BIT-golang-2026-33818","BIT-golang-2026-39820","BIT-golang-2026-39822","BIT-golang-2026-39823","BIT-golang-2026-39825","BIT-golang-2026-39826","BIT-golang-2026-39836","BIT-golang-2026-42499","BIT-golang-2026-42504","BIT-golang-2026-42505","BIT-golang-2026-42507","BIT-golang-2026-56853","BIT-golang-2026-56857","BIT-golang-2026-56858","BIT-golang-2026-56859","BIT-golang-2026-56860","BIT-golang-2026-56862","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2023-1569","GO-2023-1570","GO-2023-1571","GO-2023-1621","GO-2023-1702","GO-2023-1703","GO-2023-1704","GO-2023-1705","GO-2023-1751","GO-2023-1752","GO-2023-1753","GO-2023-1840","GO-2023-1878","GO-2023-1987","GO-2023-2041","GO-2023-2043","GO-2023-2102","GO-2023-2185","GO-2023-2186","GO-2023-2375","GO-2023-2382","GO-2024-2598","GO-2024-2599","GO-2024-2600","GO-2024-2609","GO-2024-2610","GO-2024-2687","GO-2024-2887","GO-2024-2888","GO-2024-2963","GO-2024-3105","GO-2024-3106","GO-2024-3107","GO-2025-3373","GO-2025-3420","GO-2025-3447","GO-2025-3503","GO-2025-3563","GO-2025-3750","GO-2025-3751","GO-2025-3849","GO-2025-3956","GO-2025-4006","GO-2025-4007","GO-2025-4008","GO-2025-4009","GO-2025-4010","GO-2025-4011","GO-2025-4012","GO-2025-4013","GO-2025-4014","GO-2025-4015","GO-2025-4155","GO-2025-4175","GO-2026-4337","GO-2026-4340","GO-2026-4341","GO-2026-4342","GO-2026-4403","GO-2026-4601","GO-2026-4602","GO-2026-4603","GO-2026-4864","GO-2026-4865","GO-2026-4869","GO-2026-4870","GO-2026-4918","GO-2026-4946","GO-2026-4947","GO-2026-4970","GO-2026-4971","GO-2026-4976","GO-2026-4977","GO-2026-4980","GO-2026-4981","GO-2026-4982","GO-2026-4986","GO-2026-5026","GO-2026-5037","GO-2026-5038","GO-2026-5039","GO-2026-5856","GO-2026-5972","GO-2026-6088","GO-2026-6089","GO-2026-6090","GO-2026-6091","GO-2026-6218","GO-2026-6599","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","GO-2026-6859","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"production","file":"utils/utils.go","line":24,"symbol":"filepath.Dir"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"76d999f7f0da1c7805a61d7a77ca6e9d78cdf7e7d953cafe7b73d81759ae1a99"},"properties":{"dependency":{"package":"golang.org/x/text","version":"0.20.0","advisory":"GO-2026-5970","aliases":["[CVE redacted]","[CVE redacted]","GO-2026-6629"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D34","level":"note","message":{"text":"Concentrated knowledge decay: 30 of 37 significant files have no living knowledge, while the repository is still being changed at a low rate (2 commit(s) in the last 90 days) \u2014 so this is one repo-wide knowledge-decay state, not 30 separate risks. Counted over 37 of the 66 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"008bd8d3156a7f5206da709f59f1f87af76671c6b9becea72c8c9cffbcbd4f8e"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/field.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2b1f8dac8163bbc7f6b32a1e09a7d1e19377a34ad940673b01eebe18576e4e"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generics.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c3cb681a253219bd5791dac720029cc5a63962ebbc54cc7f6124849e723b85"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"association.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"137ad93941834ae34ca3067b4f31f0b8ea9e074a39d84e2331d63d4ce1fdb4c7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/relationship.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b811733e7171f8a2df228ee6d3eab908fb831aafb78eeeb5b2b18a14981da8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"statement.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e46047420b408bd80bd9880bc36c60a04bc770c1306df41831670975a9bd751"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chainable_api.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb53fd3774999f0fdde1f96c7c4172e356019a422f4f5d1f07a5500f66f0e0f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/associations.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf918b9d310bda9edf6e1a5e6c09b8bcf489e80095f4364b7027c8445d8f2eec"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/schema.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4259fd9589e2072c9188c84d7e3ddc81de8c8d9fef6af7c6935d0f908adcaa8c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/create.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afeef78b35a6dd441f1aaa42042241d0f346b650e54e492072ae43cd439373f4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/lru/lru.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"182736493664fdc2f58454a64268df0411039890f410846b19e6ea7f5a7e5e83"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/preload.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc38298c46956a698b81cde19a7e516267837ab5933a0d40b40e9700b262d23"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scan.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd2effc6ec8e995bba8ee321fbd3abb4f09495261fc58669c1f33db4e8ce1f3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/query.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36bfeb54858d9eb044c3bfe608a2e325394ca9689296e6a842a0d1cad00b651"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3af0d07b364b092fa2528b0505016c016f2527c1e822dddd9b117f0b85a1494"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/expression.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ccb85d1de9462191861cfc213839abddf0e19c295337205a82a5eddc8553b6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"logger/logger.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d6c78d2ae0e6fca0aa44ccee9a9d233a681fb07addc6e854b8ea64f48b29e7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/stmt_store/stmt_store.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c9b41a52e68865ffce09c1f8278f020f951fd4333561f79913b4afc027ee97"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/utils.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8013667eefd17f15f35d3f258353a4adbf29a36eaf17f824bfddfa003b2aca7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"prepare_stmt.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b433eecfc04b0ff47b8760681464312777bae0471a01ae4257b96e88799096"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/naming.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44797df34bd997410fd8d3e31299ed753649f7abb7ee37d9da7d1aefa885999e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/where.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c18914859ad892f73a3fa5bab8bc56e6ba3a10e9316b9e8d4bf9f5d982a3cd4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/serializer.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"089c7cda0a7b6a02b040ac745ce8dd51d28d60de2a38784dd642b28c3e81a553"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/utils.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af093e461eecc0db27718155fc3c632b14512894dc0fdfbe0645342eadd6b32"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"soft_delete.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3f42dcc20a3196967754bfb87341dbce2099e7b7050f2a8e4b1af7846cac78"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/index.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88fb39640079a1c1c220037a0934a78aac22a229123c63e174e510a187a3fd0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/helper.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c78f9ec3c4b394933a6461c82e5bda298260bf8610588a6fcd80e4c5e3fd0df"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/callbacks.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea638ed1c450b1ad831499feea71ddc73fe276f4322a5b1e390bca3548505a6f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de872fea2be83123cd3710a7a4c62df4d6b9dc8282a951e40279c8988d4e93b2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"logger/slog.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"797c457fa33b6794ff0f1f5a597fac0f30a5d25a7fad35fc3d646c248d909c3f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"errors.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac60a5fef6f299355f189a30abd4b622dd4bb72e2f462d550fb2c7d6d3dc12a"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"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":"14c45ded6a9bb5398271b2a895770fb1bbdaa0570c1693402525884ec46ddf46"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by GORM AutoMigrate (no migration path): GORM AutoMigrate builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt a versioned migration tool such as golang-migrate, goose or Atlas, so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"migrator.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8692087b6ef191a9bda15b2e6ddce27eaa1fc8c0c767851bb638869601f4d0"}},{"ruleId":"PF1","level":"note","message":{"text":"Benchmarks don\u0027t track allocations: A Go testing.B suite exists but nothing turns on its allocation measurement \u2014 allocations (the main way hot code pressures a garbage collector or allocator) aren\u0027t being measured."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/benchmark_test.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"679b83a8ba538d662163b6a6247442590cece49ecc507b63f0674be76a8d5847"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060db.Error == nil \u0026\u0026 db.Statement.Schema != nil\u0060 appears character-identically in 3 files \u2014 callbacks/associations.go, callbacks/delete.go, callbacks/update.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"callbacks/associations.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee263715fc69fad8afea2159841d89dd8cdcef6e8c304f3e25ffd4e989e50ead"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reflectValue.Kind() == reflect.Ptr \u0026\u0026 reflectValue.IsNil()\u0060 appears character-identically in 2 files \u2014 clause/expression.go, statement.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clause/expression.go"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa45d12b21770cc3ff047db6182bc8214a46884acf2b5262f458aa8c1136727"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reflectValue.Kind() == reflect.Ptr || reflectValue.Kind() == reflect.Interface\u0060 appears character-identically in 2 files \u2014 finisher_api.go, schema/utils.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"finisher_api.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b985b20fb51955b38fe9e7d4da25167e3cb17d8012cd5f8895b30fe2595f5d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"schema/index.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5344a008e2bf64fadeb558bad835e517f741a4b5b7e2ebac4e84db51001ceb"}}],"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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"Reversible One-Way Hash","shortDescription":{"text":"Reversible One-Way Hash"},"helpUri":"https://cwe.mitre.org/data/definitions/328.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":51,"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."]}]}