Skip to content

Commit

Permalink
fix(#2909): checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Mar 1, 2024
1 parent 2ecd9df commit 56922c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.cactoos.experimental.Threads;
import org.cactoos.iterable.IterableEnvelope;
import org.cactoos.iterable.IterableOf;
import org.cactoos.iterable.Joined;
import org.cactoos.iterable.Mapped;
import org.cactoos.list.ListOf;
Expand All @@ -48,10 +46,8 @@
import org.eolang.maven.util.Home;
import org.eolang.maven.util.Walk;
import org.eolang.parser.PhiSyntax;
import org.eolang.parser.XeEoListener;
import org.xembly.Directive;
import org.xembly.Directives;
import org.xembly.Xembler;

/**
* Read PHI files and parse them to the XMIR.
Expand Down Expand Up @@ -89,6 +85,7 @@ public final class UnphiMojo extends SafeMojo {
* Extra metas to add to unphied XMIR.
* @checkstyle MemberNameCheck (10 lines)
*/
@SuppressWarnings("PMD.ImmutableField")
@Parameter(property = "eo.unphiMetas")
private Set<String> unphiMetas = new SetOf<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ void addsMetas(@TempDir final Path temp) throws IOException {
"Unphied XMIR must contain metas, added via \"unphiMetas\" parameter",
new XMLDocument(
new FakeMaven(temp)
.with("unphiMetas", new SetOf<>("+tests", "+home https://github.com/objectionary/eo"))
.with(
"unphiMetas",
new SetOf<>("+tests", "+home https://github.com/objectionary/eo")
)
.execute(UnphiMojo.class)
.result()
.get(String.format("target/%s/std.xmir", ParseMojo.DIR))
Expand All @@ -107,7 +110,7 @@ void addsMetas(@TempDir final Path temp) throws IOException {
)
);
}

@Test
void failsIfPackageMetaIsAdded(@TempDir final Path temp) throws IOException {
new HmBase(temp).save(
Expand Down

0 comments on commit 56922c5

Please sign in to comment.