Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard.
Checkstyle automates the process of checking Java code to spare humans of this boring (but important) task. This makes it ideal for projects that want to enforce a coding standard.
Checkstyle is highly configurable and can be made to support almost any coding standard. An example configuration file is supplied supporting the Sun Code Conventions. As well, other sample configuration files are supplied for other well known conventions.
What's New in This Release: [ read full changelog ]
· SuppressionFilter now supports loading a configuration from a URL reference. Thanks to Stephen for patch #3485185.
· Fixed bug in the grammer for an edge case (bug #1667137). Thanks to Lukas Platinsky for patch #3393810.
· DeclarationOrder handles ignoreModifiers correctly (all fields should be before ctors and methods)(bug #3429775)
· Inner assignment is now allowed in try-with-resources (bug #3441097)
· Fixed bug in the grammer when builtin types are used in a generic declaration (bug #3553541).
· Removed the DoubleCheckedLocking check, as in Java 5 (and beyond), using the volatile keyword addresses the issue. See here for more details.
· Added Turkish message translations. Thanks to poyrazus for patch #3460908.