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

Extending js support

parent d18c906c
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@ class Compatibility:
scanned_yaml = []
scanned_java = []
scanned_html = []
scanned_js = []
# TODO: List of supported file types should be extended
# TODO: Remove hardcoded check names
......@@ -75,12 +76,17 @@ class Compatibility:
types.append("html")
scanned_html.append(filename)
if f.find(".js") > -1:
types.append("js")
scanned_js.append(filename)
self.scanned_files["terraform"] = str(scanned_terraform)
self.scanned_files["python"] = str(scanned_py)
self.scanned_files["shell"] = str(scanned_shell)
self.scanned_files["yaml"] = str(scanned_yaml)
self.scanned_files["java"] = str(scanned_java)
self.scanned_files["html"] = str(scanned_html)
self.scanned_files["js"] = str(scanned_js)
types = set(types)
print(types)
......
......@@ -87,11 +87,19 @@ class ResultsSummary:
return "Problems"
if check == "es-lint":
if outcome == "":
if outcome.find("wrong")>-1:
self.outcomes[check]["status"] = "Problems"
return "Passed"
else:
self.outcomes[check]["status"] = "Passed"
return "Problems"
if check == "ts-lint":
if outcome.find("wrong")>-1:
self.outcomes[check]["status"] = "Prolems"
return "Passed"
else:
self.outcomes[check]["status"] = "Problems"
self.outcomes[check]["status"] = "Passed"
return "Problems"
def summarize_no_files(self, check: str):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment