-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
36 lines (28 loc) · 1.14 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="gsouf">
<file>./src/</file>
<file>./test/suites</file>
<!--The complete PSR-2 ruleset-->
<rule ref="PSR2"/>
<!-- Arrays -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
<!-- Long lines do no apply on test files -->
<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>./test/*</exclude-pattern>
</rule>
<!-- When test method have weird signatures -->
<rule ref="PEAR.Functions.ValidDefaultValue.NotAtEnd">
<exclude-pattern>./test/*</exclude-pattern>
</rule>
<!-- By default we use single quote only. Double quotes come when a variable is inside -->
<rule ref="Squiz.Strings.DoubleQuoteUsage">
<exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar"/>
</rule>
<!-- Disallow some function like var_dump -->
<rule ref="Squiz.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" value="var_dump=>null,sizeof=>count,delete=>unset,print=>echo"/>
</properties>
</rule>
</ruleset>