-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
45 lines (37 loc) · 1.82 KB
/
phpcs.xml.dist
File metadata and controls
45 lines (37 loc) · 1.82 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="typed_data">
<description>Default PHP CodeSniffer configuration for Typed Data</description>
<file>.</file>
<arg name="extensions" value="inc,install,module,php,profile,txt,yml"/>
<!-- Use 's' to print the full sniff name in the report. -->
<arg value="s"/>
<arg value="-colors"/>
<!-- Ignore all files that match these patterns. By default the full file -->
<!-- path is checked, unless type=relative is used. There is an implied * -->
<!-- wildcard at each end and periods and slashes must be escaped using \ -->
<exclude-pattern>vendor</exclude-pattern>
<exclude-pattern>\/_+ignore</exclude-pattern>
<exclude-pattern>interdif</exclude-pattern>
<!-- Include all Drupal and DrupalPractice sniffs by default, then adjust. -->
<rule ref="Drupal"/>
<rule ref="DrupalPractice"/>
<!-- Ignore specific sniffs in all files. The following are either not
relevant for Typed Data or we have decided not to adhere to them. -->
<!-- Do not force the use of Null Coalesce Operator ?? -->
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed"><severity>0</severity></rule>
<!-- Do not force the use of short list syntax [a,b] -->
<rule ref="SlevomatCodingStandard.PHP.ShortList.LongListUsed"><severity>0</severity></rule>
<rule ref="DrupalPractice">
<!-- Allow empty lines after comments, we don't care. -->
<exclude name="DrupalPractice.Commenting.CommentEmptyLine"/>
</rule>
<rule ref="Drupal.Files.TxtFileLineLength.TooLong">
<exclude-pattern>README.*</exclude-pattern>
</rule>
<!-- Increase the allowed line length for inline array declarations. -->
<rule ref="Drupal.Arrays.Array">
<properties>
<property name="lineLimit" value="160"/>
</properties>
</rule>
</ruleset>