WordPress.org

Make WordPress Core

Changeset 45604 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
07/05/2019 08:03:40 AM (20 months ago)
Author:
pento
Message:

Coding Standards: Add missing translator comments.

Twentys Eleven, Sixteen, and Seventeen now have translator comments for all their strings.

Also, WPCS now doesn't show missing translator comment warnings for test files.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r45601 r45604  
    149149    </rule>
    150150
     151    <!-- Translator comments aren't needed in unit tests. -->
     152    <rule ref="WordPress.WP.I18n.MissingTranslatorsComment">
     153        <exclude-pattern>/tests/*</exclude-pattern>
     154    </rule>
     155
    151156    <rule ref="Generic.Functions.FunctionCallArgumentSpacing">
    152157        <exclude-pattern>/wp-config\.php</exclude-pattern>
Note: See TracChangeset for help on using the changeset viewer.