-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathphpcs.xml
63 lines (54 loc) · 2.52 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
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="UTF-8" ?>
<ruleset name="Customized-PSR2">
<description>A custom coding standard</description>
<ini name="memory_limit" value="-1"/>
<arg name="extensions" value="php"/>
<arg value="p"/><!-- progress -->
<arg value="s"/><!-- show sniff -->
<file>.</file>
<exclude-pattern>./bin/</exclude-pattern>
<exclude-pattern>./data/</exclude-pattern>
<exclude-pattern>./doc/</exclude-pattern>
<exclude-pattern>./docker/</exclude-pattern>
<exclude-pattern>./messages/*.php</exclude-pattern>
<exclude-pattern>./node_modules/</exclude-pattern>
<exclude-pattern>./resources/</exclude-pattern>
<exclude-pattern>./runtime/</exclude-pattern>
<exclude-pattern>./salmon*.php</exclude-pattern>
<exclude-pattern>./test*.php</exclude-pattern>
<exclude-pattern>./tests/_support/</exclude-pattern>
<exclude-pattern>./vendor/</exclude-pattern>
<exclude-pattern>./views/</exclude-pattern>
<!-- todo -->
<exclude-pattern>*/schedule/</exclude-pattern>
<rule ref="JP3CKI">
<exclude name="SlevomatCodingStandard.Operators.DisallowEqualOperators"/><!-- "==" -> "==="; this project has legacy code... -->
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint"/>
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint"/>
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint"/>
<exclude name="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable"/><!-- $_SERVER ないのはつらい -->
<exclude name="Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps"/>
<exclude name="Universal.Operators.StrictComparisons.LooseEqual"/><!-- "==" -> "==="; this project has legacy code... -->
<exclude name="Universal.Operators.StrictComparisons.LooseNotEqual"/><!-- "!=" -> "!==" -->
<!-- TODO -->
<exclude name="Squiz.NamingConventions.ValidVariableName"/><!-- like $screen_name -->
</rule>
<rule ref="JP3CKI">
<file>*/components/ability/effect/*</file>
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
</rule>
<rule ref="JP3CKI">
<file>*/migrations/*</file>
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<exclude name="PSR1.Classes.ClassDeclaration"/>
</rule>
<rule ref="JP3CKI">
<file>*/messages/*</file>
<exclude name="Generic.Files.LineLength"/>
</rule>
<rule ref="JP3CKI">
<file>*/model/*</file>
<exclude name="SlevomatCodingStandard.TypeHints.LongTypeHints.UsedLongTypeHint"/>
</rule>
</ruleset>