-
Notifications
You must be signed in to change notification settings - Fork 9
/
phpcs.xml
74 lines (58 loc) · 2.43 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
<?xml version="1.0"?>
<ruleset>
<description>alleyinteractive/mantle</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>build/</exclude-pattern>
<exclude-pattern>tests/</exclude-pattern>
<exclude-pattern>bootstrap/cache</exclude-pattern>
<exclude-pattern>storage/framework/views</exclude-pattern>
<rule ref="Alley-Interactive">
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<exclude name="PHPCompatibility.FunctionDeclarations.NewClosure.ThisFoundOutsideClass" />
<exclude name="WordPress.NamingConventions.ValidPostTypeSlug.NotStringLiteral" />
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="App"/>
<element value="bootloader"/>
</property>
</properties>
<exclude-pattern>views/</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionComment">
<exclude-pattern>src/mantle/framework/container/class-container.php</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.DisallowMultipleAssignments">
<exclude-pattern>src/mantle/framework/container/class-container.php</exclude-pattern>
</rule>
<rule ref="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned">
<exclude-pattern>config</exclude-pattern>
</rule>
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod.Found">
<exclude-pattern>app/</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.CommentedOutCode.Found">
<exclude-pattern>routes/</exclude-pattern>
<exclude-pattern>app/</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.InlineComment.InvalidEndChar">
<exclude-pattern>app/providers</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.InlineComment">
<exclude-pattern>routes/</exclude-pattern>
</rule>
<rule ref="Internal.NoCodeFound">
<exclude-pattern>views/**/*.blade.php</exclude-pattern>
</rule>
</ruleset>