-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
phpcs.xml.dist
56 lines (54 loc) · 2.05 KB
/
phpcs.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0"?>
<ruleset>
<file>finder.php</file>
<file>functionMap.php</file>
<file>src/</file>
<file>visitor.php</file>
<file>tests/</file>
<rule ref="PSR12NeutronRuleset">
<exclude name="Generic.Files.LineLength"/>
<exclude name="PEAR.Commenting.ClassComment"/>
<exclude name="PEAR.Commenting.FileComment"/>
</rule>
<!-- Rules not applied to tests -->
<rule ref="SlevomatCodingStandard.Functions.FunctionLength.FunctionLength">
<exclude-pattern>tests/TypeInferenceTest.php</exclude-pattern>
</rule>
<rule ref="NeutronStandard.Functions.TypeHint.UnusedReturnType">
<exclude-pattern>tests/TypeInferenceTest.php</exclude-pattern>
</rule>
<rule ref="PSR12NeutronRuleset.NamingConventions.MeaningfulVariableName">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="PSR12NeutronRuleset.Strings.ConcatenationUsage">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions">
<properties>
<property name="ignoredNames" type="array">
<element value="WP_Error"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.PHP.RequireExplicitAssertion">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.CommentedOutCode">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="WordPress.DateTime.CurrentTimeTimestamp">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="WordPress.DB.PreparedSQL">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="WordPress.Security.NonceVerification">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="WordPress.WP.GlobalVariablesOverride">
<exclude-pattern>tests/</exclude-pattern>
</rule>
</ruleset>