...
As per https://gerrit.onap.org/r/#/c/79312/1/onap-java-formatter.xml, an ONAP Eclipse Java Formatter XML file has been merged and can be imported into Eclipse. Updates to the settings should be committed and merged back into the repository (e.g.
Jira | ||||||
---|---|---|---|---|---|---|
|
Maven Plugins to Reformat Java code
As Using the Eclipse Formatter file above and maven plugin configuration in pom.xml as per https://gerrit.onap.org/r/#/c/79312/1/pom.xml, with pom.xml updated to have plugins (https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter and https://github.com/diffplug/spotless/tree/master/plugin-maven for import order), the combination can be used in a maven command to rewrite code and imports, then checkstyle audit like so
...