Skip to content

Commit

Permalink
addmissinginfo
Browse files Browse the repository at this point in the history
  • Loading branch information
hvamstel committed Dec 20, 2023
1 parent 8a8c2fb commit 43d0867
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,21 @@ public void genQAESLintCompactText(String title, List<FetchedFile> files, String
StringBuilder b = new StringBuilder();
files = sorted(files);

b.append(title + "\n");
b.append("=========================================");
b.append("\n\n");

for (ValidationMessage vm : linkErrors) {
String eslintSeverity = vm.getLevel().getDisplay();
if (eslintSeverity.equals("Information"))
eslintSeverity = "Info";

if (eslintSeverity.equals("Fatal"))
eslintSeverity = "Error";

b.append("Generic: line 0, col 0, " + eslintSeverity + " - " + vm.getMessage() + " (" + vm.getType() + ")" + "\n");
}

for (FetchedFile f : files) {
for (ValidationMessage vm : filterMessages(f.getErrors(), false, filteredMessages)) {
String eslintSeverity = vm.getLevel().getDisplay();
Expand All @@ -453,8 +468,9 @@ public void genQAESLintCompactText(String title, List<FetchedFile> files, String
}

b.append("\n");
b.append(genHeaderTxt(title, err, warn, info));

b.append("err = " + err + ", warn = " + warn + ", info = " + info + "\n");
b.append("IG Publisher Version: " + toolsVersion);

TextFile.stringToFile(b.toString(), Utilities.changeFileExt(path, "-eslintcompact.txt"));
}

Expand Down

0 comments on commit 43d0867

Please sign in to comment.