devs-from-matrix / hexagonal-spring-boot-kotlin

template for hexagonal architecture with spring boot framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[New Feature] code needs to be auto formatted before commit for better readability

paul58914080 opened this issue · comments

Is your feature request related to a problem? Please describe.
Each developer is using her or his own code formatter which is not standardised across the project. It is hard to read code when each have their own styles and also sometimes there are unnecessary commits just because of formatting.

Describe the solution you'd like
It would be very beneficial if we are able to format the code before committing and pushing the changes to the version control. Would be great if we are able to add the plugin git-code-format-maven-plugin which would format the code. Also, we would need to integrate with githook-maven-plugin with which we can ensure the formatter is invoked before we commit the changed.