-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
phpcs.xml
41 lines (33 loc) · 1.33 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
<?xml version="1.0"?>
<ruleset name="custom">
<description>Custom PHPCS standard.</description>
<!-- Coding standard. -->
<rule ref="Drupal"/>
<rule ref="Generic.PHP.RequireStrictTypes" />
<rule ref="PHPCompatibility"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Show progress of the run. -->
<arg value="p"/>
<arg name="colors"/>
<arg name="parallel" value="75"/>
<!-- Lint code against min PHP version specified in composer.json. -->
<config name="testVersion" value="8.2"/>
<file>../src</file>
<file>../tests/behat/bootstrap</file>
<!-- Exclude circleci config files. -->
<exclude-pattern>../circle\.yml</exclude-pattern>
<exclude-pattern>../\.circle\/config\.yml</exclude-pattern>
<!-- Allow long array lines in tests. -->
<rule ref="Drupal.Arrays.Array.LongLineDeclaration">
<exclude-pattern>*.Test\.php</exclude-pattern>
<exclude-pattern>*.TestCase\.php</exclude-pattern>
<exclude-pattern>*.test</exclude-pattern>
</rule>
<!-- Allow missing function names in tests. -->
<rule ref="Drupal.Commenting.FunctionComment.Missing">
<exclude-pattern>*.Test\.php</exclude-pattern>
<exclude-pattern>*.TestCase\.php</exclude-pattern>
<exclude-pattern>*.test</exclude-pattern>
</rule>
</ruleset>