Skip to content

Commit

Permalink
Merge pull request #36 from PHPCSStandards/feature/ruleset-enforce-bo…
Browse files Browse the repository at this point in the history
…olean-operators-at-start

Ruleset: configure PSR12.ControlStructures.BooleanOperatorPlacement sniff
  • Loading branch information
jrfnl committed Jul 25, 2023
2 parents aedb280 + 37bcab6 commit eb59f0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions PHPCSDev/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@
####################################################################
-->

<!-- PSR12 doesn't enforce consistency in where boolean operators are placed. We do. -->
<rule ref="PSR12.ControlStructures.BooleanOperatorPlacement">
<properties>
<property name="allowOnly" value="first"/>
</properties>
</rule>

<!-- PSR12 appears to ignore blank lines for superfluous whitespace and in several other places. Let's fix that. -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
Expand Down

0 comments on commit eb59f0a

Please sign in to comment.