Skip to content

Commit

Permalink
Merge pull request #1 from ruslanbaydan/support-cleaning-up-listeners
Browse files Browse the repository at this point in the history
Added a possibility to skip the validation process from a Sniff.
  • Loading branch information
ruslanbaidan authored Jul 13, 2016
2 parents 19ee670 + 4befbc4 commit 3d18cd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CodeSniffer/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ public function start($contents=null)
if (isset($this->_ignoredListeners[$listenerData['class']]) === true
|| (isset($listenerIgnoreTo[$listenerData['class']]) === true
&& $listenerIgnoreTo[$listenerData['class']] > $stackPtr)
|| empty($this->_listeners) === true
) {
// This sniff is ignoring past this token, or the whole file.
continue;
Expand Down

0 comments on commit 3d18cd2

Please sign in to comment.