diff --git a/README.md b/README.md index 1389a20d00..099ac281e0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/shared/java/javastyle.gradle b/shared/java/javastyle.gradle index eec3796ab9..ecd551bb27 100644 --- a/shared/java/javastyle.gradle +++ b/shared/java/javastyle.gradle @@ -18,3 +18,8 @@ if (!project.hasProperty('skipPMD')) { ruleSets = [] } } + +task javaFormat { + dependsOn(tasks.withType(Checkstyle)) + dependsOn(tasks.withType(Pmd)) +}