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

CLI: add option to exclude directories #311

Merged
merged 2 commits into from
Oct 31, 2023
Merged

CLI: add option to exclude directories #311

merged 2 commits into from
Oct 31, 2023

Conversation

swissspidy
Copy link
Member

Successfully tested with wp plugin check wordpress-seo --exclude-directories=vendor_prefixed,admin

Fixes #309
Fixes WordPress/plugin-check-action#7

@swissspidy swissspidy added [Type] Enhancement A suggestion for improvement of an existing feature WP-CLI Issues related to WP-CLI labels Oct 31, 2023
swissspidy added a commit to WordPress/plugin-check-action that referenced this pull request Oct 31, 2023
Copy link
Member

@mukeshpanchal27 mukeshpanchal27 left a 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch.

@swissspidy
Copy link
Member Author

Could you please update doc for --checks args?

Done, thanks!

Copy link
Member

@felixarntz felixarntz left a 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?

@swissspidy
Copy link
Member Author

Done: #313

@swissspidy swissspidy merged commit cc65fc1 into trunk Oct 31, 2023
11 checks passed
@swissspidy swissspidy deleted the fix/309 branch October 31, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement of an existing feature WP-CLI Issues related to WP-CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI: add option to ignore folders Add a way to ignore directories
3 participants