diff options
Diffstat (limited to 'phpcs.xml.dist')
-rw-r--r-- | phpcs.xml.dist | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpcs.xml.dist b/phpcs.xml.dist index b4241cb66a..56e4fcbc35 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -184,6 +184,11 @@ </properties> </rule> + <!-- Assignments in while conditions are a valid method of looping over iterables --> + <rule ref="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"> + <exclude-pattern>*</exclude-pattern> + </rule> + <!-- Exclude the unit tests from select sniffs. --> <rule ref="WordPress.Files.FileName.NotHyphenatedLowercase"> <exclude-pattern>/tests/phpunit/tests/*</exclude-pattern> |