Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static format checker for xml files using Maven

i'm using Maven as a build tool and Checkstyle to check that files conform to the agreed coding style.

The problem is that i also want to check formatting in XML files too, just simple indentation checks, but checkstyle doesn't support it.

I just can't find a tool that can do this simple checks and integrate with Maven.

Any ideas ?

like image 535
Hugo Palma Avatar asked Mar 09 '26 04:03

Hugo Palma


1 Answers

A quick google search offers this: https://www.mojohaus.org/xml-maven-plugin/check-format-mojo.html

Full name: org.codehaus.mojo:xml-maven-plugin:1.0.2:check-format

Description: An XML indentation check over a set of files.

Though I have not used it myself.

like image 97
tkruse Avatar answered Mar 10 '26 16:03

tkruse