File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 392392 <rule ref =" Squiz.PHP.DisallowMultipleAssignments" />
393393 <rule ref =" Generic.Formatting.DisallowMultipleStatements" />
394394
395+ <!-- Rule: Assignments must not be placed in placed in conditionals.
396+ Note: sniff is a duplicate of upstream. Can be removed once minimum PHPCS requirement has gone up.
397+ https://github.com/squizlabs/PHP_CodeSniffer/pull/1594
398+ Update: the "assignment in ternary" part of the sniff is currently not yet covered in
399+ the upstream version. This needs to be pulled first before we can defer to upstream. -->
400+ <rule ref =" WordPress.CodeAnalysis.AssignmentInCondition" />
401+
395402 <!-- Rule: In a switch statement... If a case contains a block, then falls through
396403 to the next block, this must be explicitly commented. -->
397404 <!-- Covered by the PSR2.ControlStructures.SwitchDeclaration sniff. -->
Original file line number Diff line number Diff line change 2424 </properties >
2525 </rule >
2626
27- <!-- Duplicate of upstream. Can be removed once minimum PHPCS requirement has gone up.
28- https://github.com/squizlabs/PHP_CodeSniffer/pull/1594
29- Note: the "assignment in ternary" part of the sniff is currently not yet covered in
30- the upstream version. This needs to be pulled first before we can defer to upstream. -->
31- <rule ref =" WordPress.CodeAnalysis.AssignmentInCondition" />
32-
3327 <!-- More generic PHP best practices.
3428 https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/607 -->
3529 <rule ref =" Squiz.PHP.NonExecutableCode" />
You can’t perform that action at this time.
0 commit comments