-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
55 lines (50 loc) · 1.7 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
55
<?xml version="1.0"?>
<ruleset name="Coding Standard">
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg value="sp"/>
<arg name="extensions" value="php"/>
<!-- ignore warnings and display ERRORS only -->
<arg value="np"/>
<config name="ignore_warnings_on_exit" value="1"/>
<config name="php_version" value="80000"/>
<file>./assets</file>
<file>./commands</file>
<file>./components</file>
<file>./config</file>
<file>./controllers</file>
<file>./entities</file>
<file>./filters</file>
<file>./helpers</file>
<file>./mail</file>
<file>./messages</file>
<!-- <file>./migrations</file> -->
<file>./models</file>
<file>./modules</file>
<file>./traits</file>
<file>./views</file>
<file>./web/index.php</file>
<file>./web/index-test.php</file>
<file>./widgets</file>
<exclude-pattern>commands/WebsiteController.php</exclude-pattern>
<exclude-pattern>components/Fingerboard.php</exclude-pattern>
<exclude-pattern>components/Template.php</exclude-pattern>
<rule ref="PSR12"/>
<rule ref="Squiz.ControlStructures.ControlSignature">
<properties>
<property name="requiredSpacesBeforeColon" value="0" />
</properties>
</rule>
<rule ref="Generic.Metrics.CyclomaticComplexity">
<properties>
<property name="complexity" value="10" />
<property name="absoluteComplexity" value="50"/>
</properties>
</rule>
<rule ref="Generic.Metrics.NestingLevel">
<properties>
<property name="nestingLevel" value="2"/>
<property name="absoluteNestingLevel" value="4"/>
</properties>
</rule>
</ruleset>