Make WordPress Core

Changeset 58107


Ignore:
Timestamp:
05/06/2024 06:35:46 PM (10 months ago)
Author:
johnbillion
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcompat.xml.dist

    r57985 r58107  
    5050    <exclude-pattern>/src/wp-content/themes/(?!twenty)*</exclude-pattern>
    5151
     52    <!-- Exclude translation files. -->
     53    <exclude-pattern>/src/wp-content/languages/*</exclude-pattern>
     54
    5255    <!--
    5356        PHPCompatibilityParagonieSodiumCompat prevents false positives in `sodium_compat`.
  • trunk/phpcs.xml.dist

    r57829 r58107  
    106106    <!-- Themes except the twenty* themes. -->
    107107    <exclude-pattern>/src/wp-content/themes/(?!twenty)*</exclude-pattern>
     108
     109    <!-- Translation files. -->
     110    <exclude-pattern>/src/wp-content/languages/*</exclude-pattern>
    108111
    109112
Note: See TracChangeset for help on using the changeset viewer.