mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Remove Java formatting from build task in CI (#3507)
This saves time in CI spent performing the same source-level checks in every build job. Checkstyle, PMD, and Spotless are now run once in the "Lint and Format" job. The -PskipPMD flag was replaced with a -PskipJavaFormat flag that disables Checkstyle, PMD, and Spotless.
This commit is contained in:
@@ -120,7 +120,7 @@ wpiformat can be executed anywhere in the repository via `py -3 -m wpiformat` on
|
||||
|
||||
#### Java Code Quality Tools
|
||||
|
||||
The Java code quality tools (checkstyle, pmd, etc.) can be run with the `./gradlew javaFormat` task.
|
||||
The Java code quality tools Checkstyle and PMD can be run via `./gradlew javaFormat`. Spotless can be run via `./gradlew spotlessCheck` to preview changes, and via `./gradlew spotlessApply` to immediately apply changes. These tools will all be run automatically by the build task. To disable this behavior, pass the `-PskipJavaFormat` flag.
|
||||
|
||||
### CMake
|
||||
|
||||
|
||||
Reference in New Issue
Block a user