简体   繁体   中英

How to convert scalastyle-result.xml into readable report

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,

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM