generated from rabiloo/skeleton-php-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
57 lines (46 loc) · 1.7 KB
/
phpcs.xml.dist
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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
name="vendor_name's PHP coding standard"
>
<description>This standard extends PSR-12</description>
<!-- display progress -->
<arg value="p"/>
<!-- use colors in output -->
<arg name="colors"/>
<!-- Paths to check -->
<file>src</file>
<file>tests</file>
<exclude-pattern>*/*.js</exclude-pattern>
<exclude-pattern>*/*.css</exclude-pattern>
<exclude-pattern>*/*.xml</exclude-pattern>
<exclude-pattern>*/*.blade.php</exclude-pattern>
<!-- Inherit rules from: PSR12-->
<rule ref="PSR12"/>
<!-- You SHOULD use short array syntax -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax">
<type>WARNING</type>
</rule>
<!-- You SHOULD fix all TODO and FIXME markers -->
<rule ref="Generic.Commenting.Fixme">
<type>WARNING</type>
</rule>
<rule ref="Generic.Commenting.Todo">
<type>WARNING</type>
</rule>
<!-- You MUST NOT use deprecated functions -->
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<!-- You SHOULD comment if method or function has exception -->
<rule ref="Squiz.Commenting.FunctionCommentThrowTag">
<type>WARNING</type>
</rule>
<!-- Exclude test classes, it can have not CamelCapsMethodName -->
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>tests/*Test.php</exclude-pattern>
</rule>
<!-- Exclude some PHP config files -->
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>config/*</exclude-pattern>
</rule>
</ruleset>