Showing 1,093 of 1,093 total issues
Refactor this function to reduce its Cognitive Complexity from 51 to the 15 allowed. Open
def simplify(self, sort=True):
- Read upRead up
- Exclude checks
Merge this if statement with the enclosing one. Open
if data.get("values"):
- Read upRead up
- Exclude checks
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed. Open
def normalize_passed_arguments(options):
- Read upRead up
- Exclude checks
Refactor this function to reduce its Cognitive Complexity from 28 to the 15 allowed. Open
def sort_section_keys(file_path, file_contents, sections, sort_func=None):
- Read upRead up
- Exclude checks
Refactor this function to reduce its Cognitive Complexity from 26 to the 15 allowed. Open
def createPlatformRuleFunc(args):
- Read upRead up
- Exclude checks
Either merge this branch with the identical one on line "36" or change one of the implementations. Open
return current_status
- Read upRead up
- Exclude checks
Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed. Open
def tokenize(self, expr):
- Read upRead up
- Exclude checks
Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed. Open
def ssg_xccdf_stigid_mapping(ssgtree):
- Read upRead up
- Exclude checks
Rename function "clusterTestFunc" to match the regular expression ^[a-z_][a-z0-9_]{2,}$. Open
def clusterTestFunc(args):
- Read upRead up
- Exclude checks
Merge this if statement with the enclosing one. Open
if not cce.is_cce_value_valid("CCE-" + str(i_value)):
- Read upRead up
- Exclude checks
Merge this if statement with the enclosing one. Open
if self.is_benchmark():
- Read upRead up
- Exclude checks
Take the required action to fix the issue indicated by this "FIXME" comment. Open
# FIXME: what does this pass Do?
- Read upRead up
- Exclude checks
Rename function "createPlatformRuleFunc" to match the regular expression ^[a-z_][a-z0-9_]{2,}$. Open
def createPlatformRuleFunc(args):
- Read upRead up
- Exclude checks
Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed. Open
def main():
- Read upRead up
- Exclude checks
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed. Open
def get_shell_tasks(tasks):
- Read upRead up
- Exclude checks
Function "handle_control" has 8 parameters, which is greater than the 7 authorized. Open
def handle_control(product: str, control: ssg.controls.Control, env_yaml: ssg.environment, rule_json: dict, srgs: dict, used_rules: list, root_path: str, prefer_controls: bool) -> list:
- Read upRead up
- Exclude checks
Rename function "testFunc" to match the regular expression ^[a-z_][a-z0-9_]{2,}$. Open
def testFunc(args):
- Read upRead up
- Exclude checks
Merge this if statement with the enclosing one. Open
if file_contents[line_num][0:sec_len] == sec_id:
- Read upRead up
- Exclude checks
Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed. Open
def clusterTestFunc(args):
- Read upRead up
- Exclude checks