Skip to content

Commit

Permalink
lint: Add google checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
itsamirhn committed Jun 6, 2024
1 parent c90c433 commit 4499e7d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,22 @@
<configuration>
<source>21</source>
<target>21</target>
<compilerArgs>--enable-preview</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.4.0</version>
<configuration>
<configLocation>google_checks.xml</configLocation>
<failsOnError>true</failsOnError>
<consoleOutput>true</consoleOutput>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
</configuration>
<goals>
<goal>check</goal>
</goals>
</plugin>
</plugins>
</build>
<dependencies>
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/Main.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import com.amirhn.GUI.ChessFrame;

public static void main(String[] args) {
public class Main {
public static void main(String[] args) {
// GUI
ChessFrame chessFrame = new ChessFrame();

// Console
// Chess chess = new Chess();
// chess.applyMove(chess.moveFromString("Pe2e4"));
// System.out.println(chess);

// Chess chess = new Chess();
// chess.applyMove(chess.moveFromString("Pe2e4"));
// System.out.println(chess);
}
}

0 comments on commit 4499e7d

Please sign in to comment.