-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
55 lines (55 loc) · 2 KB
/
phpcs.xml
File metadata and controls
55 lines (55 loc) · 2 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
49
50
51
52
53
54
55
<?xml version="1.0"?>
<ruleset name="Coding Rule">
<description>Coding Rule</description>
<!-- display progress -->
<arg value="p"/>
<!-- use colors in output -->
<arg name="colors"/>
<!-- inherit rules from: -->
<rule ref="PSR12">
<!-- ※CakePHPを利用する場合は以下の除外設定を有効化すること -->
<!--
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
<exclude name="PSR12.Files.FileHeader.SpacingAfterBlock"/>
<exclude name="PSR12.Files.FileHeader.IncorrectOrder"/>
-->
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Files.LineLength">
<properties>
<!--
lineLimit:1 行の文字数が超過するとWARNINGが発生
absoluteLineLimit:1 行の文字数が超過するとERROR が発生
-->
<property name="lineLimit" value="160"/>
<property name="absoluteLineLimit" value="200"/>
<property name="ignoreComments" value="true" />
</properties>
<!-- ※CakePHPを利用する場合は以下の除外設定を有効化すること -->
<!--
<exclude-pattern>*/templates/*</exclude-pattern>
-->
</rule>
<!-- ※CakePHPを利用する場合は以下の除外設定を有効化する -->
<!--
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>*/config/Migrations/*</exclude-pattern>
<exclude-pattern>*/config/Seeds/*</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>*/config/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName">
<exclude-pattern>*/src/Controller/*</exclude-pattern>
<exclude-pattern>*/src/Command/*</exclude-pattern>
<exclude-pattern>*/src/Shell/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
-->
<!-- Paths to check -->
<file>config</file>
<file>src</file>
<file>tests</file>
</ruleset>