- Notifications
You must be signed in to change notification settings - Fork0
rife2/bld-checkstyle
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Checkstyle Extension forbld
To install the latest version, add the following to thelib/bld/bld-wrapper.properties
file:
bld.extension-checkstyle=com.uwyn.rife2:bld-checkstyle
For more information, please refer to theextensions documentation.
To check your code with Chesktyle, include the following in your build file:
@BuildCommand(summary ="Check code style")publicvoidcheckstyle()throwsException {newCheckstyleOperation() .fromProject(this) .configurationFile("config/sun_checks.xml") .execute();}
./bld checkstyle
Please check theCheckstyleOperation documentationfor all available configuration options.
Don't forget to add a Checkstyletest
dependency to your build file, as it isnot provided by the extension. For example:
repositories =List.of(MAVEN_CENTRAL);scope(test).include(dependency("com.puppycrawl.tools","checkstyle",version(10,21,4)));
About
bld Checkstyle Extension