Skip to content
Snippets Groups Projects
Commit a231ff5b authored by nenad.petrovic@xlab.si's avatar nenad.petrovic@xlab.si Committed by Mati(ja)c Cankar
Browse files

Result summarization fixes

parent edb1a65e
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ class Compatibility:
"js": ["es-lint", "ts-lint"],
"html": ["htmlhint"],
"docker": ["hadolint"],
"other": [],
"other": ["git-leaks", "git-secrets"],
}
def __init__(self):
......
......@@ -87,6 +87,14 @@ class ResultsSummary:
self.outcomes[check]["status"] = "Problems"
return "Problems"
elif check == "shellcheck":
if outcome == "":
self.outcomes[check]["status"] = "Passed"
return "Passed"
else:
self.outcomes[check]["status"] = "Problems"
return "Problems"
elif check == "es-lint":
if outcome.find("wrong")>-1:
self.outcomes[check]["status"] = "Problems"
......@@ -111,6 +119,14 @@ class ResultsSummary:
self.outcomes[check]["status"] = "Problems"
return "Problems"
elif check == "bandit":
if outcome.find("No issues identified.")>-1:
self.outcomes[check]["status"] = "Passed"
return "Passed"
else:
self.outcomes[check]["status"] = "Problems"
return "Problems"
elif check == "hadolint":
if outcome=="":
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