-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
58 lines (45 loc) · 1.67 KB
/
phpcs.xml
File metadata and controls
58 lines (45 loc) · 1.67 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
<?xml version="1.0"?>
<ruleset name="StringManipulation">
<description>PER 2.0 coding standard for StringManipulation</description>
<!-- Include PER 2.0 standard -->
<rule ref="PER"/>
<!-- Scan only PHP files -->
<arg name="extensions" value="php"/>
<!-- Show progress -->
<arg value="p"/>
<!-- Use colors -->
<arg name="colors"/>
<!-- Paths to check -->
<file>src</file>
<file>tests</file>
<!-- Exclude paths -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/.github/*</exclude-pattern>
<exclude-pattern>*/docker/*</exclude-pattern>
<exclude-pattern>*/tests/Benchmark/*</exclude-pattern>
<exclude-pattern>*.cache</exclude-pattern>
<!-- Disable rules that conflict with our project standards -->
<rule ref="Generic.Commenting.DocComment.MissingShort">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax">
<exclude-pattern>*</exclude-pattern>
</rule>
<!-- Disable the specific rules Codacy is complaining about -->
<rule ref="Squiz.Arrays.ArrayDeclaration">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.Security.EscapeOutput">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.InlineComment.InvalidEndChar">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.DiscouragedFunctions">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Squiz.Strings.ConcatenationSpacing">
<exclude-pattern>*</exclude-pattern>
</rule>
</ruleset>