{"$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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Router.__call__ (cyclomatic 56): Router.__call__ has cyclomatic complexity 56 (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":"st2common/st2common/router.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"6397f2ea9619d19d676dd5ed6391a652562bffe60606fc71d1aa9ac9d3d1a3ed"}},{"ruleId":"D1","level":"warning","message":{"text":"ActionChainRunner.run (cyclomatic 25): ActionChainRunner.run has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/runners/action_chain_runner/action_chain_runner.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf802333f0114ff6b95fb703468eabdee6ac94ebdede827eb5f0ab91cc68d98"}},{"ruleId":"D1","level":"warning","message":{"text":"PackRegisterController.post (cyclomatic 25): PackRegisterController.post has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2api/st2api/controllers/v1/packs.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00b6cf70778708b1a398ee94617509b42bd4c08c89076d9667014b1b6212b30"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiColumnTable.format (cyclomatic 25): MultiColumnTable.format has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2client/st2client/formatters/table.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76edf617af65f91a6f1b32dd8b4250f4ff1ecac41552474f277f81c56b45ced"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceController._get_all (cyclomatic 23): ResourceController._get_all has cyclomatic complexity 23 (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":"st2api/st2api/controllers/resource.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7285647f37b99c349edd456b886f746abc4c9bca57cdb94f7b93daa7706ce4e2"}},{"ruleId":"D1","level":"warning","message":{"text":"actionalias_helpstring.generate_helpstring_result (cyclomatic 21): actionalias_helpstring.generate_helpstring_result has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/util/actionalias_helpstring.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f7dc0f4ced8f8f038bb89546403c7a12fad46090afcb2e367cf0a9fdafcbaf"}},{"ruleId":"D1","level":"warning","message":{"text":"bootstrap.register_content (cyclomatic 20): bootstrap.register_content has cyclomatic complexity 20 (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":"st2common/st2common/content/bootstrap.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"76022a33675e016be4afb4b52a1195cd4ee285c8bec89f3c673763a622b5b552"}},{"ruleId":"D1","level":"warning","message":{"text":"TraceGetCommand._filter_trace_components (cyclomatic 17): TraceGetCommand._filter_trace_components 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":"st2client/st2client/commands/trace.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1beaf0f1fb9f2720b327cc9221e36ba823e0dc8ad78b471a470107a485d9c05"}},{"ruleId":"D1","level":"warning","message":{"text":"schema.modify_schema_allow_default_none (cyclomatic 17): schema.modify_schema_allow_default_none 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":"st2common/st2common/util/schema/__init__.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"99576da98b3277657b696b6efed51448589450ee2f854edc67cc5eb5b7f1fe52"}},{"ruleId":"D1","level":"warning","message":{"text":"schema.assign_default_values (cyclomatic 16): schema.assign_default_values has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/util/schema/__init__.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d861c13768ff5838220c9908bae8402d4ec957174617cee3ece0c31ecde9b4cc"}},{"ruleId":"D1","level":"warning","message":{"text":"submit_debug_info.main (cyclomatic 16): submit_debug_info.main has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2debug/st2debug/cmd/submit_debug_info.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"7072024726b0f6211461035e416009ea992e3d9c3f8da7ff0f76e0005c85c0d3"}},{"ruleId":"D2","level":"warning","message":{"text":"Router.__call__ (cognitive 113): Router.__call__ has cognitive complexity 113 (threshold 15). Drivers by points: if/else 80, error handling 26, boolean chains 4, loops 3 (nesting depth added 64). 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":"st2common/st2common/router.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"111b7151fc51ac9be9b6e403bc075f2cfc4503b51109eaa5365af0ce9cfdc7d3"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiColumnTable.format (cognitive 52): MultiColumnTable.format has cognitive complexity 52 (threshold 15). Drivers by points: if/else 33, loops 10, boolean chains 4, ternaries 4, error handling 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":"st2client/st2client/formatters/table.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"86db212857a03bc360c33fc24f3f55c34d3cb1b1b0573a3395557cf1cd3c27d1"}},{"ruleId":"D2","level":"warning","message":{"text":"PackRegisterController.post (cognitive 43): PackRegisterController.post has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21, boolean chains 12, error handling 5, loops 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":"st2api/st2api/controllers/v1/packs.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4776401b75c4622613f32d804f111a9517f083ba2ef90638f78d628e3909084a"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionChainRunner.run (cognitive 36): ActionChainRunner.run has cognitive complexity 36 (threshold 15). Drivers by points: if/else 24, error handling 10, boolean chains 1, 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":"contrib/runners/action_chain_runner/action_chain_runner.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d7ffc8fa8ef3f7f2851c63b2bfe11bd42f7c8bc8aacdacf31fe13b4fbf3e60"}},{"ruleId":"D2","level":"warning","message":{"text":"schema.assign_default_values (cognitive 30): schema.assign_default_values has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21, loops 5, boolean chains 4 (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":"st2common/st2common/util/schema/__init__.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"4345ea4fd048d500f80154539d8bf74b770bfa2df35d78bb5dbee708bf5f8ae5"}},{"ruleId":"D2","level":"warning","message":{"text":"actionalias_helpstring.generate_helpstring_result (cognitive 29): actionalias_helpstring.generate_helpstring_result has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16, boolean chains 10, loops 3 (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":"st2common/st2common/util/actionalias_helpstring.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a45db7d19ef1d1419cb7450b53173aaa598542b59825453ea3873e6c98afa12"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceController._get_all (cognitive 27): ResourceController._get_all has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14, boolean chains 6, ternaries 4, loops 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2api/st2api/controllers/resource.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a81043171680efac49729f579308bd075905d03ab49bfb8c615cd094931d48a"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesRegistrar._register_rules_from_pack (cognitive 26): RulesRegistrar._register_rules_from_pack has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, error handling 9, 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":"st2common/st2common/bootstrap/rulesregistrar.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03eac1943a12ad213a2b49cf2a834782a6fa4ecd2d9d3b2f8bf7b28191282ae"}},{"ruleId":"D2","level":"warning","message":{"text":"action._validate_parameters (cognitive 26): action._validate_parameters has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, loops 4, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/validators/api/action.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee094ded2218d26f767ba0a0fce401ec5cc1de459be95c72c3ee089347bff384"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthHandlerBase._get_username_for_request (cognitive 23): AuthHandlerBase._get_username_for_request has cognitive complexity 23 (threshold 15). Drivers by points: error handling 14, if/else 9 (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":"st2auth/st2auth/handlers.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aee01d488f429bbf871054dd7d07e000cfc1a26bd0fd80ad57f26a59ce73e8a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistral.transform_definition (cognitive 23): mistral.transform_definition has cognitive complexity 23 (threshold 15). Drivers by points: loops 13, if/else 8, ternaries 2 (nesting depth added 12). 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":"st2common/st2common/util/workflow/mistral.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e9f5442f41d184beaaef4f380c7dc59058c0f5f4db15c0407a94595eb45c13"}},{"ruleId":"D2","level":"warning","message":{"text":"TraceGetCommand._filter_trace_components (cognitive 22): TraceGetCommand._filter_trace_components has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 4, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2client/st2client/commands/trace.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8516baef31e221cb046595cb8e06dad7f7dd1342951831411e1ddee81de53e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecutionResult.format (cognitive 22): ExecutionResult.format has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, ternaries 7, loops 2, 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":"st2client/st2client/formatters/execution.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6803690014d0dd3a0e0f39cc0263bcb17db671d0c820d604d73942339ed5e5"}},{"ruleId":"D2","level":"warning","message":{"text":"packs.search_pack_index (cognitive 22): packs.search_pack_index has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/services/packs.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9267996955b7a512538e32be8f1987ae1b749be15a84b60dbdbfec4482549720"}},{"ruleId":"D2","level":"warning","message":{"text":"submit_debug_info.main (cognitive 22): submit_debug_info.main has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 2, error handling 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":"st2debug/st2debug/cmd/submit_debug_info.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbee2c7140068d035124ceb460e578b05631459176c47da57b9d03bdbdc26f76"}},{"ruleId":"D2","level":"warning","message":{"text":"PackAsyncCommand.run_and_print (cognitive 21): PackAsyncCommand.run_and_print has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2client/st2client/commands/pack.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"418930e8c2e94d762e4d375edffc1b33ec8935f03567cf99b686aec631400e4c"}},{"ruleId":"D2","level":"warning","message":{"text":"PropertyValueTable.format (cognitive 21): PropertyValueTable.format has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, loops 5, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2client/st2client/formatters/table.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac5d8f9bb1cb0ad3e4a7b8a78cb1d8194ec1a42b57a2099301b1ea1a2b5d5e2"}},{"ruleId":"D2","level":"warning","message":{"text":"runnersregistrar.register_runner (cognitive 21): runnersregistrar.register_runner has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, error handling 4, loops 3, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/bootstrap/runnersregistrar.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3089145b19b1e2d762b6daceb8fccd44e7352fb6e857a0a7a15ac7f6d28e1757"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadGitRepoAction._clone_repo (cognitive 20): DownloadGitRepoAction._clone_repo has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, boolean chains 4, ternaries 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/packs/actions/pack_mgmt/download.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b4bacf0be8bac06a34e50b5f3275f58840f152e04a3adfb32be3ee75efdc97"}},{"ruleId":"D2","level":"warning","message":{"text":"TraceGetCommand._apply_display_filters (cognitive 20): TraceGetCommand._apply_display_filters has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 5, boolean chains 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":"st2client/st2client/commands/trace.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ad88019fbdb415f10c8761c4b5d86b6df1a138c82a119c060b4e112947217e"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrap.register_content (cognitive 20): bootstrap.register_content has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, boolean chains 8 (nesting depth added 1). 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":"st2common/st2common/content/bootstrap.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce2526f0f2985739d5c3a701e018747847efb8974dfa7a3fbb53c072f82d15c"}},{"ruleId":"D2","level":"warning","message":{"text":"diff-db-disk._diff (cognitive 20): diff-db-disk._diff has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/diff-db-disk.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c278fa763dc5d891afde5d539dc5bdc97ac1bf6ae95757877cd53231e60e8350"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsScriptRunner._get_script_arguments (cognitive 19): WindowsScriptRunner._get_script_arguments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/runners/windows_script_runner/windows_script_runner.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6a09d387c8d04f84430b91964e1b1dd1185dde5d32ab565bac596bdc58aa78"}},{"ruleId":"D2","level":"warning","message":{"text":"Notifier._post_notify_subsection_triggers (cognitive 18): Notifier._post_notify_subsection_triggers has cognitive complexity 18 (threshold 15). Drivers by points: error handling 9, boolean chains 4, if/else 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2actions/st2actions/notifier/notifier.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ea64329a562644ba0232c1eee969d67bae0e25dd0962b2244ef743d72c9cd4"}},{"ruleId":"D2","level":"warning","message":{"text":"StandaloneAuthHandler.handle_auth (cognitive 18): StandaloneAuthHandler.handle_auth has cognitive complexity 18 (threshold 15). Drivers by points: error handling 9, if/else 9 (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":"st2auth/st2auth/handlers.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d735db02bb920e9cad2018ea1fbe6d2af297364a939626e244af8dae003741eb"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorHandlingMiddleware.__call__ (cognitive 18): ErrorHandlingMiddleware.__call__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 2, error handling 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":"st2common/st2common/middleware/error_handling.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fd61ee330cec77a02063e9295f38afd138a843f854cc43858f2714f73db75e"}},{"ruleId":"D2","level":"warning","message":{"text":"RoleDefinitionFileFormatAPI.validate (cognitive 18): RoleDefinitionFileFormatAPI.validate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 7 (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":"st2common/st2common/models/api/rbac.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbab322dfca5ffaae83714cdb8f0c971116cdb5529cc40e8be4f07562a36aac"}},{"ruleId":"D2","level":"warning","message":{"text":"Access.add_or_update (cognitive 18): Access.add_or_update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 5, ternaries 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":"st2common/st2common/persistence/base.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3203d493efa662ad7c3ca4cd87293c1e89f0161147c374b2c82d6dc24d7819c"}},{"ruleId":"D2","level":"warning","message":{"text":"Router.add_spec (cognitive 18): Router.add_spec has cognitive complexity 18 (threshold 15). Drivers by points: loops 11, if/else 7 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/router.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaead302dff774fd416c0874454dee63487229aac8329e4d7046c77a15b3e9e0"}},{"ruleId":"D2","level":"warning","message":{"text":"schema.modify_schema_allow_default_none (cognitive 18): schema.modify_schema_allow_default_none has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, boolean chains 8, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/util/schema/__init__.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c920dd541bbfc779b0e1924a3f29383b949c6991ea62f35ed068358f993800"}},{"ruleId":"D2","level":"warning","message":{"text":"mistral._transform_action (cognitive 18): mistral._transform_action has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 1, ternaries 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":"st2common/st2common/util/workflow/mistral.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"604ddc11ddd67b7731d744f3e519e3071ea17faa0f37c50b9177eae0d62321e0"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionAliasExecutionController.post (cognitive 17): ActionAliasExecutionController.post has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, error handling 5, boolean chains 2, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2api/st2api/controllers/v1/aliasexecution.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d22a90ed5cea78427635b6fb67a5249e8d13b0a8ae2fa74051602bc789c535"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseFormatter.format (cognitive 17): BaseFormatter.format has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 10, boolean chains 3, if/else 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2client/st2client/formatters/doc.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd84f5a26cb720971c3332bff344020b457d5a47c395ca6c98b69daf289f27b"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellScriptAction._get_script_arguments (cognitive 17): ShellScriptAction._get_script_arguments has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/models/system/action.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"badb9ad1cd5ecbc5697c38343e42a33c1fecd0b2cae27ea24eca40c2fc64b681"}},{"ruleId":"D2","level":"warning","message":{"text":"action_param_utils.cast_params (cognitive 17): action_param_utils.cast_params has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 2, ternaries 2, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/models/utils/action_param_utils.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fce5ffe964a0557fd4ec85b912ee30083887416a73f9fd206e415eaea220d0"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonRunner._get_output_values (cognitive 16): PythonRunner._get_output_values has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/runners/python_runner/python_runner.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb10d0d3c5385de04931ab00776fb138595f4a32863dca8dff81b16145bca8cb"}},{"ruleId":"D2","level":"warning","message":{"text":"ConcurrencyByAttributePolicyTest.test_over_threshold_delay_executions (cognitive 16): ConcurrencyByAttributePolicyTest.test_over_threshold_delay_executions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 5 (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":"st2actions/tests/unit/policies/test_concurrency_by_attr.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4020805c7cce0a41be185db5f254761978af36a50b97ef2f532ce9826a942948"}},{"ruleId":"D2","level":"warning","message":{"text":"ConcurrencyByAttributePolicyTest.test_on_cancellation (cognitive 16): ConcurrencyByAttributePolicyTest.test_on_cancellation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 5 (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":"st2actions/tests/unit/policies/test_concurrency_by_attr.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c933ae04695273bb85d7a97455d6015dc9e8c3bfb41b15fb090234338d47554"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionAliasFormatParser.get_extracted_param_value (cognitive 16): ActionAliasFormatParser.get_extracted_param_value has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 4, loops 3, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/models/utils/action_alias_utils.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab235766932b4ab732ad80a8b7202965909c3e76333c86992354b2bf4cb5ef1"}},{"ruleId":"D2","level":"warning","message":{"text":"RBACRemoteGroupToRoleSyncer.sync (cognitive 16): RBACRemoteGroupToRoleSyncer.sync has cognitive complexity 16 (threshold 15). Drivers by points: loops 9, if/else 7 (nesting depth added 5). 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":"st2common/st2common/rbac/syncer.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99ab0df0da436150d6c92f45fa4b02bd31fd87e00968a781ce3535d21f34cbf"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseParallelSSHRunner._get_result_status (cognitive 16): BaseParallelSSHRunner._get_result_status has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, ternaries 4, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/runners/paramiko_ssh_runner.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2897755e57760461fb5794fc09fff2ad3951b53a8a0ce5319418270e468566"}},{"ruleId":"D2","level":"warning","message":{"text":"action_db.serialize_positional_argument (cognitive 16): action_db.serialize_positional_argument has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 11, if/else 5 (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":"st2common/st2common/util/action_db.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4be60ec69cb761d8324eb26a620ff859c695386979659adeef865c2be06b15"}},{"ruleId":"D2","level":"warning","message":{"text":"visualize_action_chain.main (cognitive 16): visualize_action_chain.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/visualize_action_chain.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d16f490b4c576a858fb5c91cea56f4b09e5bc89442fe3507b144da134fa607"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rbac/resolvers.py: FileTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/rbac/resolvers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c5ab0e14402f2e18f0d317d79dc3ec6eb73abddc8b693d143a2b3fcdc479fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/action.py: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/models/api/action.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de4836efc86c82d453ae16746f1094f0f9a2f1da8de64e93d9e1bb43dc6522f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): st2common/st2common/validators/api/reactor.py:61-91 | st2common/st2common/validators/api/reactor.py:112-142 \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":"st2common/st2common/validators/api/reactor.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e6a17881d7929556eda6ea92cd8a5a494f0bdd4b512bda0cd3f5e6abdbf13c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): contrib/runners/windows_command_runner/windows_command_runner.py:82-102 | contrib/runners/windows_script_runner/windows_script_runner.py:116-136 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/runners/windows_command_runner/windows_command_runner.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"020fc90155377d8acd2a9ce46224a3468729e773c52fd94f8a6ea61331dec77e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): st2api/st2api/controllers/v1/actionexecutions.py:473-494 | st2api/st2api/controllers/v1/actionexecutions.py:525-545 \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":"st2api/st2api/controllers/v1/actionexecutions.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1cbdec107d0a5de2fd5129b369b5bc5320f99736e129446c68a18cf399dfa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): st2tests/st2tests/fixtures/packs/runners/runner/runner.py:44-62 | st2tests/st2tests/mocks/runner.py:44-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2tests/st2tests/fixtures/packs/runners/runner/runner.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c788b880f2046f5dd1e05c6131e355888fc083423191cbd14c077a04574667ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): st2common/st2common/bootstrap/actionsregistrar.py:44-63 | st2common/st2common/bootstrap/aliasesregistrar.py:40-59 | st2common/st2common/bootstrap/policiesregistrar.py:46-65 | st2common/st2common/bootstrap/rulesregistrar.py:43-58 | st2common/st2common/bootstrap/sensorsregistrar.py:41-60 | st2common/st2common/bootstrap/triggersregistrar.py:38-57 \u2014 before extracting anything, compare \u0060st2common/st2common/bootstrap/sensorsregistrar.py\u0060 and \u0060st2common/st2common/bootstrap/triggersregistrar.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060st2common/st2common/bootstrap/rulesregistrar.py:43\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/bootstrap/actionsregistrar.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fb76b53af66dc839e2a7ea928b6dcd01bebc9f3887cc762954d03eca3458d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): st2common/st2common/bootstrap/actionsregistrar.py:76-90 | st2common/st2common/bootstrap/aliasesregistrar.py:72-86 | st2common/st2common/bootstrap/policiesregistrar.py:78-93 | st2common/st2common/bootstrap/rulesregistrar.py:71-85 | st2common/st2common/bootstrap/sensorsregistrar.py:74-88 | st2common/st2common/bootstrap/triggersregistrar.py:71-85 \u2014 before extracting anything, compare \u0060st2common/st2common/bootstrap/sensorsregistrar.py\u0060 and \u0060st2common/st2common/bootstrap/triggersregistrar.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"st2common/st2common/bootstrap/actionsregistrar.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fae45efd942e25fbc9e020867028177b0311d3682c2bd45ea81a7fd6624cb5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): st2actions/st2actions/policies/concurrency.py:55-68 | st2actions/st2actions/policies/concurrency_by_attr.py:79-92 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060st2actions/st2actions/policies/concurrency.py:55\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":"st2actions/st2actions/policies/concurrency.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51d54d134cc58b3a9391440e09ff0882d0e2f30ae07023f20d558058aa91bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): st2api/st2api/controllers/resource.py:377-389 | st2api/st2api/controllers/v1/policies.py:79-91 \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 \u0060st2api/st2api/controllers/resource.py:377\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":"st2api/st2api/controllers/resource.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2cc7e48676f63ee7d4c32f4052dbd6608c6972f3d3bdaf37e8c17181fcacfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): st2api/st2api/controllers/v1/actionexecutions.py:292-304 | st2api/st2api/controllers/v1/actionexecutions.py:319-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":"st2api/st2api/controllers/v1/actionexecutions.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fab9654506607a82f54611b668443e7c816cd9871d893bfb58275809522a77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): st2common/st2common/content/utils.py:76-88 | st2common/st2common/content/utils.py:102-114 \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":"st2common/st2common/content/utils.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ad4457ccade20e18ac675b602c9af4d8118058ffeb22aed9e55454cfe6003b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): st2common/st2common/bootstrap/sensorsregistrar.py:114-125 | st2common/st2common/bootstrap/triggersregistrar.py:112-123 \u2014 before extracting anything, compare \u0060st2common/st2common/bootstrap/sensorsregistrar.py\u0060 and \u0060st2common/st2common/bootstrap/triggersregistrar.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"st2common/st2common/bootstrap/sensorsregistrar.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9041feabaa441237e5aeca201edab8be8370c74789aa849502830755f6dba2c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): st2common/st2common/bootstrap/sensorsregistrar.py:128-139 | st2common/st2common/bootstrap/triggersregistrar.py:126-137 \u2014 before extracting anything, compare \u0060st2common/st2common/bootstrap/sensorsregistrar.py\u0060 and \u0060st2common/st2common/bootstrap/triggersregistrar.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/bootstrap/sensorsregistrar.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b945d33bb44dd80ae5d99dc56f69d38a92f3ac374927fd3d5f27be234c584f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): st2client/st2client/commands/auth.py:43-53 | st2client/st2client/commands/auth.py:85-95 \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 \u0060st2client/st2client/commands/auth.py:43\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":"st2client/st2client/commands/auth.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20637cff73c3621ef6d6aa9bde8c5eb29a306df29cafef0f73ce8cfd8453463"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): st2client/st2client/commands/rbac.py:56-66 | st2client/st2client/commands/rbac.py:122-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060st2client/st2client/commands/rbac.py:56\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":"st2client/st2client/commands/rbac.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"745e2d824374d5e5f4ccf45fe335bc1b23b1718db844acc95d8845594bfd984d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): st2client/st2client/commands/resource.py:300-311 | st2client/st2client/commands/resource.py:386-396 \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 \u0060st2client/st2client/commands/resource.py:300\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":"st2client/st2client/commands/resource.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b081e29b19cb6efeffc7c2908028b65be8368d63024055aba099070fe6e8839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): st2client/st2client/commands/rule_enforcement.py:80-90 | st2client/st2client/commands/triggerinstance.py:86-96 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060st2client/st2client/commands/rule_enforcement.py:80\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":"st2client/st2client/commands/rule_enforcement.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac1a566fedaf333584e999a7ceeca57878b1d628e5508479c0a40374c771027"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): st2common/st2common/persistence/base.py:135-145 | st2common/st2common/persistence/base.py:174-184 \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 \u0060st2common/st2common/persistence/base.py:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/persistence/base.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5a644f5d7a948f74790528e5ecd89d8f095866bec42dee83f824656694bef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): tools/diff-db-disk.py:177-188 | tools/diff-db-disk.py:189-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/diff-db-disk.py:177\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. 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":"tools/diff-db-disk.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f1e9d13106cb1acc5202b19dd50168fb2267bf279929999e46c12b54bc27e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): st2actions/st2actions/notifier/notifier.py:255-264 | st2actions/st2actions/scheduler.py:88-97 \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 \u0060st2actions/st2actions/notifier/notifier.py:255\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":"st2actions/st2actions/notifier/notifier.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc31bbe1da6f88354afa14aa35fce36d288a52ccb234741f55e41dae4c9b7ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): st2api/st2api/controllers/v1/actionalias.py:208-217 | st2api/st2api/controllers/v1/triggers.py:275-284 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2api/st2api/controllers/v1/actionalias.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff9b2f4b87b1f1fec002766174f676a2c5f55bbc7fb87b705475772b82618f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): st2client/st2client/commands/resource.py:558-567 | st2common/st2common/util/loader.py:220-229 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2client/st2client/commands/resource.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ff20c24f66bc9771868aed9bc79510e72359ed354ebd25a448f115fc29308e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): st2client/st2client/utils/interactive.py:238-247 | st2client/st2client/utils/interactive.py:339-348 \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":"st2client/st2client/utils/interactive.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14856fc314227ab07c4af1ff379d58836898ee2c3f2f515b23ec59fcbc7392d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): st2common/st2common/services/sensor_watcher.py:69-78 | st2common/st2common/services/triggerwatcher.py:80-89 \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":"st2common/st2common/services/sensor_watcher.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2881d3f14aba5f7981b170724caf403ac0fd51510a130ba0f0d2eabf37e3989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): st2client/st2client/commands/resource.py:385-393 | st2client/st2client/commands/resource.py:436-444 | st2client/st2client/commands/resource.py:478-486 | st2client/st2client/commands/resource.py:520-528 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060st2client/st2client/commands/resource.py:385\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":"st2client/st2client/commands/resource.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d0fa1ff10240c02dfdac9548d1e157f7b4cf83764eb597467fec08dedba15e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): st2client/st2client/commands/rule_enforcement.py:63-71 | st2client/st2client/commands/triggerinstance.py:75-83 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060st2client/st2client/commands/rule_enforcement.py:63\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":"st2client/st2client/commands/rule_enforcement.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d21e530d0124d0e577eb42a09699f8eb55f6fb769790912f7c93cdf187a6a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): st2api/st2api/controllers/v1/actionalias.py:179-186 | st2api/st2api/controllers/v1/runnertypes.py:79-86 | st2api/st2api/controllers/v1/triggers.py:110-118 | st2api/st2api/controllers/v1/triggers.py:253-260 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. 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":"st2api/st2api/controllers/v1/actionalias.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e8e39c5fcfe49b51edc96724367067814b18c8978b62469df855fc347a6448"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): st2client/st2client/commands/pack.py:204-211 | st2client/st2client/commands/pack.py: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2client/st2client/commands/pack.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5ce23dfdeb0d9e59d26a4421b0d0813807fca23de2f770ef7d85234f5649ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): st2client/st2client/commands/rule.py:44-50 | st2client/st2client/commands/rule_enforcement.py:60-66 | st2client/st2client/commands/triggerinstance.py:71-78 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060st2client/st2client/commands/rule.py:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2client/st2client/commands/rule.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8795df89347fd58e0622a1099d9a0d50f7e07ef68b69beb9fedb601f5f5da713"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): contrib/runners/mistral_v2/mistral_v2.py:54-60 | st2common/st2common/validators/workflow/mistral/v2.py:43-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060contrib/runners/mistral_v2/mistral_v2.py:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/runners/mistral_v2/mistral_v2.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1accaef548f8cb486fd632f558c231a6f4b2ecde76191d5a977abb13ffb64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): st2client/st2client/commands/rule_enforcement.py:118-124 | st2client/st2client/commands/triggerinstance.py:127-133 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060st2client/st2client/commands/rule_enforcement.py:118\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":"st2client/st2client/commands/rule_enforcement.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54830540febde6672f8951c3b81c50458b351d81c884050675f0dc38ee02df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): st2client/st2client/commands/trace.py:179-185 | st2client/st2client/commands/triggerinstance.py:127-133 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060st2client/st2client/commands/trace.py:179\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":"st2client/st2client/commands/trace.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bb51f98054ae0d41997a37eabbcdd8dc1a9eb0844b0777f68b6cab19e7ae44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): contrib/runners/mistral_v2/callback/mistral_v2.py:75-80 | contrib/runners/mistral_v2/mistral_v2.py:56-61 | contrib/runners/mistral_v2/query/mistral_v2.py:51-56 | st2common/st2common/validators/workflow/mistral/v2.py:45-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060contrib/runners/mistral_v2/callback/mistral_v2.py:75\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/runners/mistral_v2/callback/mistral_v2.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a2f7d45cfd884e7e97617a46008141af442124878941bb110130beb2cb4412"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): st2common/st2common/models/system/action.py:288-293 | st2common/st2common/models/system/action.py:317-322 \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 \u0060st2common/st2common/models/system/action.py:288\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":"st2common/st2common/models/system/action.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"3beadb7c3dd0b5a5afbc8ad16770093461df183e3b74c96951f80fc3690b4b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): contrib/packs/actions/pack_mgmt/unload.py:47-52 | st2reactor/st2reactor/container/sensor_wrapper.py:183-187 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/packs/actions/pack_mgmt/unload.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"35879791ca7b1d0a547e0310fe7ff66b0e7b74caa38382b4186f6987a4aa1639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): contrib/runners/windows_command_runner/windows_command_runner.py:59-63 | contrib/runners/windows_script_runner/windows_script_runner.py:83-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/runners/windows_command_runner/windows_command_runner.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6deebb735e6c2fe92663b695f8a6a081bbe33a3f18e3a58a15ccfd9d35a77bb"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3884e3aea702ff8b299b61b1779924ca01608f998c98af944c0146caaa6affe7"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: Every one of the 280 significant source file(s) was last meaningfully changed so long ago that no living knowledge remains, so there is no concentration to measure \u2014 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":"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":"7d0f465a2e838fc7fc69bfdee4a5919e24e2c669bd4bb09c6558b50a1e1b323a"}},{"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":"ac7832830efdb2a10de43011c52a8e9dfa31d76eef6545a56ccc049739cd0c37"}},{"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":"ece68c16c5cc211e1c26e8af6596e05180c6246f12b7c36cca609944e8029fe5"}},{"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":"3e2ef6f1246a27060596d2ab64c4a7987f44a55697c46adb924ccbd897bc9e4c"}},{"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":"9c563c064a73fb76c45da0f1f4c253399697c5137c6503065c17bb8134c3006e"}},{"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":"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":"252d9e59c9df8e3ec4ccf9ccf335976bdc36b85828bfed3a67b313d8f7e05d75"},"taxa":[{"id":"CWE-326","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":"e2d4f1d5053a409beca6ca54eeb98066db0b2425fc2440785d70e83c8d8370d0"},"taxa":[{"id":"CWE-327","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":"34d9509d4894c2c06ac154fe9a329fadd70f7cbaaac66e1007abb52e4b5d0a74"},"taxa":[{"id":"CWE-327","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":"dbf7ae91c622d9cf4b1147c8c70738e0e0259dc93be2b7c4799bbf2a01b77d1d"},"taxa":[{"id":"CWE-116","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":"b06cb14894378aa275bdfb1093d70d1b1f412100e626134f555ed58e856674b9"},"taxa":[{"id":"CWE-327","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":"f9b820264614b77467338519b81ba1fa3fd56d7abfdc766f725b09d4e74811c9"},"taxa":[{"id":"CWE-276","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc54303d35ba2ca1df0a99ee526e30eb85eb41c0fedf7009367ad197d9049fff"},"taxa":[{"id":"CWE-290","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3ee9ce3b941224bca7fca641b878b0cf196df6ea86d64757f045502f2ee0ecf1"},"taxa":[{"id":"CWE-290","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0ecb644e5a095b3a7d019b6f76da90e209f92cd1c4968e158bbba337b4bfd629"},"taxa":[{"id":"CWE-290","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe73d0b325ed29c4aa7e60e21a64591a5b80c67c1f37b7606a63f6d0b25af726"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 280 of 280 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 280 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2client/st2client/commands/action.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad0eb7de552afbfe549fc433855155d3e3cd3be23c246e5a7dc1636b3c721eb"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/rbac/resolvers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c29924fc6b6c68f950b6ca0499946fe100431834dca17ea32d3ea29f0758bc4"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/runners/action_chain_runner/action_chain_runner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d269de1fa45bb150c4d55668e6b675d9266d2122538f7795872f8a89d794bf17"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: app.py, app.py, app.py: 3 files \u2014 \u0060st2api/st2api/app.py\u0060, \u0060st2auth/st2auth/app.py\u0060, \u0060st2stream/st2stream/app.py\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2api/st2api/app.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b4d677800c3f29de9428bf80c9d2d4117e7ef4f594fc79f94598672495cf6e"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: actionrunner.py \u2194 sensormanager.py: \u0060st2actions/st2actions/cmd/actionrunner.py\u0060 (context st2actions) and \u0060st2reactor/st2reactor/cmd/sensormanager.py\u0060 (context st2reactor) sit in DIFFERENT parts of the tree yet change together 65% of the time (11 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2actions/st2actions/cmd/actionrunner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0cd2ca371e369177d11d7ab3c67b5c0b87e5cfffa9507b88758e56446b2fae"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: wsgi.py \u2194 wsgi.py: \u0060st2api/st2api/wsgi.py\u0060 (context st2api) and \u0060st2stream/st2stream/wsgi.py\u0060 (context st2stream) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2api/st2api/wsgi.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd8b7fa79d7126f6a7d178b1a2e2ae914711d5443e1490e2dd16056459cac6d"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: templating.py \u2194 datatransform.py: \u0060st2common/st2common/util/templating.py\u0060 (context st2common) and \u0060st2reactor/st2reactor/rules/datatransform.py\u0060 (context st2reactor) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/util/templating.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8114fee0fc80e53fc64a7135cb26595618d1572b10f0dbc183f0053808cbcb8e"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: action_chain_runner.py \u2194 datatransform.py: \u0060contrib/runners/action_chain_runner/action_chain_runner.py\u0060 (context contrib) and \u0060st2reactor/st2reactor/rules/datatransform.py\u0060 (context st2reactor) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"contrib/runners/action_chain_runner/action_chain_runner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f76f352b26b01921e2218a1bca96ef84a864926bad0041b750d534a9fac4ee"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: actionrunner.py \u2194 api.py: \u0060st2actions/st2actions/cmd/actionrunner.py\u0060 (context st2actions) and \u0060st2api/st2api/cmd/api.py\u0060 (context st2api) sit in DIFFERENT parts of the tree yet change together 53% of the time (9 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2actions/st2actions/cmd/actionrunner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8a51ef704a6473b69b552506dff1469b30c7f10b873a74f5376bc2392d9ad8"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: st2resultstracker.py \u2194 rulesengine.py: \u0060st2actions/st2actions/cmd/st2resultstracker.py\u0060 (context st2actions) and \u0060st2reactor/st2reactor/cmd/rulesengine.py\u0060 (context st2reactor) sit in DIFFERENT parts of the tree yet change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2actions/st2actions/cmd/st2resultstracker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"276c5ababaddc0d2e353eeed0fe3317b59c4ae41e0075f469f861727dbf84bd1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: action.py \u2194 rule.py: \u0060st2common/st2common/models/db/action.py\u0060 and \u0060st2common/st2common/models/db/rule.py\u0060 change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"st2common/st2common/models/db/action.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3e4ed1b768d85d7c5064ded5f12502443154a70698dfd18a3ec4051f5b33eb"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e1badb28b601b2b62a98dba431897e1b70e94b000642b6e71efe528bb3f8e41"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bd9c5d1a3213565373d6281a20abb344aded67a177123c3d993a147a9424791a"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e453e2f90cc13866b153eaf8861397c53b1ccd941dc465bec100953bd5799cc6"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6c687f12ebf9633efe1449708a4765440a04cd3b1908dea9bcefc742111e5ad6"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf0230c0f43a6fd7f4d0b5e3f34b803a8b8835477a697875fd13a618f5f7f489"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"56c7ef72ac972b08db7b7aae16af41538c6d1805607cd2d3dfe54eb2f6cd1d9f"}}],"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-116","guid":"c0134ca8-adc7-6959-bd17-5253a265d101","name":"CWE-116","shortDescription":{"text":"CWE-116"},"helpUri":"https://cwe.mitre.org/data/definitions/116.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-276","guid":"4e27da05-61af-1d5c-aeb5-9f56b6ede3e3","name":"CWE-276","shortDescription":{"text":"CWE-276"},"helpUri":"https://cwe.mitre.org/data/definitions/276.html"},{"id":"CWE-290","guid":"379b1e66-a292-7b59-aa1e-a5bb4a6a99e9","name":"CWE-290","shortDescription":{"text":"CWE-290"},"helpUri":"https://cwe.mitre.org/data/definitions/290.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-326","guid":"7ee78bef-7589-f65f-a9d7-619f3485e844","name":"CWE-326","shortDescription":{"text":"CWE-326"},"helpUri":"https://cwe.mitre.org/data/definitions/326.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"CWE-327","shortDescription":{"text":"CWE-327"},"helpUri":"https://cwe.mitre.org/data/definitions/327.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-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":23,"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."]}]}