Build/Test Tools: Exclude PHP translation files from phpcs linting.

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
This commit is contained in:
John Blackbourn 2024-05-06 18:35:46 +00:00
parent 186e04fcb6
commit 51b5552050
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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>
<!--
#############################################################################