Checkstyle logo

Checkstyle

A Java command-line tool that checks source code against configurable coding standards.

By The Checkstyle contributors

Read the Checkstyle documentation

View the Checkstyle source code

Alternatives

About Checkstyle

Checkstyle analyzes Java source files for issues involving naming, imports, Javadoc, formatting, class design, and coding practices. It can use supplied conventions or a custom configuration.

Run it from the command line or integrate it into Maven, Gradle, Ant, or a CI pipeline. It also has IDE integrations, and focuses on source-level checks rather than whole-program analysis.

Strengths

  • Configurable checks for common Java style rules
  • Integrates with Java build tools and CI
  • Can use supplied or custom rule configurations

Limitations

  • Checks source files individually and does not build a full inheritance hierarchy
  • Requires Java 21 or later for current releases

Details

Pricing
FreeFree and open source under the LGPL-2.1-or-later license.
License
LGPL-2.1-or-later
Developer
The Checkstyle contributors
Platforms
Command line
How it runs
Downloadable app
Best suited for
Java developers enforcing consistent source code rules
Categories
Developer tools
Last verified
Added
Provenance
Selected from the Homebrew formula

Report a wrong fact or a dead link on this listing