I’ve noticed that the current code formatting package used in the OpenMRS Core repository doesn’t seem to be working as expected. It looks like the package may be outdated and is causing issues with consistent formatting.
To resolve this, I suggest replacing the current formatting package with the formatter-maven-plugin. This plugin is more actively maintained and should provide better support and functionality for automatic code formatting.
My suggestion is to:
Replace the existing formatting package with the formatter-maven-plugin.
Configure the plugin according to our coding standards.
Ensure the plugin is integrated into the build process so that formatting is done automatically.
Let me know your thoughts or if anyone has any concerns about this proposal.
If we’re going to migrate to something, I’d prefer spotless. It supports a wider array of file formats and should be able to just use the existing code format definitions (though we may want to update those as the default code formatting in Eclipse is now a bit different than the very old version we use).