Make WordPress Core

Changeset 43641 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
09/14/2018 07:54:53 AM (7 years ago)
Author:
flixos90
Message:

Upgrade/Install: Properly exclude the admin/includesSchema.php tests file for the WordPress.DB.PreparedSQL.NotPrepared sniff.

The way this was implemented in [43630] caused the file to be excluded for all sniffs, since PHPCS does not support file-wide ignores of a specific sniff at this point.

Props jrf.
See #44896.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r43571 r43641  
    8282        <exclude-pattern>/tests/phpunit/tests/db\.php</exclude-pattern>
    8383    </rule>
     84    <rule ref="WordPress.DB.PreparedSQL.NotPrepared">
     85        <exclude-pattern>/tests/phpunit/tests/admin/includesSchema\.php</exclude-pattern>
     86    </rule>
    8487
    8588    <!-- Whitelist the I18n functions file from issues identified by the I18n sniff
Note: See TracChangeset for help on using the changeset viewer.