-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
47 lines (42 loc) · 1.6 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
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/3.4.1/phpcs.xsd"
name="FINDOLOGIC"
>
<file>src</file>
<file>tests</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>tests/TestBootstrap.php</exclude-pattern>
<exclude-pattern>*/Resources/app/*</exclude-pattern>
<exclude-pattern>*/Resources/snippet/*</exclude-pattern>
<exclude-pattern>*/Resources/public/administration/*</exclude-pattern>
<arg name="colors"/>
<arg value="p"/>
<arg name="report-full"/>
<!--
You can hard-code custom php.ini settings into your custom standard.
The following tag sets the memory limit to 128M.
-->
<ini name="memory_limit" value="128M"/>
<!--
Include all sniffs in the PSR2 standard. Note that the
path to the standard does not have to be specified as the
PSR2 standard exists inside the PHP_CodeSniffer install
directory.
-->
<rule ref="PSR2"/>
<rule ref="PSR12"/>
<rule ref="Generic.PHP.RequireStrictTypes" />
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="PSR12.Files.ImportStatement"/>
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="spacing" value="1" />
</properties>
</rule>
<rule ref="PSR2">
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/>
</rule>
</ruleset>