bld Checkstyle Extension https://github.com/rife2/bld-checkstyle
Find a file
2024-01-30 23:05:45 -08:00
.github/workflows Fixed truncated workflow 2023-10-20 17:28:13 -07:00
.idea Bumped checkstyle to 10.3.0 and bld to 1.8.0 2024-01-30 23:05:45 -08:00
.vscode Bumped checkstyle to 10.3.0 and bld to 1.8.0 2024-01-30 23:05:45 -08:00
config Initial commit 2023-08-28 00:55:08 -07:00
examples Bumped checkstyle to 10.3.0 and bld to 1.8.0 2024-01-30 23:05:45 -08:00
lib/bld Bumped checkstyle to 10.3.0 and bld to 1.8.0 2024-01-30 23:05:45 -08:00
src Bumped checkstyle to 10.3.0 and bld to 1.8.0 2024-01-30 23:05:45 -08:00
.gitignore Initial commit 2023-08-28 00:55:08 -07:00
bld Initial commit 2023-08-28 00:55:08 -07:00
bld.bat Initial commit 2023-08-28 00:55:08 -07:00
checkcliargs.sh Added script to compare checkstyle CLI arguments 2024-01-30 21:44:13 -08:00
LICENSE.txt Initial commit 2023-08-28 00:55:08 -07:00
README.md Bumped checkstyle to 10.3.0 and bld to 1.8.0 2024-01-30 23:05:45 -08:00

Checkstyle Extension for bld

License Java bld Release Snapshot GitHub CI

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, 13, 0)));