WordPress.org

Make WordPress Core

Changeset 45601 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
07/05/2019 03:13:31 AM (19 months ago)
Author:
pento
Message:

Coding Standards: Fix all WordPress.CodeAnalysis.AssignmentInCondition issues.

WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition can be ignored, as this is allowed in Core.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r45590 r45601  
    185185    </rule>
    186186
     187    <!-- Assignments in while conditions are a valid method of looping over iterables -->
     188    <rule ref="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition">
     189        <exclude-pattern>*</exclude-pattern>
     190    </rule>
     191
    187192    <!-- Exclude the unit tests from select sniffs. -->
    188193    <rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
Note: See TracChangeset for help on using the changeset viewer.