Skip to content

Commit

Permalink
objectionary#3238 resolved another potions of violations
Browse files Browse the repository at this point in the history
  • Loading branch information
c71n93 committed Aug 6, 2024
1 parent 25f9fe7 commit eaf46bb
Show file tree
Hide file tree
Showing 39 changed files with 139 additions and 56 deletions.
7 changes: 4 additions & 3 deletions eo-runtime/src/main/java/EOorg/EOeolang/Cages.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import java.util.concurrent.ConcurrentHashMap;
import org.eolang.ExFailure;
Expand All @@ -46,13 +47,13 @@ final class Cages {
/**
* Encaged objects.
*/
private final ConcurrentHashMap<Integer, Phi> objects = new ConcurrentHashMap<>(0);
private final ConcurrentHashMap<Integer, Phi> objects;

/**
* Ctor.
*/
private Cages() {
// singleton :(
this.objects = new ConcurrentHashMap<>(0);
}

/**
Expand Down
4 changes: 3 additions & 1 deletion eo-runtime/src/main/java/EOorg/EOeolang/EOas_phi.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import org.eolang.AtVoid;
import org.eolang.Atom;
Expand All @@ -47,6 +48,7 @@ public final class EOas_phi extends PhDefault implements Atom {
/**
* Ctor.
*/
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
public EOas_phi() {
this.add("x", new AtVoid("x"));
}
Expand Down
5 changes: 4 additions & 1 deletion eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOand.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import org.eolang.AtVoid;
import org.eolang.Atom;
Expand All @@ -45,10 +46,12 @@
*/
@Versionized
@XmirObject(oname = "bytes.and")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EObytes$EOand extends PhDefault implements Atom {
/**
* Ctor.
*/
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
public EObytes$EOand() {
this.add("b", new AtVoid("b"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import org.eolang.AtVoid;
import org.eolang.Atom;
Expand All @@ -45,10 +46,12 @@
*/
@Versionized
@XmirObject(oname = "bytes.concat")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EObytes$EOconcat extends PhDefault implements Atom {
/**
* Ctor.
*/
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
public EObytes$EOconcat() {
this.add("b", new AtVoid("b"));
}
Expand Down
5 changes: 4 additions & 1 deletion eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOeq.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import java.util.Arrays;
import org.eolang.AtVoid;
Expand All @@ -46,10 +47,12 @@
*/
@Versionized
@XmirObject(oname = "bytes.eq")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EObytes$EOeq extends PhDefault implements Atom {
/**
* Ctor.
*/
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
public EObytes$EOeq() {
this.add("b", new AtVoid("b"));
}
Expand Down
5 changes: 4 additions & 1 deletion eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOor.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import org.eolang.AtVoid;
import org.eolang.Atom;
Expand All @@ -45,10 +46,12 @@
*/
@Versionized
@XmirObject(oname = "bytes.or")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EObytes$EOor extends PhDefault implements Atom {
/**
* Ctor.
*/
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
public EObytes$EOor() {
this.add("b", new AtVoid("b"));
}
Expand Down
5 changes: 4 additions & 1 deletion eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOright.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import org.eolang.AtVoid;
import org.eolang.Atom;
Expand All @@ -45,10 +46,12 @@
*/
@Versionized
@XmirObject(oname = "bytes.right")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EObytes$EOright extends PhDefault implements Atom {
/**
* Ctor.
*/
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
public EObytes$EOright() {
this.add("x", new AtVoid("x"));
}
Expand Down
4 changes: 3 additions & 1 deletion eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOsize.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import org.eolang.Atom;
import org.eolang.Attr;
Expand All @@ -44,6 +45,7 @@
*/
@Versionized
@XmirObject(oname = "bytes.size")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EObytes$EOsize extends PhDefault implements Atom {
@Override
public Phi lambda() {
Expand Down
5 changes: 4 additions & 1 deletion eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOslice.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import java.util.Arrays;
import org.eolang.AtVoid;
Expand All @@ -46,10 +47,12 @@
*/
@Versionized
@XmirObject(oname = "bytes.slice")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EObytes$EOslice extends PhDefault implements Atom {
/**
* Ctor.
*/
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
public EObytes$EOslice() {
this.add("start", new AtVoid("start"));
this.add("len", new AtVoid("len"));
Expand Down
5 changes: 4 additions & 1 deletion eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOxor.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import org.eolang.AtVoid;
import org.eolang.Atom;
Expand All @@ -45,10 +46,12 @@
*/
@Versionized
@XmirObject(oname = "bytes.xor")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EObytes$EOxor extends PhDefault implements Atom {
/**
* Ctor.
*/
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
public EObytes$EOxor() {
this.add("b", new AtVoid("b"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import org.eolang.AtVoid;
import org.eolang.Atom;
Expand All @@ -44,10 +45,12 @@
*/
@Versionized
@XmirObject(oname = "cage.encaged.encage")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EOcage$EOencaged$EOencage extends PhDefault implements Atom {
/**
* Ctor.
*/
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
EOcage$EOencaged$EOencage() {
this.add("object", new AtVoid("object"));
}
Expand Down
4 changes: 3 additions & 1 deletion eo-runtime/src/main/java/EOorg/EOeolang/EOcage$EOφ.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import org.eolang.Atom;
import org.eolang.Attr;
Expand All @@ -42,6 +43,7 @@
*/
@Versionized
@XmirObject(oname = "cage.@")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EOcage$EOφ extends PhDefault implements Atom {
@Override
public Phi lambda() throws Exception {
Expand Down
4 changes: 3 additions & 1 deletion eo-runtime/src/main/java/EOorg/EOeolang/EOdataized.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang;
package EOorg.EOeolang; // NOPMD

import org.eolang.AtVoid;
import org.eolang.Atom;
Expand All @@ -46,6 +47,7 @@ public final class EOdataized extends PhDefault implements Atom {
/**
* Ctor.
*/
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
public EOdataized() {
this.add("target", new AtVoid("target"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang.EOfs;
package EOorg.EOeolang.EOfs; // NOPMD

import java.nio.file.Paths;
import org.eolang.Atom;
Expand All @@ -43,6 +44,7 @@
* @checkstyle TypeNameCheck (100 lines)
*/
@XmirObject(oname = "dir.made.mkdir")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EOdir$EOmade$EOmkdir extends PhDefault implements Atom {
@Override
public Phi lambda() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang.EOfs;
package EOorg.EOeolang.EOfs; // NOPMD

import java.nio.file.Files;
import java.nio.file.Path;
Expand All @@ -45,6 +46,7 @@
* @checkstyle TypeNameCheck (100 lines)
*/
@XmirObject(oname = "dir.tmpfile.touch")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EOdir$EOtmpfile$EOtouch extends PhDefault implements Atom {
@Override
public Phi lambda() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang.EOfs;
package EOorg.EOeolang.EOfs; // NOPMD

import java.nio.file.Files;
import java.nio.file.Paths;
Expand All @@ -44,6 +45,7 @@
* @checkstyle TypeNameCheck (100 lines)
*/
@XmirObject(oname = "file.exists")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EOfile$EOexists extends PhDefault implements Atom {
@Override
public Phi lambda() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang.EOfs;
package EOorg.EOeolang.EOfs; // NOPMD

import java.nio.file.Files;
import java.nio.file.Path;
Expand All @@ -45,6 +46,7 @@
* @checkstyle TypeNameCheck (100 lines)
*/
@XmirObject(oname = "file.moved.move")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EOfile$EOmoved$EOmove extends PhDefault implements Atom {
@Override
public Phi lambda() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/*
* @checkstyle PackageNameCheck (4 lines)
* @checkstyle TrailingCommentCheck (3 lines)
*/
package EOorg.EOeolang.EOfs;
package EOorg.EOeolang.EOfs; // NOPMD

import java.nio.file.Paths;
import org.eolang.AtVoid;
Expand All @@ -44,13 +45,15 @@
* @checkstyle TypeNameCheck (100 lines)
*/
@XmirObject(oname = "file.open.file-stream.write.written-bytes")
@SuppressWarnings("PMD.AvoidDollarSigns")
public final class EOfile$EOopen$EOfile_stream$EOwrite$EOwritten_bytes
extends PhDefault
implements Atom {

/**
* Ctor.
*/
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
public EOfile$EOopen$EOfile_stream$EOwrite$EOwritten_bytes() {
this.add("buffer", new AtVoid("buffer"));
}
Expand Down
Loading

0 comments on commit eaf46bb

Please sign in to comment.