Overview of Spotless
mainSpotless is a general-purpose code formatting plugin that can format a wide variety of languages and file types, including but not limited to:
- Languages: antlr, c, c#, c++, css, flow, graphql, groovy, html, java, javascript, json, jsx, kotlin, less, markdown, objective-c, protobuf, python, scala, scss, shell, sql, typeScript, vue, yaml.
- Other: license headers, and anything else supported by the underlying formatters.
It integrates with major build systems like Gradle, Maven, and SBT to check for formatting violations and automatically apply fixes.