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

Request #14074 Log in Database, ala PHPUnit
Submitted: 2008-06-05 03:14 UTC
From: doconnor Assigned: squiz
Status: Wont fix Package: PHP_CodeSniffer (version 1.0.1)
PHP Version: 5.2.6 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2008-06-05 03:14 UTC] doconnor (Daniel O'Connor)
Description: ------------ One of the things which is really neat in PHPUnit is the ability to log a run into a database. Scenario: An organization runs unit tests, documentation, etc nightly. They wish to provide an easily queried set of data about coding style / standards - this enables them to examine it in the same tool as other logged data. The codebase is significant, and makes the use of XML hard to scale (performance).

Comments

 [2009-05-04 19:31 UTC] hm2k (James Wade)
I'm of the opinion that PHP_CodeSniffer is a report tool, not a query tool. With that in mind, you might be best generating the report in XML, then parse that to gather the data to put into the database. However, this wouldn't improve performance only hinder it.
 [2011-01-13 05:58 UTC] squiz (Greg Sherwood)
-Status: Assigned +Status: Wont fix
I don't think this will ever be built. PHPCS integrates into build systems and I see this sort of reporting as being the job of the build system itself. If you are already custom coding a build system, I don't think it's that much effort to pump XML-based output into the DB after parsing.