Skip to content

Commit

Permalink
Update ruleset.xml to exclude specific Squiz and Generic rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-chetan committed Jul 18, 2024
1 parent 9f93dcb commit fc6e7f1
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
<rule ref="PSR12.Classes.ClosingBrace"/>

<!-- Squiz -->
<rule ref="Squiz.Classes.ClassDeclaration"/>
<rule ref="Squiz.Classes.ClassDeclaration">
<exclude name="Squiz.Classes.ClassDeclaration.OpenBraceNewLine"/>
<exclude name="Squiz.Classes.ClassDeclaration.CloseBraceSameLine"/>
</rule>
<rule ref="Squiz.Classes.ClassFileName"/>
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
<rule ref="Squiz.Classes.SelfMemberReference"/>
Expand All @@ -61,23 +64,14 @@
-->

<!-- Generic -->
<rule ref="Generic.CodeAnalysis.AssignmentInCondition"/>
<rule ref="Generic.CodeAnalysis.EmptyPHPStatement"/>
<rule ref="Generic.CodeAnalysis.EmptyStatement">
<exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedCatch"/>
</rule>
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
<properties>
<property name="ignoreTypeHints" type="array">
<element value="InputInterface"/>
</property>
</properties>
</rule>
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>

<!--
Expand Down Expand Up @@ -190,13 +184,6 @@
</property>
</properties>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="ignoreComments" value="true" />
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
</rule>

<!--
***********************************************************************
Expand Down Expand Up @@ -608,7 +595,9 @@
<property name="ignoreSpacingBeforeAssignments" value="true" />
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace"/>
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace">
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore"/>
</rule>
<rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing"/>
<rule ref="Squiz.WhiteSpace.SemicolonSpacing">
<properties>
Expand Down

0 comments on commit fc6e7f1

Please sign in to comment.