-
Notifications
You must be signed in to change notification settings - Fork 14
Description
http://maven.apache.org/developers/conventions/code.html#XML_Code_Style
Tidy currently applies the "POM Code Convention". However since pom.xml files are also XML, the "XML Code Style" should also be applied. In particular, tabs should not be used, and indentation is mostly 2-spaces, with 4-space "hanging" indents for long opening tags (many attributes). Line breaks are also required in many places -- all complex XML types -- and forbidden in a few -- simple XML types.
While it is possible that some projects would prefer to follow the "POM Code Convention" without the "XML Code Style"; they are likely to be rare. In any case, it would be a nice option for tidy-maven-plugin to also apply the XML Code Style, either by default or at least when explicitly requested, either via a new goal or configuration of the existing check/pom goals.
May be a duplicate of #18