Last active
March 23, 2022 04:38
-
-
Save kallookoo/89a98f4eb7f6578e99df5e138c0ed997 to your computer and use it in GitHub Desktop.
PHPCS exclude pattern directory and include subdirectory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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