bld Checkstyle Extension
https://github.com/rife2/bld-checkstyle
Bumped JUnit 5 to version 5.11.3 Bumped PMD extension to version 1.1.7 Bumped JDK to version 23 (GitHub CI Workflow) |
||
---|---|---|
.github/workflows | ||
.idea | ||
.vscode | ||
config | ||
examples | ||
lib/bld | ||
scripts | ||
src | ||
.gitignore | ||
bld | ||
bld.bat | ||
LICENSE.txt | ||
README.md |
Checkstyle Extension for bld
To install, please refer to the extensions documentation.
To check your code with Chesktyle, include the following in your build file:
@BuildCommand(summary = "Check code style")
public void checkstyle() throws Exception {
new CheckstyleOperation()
.fromProject(this)
.configurationFile("config/sun_checks.xml")
.execute();
}
./bld checkstyle
Please check the CheckstyleOperation documentation for all available configuration options.
Checkstyle Dependency
Don't forget to add a Checkstyle test
dependency to your build file, as it is
not provided by the extension. For example:
repositories = List.of(MAVEN_CENTRAL);
scope(test).include(dependency("com.puppycrawl.tools", "checkstyle", version(10, 18, 2)));