Skip to content

Instantly share code, notes, and snippets.

@kallookoo
Last active March 23, 2022 04:38
Show Gist options
  • Save kallookoo/89a98f4eb7f6578e99df5e138c0ed997 to your computer and use it in GitHub Desktop.
Save kallookoo/89a98f4eb7f6578e99df5e138c0ed997 to your computer and use it in GitHub Desktop.
PHPCS exclude pattern directory and include subdirectory
<?xml version="1.0"?>
<ruleset name="WooCommerce-WordPress">
<description>Exclude pattern directory and include subdirectory</description>
<!-- Replace "parent-directory" with the directory to exclude. -->
<!-- Replace "include-directory" with the subdirectory to include. -->
<exclude-pattern>*/parent-directory/((?!include-directory)*)</exclude-pattern>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment