diff --git a/.codacy.yml b/.codacy.yml index a348c736e4..54c98b03de 100644 --- a/.codacy.yml +++ b/.codacy.yml @@ -6,8 +6,6 @@ # package name contains capital letter and such names are conventional. --- exclude_paths: - - "src/test/groovy/*.groovy" - "eo-runtime/src/test/java/integration/PhiUnphiIT.java" - "eo-maven-plugin/src/test/java/org/eolang/maven/AssembleMojoIT.java" - - "eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoTest.java" - "eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoIT.java" diff --git a/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoIT.java b/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoIT.java index 46788d4f34..79fbc18092 100644 --- a/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoIT.java +++ b/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoIT.java @@ -27,19 +27,15 @@ @ExtendWith({WeAreOnline.class, MktmpResolver.class, MayBeSlow.class, RandomProgramResolver.class}) final class LintMojoIT { - /** - * The path to the EO file. - */ - private static final String EO = "src/main/eo/foo.eo"; - @Test void lintsAgainAfterModification(@Mktmp final Path temp, @RandomProgram final String program) throws Exception { + final String source = "src/main/eo/foo.eo"; final String xmir = String.format("target/eo/%s/foo.xmir", LintMojo.DIR); new Farea(temp).together( f -> { f.clean(); - f.files().file(LintMojoIT.EO).write(program.getBytes()); + f.files().file(source).write(program.getBytes()); LintMojoIT.appendItself(f) .configuration() .set("failOnWarning", "false"); @@ -49,7 +45,7 @@ void lintsAgainAfterModification(@Mktmp final Path temp, @RandomProgram final St .path() .toFile() .lastModified(); - f.files().file(LintMojoIT.EO).write(program.getBytes()); + f.files().file(source).write(program.getBytes()); f.exec("process-classes"); MatcherAssert.assertThat( "the .xmir file is re-generated", @@ -66,7 +62,7 @@ void printsLintsUrlWithVersion(@Mktmp final Path temp, @RandomProgram final Stri new Farea(temp).together( f -> { f.clean(); - f.files().file(LintMojoIT.EO).write(program.getBytes()); + f.files().file("src/main/eo/foo.eo").write(program.getBytes()); LintMojoIT.appendItself(f) .configuration() .set("failOnWarning", "false");