Repository navigation
Expand file tree
/
Copy pathphpcs.xml
More file actions
50 lines (44 loc) · 1.61 KB
/
Copy pathphpcs.xml
File metadata and controls
50 lines (44 loc) · 1.61 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
47
48
49
50
<?xml version="1.0"?>
<ruleset name="EcomDev">
<description>The coding standard for EcomDev packages.</description>
<file>src</file>
<file>tests</file>
<exclude-pattern>tests/fixtures.php</exclude-pattern>
<arg value="np"/>
<arg name="colors"/>
<!-- Include some additional sniffs from the Generic standard -->
<rule ref="Generic.Commenting.DocComment"/>
<!-- Use Unix newlines -->
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\n"/>
</properties>
</rule>
<rule ref="PSR1"/>
<rule ref="PSR2"/>
<rule ref="PSR12"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="120"/>
</properties>
</rule>
<rule ref="Generic.Arrays.ArrayIndent" />
<rule ref="Generic.Formatting.MultipleStatementAlignment" />
<rule ref="Generic.Metrics.NestingLevel" />
<rule ref="Generic.Strings.UnnecessaryStringConcat" >
<properties>
<property name="allowMultiline" value="true"/>
</properties>
</rule>
<rule ref="Generic.WhiteSpace.ArbitraryParenthesesSpacing">
<properties>
<property name="ignoreNewlines" value="true" />
</properties>
</rule>
<rule ref="PEAR.ControlStructures.MultiLineCondition" />
<rule ref="PEAR.Functions.FunctionCallSignature" />
<rule ref="PEAR.Functions.FunctionDeclaration" />
<rule ref="PEAR.WhiteSpace.ObjectOperatorIndent" />
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace" />
</ruleset>