3

I am working on setting up various analysis tool for scala project. One of them is checkstyle and I am using 'scalastyle' for that purpose.

This plugin produces not easily readable scalastyle-result.xml as a result of running. Is there a way to convert this XML into some other readable format? The idea is to generate the report as part of CI (with is not a problem), and also expose the report to the public (ideally in HTML).

Any other checkstyle tool might work as well if that makes the problem easier to solve.

Thanks,

Shurik Agulyansky
  • 2,607
  • 2
  • 34
  • 76
  • XML can be easily converted to any other readable format by XSLT – Nyavro Dec 15 '15 at 08:11
  • Yes, that is true, however I was hoping that there is already existing built tool to do it. I know number of them in pho world, that show all the violations in the code browser. – Shurik Agulyansky Dec 15 '15 at 08:18

1 Answers1

3

scalastyle-result.xml has exactly the same format as checkstyle result format - this was done deliberately. Anything that works on checkstyle output will work on scalastyle output.

Using the checkstyle plugin for jenkins, specify "Publish Checkstyle analysis results", use the output file, and you should be good to go.

Matthew Farwell
  • 60,889
  • 18
  • 128
  • 171