Skip to content

Commit

Permalink
[backend] add spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
isselparra committed Oct 17, 2024
1 parent 7e2ac6c commit 10ce0e4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ steps:
MINIO_PORT: 9000
commands:
- mvn clean install -q -DskipTests
- mvn spotless:check
- cd openbas-api
- mvn test -q
- cd ../openbas-framework
Expand Down
19 changes: 19 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,25 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.43.0</version>
<configuration>
<java>
<includes>
<include>src/main/java/**/*.java</include>
<include>src/test/java/**/*.java</include>
</includes>
<importOrder/>
<removeUnusedImports/>
<googleJavaFormat>
<version>1.24.0</version>
<style>GOOGLE</style>
</googleJavaFormat>
</java>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 10ce0e4

Please sign in to comment.