Edit report at http://pear.php.net/bugs/bug.php?id=18631&edit=1
ID: 18631
Updated by: gaurav.deshmukh123@gmail.com
Reported By: gaurav dot deshmukh123 at gmail dot com
-Summary: Allow to add custom report format.
+Summary: Allow to add custom report format in PHP_CodeSniffer.
Status: Open
Type: Feature/Change Request
Package: PHP_CodeSniffer
Operating System: windows & Linux
Package Version: 1.3.0
PHP Version: 5.3.6
Roadmap Versions:
New Comment:
-Summary: Allow to add custom report format.
+Summary: Allow to add custom report format in PHP_CodeSniffer.
Previous Comments:
------------------------------------------------------------------------
[2011-06-28 09:26:21] ggaurav123
Description:
------------
Present code sniffer framework doesn't allow to use custom reports
format .It allows only standard full,summary,xml,....etc.
Developers doesn't allow to add the their custom report format.
In PHP_CodeSniffer_CLI ,it checks the passed report type argument with
default mentioned and it will throws exception if it doesn't match.
Code sample as below
$validReports = array(
'full',
'xml',
'checkstyle',
'csv',
'emacs',
'source',
'summary',
'svnblame',
'gitblame',
);
if (in_array($report, $validReports) === false) {
echo 'ERROR: Report type "'.$report.'" not
known.'.PHP_EOL;
exit(2);
}
User is able to create his own standard rules with custom reports
format.
------------------------------------------------------------------------