Repository navigation
Filter: bugfix for shouldIgnorePath() ignoring paths containing the name of a standard - #1
Merged
Merged
Conversation
…ame of a standard The file list filtering in the `Filter` class should only take global exclude patterns into account and should ignore sniff specific exclude patterns, which are used/handled in the `File::addMessage()` method. This commit fixes this. Includes: * Reworking the initial unit test to use `setUpBeforeClass()` for the fixtures and a data provider to easily allow for more test cases without code duplication. * Adding an additional unit test to verify that top-level exclude patterns are correctly respected. * Renaming the test ruleset file to use the `xml` file extension. * Adding the newly introduced unit test files to the `package.xml` file lists. Fixes 2391
Author
|
Note: the build failure is not specific to this PR and there is a PR open already to sort that out: squizlabs#2390 |
jrfnl
force-pushed
the
wvega/issue-2391
branch
from
January 29, 2019 00:21
44b357e to
1cad124
Compare
Owner
|
@jrfnl I just tested this modification on my project and I can confirm that it solves the problem. I'll merge the PR in a moment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The file list filtering in the
Filterclass should only take global exclude patterns into account and should ignore sniff specific exclude patterns, which are used/handled in theFile::addMessage()method.This commit fixes this.
Includes:
setUpBeforeClass()for the fixtures and a data provider to easily allow for more test cases without code duplication.xmlfile extension.package.xmlfile lists.Fixes squizlabs#2391