Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.4.2

Request #18165 Add severity to reports (especially xml)
Submitted: 2010-12-30 15:30 UTC
From: seikilos Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.3.0RC1)
PHP Version: Irrelevant OS: Ubuntu 10.10
Roadmaps: (Not assigned)    
Subscription  


 [2010-12-30 15:30 UTC] seikilos (Samuel Nolastname)
Description: ------------ I am parsing the xml and would like to get the severity level of all those warnins and errors in the xml too. I know that I am able to configure phpcs which severity level I require but I want them all in the xml so I can post process them (coloring, grouping, etc)

Comments

 [2010-12-30 15:33 UTC] seikilos (Samuel Nolastname)
Edit: When I use checkstyle as report the severity is only warning or error but I am talking about those numbers 1-10
 [2011-01-12 09:21 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
I've added this to the XML and CSV reports only. I don't want to change the checkstyle output because it is used in build systems that I can't test easily and the other report types don't really need to have it in there, and they are not used for post-processing.