diff --git a/src/iac_scan_runner/compatibility.py b/src/iac_scan_runner/compatibility.py index bfd4c9cddac6628d16d8aad98be15c2ecc480fc2..e54cfef4a79d5fef4604d01d9dc5c8ac14924ab7 100644 --- a/src/iac_scan_runner/compatibility.py +++ b/src/iac_scan_runner/compatibility.py @@ -13,7 +13,7 @@ class Compatibility: "js": ["es-lint", "ts-lint"], "html": ["htmlhint"], "docker": ["hadolint"], - "other": [""], + "other": [], } def __init__(self): @@ -101,8 +101,7 @@ class Compatibility: self.scanned_files["other"] = str(scanned_other) types = set(types) - print(types) - + return types except Exception as e: raise Exception(f"Error when checking directory type: {str(e)}.") diff --git a/src/iac_scan_runner/results_summary.py b/src/iac_scan_runner/results_summary.py index 998676c3f376b0cbe8be8a3153c915f5080f09da..12b54ea7f345050e621244dcbbd99dd7d4ff6502 100644 --- a/src/iac_scan_runner/results_summary.py +++ b/src/iac_scan_runner/results_summary.py @@ -46,6 +46,7 @@ class ResultsSummary: # TODO: This part should be extended to cover all relevant cases and code refactored # TODO: The check names hould not be hardcoded but replaced with parametrized values instead + # TODO: Extract "Passed" and "Problems" into an Enum object and use them if check == "tfsec": if outcome.find("No problems detected!") > -1: self.outcomes[check]["status"] = "Passed"