I hate it :)
5GNU indent
is apparently for C, and does mostly useful, but some bad things to Java source code, at least with the few options I tried. I found that Google Java format works pretty reasonably as a command line reformatter for entire files, but by design has no configuration options: https://github.com/google/google-java-format
@vincenz.chianese If you ever format your code "after a commit", you will lost many information about your codebase. https://erikbern.com/2016/12/05/the-half-life-of-code.html