Skip to content

Commit

Permalink
Merge pull request #46 from UWIT-IAM/format
Browse files Browse the repository at this point in the history
Format the codebase using google-java-format
  • Loading branch information
stea-uw authored Apr 16, 2024
2 parents 953c469 + a533186 commit 1707644
Show file tree
Hide file tree
Showing 82 changed files with 8,807 additions and 8,856 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ repos:
rev: v0.3.3
hooks:
# Project compiles and passes unit tests
- id: maven-spotless-apply
- id: maven-compile
- id: maven-test
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,21 @@
</execution>
</executions>
</plugin>

<!-- Format all files using google-java-format. This helps reduce spurious diffs.-->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.40.0</version>
<configuration>
<java>
<googleJavaFormat>
<version>1.18.1</version>
<formatJavadoc>false</formatJavadoc>
</googleJavaFormat>
</java>
</configuration>
</plugin>
</plugins>
<finalName>spreg</finalName>
</build>
Expand Down
Loading

0 comments on commit 1707644

Please sign in to comment.