-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an ignore or exclude option for paths #139
Comments
Not adding options to this project when PHPStan can be used directly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are trying to run this against a theme that has external PHP libraries inside the directory (Pattern Lab in this case). When running the check, if we only specify the theme directory, all the external library code triggers failures.
It would be great to be able to specify an
--ignore
or an--exclude
pattern so we could run against entire directories, but specify something like--ignore=pattern-lab/*
or similar.Note, I looked for info on changes made in #1 since I thought that might allow for exclusion patterns, but didn't see any relevant code changes there. (It appears
phpstan.neon
supports this option, but I wasn't sure how to specify that for drupal-check.)The text was updated successfully, but these errors were encountered: