Skip to content

Commit

Permalink
qulice back to 0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 7, 2024
1 parent a2be0ac commit ae53efd
Show file tree
Hide file tree
Showing 38 changed files with 52 additions and 49 deletions.
12 changes: 6 additions & 6 deletions eo-maven-plugin/src/main/java/org/eolang/maven/AssembleMojo.java
Expand Up @@ -113,17 +113,17 @@ public final class AssembleMojo extends SafeMojo {

/**
* Pull again even if the .eo file is already present?
* @checkstyle MemberNameCheck (7 lines)
* @since 0.10.0
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter(property = "eo.overWrite", required = true, defaultValue = "false")
private boolean overWrite;

/**
* Track optimization steps into intermediate XML files?
*
* @checkstyle MemberNameCheck (7 lines)
* @since 0.24.0
* @checkstyle MemberNameCheck (7 lines)
*/
@SuppressWarnings("PMD.LongVariable")
@Parameter(property = "eo.trackOptimizationSteps", required = true, defaultValue = "false")
Expand All @@ -139,25 +139,25 @@ public final class AssembleMojo extends SafeMojo {

/**
* Skip artifact with the version 0.0.0.
* @checkstyle MemberNameCheck (7 lines)
* @since 0.9.0
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter(property = "eo.skipZeroVersions", required = true, defaultValue = "true")
private boolean skipZeroVersions;

/**
* Shall we discover JAR artifacts for .EO sources?
* @checkstyle MemberNameCheck (7 lines)
* @since 0.12.0
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter(property = "eo.discoverSelf", required = true, defaultValue = "false")
private boolean discoverSelf;

/**
* Fail resolution process on conflicting dependencies.
*
* @checkstyle MemberNameCheck (7 lines)
* @since 1.0
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter(property = "eo.ignoreVersionConflicts", required = true, defaultValue = "false")
@SuppressWarnings("PMD.LongVariable")
Expand Down Expand Up @@ -196,9 +196,9 @@ public final class AssembleMojo extends SafeMojo {
/**
* If set to TRUE, the exception on exit will be printed in details
* to the log.
* @since 0.29.0
* @checkstyle MemberNameCheck (7 lines)
* @checkstyle VisibilityModifierCheck (10 lines)
* @since 0.29.0
*/
@Parameter(property = "eo.unrollExitError")
@SuppressWarnings("PMD.ImmutableField")
Expand Down
Expand Up @@ -39,8 +39,8 @@
/**
* Compile binaries.
*
* @checkstyle ClassDataAbstractionCouplingCheck (500 lines)
* @since 0.1
* @checkstyle ClassDataAbstractionCouplingCheck (500 lines)
*/
@Mojo(
name = "binarize",
Expand Down
Expand Up @@ -50,8 +50,8 @@
/**
* Parse rust inserts.
*
* @checkstyle ClassDataAbstractionCouplingCheck (500 lines)
* @since 0.1
* @checkstyle ClassDataAbstractionCouplingCheck (500 lines)
*/
@SuppressWarnings("PMD.LongVariable")
public final class BinarizeParse {
Expand Down
Expand Up @@ -44,8 +44,8 @@ public final class DemandMojo extends SafeMojo {

/**
* List of object names to add.
* @checkstyle MemberNameCheck (7 lines)
* @since 0.17.0
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter(required = true)
private List<String> objects;
Expand Down
Expand Up @@ -78,8 +78,8 @@ public final class OptimizeMojo extends SafeMojo {
/**
* Track optimization steps into intermediate XML files?
*
* @checkstyle MemberNameCheck (7 lines)
* @since 0.24.0
* @checkstyle MemberNameCheck (7 lines)
*/
@SuppressWarnings("PMD.LongVariable")
@Parameter(property = "eo.trackOptimizationSteps", required = true, defaultValue = "false")
Expand Down
Expand Up @@ -49,8 +49,8 @@
* Take binary files from where ResolveMojo placed them and
* copy to target/classes.
*
* @since 0.11
* @see <a href="https://news.eolang.org/2022-10-19-placed-catalog.html">Place catalog</a>
* @since 0.11
*/
@Mojo(
name = "place",
Expand Down
Expand Up @@ -87,8 +87,8 @@ public final class PullMojo extends SafeMojo {

/**
* Pull again even if the .eo file is already present?
* @checkstyle MemberNameCheck (7 lines)
* @since 0.10.0
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter(property = "eo.overWrite", required = true, defaultValue = "false")
private boolean overWrite;
Expand Down
Expand Up @@ -69,26 +69,26 @@ public final class ResolveMojo extends SafeMojo {
/**
* Skip artifact with the version 0.0.0.
*
* @checkstyle MemberNameCheck (7 lines)
* @since 0.9.0
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter(property = "eo.skipZeroVersions", required = true, defaultValue = "true")
private boolean skipZeroVersions;

/**
* Shall we discover JAR artifacts for .EO sources?
*
* @checkstyle MemberNameCheck (7 lines)
* @since 0.12.0
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter(property = "eo.discoverSelf", required = true, defaultValue = "false")
private boolean discoverSelf;

/**
* Fail resolution process on conflicting dependencies.
*
* @checkstyle MemberNameCheck (7 lines)
* @since 1.0
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter(property = "eo.ignoreVersionConflicts", required = true, defaultValue = "false")
@SuppressWarnings("PMD.LongVariable")
Expand Down
8 changes: 4 additions & 4 deletions eo-maven-plugin/src/main/java/org/eolang/maven/SafeMojo.java
Expand Up @@ -123,9 +123,9 @@ abstract class SafeMojo extends AbstractMojo {
/**
* The path to a text file where paths of all added
* .class (and maybe others) files are placed.
* @since 0.11.0
* @checkstyle MemberNameCheck (7 lines)
* @checkstyle VisibilityModifierCheck (10 lines)
* @since 0.11.0
*/
@Parameter(
property = "eo.placed",
Expand All @@ -144,9 +144,9 @@ abstract class SafeMojo extends AbstractMojo {

/**
* The path to a text file where paths of generated java files per EO program.
* @since 0.11.0
* @checkstyle MemberNameCheck (7 lines)
* @checkstyle VisibilityModifierCheck (10 lines)
* @since 0.11.0
*/
@Parameter(
property = "eo.transpiled",
Expand All @@ -157,8 +157,8 @@ abstract class SafeMojo extends AbstractMojo {

/**
* Mojo execution timeout in seconds.
* @checkstyle VisibilityModifierCheck (10 lines)
* @since 0.28.12
* @checkstyle VisibilityModifierCheck (10 lines)
*/
@Parameter(property = "eo.timeout")
protected Integer timeout = Integer.MAX_VALUE;
Expand All @@ -174,9 +174,9 @@ abstract class SafeMojo extends AbstractMojo {
/**
* If set to TRUE, the exception on exit will be printed in details
* to the log.
* @since 0.29.0
* @checkstyle MemberNameCheck (7 lines)
* @checkstyle VisibilityModifierCheck (10 lines)
* @since 0.29.0
*/
@Parameter(property = "eo.unrollExitError")
protected boolean unrollExitError = true;
Expand Down
Expand Up @@ -75,8 +75,8 @@ public final class ShakeMojo extends SafeMojo {
/**
* Track optimization steps into intermediate XML files?
*
* @checkstyle MemberNameCheck (7 lines)
* @since 0.24.0
* @checkstyle MemberNameCheck (7 lines)
*/
@SuppressWarnings("PMD.LongVariable")
@Parameter(property = "eo.trackOptimizationSteps", required = true, defaultValue = "false")
Expand Down
Expand Up @@ -58,17 +58,17 @@ public final class UnplaceMojo extends SafeMojo {

/**
* List of inclusion GLOB filters for unplacing (these files will be removed for sure).
* @since 0.24
* @see <a href="https://news.eolang.org/2022-07-15-placing-and-unplacing.html">Placing and Unplacing in JAR Artifacts</a>
* @since 0.24
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter
private Set<String> removeBinaries = new SetOf<>();

/**
* List of inclusion GLOB filters for placing (ONLY these files will stay).
* @since 0.24
* @see <a href="https://news.eolang.org/2022-07-15-placing-and-unplacing.html">Placing and Unplacing in JAR Artifacts</a>
* @since 0.24
* @checkstyle MemberNameCheck (7 lines)
*/
@Parameter
Expand Down
Expand Up @@ -119,11 +119,14 @@ static Dependency runtimeDep() {
*/
private static Dependency randDep() {
final Random rand = new SecureRandom();
final String scope = new String[] {
"test", "compiled", "runtime",
}[rand.nextInt(3)];
return DcsFake.dep(
UUID.randomUUID().toString(),
UUID.randomUUID().toString(),
String.valueOf(Math.abs(rand.nextInt())),
new String[]{"test", "compiled", "runtime"}[rand.nextInt(3)]
scope
);
}

Expand Down
Expand Up @@ -56,7 +56,7 @@ public interface Objectionaries {
*
* @since 0.29.6
*/
class Fake implements Objectionaries {
final class Fake implements Objectionaries {
/**
* Default objectionary.
*/
Expand Down
Expand Up @@ -56,8 +56,8 @@ public interface Objectionary {
/**
* Objectionary with lambda-function Ctor-s for testing.
*
* @checkstyle IllegalCatchCheck (150 lines)
* @since 0.28.11
* @checkstyle IllegalCatchCheck (150 lines)
*/
@SuppressWarnings("PMD.AvoidCatchingGenericException")
final class Fake implements Objectionary {
Expand Down
Expand Up @@ -48,6 +48,7 @@
/**
* Test case for {@link AssembleMojo}.
*
* @since 0.1
* @todo #1602:30min Make up how to get rid of excessive usage of
* {@code ParseMojo.DIR}, {@code ResolveMojo.DIR} and so on. It would be nice
* to replace them with corresponding classes, or something similar
Expand All @@ -61,7 +62,6 @@
* from older repositories are not parsed successfully because of the presence of varargs there.
* So we need to make 2-3 releases and then refactor the test with more fresh versions. Don't
* forget to remove the puzzle.
* @since 0.1
*/
@ExtendWith(WeAreOnline.class)
final class AssembleMojoTest {
Expand Down
Expand Up @@ -43,7 +43,7 @@
* everything works fine it's important to run the tests many times.
* @since 0.29.0
*/
class CatalogsTest {
final class CatalogsTest {

/**
* Number of cores on the running system.
Expand Down
Expand Up @@ -39,7 +39,7 @@
*
* @since 0.28.6
*/
class CleanMojoTest {
final class CleanMojoTest {

@Test
void cleansSuccessfully(@TempDir final Path temp) throws IOException {
Expand Down
Expand Up @@ -44,7 +44,7 @@
*
* @since 0.29
*/
class JavaFilesTest {
final class JavaFilesTest {

/**
* Parsed eo program from resources.
Expand Down
Expand Up @@ -34,7 +34,7 @@
*
* @since 0.29
*/
class LatexMojoTest {
final class LatexMojoTest {

/**
* Generate simple main.tex file from main.xmir file
Expand Down
Expand Up @@ -46,7 +46,7 @@
*/
@Execution(ExecutionMode.SAME_THREAD)
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
class LogFormatTest {
final class LogFormatTest {

/**
* Expected log message format.
Expand Down
Expand Up @@ -39,7 +39,7 @@
* Test cases for {@link PhiMojo}.
* @since 0.34.0
*/
class PhiMojoTest {
final class PhiMojoTest {
@Test
void createsFiles(@TempDir final Path temp) throws Exception {
MatcherAssert.assertThat(
Expand Down
Expand Up @@ -53,7 +53,7 @@
* Test cases for {@link UnphiMojo}.
* @since 0.34.0
*/
class UnphiMojoTest {
final class UnphiMojoTest {
@Test
void createsFile(@TempDir final Path temp) throws Exception {
new HmBase(temp).save(
Expand Down
Expand Up @@ -57,7 +57,7 @@
* error Assertion since now it is hard to get why it failed.
*/
@SuppressWarnings({"PMD.AvoidDuplicateLiterals", "PMD.TooManyMethods"})
class VerifyMojoTest {
final class VerifyMojoTest {

@Test
void doesNotFailWithNoErrorsAndWarnings(@TempDir final Path temp) {
Expand Down
Expand Up @@ -38,7 +38,7 @@
*
* @since 0.30
*/
class DcsEachWithoutTransitiveTest {
final class DcsEachWithoutTransitiveTest {

@Test
void failsIfHasTransitiveDependencies() {
Expand Down
Expand Up @@ -33,7 +33,7 @@
*
* @since 0.28.11
*/
class ChCachedTest {
final class ChCachedTest {

@Test
void cachesHashAndInvokesDelegateOnlyOnce() {
Expand Down
Expand Up @@ -35,7 +35,7 @@
*
* @since 0.28.11
*/
class ChNarrowTest {
final class ChNarrowTest {

@ParameterizedTest
@CsvSource({
Expand Down
Expand Up @@ -41,7 +41,7 @@
*
* @since 0.28.11
*/
class ChTextTest {
final class ChTextTest {

/**
* Test file path in temp dir.
Expand Down
Expand Up @@ -32,7 +32,7 @@
*
* @since 0.30
*/
class LatexTemplateTest {
final class LatexTemplateTest {

/**
* Check the full template.
Expand Down
Expand Up @@ -33,7 +33,7 @@
*
* @since 0.29.6
*/
class OnSwapTest {
final class OnSwapTest {
/**
* First.
*/
Expand Down

0 comments on commit ae53efd

Please sign in to comment.