Skip to content

Commit

Permalink
Exclude language files from phpcs linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed May 4, 2024
1 parent 3f6ea2a commit a9785ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions phpcompat.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
<!-- Exclude themes except the twenty* themes. -->
<exclude-pattern>/src/wp-content/themes/(?!twenty)*</exclude-pattern>

<!-- Exclude translation files. -->
<exclude-pattern>/src/wp-content/languages/*</exclude-pattern>

<!--
PHPCompatibilityParagonieSodiumCompat prevents false positives in `sodium_compat`.
However, because these files are included in a non-standard path, false positives are triggered in WordPress Core.
Expand Down
3 changes: 3 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
<!-- Themes except the twenty* themes. -->
<exclude-pattern>/src/wp-content/themes/(?!twenty)*</exclude-pattern>

<!-- Translation files. -->
<exclude-pattern>/src/wp-content/languages/*</exclude-pattern>


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

0 comments on commit a9785ff

Please sign in to comment.