-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Formatting support for springboot apps #40
Comments
Hi @Kwandes! Thank you for the idea 💡. This is interesting, even if I believe the interest is limited, However, I agree it could fit well with the The problem is there is no "default" or "standard" formatter (that I'm aware of) for JVM-based project... I've found this https://github.com/spring-io/spring-javaformat that might do the job for If you have another tool in mind, I'm open to suggestions. If implemented, this feature would probably be controlled by option at generation to opt-in to the formatting. |
Hello, there is this solution too https://github.com/jhipster/prettier-java |
Hi @khalilou88 Thanks for your link. But I think I've come across a more robust/complete alternative: https://github.com/diffplug/spotless !
So all requirements of a Spring Boot project are met at this point!
So , I will start integrate it soon. Stay tuned ;-) |
Hi guys, Quick follow up, to let you know that formatting of your spring-boot projects has just landed in latest release of The feature is implemented with Spotless (as described above) and works for Gradle/Maven Java/Kotlin/Groovy based projects. Enjoy and let me know if you have issues with it ! Cheers |
Is your feature request related to a problem? Please describe.
NX contains commands for various actions, with some being solely for running the application, while others being used to ensure quality. While this springboot plugin covers everything needed to run and deploy the app, it's missing formatting support.
Describe the idea you'd like
When
nx format:check
andnx format
are run, the springboot apps would be included in the formatting.Describe alternatives you've considered
An alternative is for developers to manually open their IDEs and use run their formatting tools there, but that is slower and does not work at all in the continuous integration aspect of development
Additional context
This feature would be especially useful in projects with continuous integrations and pull request-based development. A formatting check workflow can be created, which then would clearly state in the PR whether or not the code is properly structured, and ensures consistent coding style.
The text was updated successfully, but these errors were encountered: