tags:

views:

136

answers:

1

Can you suggest some method of converting PHP Code Sniffer XML report into HTML page(s). I guess I might need some XSLT translation… Thanks in advance for the advice.

A: 

XSLT is quite cumbersome to write, very few people I know can do it well; you can instead parse the XML in a PHP script and spit out HTML.

CodeSniffer can also output its report as a CSV file - if that's easier for you to parse, use that instead.

Alex