lint: Linting and formatting

This commit is contained in:
2025-03-07 11:36:43 +01:00
parent 05e76bd0d0
commit ee12ccb6d7
162 changed files with 1252 additions and 1138 deletions

34
pom.xml
View File

@ -16,6 +16,22 @@
<build>
<plugins>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.25.0</version>
<executions>
<execution>
<goals>
<goal>format</goal>
</goals>
<configuration>
<configFile>${basedir}/checkstyle.xml</configFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@ -70,6 +86,24 @@
<classpathScope>compile</classpathScope> <!-- This ensures the compiled classes are included -->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<configLocation>src/main/resources/config/checkstyle/checkstyle.xml</configLocation>
<failsOnError>true</failsOnError> <!-- Fail build if there are style violations -->
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>check</goal> <!-- Run Checkstyle in the validate phase -->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>