bld Checkstyle Extension https://github.com/rife2/bld-checkstyle
Find a file
2024-09-29 17:40:53 -07:00
.github/workflows Switched from Lists to Collections 2024-07-22 09:49:49 -07:00
.idea Bumped bld to version 2.1.0 2024-08-30 11:10:48 -07:00
.vscode Bumped bld to version 2.1.0 2024-08-30 11:10:48 -07:00
config Bumped Checkstyle version to 10.15.0 2024-03-31 22:58:49 -07:00
examples Version 1.0.5 2024-09-29 17:40:53 -07:00
lib/bld Bumped PMD extension to version 1.1.6 2024-09-29 17:27:41 -07:00
scripts Execute cliargs script before running tests 2024-05-28 14:01:45 -07:00
src Version 1.0.5 2024-09-29 17:40:53 -07: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
LICENSE.txt Initial commit 2023-08-28 00:55:08 -07:00
README.md Bumped Checkstyle to version 10.18.2 2024-09-29 17:35:32 -07: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, 18, 2)));