Code Formatter
Code formatters help ensure that the style of code written is consistent throughout the entire codebase. Spotless is a Gradle plugin that can automatically format code with configurable options. Steps for configuring Spotless are provided in the Using a Code Formatter WPILib docs.
Spotless Gradle Commands
Section titled “Spotless Gradle Commands”./gradlew spotlessCheck checks for formatting violations and fails if code isn’t formatted correctly.
./gradlew spotlessApply applies formatting rules and fixes the style of the code.