Skip to content

Commit a7fc935

Browse files
committed
feat(refactoring): removing obsolete sniffs
1 parent e1127ab commit a7fc935

File tree

1 file changed

+19
-23
lines changed

1 file changed

+19
-23
lines changed

CodeatCodingStandard/ruleset.xml

+19-23
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
1818
<rule ref="Generic.Commenting.Todo"/>
1919
<rule ref="Generic.Commenting.DocComment"/>
20-
<rule ref="Generic.Commenting.DocComment.TagValueIndent"/>
2120
<rule ref="Generic.Commenting.DocComment.ParamNotFirst"/>
2221
<rule ref="Generic.Commenting.DocComment.ParamGroup"/>
2322
<rule ref="Generic.Commenting.DocComment.NonParamGroup"/>
2423
<rule ref="Generic.Commenting.DocComment.TagsNotGrouped"/>
24+
<rule ref="Generic.Commenting.DocComment.TagValueIndent"/>
2525
<rule ref="Generic.Commenting.DocComment.ContentAfterOpen"/>
26-
<rule ref="Generic.Commenting.DocComment.SpacingBeforeShort"/>
2726
<rule ref="Generic.Commenting.DocComment.ContentBeforeClose"/>
27+
<rule ref="Generic.Commenting.DocComment.SpacingBeforeShort"/>
2828
<!-- Check for PHP Parse errors. -->
2929
<rule ref="Generic.PHP.Syntax"/>
3030
<!-- Check for file encoding problems. -->
@@ -33,25 +33,28 @@
3333
<rule ref="Generic.Commenting.Fixme"/>
3434
<rule ref="Zend.Files.ClosingTag"/>
3535
<rule ref="Squiz.Commenting">
36-
<exclude name="Squiz.Commenting.FileComment.WrongStyle"/>
37-
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/>
3836
<exclude name="Squiz.Commenting.PostStatementComment.Found"/>
3937
<exclude name="Squiz.Commenting.LongConditionClosingComment.Missing"/>
4038
<exclude name="Squiz.Commenting.LongConditionClosingComment.Invalid"/>
4139
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
4240
<exclude name="Squiz.Commenting.FunctionCommentThrowTag.Missing"/>
4341
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/>
4442
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment"/>
43+
<exclude name="Squiz.Commenting.FileComment.WrongStyle"/>
44+
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/>
4545
<exclude name="Squiz.Commenting.BlockComment.NoEmptyLineBefore"/>
4646
</rule>
4747
<rule ref="Squiz.PHP">
48-
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found"/>
4948
<exclude name="Squiz.PHP.GlobalKeyword.NotAllowed"/>
49+
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found"/>
5050
<exclude name="Squiz.PHP.DisallowBooleanStatement.Found"/>
5151
<exclude name="Squiz.PHP.DisallowInlineIf.Found"/>
5252
<exclude name="Squiz.PHP.DisallowComparisonAssignment.AssignedComparison"/>
5353
<exclude name="Squiz.PHP.ForbiddenFunctions.Found"/>
5454
</rule>
55+
<rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops">
56+
<type>warning</type>
57+
</rule>
5558
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
5659
<properties>
5760
<property name="spacing" value="1"/>
@@ -70,13 +73,10 @@
7073
<rule ref="PEAR.NamingConventions">
7174
<exclude name="PEAR.NamingConventions.ValidClassName.Invalid"/>
7275
<exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
76+
<exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
7377
<exclude name="PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
7478
<exclude name="PEAR.NamingConventions.ValidFunctionName.FunctionNoCapital"/>
7579
<exclude name="PEAR.NamingConventions.ValidFunctionName.FunctionNameInvalid"/>
76-
</rule>
77-
<rule ref="PEAR.NamingConventions">
78-
<exclude name="PEAR.NamingConventions.ValidClassName.Invalid"/>
79-
<exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
8080
<exclude name="PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore"/>
8181
</rule>
8282
<rule ref="PEAR.Files.IncludingFile">
@@ -97,9 +97,8 @@
9797
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys"/>
9898
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys"/>
9999
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound"/>
100-
<exclude name="WordPress.Arrays.ArrayIndentation.CloseBraceNotAligned"/>
101-
<exclude name="WordPress.Arrays.ArrayIndentation.ItemNotAligned"/>
102100
<exclude name="WordPress.Arrays.ArrayDeclaration.NoComma"/>
101+
<exclude name="WordPress.Arrays.ArrayIndentation.CloseBraceNotAligned"/>
103102
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
104103
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
105104
<exclude name="WordPress.PHP.YodaConditions"/>
@@ -114,20 +113,23 @@
114113
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod.Found">
115114
<severity>0</severity>
116115
</rule>
117-
<rule ref="WordPress.PHP.StrictInArray"/>
116+
<rule ref="Generic.CodeAnalysis.EmptyStatement">
117+
<type>warning</type>
118+
</rule>
119+
<rule ref="Wordpress-Docs">
120+
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
121+
</rule>
122+
<rule ref="WordPress.NamingConventions.PrefixAllGlobals"/>
118123
<rule ref="WordPress.DB.PreparedSQLPlaceholders"/>
119124
<rule ref="WordPress.DB.RestrictedFunctions"/>
120125
<rule ref="WordPress.DB.RestrictedClasses"/>
121126
<rule ref="WordPress.PHP.DevelopmentFunctions"/>
122127
<rule ref="WordPress.PHP.DiscouragedPHPFunctions"/>
128+
<rule ref="WordPress.PHP.StrictInArray"/>
123129
<rule ref="WordPress.WP.AlternativeFunctions"/>
124130
<rule ref="WordPress.WP.DiscouragedConstants"/>
125131
<rule ref="WordPress.WP.DiscouragedFunctions"/>
126132
<rule ref="WordPress.WP.EnqueuedResources"/>
127-
<rule ref="WordPress.NamingConventions.PrefixAllGlobals"/>
128-
<rule ref="Wordpress-Docs">
129-
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
130-
</rule>
131133
<rule ref="WordPress.WP.DeprecatedClasses">
132134
<properties>
133135
<property name="minimum_supported_version" value="5.3"/>
@@ -147,12 +149,6 @@
147149
<rule ref="WordPress.Security.ValidatedSanitizedInput">
148150
<type>warning</type>
149151
</rule>
150-
<rule ref="Generic.CodeAnalysis.EmptyStatement">
151-
<type>warning</type>
152-
</rule>
153-
<rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops">
154-
<type>warning</type>
155-
</rule>
156152
<rule ref="WordPress.WP.I18n">
157153
<properties>
158154
<property name="text_domain" type="array" value="glossary-by-codeat,woo-fiscalita-italiana,genesis"/>
@@ -168,7 +164,6 @@
168164
<exclude name="SlevomatCodingStandard.Whitespaces.DuplicateSpaces"/>
169165
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/>
170166
<exclude name="SlevomatCodingStandard.Files.LineLength.LineTooLong"/>
171-
<exclude name="SlevomatCodingStandard.Commenting.DisallowCommentAfterCode.DisallowedCommentAfterCode"/>
172167
<exclude name="SlevomatCodingStandard.ControlStructures.DisallowEmpty.DisallowedEmpty"/>
173168
<exclude name="SlevomatCodingStandard.ControlStructures.NewWithParentheses.MissingParentheses"/>
174169
<exclude name="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison.DisallowedYodaComparison"/>
@@ -181,6 +176,7 @@
181176
<exclude name="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable.DisallowedSuperGlobalVariable"/>
182177
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment"/>
183178
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment.MultiLinePropertyComment"/>
179+
<exclude name="SlevomatCodingStandard.Commenting.DisallowCommentAfterCode.DisallowedCommentAfterCode"/>
184180
</rule>
185181
<!-- Require php 7.1 as minimum for object that is not support on php 7.1 below -->
186182
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">

0 commit comments

Comments
 (0)