-
Notifications
You must be signed in to change notification settings - Fork 60
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
CLI: add option to exclude directories #311
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @swissspidy for the PR. Could you please update doc for --checks args?
Only runs checks provided as an argument in comma-separated values, e.g. enqueued-scripts, escaping. Otherwise runs all checks.
Should be
Only runs checks provided as an argument in comma-separated values, e.g. i18n_usage, late_escaping. Otherwise runs all checks.
* ## EXAMPLES | ||
* | ||
* wp plugin check akismet | ||
* wp plugin check akismet --checks=escaping | ||
* wp plugin check akismet --checks=late_escaping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch.
Done, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @swissspidy, LGTM!
We should also enable that in the UI, as it shouldn't only be possible via CLI. Can you open a follow up issue to log that so that we can implement that separately?
Done: #313 |
Successfully tested with
wp plugin check wordpress-seo --exclude-directories=vendor_prefixed,admin
Fixes #309
Fixes WordPress/plugin-check-action#7