WordPress.org

Make WordPress Core

Changeset 45653


Ignore:
Timestamp:
07/17/2019 04:33:27 AM (4 months ago)
Author:
pento
Message:

Coding Standards: Exclude some class names from checks when they can't be renamed.

Renaming the classes would likely cause back compat issues, so the safest option is to allow this handful to continue unchanged.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r45611 r45653  
    256256    </rule>
    257257
     258    <!-- Exclude some old classes that can't be renamed, as it would break back compat -->
     259    <rule ref="PEAR.NamingConventions.ValidClassName.Invalid">
     260        <exclude-pattern>/src/wp-admin/includes/class-wp-filesystem-ftpsockets\.php</exclude-pattern>
     261        <exclude-pattern>/src/wp-includes/class-oembed\.php</exclude-pattern>
     262        <exclude-pattern>/src/wp-includes/class-wp-oembed-controller\.php</exclude-pattern>
     263        <exclude-pattern>/src/wp-includes/class-wp-xmlrpc-server\.php</exclude-pattern>
     264        <exclude-pattern>/src/wp-includes/class-wp-text-diff-renderer-inline\.php</exclude-pattern>
     265    </rule>
     266    <rule ref="PEAR.NamingConventions.ValidClassName.StartWithCapital">
     267        <exclude-pattern>/src/wp-admin/includes/class-wp-list-table-compat\.php</exclude-pattern>
     268        <exclude-pattern>/src/wp-includes/class-wp-editor\.php</exclude-pattern>
     269        <exclude-pattern>/src/wp-includes/class-wp-xmlrpc-server\.php</exclude-pattern>
     270        <exclude-pattern>/src/wp-includes/wp-db\.php</exclude-pattern>
     271        <exclude-pattern>/src/wp-includes/class-wp-dependency\.php</exclude-pattern>
     272    </rule>
    258273</ruleset>
Note: See TracChangeset for help on using the changeset viewer.