From 5b67df2722ba1dcf2ec64afe25230f7cf3363b1b Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Thu, 12 Dec 2024 21:19:48 +0300 Subject: [PATCH] #3657: fail by default --- eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java | 2 +- .../src/test/java/org/eolang/maven/LintMojoTest.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 9373b6dcaf..50854405b7 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 @@ -80,7 +80,7 @@ public final class LintMojo extends SafeMojo { @Parameter( property = "eo.failOnWarning", required = true, - defaultValue = "false" + defaultValue = "true" ) private boolean failOnWarning; diff --git a/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoTest.java b/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoTest.java index 2d7d86d677..51f153ab25 100644 --- a/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoTest.java +++ b/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoTest.java @@ -64,7 +64,9 @@ void lintsAgainAfterModification(@Mktmp final Path temp, @RandomProgram final St .plugins() .appendItself() .execution() - .goals("register", "parse", "optimize", "shake", "lint"); + .goals("register", "parse", "optimize", "shake", "lint") + .configuration() + .set("failOnWarning", "false"); f.exec("process-classes"); final long before = f.files().file( "target/eo/6-lint/foo.xmir"