Permalink
Browse files

Fixed bug #19693 : exclude-patterns no longer work on specific messages

  • Loading branch information...
1 parent 7083624 commit 0181a097c94ab7b1a5c5a3fdb2aab60c470fa483 @gsherwood gsherwood committed Nov 7, 2012
Showing with 7 additions and 2 deletions.
  1. +6 −2 CodeSniffer/File.php
  2. +1 −0 package.xml
View
@@ -754,7 +754,9 @@ public function addError($error, $stackPtr, $code='', $data=array(), $severity=0
// Make sure we are not ignoring this file.
$patterns = $this->phpcs->getIgnorePatterns($sniff);
- foreach ($patterns as $pattern) {
+ foreach ($patterns as $pattern => $type) {
+ // While there is support for a type of each pattern
+ // (absolute or relative) we don't actually support it here.
$replacements = array(
'\\,' => ',',
'*' => '.*',
@@ -869,7 +871,9 @@ public function addWarning($warning, $stackPtr, $code='', $data=array(), $severi
// Make sure we are not ignoring this file.
$patterns = $this->phpcs->getIgnorePatterns($sniff);
- foreach ($patterns as $pattern) {
+ foreach ($patterns as $pattern => $type) {
+ // While there is support for a type of each pattern
+ // (absolute or relative) we don't actually support it here.
$replacements = array(
'\\,' => ',',
'*' => '.*',
View
@@ -34,6 +34,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
-- Thanks to Andy Grunwald for the patch
- Fixed bug #19691 : SubversionPropertiesSniff fails to find missing properties
-- Thanks to Kevin Winahradsky for the patch
+ - Fixed bug #19693 : exclude-patterns no longer work on specific messages
</notes>
<contents>
<dir name="/">

0 comments on commit 0181a09

Please sign in to comment.