Skip to content

Commit

Permalink
YoastCS rules: exclude files from other plugins
Browse files Browse the repository at this point in the history
Other plugins may be installed in a `wp-content/plugins` subdirectory to be available for test situations.

Those files should not be included in a PHPCS scan.
  • Loading branch information
jrfnl committed Nov 20, 2023
1 parent ec67c28 commit 23ee102
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Yoast/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor(_prefixed)?/*</exclude-pattern>

<!-- Always exclude files from other plugins which may be installed for test purposes. -->
<exclude-pattern>*/wp-content/plugins*</exclude-pattern>


<!--
#############################################################################
Expand Down

0 comments on commit 23ee102

Please sign in to comment.