Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
Latest commit
66 lines (55 loc) · 2.01 KB
/
Copy pathphpcs.xml
File metadata and controls
66 lines (55 loc) · 2.01 KB
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
<?xml version="1.0"?>
<rulesetname="CS">
<description>Custom coding standards.</description>
<configname="testVersion"value="8.5-"/>
<!-- Scan all files in directory -->
<file>./web/app</file>
<!-- Scan only PHP files -->
<argname="extensions"value="php"/>
<argname="colors"/>
<argname="parallel"value="100"/>
<argname="cache"value=".phpcs.cache"/>
<!-- Ignore WordPress and Composer dependencies -->
<exclude-pattern>\.codeception/*</exclude-pattern>
<exclude-pattern>\.github/*</exclude-pattern>
<exclude-pattern>web/wp</exclude-pattern>
<exclude-pattern>web/app/themes/twentytwentythree/</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modues/*</exclude-pattern>
<exclude-pattern>assets/*</exclude-pattern>
<!-- Show colors in console -->
<argvalue="-colors"/>
<!-- Show sniff codes in all reports -->
<argvalue="ns"/>
<argvalue="ps"/>
<ruleref="PHPCompatibilityWP" />
<ruleref="WordPress-Core">
<!-- PSR4 -->
<excludename="WordPress.Files.FileName.InvalidClassFileName"/>
<excludename="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<excludename="WordPress.PHP.YodaConditions.NotYoda"/>
</rule>
<ruleref="Generic.Metrics.CyclomaticComplexity">
<properties>
<propertyname="complexity"value="4"/>
<propertyname="absoluteComplexity"value="6"/>
</properties>
</rule>
<ruleref="Generic.Metrics.NestingLevel">
<properties>
<propertyname="absoluteNestingLevel"value="3"/>
</properties>
</rule>
<!-- exclude the 'empty' index files from some documentation checks -->
<ruleref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>*/index.php</exclude-pattern>
</rule>
<ruleref="Squiz.Commenting.FileComment.WrongStyle">
<exclude-pattern>*/index.php</exclude-pattern>
</rule>
<ruleref="Squiz.Commenting.InlineComment.SpacingAfter">
<exclude-pattern>*/index.php</exclude-pattern>
</rule>
<!-- disallow Yoda comparisons -->
<ruleref="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison" />
</ruleset>