Skip to content
Snippets Groups Projects
Commit b109d379 authored by penenadpi's avatar penenadpi Committed by Anze Luzar
Browse files

Fixing according to comments

parent b1d22b19
Branches
Tags
No related merge requests found
...@@ -13,7 +13,7 @@ class Compatibility: ...@@ -13,7 +13,7 @@ class Compatibility:
"js": ["es-lint", "ts-lint"], "js": ["es-lint", "ts-lint"],
"html": ["htmlhint"], "html": ["htmlhint"],
"docker": ["hadolint"], "docker": ["hadolint"],
"other": [""], "other": [],
} }
def __init__(self): def __init__(self):
...@@ -101,7 +101,6 @@ class Compatibility: ...@@ -101,7 +101,6 @@ class Compatibility:
self.scanned_files["other"] = str(scanned_other) self.scanned_files["other"] = str(scanned_other)
types = set(types) types = set(types)
print(types)
return types return types
except Exception as e: except Exception as e:
......
...@@ -46,6 +46,7 @@ class ResultsSummary: ...@@ -46,6 +46,7 @@ class ResultsSummary:
# TODO: This part should be extended to cover all relevant cases and code refactored # 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: 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 check == "tfsec":
if outcome.find("No problems detected!") > -1: if outcome.find("No problems detected!") > -1:
self.outcomes[check]["status"] = "Passed" self.outcomes[check]["status"] = "Passed"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment