Projects / Java checkstyle Tool

Java checkstyle Tool

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.

Operating Systems

Recent releases

  •  19 Oct 2010 10:36

    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.

    •  18 Apr 2009 03:06

      Release Notes: Many changes were made for Java 5.

      •  17 Jul 2008 09:14

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

        •  19 Dec 2007 14:25

          No changes have been submitted for this release.

          •  26 Jan 2007 08:52

            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 jimcp

            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 smccrory

            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!


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.