Could anyone point me to a working configuration that would format the Java code of a module upon building? Especially something that would clear the horrendous problem of the space indents vs tab indents.
I have added this to Attachments’s POM, and while it does perform some formatting, it doesn’t prevent well intended PRs to look like a mess…
Thanks @gayanw, you gave me some good inspiration here
However I also wanted to format other files than .java files, so I went for another plugin (still using OpenMRSFormatter.xml though) and I bound it to the compile phase so that the formatting always happens for whoever builds the module, which should always happen prior to making a PR.
I just did a formatting commit on ‘Attachments’ here. Let’s see how this goes with upcoming PRs…