Skip to content
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

Closed
jhedstrom opened this issue Feb 25, 2020 · 1 comment
Closed

Add an ignore or exclude option for paths #139

jhedstrom opened this issue Feb 25, 2020 · 1 comment

Comments

@jhedstrom
Copy link

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.)

@mglaman
Copy link
Owner

mglaman commented Feb 4, 2022

Not adding options to this project when PHPStan can be used directly

@mglaman mglaman closed this as completed Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants