-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpcs.xml
50 lines (44 loc) · 1.72 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
<?xml version="1.0"?>
<ruleset name="custom">
<description>Custom PHPCS standard.</description>
<!-- Coding standard. -->
<rule ref="Symfony">
<exclude name="Symfony.Commenting.FunctionComment.SpacingAfterParamType" />
</rule>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Show progress of the run. -->
<arg value="p"/>
<arg name="colors"/>
<!--
PHP_CodeSniffer does not support scanning of files without extensions, so
we have to use the ugly workaround to copy the file into a file with a 'php'
extension, scan that file, and then delete it.
@see https://github.com/squizlabs/PHP_CodeSniffer/issues/2916
-->
<file>src</file>
<file>RoboFile.php</file>
<file>tests</file>
<rule ref="Symfony.Commenting.License.Warning">
<exclude-pattern>*.*</exclude-pattern>
</rule>
<rule ref="Symfony.Functions.Arguments.Invalid">
<exclude-pattern>*.*</exclude-pattern>
</rule>
<rule ref="Symfony.ControlStructure.YodaConditions.Invalid">
<exclude-pattern>*.*</exclude-pattern>
</rule>
<rule ref="PSR1">
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
</rule>
<!--Allow uncommented functions in tests as they usually provide enough
information from their names.-->
<rule ref="Symfony.Commenting.FunctionComment.Missing">
<exclude-pattern>tests/*.Test\.php</exclude-pattern>
<exclude-pattern>tests/*.TestCase\.php</exclude-pattern>
</rule>
<rule ref="Symfony.Commenting.FunctionComment.MissingParamTag">
<exclude-pattern>tests/*.Test\.php</exclude-pattern>
<exclude-pattern>tests/*.TestCase\.php</exclude-pattern>
</rule>
</ruleset>