Skip to content

Commit

Permalink
Update ruleset.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-chetan committed Jul 16, 2023
1 parent 924eeb9 commit 6e98495
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
<rule ref="Squiz.Commenting.InlineComment">
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
<exclude name="Squiz.Commenting.InlineComment.Empty"/>
<exclude name="Squiz.Commenting.InlineComment.NotCapital"/>
<properties>
<property name="supportedTokenizers" type="array">
<element value="PHP"/>
Expand Down Expand Up @@ -207,6 +208,7 @@
</properties>
</rule>
<rule ref="Squiz.ControlStructures.ForLoopDeclaration">
<exclude name="Squiz.ControlStructures.ForLoopDeclaration.SpacingBeforeSecond"/>
<properties>
<property name="requiredSpacesAfterOpen" value="0"/>
<property name="requiredSpacesBeforeClose" value="0"/>
Expand Down Expand Up @@ -314,12 +316,6 @@

<!-- Generic -->
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman">
<properties>
<property name="checkFunctions" value="true"/>
<property name="checkClosures" value="false"/>
</properties>
</rule>

<!-- PEAR -->
<rule ref="PEAR.Functions.ValidDefaultValue"/>
Expand Down Expand Up @@ -402,7 +398,7 @@
<!-- Generic -->
<rule ref="Generic.Metrics.CyclomaticComplexity">
<properties>
<property name="complexity" value="10"/>
<property name="complexity" value="15"/>
<property name="absoluteComplexity" value="20"/>
</properties>
</rule>
Expand Down

0 comments on commit 6e98495

Please sign in to comment.