Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Implemented support for the "exclude-pattern" parameter #5

Merged
merged 1 commit into from
Mar 2, 2019

Conversation

morozov
Copy link
Member

@morozov morozov commented Aug 17, 2018

As of squizlabs/PHP_CodeSniffer#1488, Filter::accept() doesn't strictly check the real path of the files, so instead of using reflection and calling its protected methods, we can use the filter itself.

Closes #4.

@morozov morozov self-assigned this Aug 17, 2018
@morozov
Copy link
Member Author

morozov commented Aug 17, 2018

@cpascu do you want to check if this works for you?

@morozov morozov force-pushed the exclude-pattern branch 2 times, most recently from 5ffbc5d to 8b5cafc Compare August 29, 2018 02:07
@cpascu
Copy link

cpascu commented Sep 4, 2018

@morozov I've tested and it's working, merging into my fork until this makes it into master. Thanks!

@morozov
Copy link
Member Author

morozov commented Sep 4, 2018

@cpascu thank you. I'm not merging it yet since the issue which causes the issue on Windows also exists on other platforms but doesn't make the suite fail. I'll need some more time to figure out what's going on.

@morozov morozov force-pushed the exclude-pattern branch 2 times, most recently from 1e46ef4 to 33730c0 Compare March 1, 2019 23:59
As of squizlabs/PHP_CodeSniffer#1488, Filter::accept() doesn't strictly check the real path of the files, so intstead of using reflection and calling its protected methods, we can use the filter itself.

Closes #4.
@morozov morozov merged commit 30116d6 into master Mar 2, 2019
@morozov morozov deleted the exclude-pattern branch March 2, 2019 00:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants