mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[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:
@@ -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
|
||||
|
||||
|
||||
@@ -18,3 +18,8 @@ if (!project.hasProperty('skipPMD')) {
|
||||
ruleSets = []
|
||||
}
|
||||
}
|
||||
|
||||
task javaFormat {
|
||||
dependsOn(tasks.withType(Checkstyle))
|
||||
dependsOn(tasks.withType(Pmd))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user