-
Notifications
You must be signed in to change notification settings - Fork 24
/
phpcs.xml
54 lines (48 loc) · 1.96 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
<?xml version="1.0"?>
<ruleset name="Stfalcon Codding Standard"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<arg name="basepath" value="."/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="extensions" value="php"/>
<arg name="encoding" value="utf-8"/>
<arg name="colors"/>
<arg name="parallel" value="4"/>
<arg value="p"/>
<arg value="s"/>
<file>./src/</file>
<file>./tests/</file>
<exclude-pattern>/Migrations/</exclude-pattern>
<!-- By default inherit all Symfony code style rules, -->
<rule ref="./vendor/escapestudios/symfony2-coding-standard/Symfony">
<!-- except required license block in the top of each file, because it is not necessary for commercial projects -->
<exclude name="Symfony.Commenting.License" />
<!-- also allow to add number to the variable names, e.g. $base64 -->
<exclude name="Zend.NamingConventions.ValidVariableName.MemberVarContainsNumbers" />
</rule>
<!-- Ignore required comments in docblocks for test files -->
<rule ref="Symfony.Commenting.ClassComment">
<exclude-pattern>./tests/</exclude-pattern>
</rule>
<rule ref="Symfony.Commenting.FunctionComment">
<exclude-pattern>./tests/</exclude-pattern>
</rule>
<rule ref="Symfony.Functions.ReturnType.Invalid">
<exclude-pattern>./tests/</exclude-pattern>
</rule>
<!-- Don't hide tokenizer exceptions -->
<rule ref="Internal.Tokenizer.Exception">
<type>error</type>
</rule>
<!-- Don't allow to use underscore for methods and properties, throw it as code style error -->
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<type>error</type>
</rule>
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<type>error</type>
</rule>
<rule ref="Generic">
<exclude name="Generic"/>
</rule>
</ruleset>