{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"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":"D1","level":"warning","message":{"text":"genapplication.Run (cyclomatic 35): genapplication.Run 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":"command/genapplication/command.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05bc88267d2db63c69eb243189a8250cfabb9847607b75e3cfe22536420e581"}},{"ruleId":"D1","level":"warning","message":{"text":"genweb.Run (cyclomatic 26): genweb.Run has cyclomatic complexity 26 (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":"command/genweb/command.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb7842f36f206e32331335afb885dd9b059b50f02ff20b9e5f99239ce7f3829"}},{"ruleId":"D1","level":"warning","message":{"text":"gencontroller.Run (cyclomatic 22): gencontroller.Run 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":"command/gencontroller/command.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae39454b9d7f121ecb08ea6f10ab35425081f95d9539620f211ca4dc6184d6e"}},{"ruleId":"D1","level":"warning","message":{"text":"genrepository.Run (cyclomatic 18): genrepository.Run 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":"command/genrepository/command.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88c7088d481da01231445388c99b04f0190a64c3d781aeaafa80e4b043e83ac"}},{"ruleId":"D1","level":"warning","message":{"text":"gencontroller.injectUsecaseInportFields (cyclomatic 17): gencontroller.injectUsecaseInportFields has cyclomatic complexity 17 (threshold 15). 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":"command/gencontroller/command.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04a80cfefd67c7153c9fa576f70d0cfaa09c4aac67c48922c7855aaff08c2f7"}},{"ruleId":"D1","level":"warning","message":{"text":"genservice.Run (cyclomatic 17): genservice.Run 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":"command/genservice/command.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8886c0126db6067a5025727c5d092db017abef404cdf4b79ae12fa0755f7bba7"}},{"ruleId":"D1","level":"warning","message":{"text":"createEverythingImpl.CreateEverythingExactly (cyclomatic 17): createEverythingImpl.CreateEverythingExactly 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":"utils/creator.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"00815b86cede00b698f59ef292d67c2306aed5c622eea75eb0317e4f4f917455"}},{"ruleId":"D1","level":"warning","message":{"text":"createEverythingImpl2.CreateEverythingExactly (cyclomatic 17): createEverythingImpl2.CreateEverythingExactly 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":"utils/creator2.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a327d2e9296a2b2d3852c6d8b92f35d749ff8a3d3487dacf08fa3fc244e3311"}},{"ruleId":"D1","level":"warning","message":{"text":"OutportMethods.readInterface (cyclomatic 17): OutportMethods.readInterface 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":"utils/outport_methods.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d48d856b4c7b7970ce502714cdcfcd0a5d8f0c03026ff342275025d73ad700"}},{"ruleId":"D2","level":"warning","message":{"text":"genweb.Run (cognitive 96): genweb.Run has cognitive complexity 96 (threshold 15). Drivers by points: if/else 71, loops 25 (nesting depth added 70). 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":"command/genweb/command.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa74c54609aec9c38ea4d7837e461c52a4f3fcf74554712b85c2e87228feaaf9"}},{"ruleId":"D2","level":"warning","message":{"text":"gencontroller.injectUsecaseInportFields (cognitive 84): gencontroller.injectUsecaseInportFields has cognitive complexity 84 (threshold 15). Drivers by points: loops 45, if/else 38, boolean chains 1 (nesting depth added 68). 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":"command/gencontroller/command.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9311876371066ba6c85825915cd7ceeb06dcded0d4a433cd43bf895abbb9239"}},{"ruleId":"D2","level":"warning","message":{"text":"OutportMethods.readInterface (cognitive 60): OutportMethods.readInterface has cognitive complexity 60 (threshold 15). Drivers by points: if/else 39, loops 15, match/switch 6 (nesting depth added 46). 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":"utils/outport_methods.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"da388dcc6945739b37593cc2c5d7ae2ec77d48b68cd641d96b567a14c256cf23"}},{"ruleId":"D2","level":"warning","message":{"text":"genapplication.Run (cognitive 57): genapplication.Run has cognitive complexity 57 (threshold 15). Drivers by points: if/else 48, loops 9 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command/genapplication/command.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cd0a572ef9259a86289cbd3ff4b9370b0a86546f1dfd5d8aef946713e6cce5"}},{"ruleId":"D2","level":"warning","message":{"text":"gencontroller.Run (cognitive 37): gencontroller.Run has cognitive complexity 37 (threshold 15). Drivers by points: if/else 34, loops 3 (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":"command/gencontroller/command.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce80950ca4677f60772a993f07a073eaa1069d6dc8d93528ddf3b7db560ea6e"}},{"ruleId":"D2","level":"warning","message":{"text":"createEverythingImpl.CreateEverythingExactly (cognitive 34): createEverythingImpl.CreateEverythingExactly has cognitive complexity 34 (threshold 15). Drivers by points: if/else 32, loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/creator.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ff12df1fc1e00f792886487dbcc52a11ed75e5ed5d6819c1a3dc530c0ce906"}},{"ruleId":"D2","level":"warning","message":{"text":"createEverythingImpl2.CreateEverythingExactly (cognitive 34): createEverythingImpl2.CreateEverythingExactly has cognitive complexity 34 (threshold 15). Drivers by points: if/else 32, loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/creator2.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c6e198b3dee08c7c1b05a7f69f8aea39cb25f10979ffdfb6b1ab198810252d"}},{"ruleId":"D2","level":"warning","message":{"text":"genapplication.findControllerByName (cognitive 32): genapplication.findControllerByName has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21, loops 10, boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command/genapplication/command.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"912d996edf0a1f77a2ef5360275a085f1b729ea14b6ba7a1cb4d5ecc3487501d"}},{"ruleId":"D2","level":"warning","message":{"text":"genapplication.findGatewayByName (cognitive 32): genapplication.findGatewayByName has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21, loops 10, boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command/genapplication/command.go"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"306d12e6a46cdc07ef463a9b61a62df1ba9f42828b24029da9356c79a53d8c93"}},{"ruleId":"D2","level":"warning","message":{"text":"gentest.Run (cognitive 26): gentest.Run has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, loops 6, match/switch 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":"command/gentest2/command.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"477f51393fc7f97266a765d0b463d3f5776fe6cd88eb7ae8d17bdf018b659808"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.IsExist (cognitive 26): utils.IsExist has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, loops 10, boolean chains 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":"utils/ast.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd42329cdf13e1489adfd716a70c61b86e0744d713a20ce7738e15f796e50e6a"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.InjectToErrorEnum (cognitive 26): utils.InjectToErrorEnum has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, loops 3, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/inject.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f95b6b173ad84025a8cff6cae9dae00a08552381772509d337f25a99977efa9"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeHandler.processFuncType (cognitive 25): TypeHandler.processFuncType has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, loops 6, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/type_handler.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cf566b549bdf23be7bdf170d8c01471b0514413064b11ee2df7364beae35f7"}},{"ruleId":"D2","level":"warning","message":{"text":"gatewayMethod.readStruct (cognitive 23): gatewayMethod.readStruct has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, loops 6, match/switch 4, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/gateway_method.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5d30c4fc0744cbd381da21d87bae9e5d9c061a21056f5454acebb6eb704ba5"}},{"ruleId":"D2","level":"warning","message":{"text":"genrepository.Run (cognitive 21): genrepository.Run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21 (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":"command/genrepository/command.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fceab1921c4834e90953119e3cd0014390b83ab7e3bc7dda6db8c781e2bcad9"}},{"ruleId":"D2","level":"warning","message":{"text":"genapplication.findAllUsecaseInportNameFromController (cognitive 20): genapplication.findAllUsecaseInportNameFromController has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, loops 6, match/switch 4 (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":"command/genapplication/command.go"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9c096e2cf84166d6219e56df519a0495c1328dc946167bd16e24e0a4c58a05"}},{"ruleId":"D2","level":"warning","message":{"text":"genservice.Run (cognitive 20): genservice.Run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (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":"command/genservice/command.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e571e83281591bcdbd0ba9cb075cac3a5528faf35125d3ec244852e630bc0d5"}},{"ruleId":"D2","level":"warning","message":{"text":"genapplication.getInjectedLineInMain (cognitive 19): genapplication.getInjectedLineInMain has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 1, 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":"command/genapplication/command.go"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69c1ccd593ab5a4b4ebcd16984dfeffa07e7082c5f0e5701f317c9ceaaf1fe5"}},{"ruleId":"D2","level":"warning","message":{"text":"gengateway.Run (cognitive 17): gengateway.Run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command/gengateway/command.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b3e52e566c4c3ccaa6896ba0a08f9cf3f68dc19cc5a4f77c36e78d27b839e4"}},{"ruleId":"D2","level":"warning","message":{"text":"OutportMethods.composeDefaultValue (cognitive 17): OutportMethods.composeDefaultValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, match/switch 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/outport_methods.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f49eefc177aafa74e5da6c01b6d39acc006497cef5ec4dcec5aa59f21c28d3"}},{"ruleId":"D2","level":"warning","message":{"text":"genapplication.findExistingUsecaseInApplication (cognitive 16): genapplication.findExistingUsecaseInApplication has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, match/switch 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command/genapplication/command.go"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"72300aad4bea17d4527c16ef19e481dbe71e08d8744e7fa50a7fe2de803cefb6"}},{"ruleId":"D2","level":"warning","message":{"text":"gatewayMethod.generalDecl (cognitive 16): gatewayMethod.generalDecl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"utils/gateway_method.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"db851b094c3bfe612f948b8270f09bddce1ccd388b92b1bf385b35c5a42039a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): utils/creator.go:96-122 | utils/creator2.go:95-121 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/creator.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e366209d051c938f7313113bee4af62aa5d32ced0f521badc341cee209318c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): command/genrepository/command.go:244-265 | command/genservice/command.go:193-214 \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":"command/genrepository/command.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d2b1e7c076be442d4d14afc2d3de6996c0a47dbdeb79e89a6445f8e331d643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): command/genrepository/command.go:132-152 | command/genservice/command.go:119-139 \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":"command/genrepository/command.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5ef05275c530f1ed1be1c7a16b7062aa24097b7f1865e4c02d7cb5a9c59055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): command/genrepository/command.go:279-297 | command/genservice/command.go:231-249 \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":"command/genrepository/command.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"a823057ff058a7b7b1c64da05ec4d0945c3f3f9da28eea90f9347e7b54a1a75f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): utils/creator.go:144-161 | utils/creator2.go:143-160 | utils/config.go:105-122 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/creator.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"454203417a55e29d7492095e79093e9d575d90007f6bbfcfda19c1b19ecc66b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): command/genapplication/command.go:399-416 | command/genapplication/command.go:487-504 \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":"command/genapplication/command.go"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba1259bfefea15fc2c7bf143a736a1752fe5defbd855d191643b5e5b0c55365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): command/gencontroller/command.go:253-271 | utils/ast.go:13-29 \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":"command/gencontroller/command.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3ebffab685ceca09c21eb6c88a472de469b3a8a6fb3aae2f57a614ec1f415f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): command/genapplication/command.go:675-690 | command/genapplication/command.go:777-792 \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":"command/genapplication/command.go"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb7a58424615393071e5a900f47c7ece1c8ea2d409f7dc954966f2685a34305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): command/gentest/command.go:39-53 | command/gentest2/command.go:41-56 \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":"command/gentest/command.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5109533136823daa064067e03080492d948d0138c7629912aebd9d4174cc8115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): utils/gateway_method.go:39-52 | utils/outport_methods.go:40-54 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/gateway_method.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaad249ff13178cec3c6afa842c99cf9a7b14e68f8e1b8d3aa450e1c96384049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): command/genapplication/command.go:589-600 | command/gencontroller/command.go:374-385 \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":"command/genapplication/command.go"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce667818f961f4c43e392bf17828a72623e65be2d8a6a4cf7c24e83b1276c57f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): command/gencontroller/command.go:150-161 | command/gencontroller/command.go:164-175 \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":"command/gencontroller/command.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72f29cd1b4f9d98db14b45b0bfdc3797a66cc2f2a9b08a55958445a5dc71f7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): command/gencontroller/command.go:307-318 | command/gencontroller/command.go:320-331 \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":"command/gencontroller/command.go"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d6517b2942303c63f538e1815ded81425691fd2d04d22dd58971f4dbbd9e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): utils/type_handler.go:75-85 | utils/type_handler.go:156-167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/type_handler.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"470bbf58d1da901f81e6ff2a1e684ecce7b90da32327ea4b383221ff2c1c3cdf"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D9","level":"note","message":{"text":"No tests found: No test suite was found in this repository."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9bf64cbb5a4ae13d6bcd01fa3bc8d2879d860c73bc67f176ee3c2cecb8adce3"}},{"ruleId":"D16","level":"warning","message":{"text":"single-maintainer \u2014 knowledge-concentration (bus factor) risk: single-maintainer \u2014 knowledge-concentration (bus factor) risk (1 author(s) across 382 commit(s) sampled)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b4b49d961df742f0e507f4cc5c8094fb077ba0391a27fd015d18320865187719"}},{"ruleId":"D19","level":"note","message":{"text":"The \u0027Create a domain\u0027 section is present in the outline but the document ends before it, so its content cannot be confirmed.: Verify that the unshown Create-a-domain section (domain_yourdomainname) is indeed present and reflects the intended structure."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tmp/codehealth-iso-bbac90244484693b075761e3b03ae64/command/genapplication/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b2bf08b5786059093e3ad555921b569de005ade563ae0df22741ae184bd1df"}},{"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":"96c96c5e02ac42135d538812dbb39ff9df67c04aecfc38c9e3c4b453dd00b4ce"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 17 of 17 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it. None is large enough to schedule a dedicated read-through on its own, so they are folded into the freshness score rather than raised individually \u2014 largest first: command/genapplication/command.go, command/gencontroller/command.go, command/genrepository/command.go (and 14 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}}],"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-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-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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-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":1,"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."]}]}