-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
42 lines (34 loc) · 1.27 KB
/
phpcs.xml
File metadata and controls
42 lines (34 loc) · 1.27 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
<?xml version="1.0"?>
<ruleset name="GoogleDrivePHP">
<description>PSR-12 coding standard for GoogleDrivePHP</description>
<!-- Include the whole PSR-12 standard -->
<rule ref="PSR12"/>
<!-- Paths to check -->
<file>src</file>
<file>tests</file>
<!-- Exclude vendor directory -->
<exclude-pattern>vendor</exclude-pattern>
<!-- Show progress -->
<arg value="p"/>
<!-- Use colors -->
<arg name="colors"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Additional rules -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="sizeof" value="count"/>
<element key="delete" value="unset"/>
<element key="print" value="echo"/>
<element key="is_null" value="null"/>
<element key="create_function" value="null"/>
</property>
</properties>
</rule>
<!-- Docblock rules -->
<rule ref="Squiz.Commenting.FunctionComment"/>
<rule ref="Squiz.Commenting.ClassComment"/>
<rule ref="Squiz.Commenting.VariableComment"/>
</ruleset>