-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Description
After accidentally discovering an existing formatting plugin, I was surprised not to have encountered it while working with the codebase. Maven stands out as the first project to implement this correctly, integrating full auto-fix capabilities into the build process to boost productivity.
However, the presence of unused imports suggests a gap in the current setup, which fails to prevent such issues.
Spotless provides seamless integration with an Eclipse Formatter Profile, making it the ideal solution. It fully automates manual formatting steps, ensuring consistent and correct code style.
Could Quarkus also benefit from automating these standards, which align with the goals of the Eclipse Formatter Profile? Spotless offers an easy way to fix recurring issues, making it a strong candidate for integration.
Implementation ideas
- https://www.baeldung.com/java-maven-spotless-plugin
- https://www.baeldung.com/java-maven-spotless-plugin#custom-formatting-rules
- PoC: integrate
Eclipse Formatter ProfileintoMaven Spotless Plugin#48041 ArrayIndexOutOfBoundsException: Index 570 out of bounds for length 570 diffplug/spotless#2491- PoC: integrate
Eclipse Formatter ProfileintoMaven Spotless Plugincheckstyle/checkstyle#17140 - integrate
Eclipse Formatter ProfileintoMaven Spotless Plugin#48047 - https://github.com/apache/maven-parent/blob/237aabdc41f90c7de15ebaafa27643ed80e5f4da/pom.xml#L1208
- Avoid wildcard
*import #45599 - Add editorconfig-maven-plugin #45651
- chore: Never use wildcard imports #45372