-
Notifications
You must be signed in to change notification settings - Fork 5
/
phpcs.xml
75 lines (58 loc) · 2.56 KB
/
phpcs.xml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0"?>
<ruleset>
<description>alleyinteractive/mantle-framework</description>
<arg value="ps" />
<!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. -->
<arg name="cache" value=".phpcs/cache.json" />
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="./" />
<!-- Check up to 20 files simultaneously. -->
<arg name="parallel" value="20" />
<!-- Set severity to 1 to see everything that isn't effectively turned off. -->
<arg name="severity" value="1" />
<exclude-pattern>bin/</exclude-pattern>
<exclude-pattern>tests/</exclude-pattern>
<rule ref="Alley-Interactive">
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped" />
<exclude name="WordPress.WP.CapitalPDangit.MisspelledInText" />
<exclude name="PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection" />
<exclude name="PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.Changed" />
<exclude name="Squiz.Commenting.FunctionComment.IncorrectTypeHint" />
<exclude name="Generic.Commenting.DocComment.MissingShort" />
<exclude name="Squiz.Commenting.VariableComment.MissingVar" />
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.Found" />
<exclude name="Generic.CodeAnalysis.AssignmentInCondition.Found" />
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="Mantle"/>
</property>
</properties>
</rule>
<rule ref="Squiz.Commenting.FunctionComment.MissingParamComment">
<exclude-pattern>src/</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionCommentThrowTag.Missing">
<exclude-pattern>src/mantle/framework/console/generators/</exclude-pattern>
</rule>
<rule ref="Internal.NoCodeFound">
<exclude-pattern>*.blade.php</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.DisallowMultipleAssignments.Found">
<severity>0</severity>
</rule>
<rule ref="Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure">
<severity>0</severity>
</rule>
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis.VariableRedeclaration">
<severity>0</severity>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedNamespaceFound">
<exclude-pattern>src/mantle/framework/resources/</exclude-pattern>
</rule>
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod.Found">
<exclude-pattern>src/mantle/framework/resources/</exclude-pattern>
</rule>
</ruleset>