|
17 | 17 | <rule ref="Generic.CodeAnalysis.EmptyStatement"/>
|
18 | 18 | <rule ref="Generic.Commenting.Todo"/>
|
19 | 19 | <rule ref="Generic.Commenting.DocComment"/>
|
20 |
| - <rule ref="Generic.Commenting.DocComment.TagValueIndent"/> |
21 | 20 | <rule ref="Generic.Commenting.DocComment.ParamNotFirst"/>
|
22 | 21 | <rule ref="Generic.Commenting.DocComment.ParamGroup"/>
|
23 | 22 | <rule ref="Generic.Commenting.DocComment.NonParamGroup"/>
|
24 | 23 | <rule ref="Generic.Commenting.DocComment.TagsNotGrouped"/>
|
| 24 | + <rule ref="Generic.Commenting.DocComment.TagValueIndent"/> |
25 | 25 | <rule ref="Generic.Commenting.DocComment.ContentAfterOpen"/>
|
26 |
| - <rule ref="Generic.Commenting.DocComment.SpacingBeforeShort"/> |
27 | 26 | <rule ref="Generic.Commenting.DocComment.ContentBeforeClose"/>
|
| 27 | + <rule ref="Generic.Commenting.DocComment.SpacingBeforeShort"/> |
28 | 28 | <!-- Check for PHP Parse errors. -->
|
29 | 29 | <rule ref="Generic.PHP.Syntax"/>
|
30 | 30 | <!-- Check for file encoding problems. -->
|
|
33 | 33 | <rule ref="Generic.Commenting.Fixme"/>
|
34 | 34 | <rule ref="Zend.Files.ClosingTag"/>
|
35 | 35 | <rule ref="Squiz.Commenting">
|
36 |
| - <exclude name="Squiz.Commenting.FileComment.WrongStyle"/> |
37 |
| - <exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/> |
38 | 36 | <exclude name="Squiz.Commenting.PostStatementComment.Found"/>
|
39 | 37 | <exclude name="Squiz.Commenting.LongConditionClosingComment.Missing"/>
|
40 | 38 | <exclude name="Squiz.Commenting.LongConditionClosingComment.Invalid"/>
|
41 | 39 | <exclude name="Squiz.Commenting.FunctionComment.Missing"/>
|
42 | 40 | <exclude name="Squiz.Commenting.FunctionCommentThrowTag.Missing"/>
|
43 | 41 | <exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/>
|
44 | 42 | <exclude name="Squiz.Commenting.FileComment.SpacingAfterComment"/>
|
| 43 | + <exclude name="Squiz.Commenting.FileComment.WrongStyle"/> |
| 44 | + <exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/> |
45 | 45 | <exclude name="Squiz.Commenting.BlockComment.NoEmptyLineBefore"/>
|
46 | 46 | </rule>
|
47 | 47 | <rule ref="Squiz.PHP">
|
48 |
| - <exclude name="Squiz.PHP.DisallowMultipleAssignments.Found"/> |
49 | 48 | <exclude name="Squiz.PHP.GlobalKeyword.NotAllowed"/>
|
| 49 | + <exclude name="Squiz.PHP.DisallowMultipleAssignments.Found"/> |
50 | 50 | <exclude name="Squiz.PHP.DisallowBooleanStatement.Found"/>
|
51 | 51 | <exclude name="Squiz.PHP.DisallowInlineIf.Found"/>
|
52 | 52 | <exclude name="Squiz.PHP.DisallowComparisonAssignment.AssignedComparison"/>
|
53 | 53 | <exclude name="Squiz.PHP.ForbiddenFunctions.Found"/>
|
54 | 54 | </rule>
|
| 55 | + <rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops"> |
| 56 | + <type>warning</type> |
| 57 | + </rule> |
55 | 58 | <rule ref="Squiz.WhiteSpace.FunctionSpacing">
|
56 | 59 | <properties>
|
57 | 60 | <property name="spacing" value="1"/>
|
|
70 | 73 | <rule ref="PEAR.NamingConventions">
|
71 | 74 | <exclude name="PEAR.NamingConventions.ValidClassName.Invalid"/>
|
72 | 75 | <exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
|
| 76 | + <exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore"/> |
73 | 77 | <exclude name="PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
|
74 | 78 | <exclude name="PEAR.NamingConventions.ValidFunctionName.FunctionNoCapital"/>
|
75 | 79 | <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"/> |
80 | 80 | <exclude name="PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore"/>
|
81 | 81 | </rule>
|
82 | 82 | <rule ref="PEAR.Files.IncludingFile">
|
|
97 | 97 | <exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys"/>
|
98 | 98 | <exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys"/>
|
99 | 99 | <exclude name="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound"/>
|
100 |
| - <exclude name="WordPress.Arrays.ArrayIndentation.CloseBraceNotAligned"/> |
101 |
| - <exclude name="WordPress.Arrays.ArrayIndentation.ItemNotAligned"/> |
102 | 100 | <exclude name="WordPress.Arrays.ArrayDeclaration.NoComma"/>
|
| 101 | + <exclude name="WordPress.Arrays.ArrayIndentation.CloseBraceNotAligned"/> |
103 | 102 | <exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
|
104 | 103 | <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
|
105 | 104 | <exclude name="WordPress.PHP.YodaConditions"/>
|
|
114 | 113 | <rule ref="Generic.CodeAnalysis.UselessOverridingMethod.Found">
|
115 | 114 | <severity>0</severity>
|
116 | 115 | </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"/> |
118 | 123 | <rule ref="WordPress.DB.PreparedSQLPlaceholders"/>
|
119 | 124 | <rule ref="WordPress.DB.RestrictedFunctions"/>
|
120 | 125 | <rule ref="WordPress.DB.RestrictedClasses"/>
|
121 | 126 | <rule ref="WordPress.PHP.DevelopmentFunctions"/>
|
122 | 127 | <rule ref="WordPress.PHP.DiscouragedPHPFunctions"/>
|
| 128 | + <rule ref="WordPress.PHP.StrictInArray"/> |
123 | 129 | <rule ref="WordPress.WP.AlternativeFunctions"/>
|
124 | 130 | <rule ref="WordPress.WP.DiscouragedConstants"/>
|
125 | 131 | <rule ref="WordPress.WP.DiscouragedFunctions"/>
|
126 | 132 | <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> |
131 | 133 | <rule ref="WordPress.WP.DeprecatedClasses">
|
132 | 134 | <properties>
|
133 | 135 | <property name="minimum_supported_version" value="5.3"/>
|
|
147 | 149 | <rule ref="WordPress.Security.ValidatedSanitizedInput">
|
148 | 150 | <type>warning</type>
|
149 | 151 | </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> |
156 | 152 | <rule ref="WordPress.WP.I18n">
|
157 | 153 | <properties>
|
158 | 154 | <property name="text_domain" type="array" value="glossary-by-codeat,woo-fiscalita-italiana,genesis"/>
|
|
168 | 164 | <exclude name="SlevomatCodingStandard.Whitespaces.DuplicateSpaces"/>
|
169 | 165 | <exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/>
|
170 | 166 | <exclude name="SlevomatCodingStandard.Files.LineLength.LineTooLong"/>
|
171 |
| - <exclude name="SlevomatCodingStandard.Commenting.DisallowCommentAfterCode.DisallowedCommentAfterCode"/> |
172 | 167 | <exclude name="SlevomatCodingStandard.ControlStructures.DisallowEmpty.DisallowedEmpty"/>
|
173 | 168 | <exclude name="SlevomatCodingStandard.ControlStructures.NewWithParentheses.MissingParentheses"/>
|
174 | 169 | <exclude name="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison.DisallowedYodaComparison"/>
|
|
181 | 176 | <exclude name="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable.DisallowedSuperGlobalVariable"/>
|
182 | 177 | <exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment"/>
|
183 | 178 | <exclude name="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment.MultiLinePropertyComment"/>
|
| 179 | + <exclude name="SlevomatCodingStandard.Commenting.DisallowCommentAfterCode.DisallowedCommentAfterCode"/> |
184 | 180 | </rule>
|
185 | 181 | <!-- Require php 7.1 as minimum for object that is not support on php 7.1 below -->
|
186 | 182 | <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
|
|
0 commit comments