Skip to content

Commit

Permalink
fix the spotless config for java
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed Sep 9, 2023
1 parent 643490c commit 8156011
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<inherited>false</inherited>
<configuration>
<spotbugsXmlOutputDirectory>target/spotbugs</spotbugsXmlOutputDirectory>
<excludeFilterFile>config/findbugs-exclude.xml</excludeFilterFile>
<excludeFilterFile>${maven.multiModuleProjectDirectory}/config/findbugs-exclude.xml</excludeFilterFile>
<onlyAnalyze>com.github.spotbugs.spotbugs.*</onlyAnalyze>
</configuration>
</plugin>
Expand All @@ -74,32 +74,26 @@
<configuration>
<java>
<includes>
<include>**/src/main/kotlin/**/*.java</include>
<include>**/src/test/kotlin/**/*.java</include>
<include>src/main/java/**/*.java</include>
<include>src/test/java/**/*.java</include>
</includes>
<excludes>
<exclude>**/target/**</exclude>
</excludes>

<eclipse>
<file>config/eclipse-format.xml</file>
<file>${maven.multiModuleProjectDirectory}/config/eclipse-format.xml</file>
</eclipse>
<!--<googleJavaFormat />-->

<importOrder>
<file>config/eclipse.importorder</file>
<file>${maven.multiModuleProjectDirectory}/config/eclipse.importorder</file>
</importOrder>

<removeUnusedImports/>
</java>
<kotlin>
<includes>
<include>**/src/main/kotlin/**/*.kt</include>
<include>**/src/test/kotlin/**/*.kt</include>
<include>src/main/kotlin/**/*.kt</include>
<include>src/test/kotlin/**/*.kt</include>
</includes>
<excludes>
<exclude>**/target/**</exclude>
</excludes>
<ktfmt>
<style>KOTLINLANG</style>
<!-- optional, other options are DEFAULT, DROPBOX, GOOGLE and KOTLINLANG -->
Expand Down Expand Up @@ -212,7 +206,7 @@
<name>!code-audits</name>
</property>
<file>
<exists>config/eclipse-format.xml</exists>
<exists>${maven.multiModuleProjectDirectory}/config/eclipse-format.xml</exists>
</file>
</activation>
<build>
Expand Down Expand Up @@ -240,7 +234,7 @@
<name>code-audits</name>
</property>
<file>
<exists>config/eclipse-format.xml</exists>
<exists>${maven.multiModuleProjectDirectory}/config/eclipse-format.xml</exists>
</file>
</activation>
<build>
Expand Down

0 comments on commit 8156011

Please sign in to comment.