npm-groovy-lint 12.1.2-beta202311192219.0 → 12.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/groovy-lint.js +7 -3
- package/package.json +1 -1
package/lib/groovy-lint.js
CHANGED
|
@@ -500,21 +500,25 @@ class NpmGroovyLint {
|
|
|
500
500
|
// Fail on error
|
|
501
501
|
if (failureLevel === "error" && errorNb > 0) {
|
|
502
502
|
if (!["json", "sarif", "stdout"].includes(this.outputType)) {
|
|
503
|
-
console.error(`Failure
|
|
503
|
+
console.error(`Failure: ${this.lintResult.summary.totalRemainingErrorNumber} error(s) have been found`);
|
|
504
504
|
}
|
|
505
505
|
this.status = 1;
|
|
506
506
|
}
|
|
507
507
|
// Fail on warning
|
|
508
508
|
else if (failureLevel === "warning" && (errorNb > 0 || warningNb > 0)) {
|
|
509
509
|
if (!["json", "sarif", "stdout"].includes(this.outputType)) {
|
|
510
|
-
console.error(
|
|
510
|
+
console.error(
|
|
511
|
+
`Failure: ${this.lintResult.summary.totalRemainingErrorNumber} error(s) have been found \n ${this.lintResult.summary.totalRemainingWarningNumber} warning(s) have been found`
|
|
512
|
+
);
|
|
511
513
|
}
|
|
512
514
|
this.status = 1;
|
|
513
515
|
}
|
|
514
516
|
// Fail on info
|
|
515
517
|
else if (failureLevel === "info" && (errorNb > 0 || warningNb > 0 || infoNb > 0)) {
|
|
516
518
|
if (!["json", "sarif", "stdout"].includes(this.outputType)) {
|
|
517
|
-
console.error(
|
|
519
|
+
console.error(
|
|
520
|
+
`Failure: ${this.lintResult.summary.totalRemainingErrorNumber} error(s) have been found \n ${this.lintResult.summary.totalRemainingWarningNumber} warning(s) have been found \n ${this.lintResult.summary.totalRemainingInfoNumber} info(s) have been found`
|
|
521
|
+
);
|
|
518
522
|
}
|
|
519
523
|
this.status = 1;
|
|
520
524
|
}
|