-
Notifications
You must be signed in to change notification settings - Fork 49
/
phpcs.xml
41 lines (36 loc) · 1.34 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
<?xml version="1.0"?>
<ruleset name="MyProject">
<description>Coding Standard for OSClass.</description>
<!-- Exclude Composer vendor directory. -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/oc-content/*</exclude-pattern>
<exclude-pattern>*/oc-includes/assets/*</exclude-pattern>
<exclude-pattern>*/oc-includes/osclass/gui/*</exclude-pattern>
<arg value="ps" />
<arg name="report" value="full" />
<arg name="extensions" value="php,lib/php" />
<ini name="memory_limit" value="128M" />
<rule ref="PSR2" />
<config name="testVersion" value="3.9.0"/>
<rule ref="PSR2">
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
</rule>
<rule ref="Generic.Commenting.Todo.CommentFound">
<message>Please review this TODO comment: %s</message>
<severity phpcs-only="true">8</severity>
<severity phpcbf-only="true">0</severity>
<type>warning</type>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property phpcs-only="true" name="lineLimit" value="140"/>
<property phpcbf-only="true" name="lineLimit" value="140"/>
<property name="absoluteLineLimit" value="140"/>
</properties>
</rule>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" value="delete=>unset,print=>echo,create_function=>null" />
</properties>
</rule>
</ruleset>