Optional Checks |
![]() |
| |||||||||||||||||||||||||||
|
OverviewStandard Checkstyle Checks are applicable to general Java coding style and require no external libraries. An optional Check is for special applications or requires additional libraries. There are are optional Checks for: ConfigurationAs with standard checks, optional checks are configured as submodules of TreeWalker. The shortened name of an optional Check module must include the appropriate package name prefix. For example, this is a configuration fragment for Check com.puppycrawl.tools.checkstyle.checks.usage.UnusedLocalVariable:
Consult the Checkstyle configuration manual to learn how to integrate optional Checks into the package configuration so that you can use fully shortened names such as UnusedLocalVariable. UsageOptional checks are distributed in jar file checkstyle-optional-3.5.jar and, in order to use an optional check, this jar file must be in the classpath. For example, this is a command to run Checkstyle with a configuration that contains optional checks:
Please consult Command Line and ANT Task documentation for further usage information. |
||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Copyright © 2001-2004, Oliver Burn
|