forked from CON-In-A-Box/CIAB-Portal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
71 lines (62 loc) · 2.56 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
66
67
68
69
70
71
<ruleset name="CON">
<description>The coding standard.</description>
<arg name="tab-width" value="4"/>
<rule ref="PSR2">
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
<exclude name="PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose"/>
<exclude name="PSR1.Classes.ClassDeclaration"/>
<!-- first pass no line limits -->
<exclude name="Generic.Files.LineLength"/>
</rule>
<!-- Future pass: Lines can be 80 chars long, but never show errors
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="80"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
</rule> -->
<!-- force 4 space indents -->
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="PEAR.WhiteSpace.ObjectOperatorIndent"/>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="ignoreIndentationTokens" type="array" value="T_COMMENT,T_DOC_COMMENT_OPEN_TAG,T_OBJECT_OPERATOR"/>
<property name="exact" value="true"/>
</properties>
</rule>
<rule ref="PSR2.Methods.FunctionCallSignature.Indent">
<properties>
<property name="indent" value="4"/>
<property name="exact" value="true"/>
</properties>
</rule>
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<rule ref="Squiz.WhiteSpace.CastSpacing"/>
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing"/>
<rule ref="Squiz.WhiteSpace.FunctionClosingBraceSpace"/>
<rule ref="Squiz.WhiteSpace.FunctionOpeningBraceSpace"/>
<rule ref="Squiz.WhiteSpace.FunctionSpacing"/>
<rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/>
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
<rule ref="Squiz.WhiteSpace.MemberVarSpacing"/>
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
<rule ref="Squiz.WhiteSpace.PropertyLabelSpacing"/>
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace"/>
<rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing"/>
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<rule ref="Squiz.Strings.ConcatenationSpacing"/>
<rule ref="Internal.NoCodeFound">
<severity>0</severity>
</rule>
<exclude-pattern>*/vendor/**</exclude-pattern>
<exclude-pattern>*/neon/**</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*/functions/neon.inc</exclude-pattern>
<exclude-pattern>*/functions/externals/*neon*</exclude-pattern>
<exclude-pattern>*/test/*neon*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<file>./</file>
</ruleset>