{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"}]}},"results":[{"ruleId":"D2","level":"warning","message":{"text":"EsimFactory.findStruct (cognitive 82): EsimFactory.findStruct has cognitive complexity 82 (threshold 15). Drivers by points: if/else 61, loops 20, boolean chains 1 (nesting depth added 68). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/factory/factory.go"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"710d3bcb4378e272398063bae0178454372e2f8f21552472d3b9e3bceb70f950"}},{"ruleId":"D2","level":"warning","message":{"text":"Fields.ParseFromAst (cognitive 31): Fields.ParseFromAst has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20, loops 11 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/field.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f20bde2b268413cfd0b1e44fb8ce1c41b5ab5915cb5b71bdc4e7ec87297b55"}},{"ruleId":"D2","level":"warning","message":{"text":"Infraer.constructNewVar (cognitive 28): Infraer.constructNewVar has cognitive complexity 28 (threshold 15). Drivers by points: loops 18, if/else 10 (nesting depth added 21). 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":"infra/infraer.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3da621dd160e607e895542f342d9e5c34aac596db7bb9b22de676216764704"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.init (cognitive 28): Client.init has cognitive complexity 28 (threshold 15). Drivers by points: if/else 27, 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":"mongodb/mongodb.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07e35bd326cf0421d5b67b0986defc0040cf1acd37d244827d7f8dc4adb3b58"}},{"ruleId":"D2","level":"warning","message":{"text":"Vars.ParseFromAst (cognitive 24): Vars.ParseFromAst has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, loops 12 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/var.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"900324f581684c7615665ee33dfd42551cfd86a69b02b72db3e2ecc8d229509b"}},{"ruleId":"D2","level":"warning","message":{"text":"middleware.GinRecovery (cognitive 23): middleware.GinRecovery has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, loops 3, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"middle-ware/gin.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d3ff92bf0e98592064b9de0b5610ef7e9d7779ad32ac08eb1d35fe326172f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Infraer.constructNewInfra (cognitive 20): Infraer.constructNewInfra has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/infraer.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fd2153f63baeef8180648a16d740927f4c62ebac6a86200752a86b0fbedbaa"}},{"ruleId":"D2","level":"warning","message":{"text":"Db2Entity.Run (cognitive 20): Db2Entity.Run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/db2entity/db2entity.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"04410b48c570173e2a0d07844c8ebdb90556efa9b2e3c941791b9bc90fe92008"}},{"ruleId":"D2","level":"warning","message":{"text":"config.NewViperConfig (cognitive 19): config.NewViperConfig has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config/config.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5673aa04daae8ef9785c86e4c18e1911b26212cedab092ef6488ff28565349"}},{"ruleId":"D2","level":"warning","message":{"text":"templates.Shorten (cognitive 19): templates.Shorten has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/templates/template_funcmap.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f3316903f838fd24d9423a67da1cf305a96ec7ba791f435bfe0a2a2aa111b3"}},{"ruleId":"D2","level":"warning","message":{"text":"entityDomainFile.ParseCloumns (cognitive 19): entityDomainFile.ParseCloumns has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, 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":"tool/db2entity/domain-file/entity_domain_file.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"8694640ac16c6c6e677af153e286f23a53a7353d82537c6b1a1bf546abde34a3"}},{"ruleId":"D2","level":"warning","message":{"text":"Project.build (cognitive 19): Project.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/new/new.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"994c7327864f2f5ab62fb120093ebe2b70c3306a1fa12434592a130dbeb34e74"}},{"ruleId":"D2","level":"warning","message":{"text":"MonitorProxy.printValue (cognitive 16): MonitorProxy.printValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"redis/monitor_proxy.go"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb8e9fac5163e7c337b058716d937ebcbb2220ce13e2d2447695ba1695ee60a"}},{"ruleId":"D2","level":"warning","message":{"text":"entityDomainFile.BindInput (cognitive 16): entityDomainFile.BindInput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (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":"tool/db2entity/domain-file/entity_domain_file.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbab8b78a428790208f5d94335a888dc9334e02a2daca64334e74c02c3758d0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: factory/factory.go: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/factory/factory.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d9894f399178762797eafa9a44dcc7aef1122d23a664c8fa1e1f42d51770e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mongodb/mongodb.go:54-73 | mysql/mysql.go:58-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mongodb/mongodb.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7456fa0f554b588133c41aae5ea26bc9767421e0811ac757709f102add7ac5e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): tool/factory/factory.go:320-336 | tool/factory/factory.go:609-625 \u2014 both copies are in the same file, so extract the block 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":"tool/factory/factory.go"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c234a092d529b542bdbe922f8b76e373e613fa22adc817ed71b02c8c31494659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): http/monitor_proxy.go:38-53 | mysql/monitor_proxy.go:36-51 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"http/monitor_proxy.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f77571d2838a7e9d7167e480610ec9bdaa31f0aae3f050063b27b569216726"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mysql/mysql.go:56-70 | redis/redis.go:58-72 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mysql/mysql.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0858ca9c099b74947bf9f5f37b4cf3eebdf398e91b11eabc33c5760b0cd9b9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): pkg/templates/interface.go:28-41 | pkg/templates/interface.go:57-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":"pkg/templates/interface.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c47f9c5a213bdd67eebba9b9f2a561cbc2088872a776aa2a1a854486b2732d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): pkg/file-dir/file_dir.go:136-145 | pkg/file-dir/file_dir.go:190-199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/file-dir/file_dir.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"27544e27322247d36d7fd5fe25a846235bd1620dd4c94c3f27e1624b86a73def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): infra/infraer.go:125-131 | tool/db2entity/db2entity.go:228-234 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it wherever the callers may both depend on (the module they already share, or a small common one if they share none) and call it from each site \u2014 until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/infraer.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92a4b657b07682aaa387abcee5262c4abde8dde97208d6aeef04ce72b96c5a4"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 28 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"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":"c1d3d1e84686869ae48ff44490e6294f817e63d61aceec4187db5f09e9a84a0d"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f141d601d588c070c92d86f996293abf945c2f84ec7cde68be9a97fc278e963b"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 40 of 40 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 40 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}}],"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-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-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"CWE-319","shortDescription":{"text":"CWE-319"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-338","guid":"e89b7604-c3f7-8b53-bc8c-4d4718c28617","name":"CWE-338","shortDescription":{"text":"CWE-338"},"helpUri":"https://cwe.mitre.org/data/definitions/338.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":2,"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."]}]}