Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5095

Update formatter

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Design
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Complexity:
      Low
    • Development:

      Description

      The maven formatter plugin we use in openmrs-core is not maintained

      https://mvnrepository.com/artifact/com.googlecode.maven-java-formatter-plugin/maven-java-formatter-plugin

      We should look for an alternative which lets us update the OpenMRSFormatter.xml rules to the latest Eclipse rules.

      Now that openmrs-core uses Java 8 with its fluent Stream API we could use a little brush on our formatting. Change to the formatter as described here http://stackoverflow.com/a/18324200 solves this but also affects other parts of the code. So testing this change and its affect needs to be done and maybe changed a little as to achieve least impact.

      Furthermore the format should comply with our checkstyle.xml rules otherwise codacy will show tons of issues.

      Some alternatives plugins

      Dont limit yourself to this list, suggestions are welcome!

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              teleivo Ivo Ulrich
              Reporter:
              teleivo Ivo Ulrich
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 3 days
                  3d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified