-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
46 lines (39 loc) · 1.9 KB
/
Copy pathphpcs.xml
File metadata and controls
46 lines (39 loc) · 1.9 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
<?xml version="1.0"?>
<ruleset name="known">
<description>The Known coding standard.</description>
<arg name="tab-width" value="4"/>
<arg name="extensions" value="php"/>
<file>Idno/</file>
<file>IdnoPlugins/</file>
<file>Tests/</file>
<rule ref="Zend">
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="Generic.Files.LineLength.MaxExceeded"/>
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
<exclude name="Zend.NamingConventions.ValidVariableName.NotCamelCaps"/>
<exclude name="Zend.NamingConventions.ValidVariableName.StringVarNotCamelCaps"/>
<exclude name="Generic.PHP.DisallowShortOpenTag"/>
<exclude name="Squiz.Functions.GlobalFunction.Found"/>
<exclude name="Zend.NamingConventions.ValidVariableName.ContainsNumbers"/>
<exclude name="Zend.NamingConventions.ValidVariableName.MemberVarNotCamelCaps"/>
<exclude name="Zend.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
<exclude name="Zend.NamingConventions.ValidVariableName.PublicHasUnderscore"/>
<exclude name="Internal.NoCodeFound"/>
</rule>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="tabIndent" value="false"/>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array"
value="sizeof=>count,delete=>unset,print_r=>null,var_export=>null,die=>null"/>
</properties>
</rule>
<exclude-pattern type="relative-root">/external/*</exclude-pattern>
<exclude-pattern type="relative-root">/vendor/*</exclude-pattern>
</ruleset>