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 61f5e8b5fc..bda6a1132c 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 @@ -250,9 +250,7 @@ private static String summary(final ConcurrentHashMap counts) parts.add("no complaints"); } final String sum; - if (parts.size() == 1) { - sum = parts.get(0); - } else if (parts.size() == 2) { + if (parts.size() < 3) { sum = String.join(" and ", parts); } else { sum = String.format(