diff --git a/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java b/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java index 50854405b7..b6809ca388 100644 --- a/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java +++ b/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java @@ -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", @@ -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 ); } }