Skip to content

Commit 28b0eb2

Browse files
committed
Exclude most of the new rules from the recent upgrade
1 parent 64f7471 commit 28b0eb2

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

PhpMyAdmin/ruleset.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,33 @@
2020
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming"/>
2121
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/>
2222
<exclude name="SlevomatCodingStandard.Classes.SuperfluousTraitNaming"/>
23+
24+
<!-- Exclude some new rules until we decide we adopt them -->
25+
<exclude name="SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing.IncorrectLinesCountAfterControlStructure"/>
26+
<exclude name="SlevomatCodingStandard.Namespaces.UseSpacing.IncorrectLinesCountBetweenDifferentTypeOfUse"/>
27+
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint"/>
28+
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint"/>
29+
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint"/>
30+
<exclude name="Squiz.NamingConventions.ValidVariableName.NotCamelCaps"/>
31+
<exclude name="Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps"/>
32+
<exclude name="SlevomatCodingStandard.PHP.RequireExplicitAssertion.RequiredExplicitAssertion"/>
33+
<exclude name="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses"/>
34+
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine"/>
35+
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.CloseParenthesisLine"/>
36+
<exclude name="SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing.IncorrectLinesCountAfterLastControlStructure"/>
37+
<exclude name="SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing.IncorrectLinesCountAfterLastControlStructure"/>
38+
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.LineIndent"/>
39+
<exclude name="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator.RequiredNullCoalesceEqualOperator"/>
40+
<exclude name="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable"/>
41+
<exclude name="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.NoAssignment"/>
42+
</rule>
43+
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification">
44+
<severity>4</severity>
45+
</rule>
46+
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification">
47+
<severity>4</severity>
48+
</rule>
49+
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification">
50+
<severity>4</severity>
2351
</rule>
2452
</ruleset>

0 commit comments

Comments
 (0)