bld Checkstyle Extension https://github.com/rife2/bld-checkstyle
Find a file
2023-08-28 13:15:32 -07:00
.github/workflows Added GitHub workflows 2023-08-28 01:03:49 -07:00
.idea Initial commit 2023-08-28 00:55:08 -07:00
.vscode Initial commit 2023-08-28 00:55:08 -07:00
config Initial commit 2023-08-28 00:55:08 -07:00
examples Added support for collections as arguments 2023-08-28 13:15:32 -07:00
lib/bld Initial commit 2023-08-28 00:55:08 -07:00
src Added support for collections as arguments 2023-08-28 13:15:32 -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
pages.yml Added GitHub workflows 2023-08-28 01:03:49 -07:00
README.md Added link to examples 2023-08-28 13:12:58 -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, 12, 2)));