Skip to content

Commit

Permalink
Use Kernighan-Ritchie style braces
Browse files Browse the repository at this point in the history
Exclusion of PSR-2 rule for BraceOnSameLine is not enough. We need to specifically force this rule.
  • Loading branch information
QWp6t authored and retlehs committed Mar 11, 2016
1 parent 9eec17d commit f7194cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
</rule>

<!-- Verify that operators have valid spacing surrounding them -->
<rule ref="Squiz.WhiteSpace.OperatorSpacing"></rule>
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>

<!-- Force braces to be on the same lines in fuction declarations -->
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"/>
</ruleset>

0 comments on commit f7194cb

Please sign in to comment.