Skip to content

Commit

Permalink
better print
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 15, 2024
1 parent 6f6a457 commit 7598bd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ void exec() throws IOException {
"Also, %d XMIR programs linted as a package",
this.lintAll(counts)
);
final String sum = LintMojo.summary(counts);
if (counts.get(Severity.ERROR) > 0 || counts.get(Severity.CRITICAL) > 0
|| counts.get(Severity.WARNING) > 0 && this.failOnWarning) {
final String sum = LintMojo.summary(counts);
Logger.info(
this,
"Linted %d out of %d XMIR program(s) that needed this (out of %d total programs): %s",
Expand All @@ -117,8 +117,8 @@ void exec() throws IOException {
} else {
Logger.info(
this,
"Linted %d out of %d XMIR program(s) that needed this, no problems found",
passed, tojos.size()
"Linted %d out of %d XMIR program(s) that needed this: %s",
passed, tojos.size(), sum
);
}
}
Expand Down

0 comments on commit 7598bd5

Please sign in to comment.