Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. Its purpose is to automate the process of checking Java code, and to spare humans of this task.
| Tags | Software Development Quality Assurance |
|---|---|
| Licenses | LGPL |
| Operating Systems | OS Independent |
| Implementation | Java |
Recent releases


Release Notes: OuterTypeFilename was added, which checks that the outer type name and the file name match. PackageDeclaration was enhanced to optionally check that the package name matches the name of the directory containing the file. NestedForDepth was added, which restricts nested for blocks to a specified depth (default = 1). MethodCount was added, which checks the number of methods declared in each type. OneStatementPerLine was added, which checks that there is only one statement per line. MagicNumber was enhanced to support the parameter ignoreHashCodeMethod to ignore magic numbers in hashCode() methods. AbstractClassName was enhanced to support checking that matching classes have the abstract modifier. The property types stringSet and intSet were enhanced to support being supplied multiple times to construct the equivalent of a comma separated list. AvoidStarImport was enhanced to support the properties allowClassImports and allowStaticMemberImports for finer control over what is allowed.


Release Notes: Many changes were made for Java 5.


Release Notes: This major release is built on and supports Java 5.


No changes have been submitted for this release.


Release Notes: This release contains a number of enhancements and bugfixes. The highlights include performance improvements in the StrictDuplicateCode check and a new CrossLanguageRegexpHeader check that allows checking file headers for languages other than Java.
Recent comments
06 Dec 2003 17:45
Checkstyle ... must have for Java coders
What I like is that the package comes with ready made XML checkfiles for Sun Coding guideline. Add the job to Ant and you get a Javadoc type of HTML with codechanges you have to do to get your source compliant with the standard.
I don't believe in tools who do the job in your valuable source for ya.
29 Dec 2001 20:50
Great program - especially when integrated with Ant
Checkstyle is a must-have for anyone developing Java software wanting consistency in their code and JavaDoc. It is especially useful when implemented as an Ant task - check it out!