Skip to content

Commit

Permalink
Build/Test Tools: Exclude PHP translation files from phpcs linting.
Browse files Browse the repository at this point in the history
Translation files in this directory are automatically generated and are not subject to any linting considerations.

See #59647


git-svn-id: https://develop.svn.wordpress.org/trunk@58107 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
johnbillion committed May 6, 2024
1 parent 186e04f commit 51b5552
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 51b5552

Please sign in to comment.