Make WordPress Core

Changeset 47742


Ignore:
Timestamp:
05/02/2020 06:15:30 PM (7 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Exclude plugins and themes within src.

Just like the build directory, src can include plugins and themes which shouldn't be linted by PHPCS.

Fixes #49781

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r47551 r47742  
    144144        <exclude-pattern>/tools/*</exclude-pattern>
    145145
     146        <!-- Drop-in plugins. -->
     147        <exclude-pattern>/src/wp-content/advanced-cache\.php</exclude-pattern>
     148        <exclude-pattern>/src/wp-content/blog-deleted\.php</exclude-pattern>
     149        <exclude-pattern>/src/wp-content/blog-inactive\.php</exclude-pattern>
     150        <exclude-pattern>/src/wp-content/blog-suspended\.php</exclude-pattern>
     151        <exclude-pattern>/src/wp-content/db-error\.php</exclude-pattern>
     152        <exclude-pattern>/src/wp-content/db\.php</exclude-pattern>
     153        <exclude-pattern>/src/wp-content/fatal-error-handler\.php</exclude-pattern>
     154        <exclude-pattern>/src/wp-content/install\.php</exclude-pattern>
     155        <exclude-pattern>/src/wp-content/maintenance\.php</exclude-pattern>
     156        <exclude-pattern>/src/wp-content/object-cache\.php</exclude-pattern>
     157        <exclude-pattern>/src/wp-content/php-error\.php</exclude-pattern>
     158        <exclude-pattern>/src/wp-content/sunrise\.php</exclude-pattern>
     159
     160        <!-- Must-Use plugins. -->
     161        <exclude-pattern>/src/wp-content/mu-plugins/*</exclude-pattern>
     162
     163        <!-- Plugins. -->
     164        <exclude-pattern>/src/wp-content/plugins/*</exclude-pattern>
     165
     166        <!-- Themes except the twenty* themes. -->
     167        <exclude-pattern>/src/wp-content/themes/(?!twenty)*</exclude-pattern>
     168
    146169        <!-- Whitelist the WP DB Class and related tests for usage of direct database access functions. -->
    147170        <rule ref="WordPress.DB.RestrictedFunctions">
Note: See TracChangeset for help on using the changeset viewer.