Skip to content

Commit 0088162

Browse files
committed
Update ruleset.xml
1 parent 7b37532 commit 0088162

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

InfinityloopCodingStandard/ruleset.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,21 @@
2727
<exclude name="PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse"/>
2828
<exclude name="PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter"/>
2929
</rule>
30-
30+
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
31+
<rule ref="Generic.Arrays.ArrayIndent">
32+
<!-- conflicts with multi-line arrays -->
33+
<exclude name="Generic.Arrays.ArrayIndent.KeyIncorrect"/>
34+
<!-- conflicts with multi-line arrays -->
35+
<exclude name="Generic.Arrays.ArrayIndent.CloseBraceIncorrect"/>
36+
</rule>
37+
<rule ref="Generic.Classes.DuplicateClassName"/>
3138
<rule ref="Generic.CodeAnalysis.EmptyStatement">
3239
<exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedCatch"/>
3340
</rule>
3441
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
3542
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
3643
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
44+
<rule ref="Generic.Commenting.Todo"/>
3745
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
3846
<rule ref="Generic.Files.ByteOrderMark"/>
3947
<rule ref="Generic.Files.InlineHTML"/>
@@ -61,8 +69,6 @@
6169
<rule ref="Generic.PHP.LowerCaseConstant"/>
6270
<rule ref="Generic.PHP.LowerCaseKeyword"/>
6371
<rule ref="Generic.PHP.LowerCaseType"/>
64-
<rule ref="Generic.Classes.DuplicateClassName"/>
65-
<rule ref="Generic.Commenting.Todo"/>
6672
<rule ref="Generic.Strings.UnnecessaryStringConcat">
6773
<properties>
6874
<property name="allowMultiline" value="true"/>
@@ -80,13 +86,10 @@
8086
<property name="ignoreNewlines" value="true"/>
8187
</properties>
8288
</rule>
83-
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
84-
8589
<rule ref="PEAR.Formatting.MultiLineAssignment"/>
8690
<rule ref="PEAR.WhiteSpace.ObjectOperatorIndent"/>
8791
<rule ref="PEAR.Commenting.InlineComment"/>
8892
<rule ref="PEAR.Classes.ClassDeclaration"/>
89-
9093
<rule ref="Squiz.PHP.GlobalKeyword"/>
9194
<rule ref="Squiz.PHP.InnerFunctions"/>
9295
<rule ref="Squiz.PHP.LowercasePHPFunctions"/>
@@ -148,7 +151,6 @@
148151
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop"/>
149152
<!-- comments don't have to be sentences -->
150153
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentNotCapital"/>
151-
<exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing"/><!-- works only for code requiring PHP 7 code or better -->
152154
<!-- we don't want spacing with alignment -->
153155
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamName"/>
154156
<!-- we don't want spacing with alignment -->
@@ -224,7 +226,6 @@
224226
<property name="spacingAfterLast" value="0"/>
225227
</properties>
226228
</rule>
227-
228229
<rule ref="SlevomatCodingStandard.PHP.ShortList"/>
229230
<rule ref="SlevomatCodingStandard.PHP.TypeCast"/>
230231
<rule ref="SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking"/>
@@ -468,7 +469,6 @@
468469
<property name="ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach" value="true"/>
469470
</properties>
470471
</rule>
471-
472472
<rule ref="InfinityloopCodingStandard.WhiteSpace.MemberVarSpacing">
473473
<properties>
474474
<property name="spacing" value="0"/>

0 commit comments

Comments
 (0)