-
Notifications
You must be signed in to change notification settings - Fork 39
/
phpcs.xml
65 lines (59 loc) · 2.19 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
<?xml version="1.0"?>
<ruleset name="MODX">
<description>The PSR2 coding standard.</description>
<arg name="colors"/>
<arg name="extensions" value="php,inc" />
<arg name="basepath" value="." />
<arg name="parallel" value="75" />
<arg name="tab-width" value="4"/>
<file>assets/lib/</file>
<file>assets/snippets/</file>
<exclude-pattern>*/lang/*</exclude-pattern>
<rule ref="PSR2">
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
</rule>
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property phpcs-only="true" name="forbiddenFunctions" type="array"
value="print=>echo,create_function=>null,eval=>null,exec=>null,system=>null"/>
</properties>
</rule>
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\n"/>
</properties>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="ignoreComments" value="true"/>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
</rule>
<rule ref="Generic.Metrics.NestingLevel">
<properties>
<property phpcs-only="true" name="nestingLevel" value="3"/>
<property phpcs-only="true" name="absoluteNestingLevel" value="6"/>
</properties>
</rule>
<rule ref="Generic.NamingConventions.CamelCapsFunctionName">
<properties>
<property phpcs-only="true" name="strict" value="true"/>
</properties>
</rule>
<rule ref="Generic.Strings.UnnecessaryStringConcat">
<properties>
<property name="allowMultiline" value="true" />
<property name="error" value="false" />
</properties>
</rule>
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="spacing" value="1" />
<property name="ignoreNewlines" value="true" />
</properties>
</rule>
<rule ref="Generic.Formatting.SpaceAfterNot" />
<rule ref="Zend.Files.ClosingTag"/>
</ruleset>