[build] Add a javaFormat Gradle task (#2805)

This task allows developers to run all of the Java code quality tools at once.
This commit is contained in:
Austin Shalit
2020-10-24 23:18:19 -04:00
committed by GitHub
parent 1069019fd2
commit 1e17e40868
2 changed files with 11 additions and 1 deletions

View File

@@ -102,10 +102,15 @@ make
```
### Formatting/linting with wpiformat
### Formatting/linting
#### wpiformat
wpiformat can be executed anywhere in the repository via `py -3 -m wpiformat` on Windows or `python3 -m wpiformat` on other platforms.
#### Java Code Quality Tools
The Java code quality tools (checkstyle, pmd, etc.) can be run with the `./gradlew javaFormat` task.
### CMake

View File

@@ -18,3 +18,8 @@ if (!project.hasProperty('skipPMD')) {
ruleSets = []
}
}
task javaFormat {
dependsOn(tasks.withType(Checkstyle))
dependsOn(tasks.withType(Pmd))
}