Permalink
Browse files

Fixed bug #20147 : phpcs-svn-pre-commit - no more default error report

  • Loading branch information...
1 parent 227bc6e commit 440f23e0089d720776420ed743275e60d240b99d @gsherwood gsherwood committed Dec 16, 2013
Showing with 5 additions and 0 deletions.
  1. +1 −0 package.xml
  2. +4 −0 scripts/phpcs-svn-pre-commit
View
@@ -27,6 +27,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD 3-Clause License</license>
<notes>
- Fixed bug #20145 : Custom ruleset preferences directory over installed standard
+ - Fixed bug #20147 : phpcs-svn-pre-commit - no more default error report
</notes>
<contents>
<dir name="/">
@@ -147,6 +147,10 @@ class PHP_CodeSniffer_SVN_Hook extends PHP_CodeSniffer_CLI
$this->warningSeverity = $values['warningSeverity'];
}
+ if (empty($values['reports']) === true) {
+ $this->values['reports']['full'] = $values['reportFile'];
+ }
+
// Initialize PHP_CodeSniffer listeners but don't process any files.
$phpcs->setCli($this);
$phpcs->process(array(), $values['standard'], $values['sniffs']);

0 comments on commit 440f23e

Please sign in to comment.