|
2 | 2 | <ruleset name="Codeat"> |
3 | 3 | <description>Codeat coding standard.</description> |
4 | 4 |
|
5 | | - <exclude-pattern>/vendor/*</exclude-pattern> |
6 | | - <exclude-pattern>/node_modules/*</exclude-pattern> |
7 | | - <exclude-pattern>freemius</exclude-pattern> |
8 | | - <exclude-pattern>/lib/</exclude-pattern> |
9 | | - <exclude-pattern>*test*</exclude-pattern> |
10 | | - <exclude-pattern>index.php</exclude-pattern> |
11 | | - <exclude-pattern>CMB2</exclude-pattern> |
| 5 | + <exclude-pattern>/vendor/*</exclude-pattern> |
| 6 | + <exclude-pattern>/node_modules/*</exclude-pattern> |
| 7 | + <exclude-pattern>freemius</exclude-pattern> |
| 8 | + <exclude-pattern>/lib/</exclude-pattern> |
| 9 | + <exclude-pattern>*test*</exclude-pattern> |
| 10 | + <exclude-pattern>index.php</exclude-pattern> |
| 11 | + <exclude-pattern>CMB2</exclude-pattern> |
12 | 12 |
|
13 | 13 | <!-- Include some specific sniffs --> |
14 | 14 | <rule ref="Generic.CodeAnalysis.EmptyStatement"/> |
|
23 | 23 | <rule ref="Generic.Commenting.DocComment.SpacingBeforeShort"/> |
24 | 24 | <rule ref="Generic.Commenting.DocComment.ContentBeforeClose"/> |
25 | 25 |
|
26 | | - <rule ref="Squiz.Commenting"> |
27 | | - <exclude name="Squiz.Commenting.FileComment.WrongStyle" /> |
28 | | - <exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen" /> |
29 | | - <exclude name="Squiz.Commenting.PostStatementComment.Found" /> |
30 | | - <exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" /> |
31 | | - <exclude name="Squiz.Commenting.LongConditionClosingComment.Missing" /> |
32 | | - <exclude name="Squiz.Commenting.LongConditionClosingComment.Invalid" /> |
33 | | - <exclude name="Squiz.Commenting.FunctionComment.Missing" /> |
34 | | - </rule> |
| 26 | + <rule ref="Squiz.Commenting"> |
| 27 | + <exclude name="Squiz.Commenting.FileComment.WrongStyle" /> |
| 28 | + <exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen" /> |
| 29 | + <exclude name="Squiz.Commenting.PostStatementComment.Found" /> |
| 30 | + <exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" /> |
| 31 | + <exclude name="Squiz.Commenting.LongConditionClosingComment.Missing" /> |
| 32 | + <exclude name="Squiz.Commenting.LongConditionClosingComment.Invalid" /> |
| 33 | + <exclude name="Squiz.Commenting.FunctionComment.Missing" /> |
| 34 | + </rule> |
35 | 35 |
|
36 | | - <rule ref="PEAR.NamingConventions"> |
37 | | - <exclude name="PEAR.NamingConventions.ValidClassName.Invalid" /> |
38 | | - </rule> |
39 | | - <rule ref="PEAR.NamingConventions.ValidFunctionName"> |
40 | | - <exclude name="PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps" /> |
41 | | - <exclude name="PEAR.NamingConventions.ValidFunctionName.NotCamelCaps" /> |
42 | | - </rule> |
| 36 | + <rule ref="PEAR.NamingConventions"> |
| 37 | + <exclude name="PEAR.NamingConventions.ValidClassName.Invalid" /> |
| 38 | + </rule> |
| 39 | + <rule ref="PEAR.NamingConventions.ValidFunctionName"> |
| 40 | + <exclude name="PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps" /> |
| 41 | + <exclude name="PEAR.NamingConventions.ValidFunctionName.NotCamelCaps" /> |
| 42 | + </rule> |
43 | 43 |
|
44 | 44 | <!-- https://github.com/wimg/PHPCompatibility/ --> |
45 | | - <rule ref="PHPCompatibility"/> |
46 | | - <!-- Check for cross-version support for PHP 5.6 and higher. --> |
47 | | - <config name="testVersion" value="5.2-"/> |
| 45 | + <rule ref="PHPCompatibility"> |
| 46 | + <exclude name="PHPCompatibility.PHP.EmptyNonVariable.Found" /> |
| 47 | + </rule> |
| 48 | + <!-- Check for cross-version support for PHP 5.6 and higher. --> |
| 49 | + <config name="testVersion" value="5.2-"/> |
48 | 50 |
|
49 | 51 | <rule ref="WordPress"> |
50 | 52 | <exclude name="Generic.Files.LineEndings.InvalidEOLChar" /> |
|
94 | 96 | <properties> |
95 | 97 | <property name="minimum_supported_version" value="4.6"/> |
96 | 98 | </properties> |
97 | | - </rule> |
| 99 | + </rule> |
98 | 100 |
|
99 | 101 |
|
100 | 102 | <rule ref="WordPress.WP.DeprecatedFunctions"> |
|
107 | 109 | <properties> |
108 | 110 | <property name="minimum_supported_version" value="4.6"/> |
109 | 111 | </properties> |
110 | | - </rule> |
| 112 | + </rule> |
111 | 113 |
|
112 | 114 |
|
113 | 115 | <rule ref="WordPress.WP.I18n"> |
114 | 116 | <properties> |
115 | 117 | <property name="text_domain" type="array" value="glossary,woo-fiscalita-italiana"/> |
116 | 118 | </properties> |
117 | | - </rule> |
| 119 | + </rule> |
118 | 120 |
|
119 | 121 | </ruleset> |
0 commit comments