-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
37 lines (32 loc) · 1.2 KB
/
phpcs.xml.dist
File metadata and controls
37 lines (32 loc) · 1.2 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
<?xml version="1.0"?>
<ruleset>
<!-- only check PHP files in the src/ and /tests folders -->
<file>src</file>
<file>tests</file>
<arg name="extensions" value="php" />
<arg name="colors" />
<!-- There should not be any code in the bundle Resources directory. -->
<exclude-pattern>*/Resources/*</exclude-pattern>
<!-- Include the whole PSR-2 standard -->
<rule ref="PSR2" />
<!-- This is standard PSR-2 - but always good to have it clearly specified -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120" />
</properties>
</rule>
<!-- Ensure no superfluous whitespace/ newlines -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<!-- doesn't matter if there are random whitespaces on empty lines -->
<property name="ignoreBlankLines" value="true" />
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines">
<severity>5</severity>
</rule>
<!-- Use [] for arrays not new array() -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found">
<type>warning</type>
</rule>
</ruleset>