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

Fixed .js, .html and .java file usage scenarios

parent 4022c7af
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,10 @@ class Compatibility:
self.scanned_files["yaml"] = str(scanned_yaml)
self.scanned_files["java"] = str(scanned_java)
self.scanned_files["html"] = str(scanned_html)
types = set(types)
print(types)
return types
except Exception as e:
raise Exception(f"Error when checking directory type: {str(e)}.")
......
......@@ -70,6 +70,30 @@ class ResultsSummary:
self.outcomes[check]["status"] = "Problems"
return "Problems"
if check == "htmlhint":
if outcome.find("no errors")>-1:
self.outcomes[check]["status"] = "Passed"
return "Passed"
else:
self.outcomes[check]["status"] = "Problems"
return "Problems"
if check == "checkstyle":
if outcome == "":
self.outcomes[check]["status"] = "Passed"
return "Passed"
else:
self.outcomes[check]["status"] = "Problems"
return "Problems"
if check == "es-lint":
if outcome == "":
self.outcomes[check]["status"] = "Passed"
return "Passed"
else:
self.outcomes[check]["status"] = "Problems"
return "Problems"
def summarize_no_files(self, check: str):
"""
Sets the outcome of the selected check to "no files" case
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment