Checkstyle
Stable release
13.0.0 / January 4, 2026; 5 months ago (2026-01-04)
Written inJava
Operating systemCross-platform
TypeStatic code analysis
LicenseGNU Lesser General Public License
Websitecheckstyle.sourceforge.net Edit this at Wikidata
Repositorygithub.com/checkstyle/checkstyle

Checkstyle[1] is a static code analysis tool used in software development for checking if Java source code is compliant with specified coding rules.

Originally developed by Oliver Burn in 2001, the project is maintained by a team of developers from around the world.

The current stable release is version 13.0.0[2] which supports Java versions from 21.[3]

Advantages and limits

edit

The programming style adopted by a software development project can help to ensure that the code is compliant with good programming practices which improve the quality, readability, and re-usability of the code and may reduce the cost of development. The checks performed by Checkstyle are mainly limited to the presentation of the code. These checks do not confirm the correctness or completeness of the code. Checkstyle rules are not programming style, they are merely rules for formatting the code.

Examples of available modules

edit

Checkstyle defines a set of available modules, each of which provides rules checking with a configurable level of strictness (mandatory, optional...). Each rule can raise notifications, warnings, and errors. For example, Checkstyle can examine the following:

  • Javadoc comments for classes, attributes and methods;
  • Naming conventions of attributes and methods;
  • The number of function parameters;
  • Line lengths;
  • The presence of mandatory headers;
  • The use of imports, and scope modifiers;
  • The spaces between some characters;
  • The practices of class construction;
  • Multiple complexity measurements.

Usage

edit

Checkstyle is available as a JAR file which can run inside a Java VM or as an Apache Ant task. It can also be integrated into an IDE or other tools.

See also

edit

References

edit
  1. ^ "Checkstyle Home Page". Retrieved 2025-11-19.
  2. ^ "Checkstyle – Release Notes". checkstyle.sourceforge.io. Retrieved 2026-01-14.
  3. ^ "Checkstyle – Checkstyle Home Page". checkstyle.sourceforge.io. Retrieved 2026-01-14.
edit


📚 Artikel Terkait di Wikipedia

List of tools for static code analysis

"Remove StrictDuplicateCodeCheck and whole package · Issue #523 · checkstyle/Checkstyle". GitHub. "Static Analysis in Xcode". Apple. Retrieved 2009-09-03

Code smell

over code quality are often the causes of such smells. Tools such as Checkstyle, PMD, FindBugs, and SonarQube can automatically identify code smells.

CS

select, an ATA device setting for automatic master/slave configuration Checkstyle, a Java static code analysis tool Chip select, a control line in digital

Comparison of continuous integration software

Studio, Visual Studio Code GitHub, Jenkins, Slack, Hipchat, FindBugs, Checkstyle, PMD Bamboo Web container Proprietary MSBuild, NAnt, Visual Studio Ant

List of free and open-source software packages

Xnee Apache JMeter Mockito QuickCheck Test Anything Protocol Valgrind Checkstyle Coccinelle Cppcheck ESLint FindBugs Frama-C Infer JSHint lint PMD Pylint

SQuORE

code, test results, bug tracking system) and tools (reads outputs of Checkstyle, PMD, FindBugs, Polyspace, Coverity or SonarQube) and publishes a summarised

JEdit

several built-in beautifiers....CheckStylePlugin is a wrapper around the CheckStyle program that allows you to check your code for adherence of deviation

List of Java software and tools

graphics engine Bonita BPM – workflow engine Cassowary – constraint solving Checkstyle – static code analysis GNU Classpath – standard library implementation