Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 33 + 6 = ?

 
 [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.