Skip to content

Commit

Permalink
fix(#2754): checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Feb 7, 2024
1 parent 942e325 commit e44787c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
Expand Up @@ -100,7 +100,6 @@ void checksUnphiPacks(final String pack, @TempDir final Path temp) throws Except
)
).asString()
);
System.out.println(doc.toString());
for (final String xpath : (Iterable<String>) map.get("tests")) {
final List<XML> nodes = doc.nodes(xpath);
if (nodes.isEmpty()) {
Expand All @@ -127,22 +126,13 @@ void convertsToXmirAndBack(final String pack, @TempDir final Path temp) throws E
);
}
final String phi = map.get("phi").toString();
final String after;
if (map.containsKey("after")) {
after = map.get("after").toString();
} else {
after = phi;
}
final String main = "target/phi/main.phi";
final Path path = Paths.get(main);
new HmBase(temp).save(phi, path);
final long saved = temp.resolve(path).toFile().lastModified();
final FakeMaven maven = new FakeMaven(temp).execute(UnphiMojo.class);
maven.foreignTojos().add("name")
.withXmir(temp.resolve(String.format("target/%s/main.xmir", ParseMojo.DIR)));
System.out.println(
new TextOf(temp.resolve(String.format("target/%s/main.xmir", ParseMojo.DIR))).asString()
);
final Path result = maven
.execute(OptimizeMojo.class)
.execute(PhiMojo.class)
Expand All @@ -155,7 +145,7 @@ void convertsToXmirAndBack(final String pack, @TempDir final Path temp) throws E
);
MatcherAssert.assertThat(
"Origin phi should equal to phi got from \"unphied\" xmir, but it isn't",
after,
phi,
Matchers.equalTo(
new TextOf(result).asString()
)
Expand Down
3 changes: 2 additions & 1 deletion eo-parser/src/main/java/org/eolang/parser/XePhiListener.java
@@ -1,7 +1,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2023 Objectionary.com
* Copyright (c) 2016-2024 Objectionary.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -46,6 +46,7 @@
* @checkstyle CyclomaticComplexityCheck (500 lines)
* @checkstyle ClassFanOutComplexityCheck (500 lines)
* @checkstyle MethodCountCheck (1300 lines)
* @checkstyle NestedIfDepthCheck (1300 lines)
* @since 0.34.0
*/
@SuppressWarnings({
Expand Down

0 comments on commit e44787c

Please sign in to comment.