-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
56 lines (56 loc) · 2.29 KB
/
phpcs.xml
File metadata and controls
56 lines (56 loc) · 2.29 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
56
<?xml version="1.0"?>
<ruleset name="PROJECT">
<description>PROJECT</description>
<arg name="colors"/>
<arg name="extensions" value="php,module,inc,install,theme,profile,scss,js,yml"/>
<file>*/modules/custom</file>
<file>*/themes/custom</file>
<!-- Exclude vendors. -->
<exclude-pattern>*/core</exclude-pattern>
<exclude-pattern>*/modules/contrib</exclude-pattern>
<exclude-pattern>*/node_modules</exclude-pattern>
<!-- Exclude fixtures. -->
<exclude-pattern>*/fixtures/*</exclude-pattern>
<exclude-pattern>*\.(css)</exclude-pattern>
<rule ref="vendor/drupal/coder/coder_sniffer/Drupal">
<!-- Exclude in favor of native typehints. -->
<exclude name="Drupal.Commenting.VariableComment.MissingVar"/>
</rule>
<rule ref="vendor/drupal/coder/coder_sniffer/DrupalPractice"/>
<rule ref="SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing">
<properties>
<property name="linesCountBefore" value="1"/>
<property name="linesCountBeforeFirst" value="0"/>
<property name="linesCountAfter" value="1"/>
<property name="linesCountAfterLast" value="0"/>
<property name="controlStructures" type="array">
<element value="switch"/>
<element value="try"/>
<element value="if"/>
<element value="for"/>
<element value="foreach"/>
<element value="while"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing">
<properties>
<property name="linesCountBefore" value="1"/>
<property name="linesCountBeforeFirst" value="0"/>
<property name="linesCountAfter" value="1"/>
<property name="linesCountAfterLast" value="0"/>
<property name="linesCountAfterWhenLastInCaseOrDefault" value="0"/>
<property name="linesCountAfterWhenLastInLastCaseOrDefault" value="0"/>
<property name="jumpStatements" type="array">
<element value="goto"/>
<element value="throw"/>
<element value="yield"/>
<element value="continue"/>
<element value="return"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/>
</rule>
</ruleset>