-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
54 lines (45 loc) · 2.11 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>
<!-- <description>PSR12 with some extra modifications</description>-->
<!-- <file>.</file>-->
<!-- <exclude-pattern>./vendor/*</exclude-pattern>-->
<!-- <exclude-pattern>./node_modules/*</exclude-pattern>-->
<!-- <exclude-pattern>*/temp/*</exclude-pattern>-->
<!-- <exclude-pattern>*/log/*</exclude-pattern>-->
<!-- <arg name="colors"/>-->
<!-- <arg name="extensions" value="php"/>-->
<!-- <arg name="tab-width" value="4" />-->
<config name="installed_paths" value="vendor/slevomat/coding-standard"/>
<file>.</file>
<exclude-pattern>./vendor/*</exclude-pattern>
<rule ref="PSR12">
<exclude name="PSR12.Files.OpenTag.NotAlone"/>
<exclude name="PSR12.Files.FileHeader.SpacingAfterBlock"/>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="declareOnFirstLine" value="true"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
</properties>
</rule>
<!-- <rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">-->
<!-- <properties>-->
<!--<!– <property name="newlinesCountBetweenOpenTagAndDeclare" value="-1"/>–>-->
<!--<!– <property name="newlinesCountAfterDeclare" value="2"/>–>-->
<!-- <property name="spacesCountAroundEqualsSign" value="0"/>-->
<!-- </properties>-->
<!-- </rule>-->
<!-- Slevomat - too risky rules for now
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="declareOnFirstLine" value="true"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Functions.StrictCall" />
<rule ref="SlevomatCodingStandard.Functions.UnusedParameter" />
<rule ref="SlevomatCodingStandard.Variables.UselessVariable" />
<rule ref="SlevomatCodingStandard.Arrays.AlphabeticallySortedByKeys" />
<rule ref="SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed" />
-->
</ruleset>