Is there a tool like this for Java? Something IDE-agnostic we can hook into a pre-commit hook.
Oh speaking of, we put prettier in a pre-commit hook, which grabs staged code, prettifies it and re-stages it. Works like a charm. We use https://github.com/okonet/lint-staged to perform this.