Using: - [Prettier](https://prettier.io/) - [Prettier-java](https://github.com/jhipster/prettier-java) - [Husky](https://github.com/typicode/husky) + [Precise-commits](https://github.com/JamesHenry/precise-commits) as stated [here](https://prettier.io/docs/en/precommit.html#option-4-precise-commits-https-githubcom-jameshenry-precise-commits) ~~Or more likely:~~ ~~- [spotless](https://github.com/diffplug/spotless)~~ ~~- [githook maven](https://github.com/phillipuniverse/githook-maven-plugin)~~ ~~- as explained [here](http://www.mopri.de/2018/format-projects-java-code-git-hooks-finally-rid-annoying-ide-specifics/)~~ In theory it should be great edit: Finally maybe only a [checkstyle](https://github.com/checkstyle/checkstyle) config file + [reviewdog](https://github.com/reviewdog/reviewdog) and the plugins for [intellij](https://plugins.jetbrains.com/plugin/1065-checkstyle-idea) and [eclipse](https://checkstyle.org/eclipse-cs/#!/). check this to [generate the checkstyle conf](https://stackoverflow.com/questions/984778/how-to-generate-an-eclipse-formatter-configuration-from-a-checkstyle-configurati).