We have a pair of modules (possibly more down the line) and we were looking at how we could standardise the code formatting style using up to date Java code style standards and tools. We came across this style guide put together by Google.
They have a program which autoformats your code and there are actively maintained gradle or maven intregrations to hook everything up nicely. However, this departs from the current OpenMRS formatting rules which still uses OpenMRSFormatter.xml.
What are people’s thoughts on this topic? Should we maybe consider updating the formatting rules and tools used on OpenMRS core?
- Adopt a centrally maintained style guide instead of maintaining a custom set of rules which we are then responsible for maintaining
- Might be more closely aligned to the broader international Java community