ComplianceAsCode/content

View on GitHub

Showing 1,093 of 1,093 total issues

Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.
Open

def get_rule_to_stig_dict(xml: ElementTree.ElementTree, benchmark_creator: str) -> dict:
Severity: Critical
Found in utils/compare_results.py by sonar-python

Merge this if statement with the enclosing one.
Open

if self.is_benchmark():
Severity: Major
Found in ssg/xml.py by sonar-python

Either merge this branch with the identical one on line "36" or change one of the implementations.
Open

return current_status
Severity: Major
Found in utils/compare_results.py by sonar-python

Either merge this branch with the identical one on line "36" or change one of the implementations.
Open

return current_status
Severity: Major
Found in utils/compare_results.py by sonar-python

Method "__init__" has 10 parameters, which is greater than the 7 authorized.
Open

self, environment, profile, datastream, benchmark_id,
rule_id, script_name, dont_clean, no_reports, manual_debug):
Severity: Major
Found in tests/ssg_test_suite/oscap.py by sonar-python

Unexpected trailing spaces found.
Open

Unexpected trailing spaces found.
Open

# Create and change to product_string dir
Severity: Minor
Found in utils/build_profiler.sh by editorconfig

Unexpected trailing spaces found.
Open

# Create and change to .build_profiling dir
Severity: Minor
Found in utils/build_profiler.sh by editorconfig

Unexpected additional newlines at the end of the file.
Open

Severity: Minor
Found in ssg/content_diff.py by editorconfig

Unexpected trailing spaces found.
Open

converted to GID by reading /etc/group. gid_or_name can also be a

Unexpected trailing spaces found.
Open

converted to UID by reading /etc/passwd. uid_or_name can also be a

Unexpected trailing spaces found.
Open

Severity: Minor
Found in utils/rendering/common.py by editorconfig

Unexpected trailing spaces found.
Open

}
Severity
Category
Status
Source
Language