-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
48 lines (40 loc) · 1.66 KB
/
phpcs.xml.dist
File metadata and controls
48 lines (40 loc) · 1.66 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Yii2">
<rule ref="vendor/yiisoft/yii2-coding-standards/Yii2"></rule>
<!-- TODO: fix errors -->
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<!-- TODO: fix errors -->
<rule ref="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
<exclude-pattern>tests/framework/web/UserTest.php</exclude-pattern>
</rule>
<rule ref="Internal.NoCodeFound">
<exclude-pattern>tests/data/views/simple.php</exclude-pattern>
</rule>
<!-- display progress -->
<arg value="p"/>
<!-- Show error codes -->
<arg value="s"/>
<arg name="colors"/>
<!-- generate relative paths -->
<arg name="basepath" value="."/>
<!-- directories to check -->
<file>build</file>
<file>framework</file>
<file>tests</file>
<!-- exclude directories -->
<exclude-pattern>framework/caching/migrations/*</exclude-pattern>
<exclude-pattern>framework/i18n/migrations/*</exclude-pattern>
<exclude-pattern>framework/log/migrations/*</exclude-pattern>
<exclude-pattern>framework/rbac/migrations/*</exclude-pattern>
<exclude-pattern>framework/views/*</exclude-pattern>
<exclude-pattern>framework/web/migrations/*</exclude-pattern>
<exclude-pattern>tests/data/views/*</exclude-pattern>
<exclude-pattern>tests/runtime/*</exclude-pattern>
<exclude-pattern>tests/js/*</exclude-pattern>
</ruleset>