What is the most popular Code Style Guide in the Java world?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/learnjava

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • GitHub repo Checkstyle

    Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.

    The most common approach for CI integration is the Maven checkstyle plugin, and you'd have to specify the coding style rules in the checkstyle.xml file. The github repo for checkstyle has checkstyle.xml configs for Google and Sun.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts