Skip to content

Commit c9f5696

Browse files
committed
new parameter
1 parent e6dc8a0 commit c9f5696

File tree

1 file changed

+31
-29
lines changed

1 file changed

+31
-29
lines changed

codeat.xml

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<ruleset name="Codeat">
33
<description>Codeat coding standard.</description>
44

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>
1212

1313
<!-- Include some specific sniffs -->
1414
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
@@ -23,28 +23,30 @@
2323
<rule ref="Generic.Commenting.DocComment.SpacingBeforeShort"/>
2424
<rule ref="Generic.Commenting.DocComment.ContentBeforeClose"/>
2525

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>
3535

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>
4343

4444
<!-- 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-"/>
4850

4951
<rule ref="WordPress">
5052
<exclude name="Generic.Files.LineEndings.InvalidEOLChar" />
@@ -94,7 +96,7 @@
9496
<properties>
9597
<property name="minimum_supported_version" value="4.6"/>
9698
</properties>
97-
</rule>
99+
</rule>
98100

99101

100102
<rule ref="WordPress.WP.DeprecatedFunctions">
@@ -107,13 +109,13 @@
107109
<properties>
108110
<property name="minimum_supported_version" value="4.6"/>
109111
</properties>
110-
</rule>
112+
</rule>
111113

112114

113115
<rule ref="WordPress.WP.I18n">
114116
<properties>
115117
<property name="text_domain" type="array" value="glossary,woo-fiscalita-italiana"/>
116118
</properties>
117-
</rule>
119+
</rule>
118120

119121
</ruleset>

0 commit comments

Comments
 (0)