forked from drupal/recommended-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
68 lines (58 loc) · 2.31 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0"?>
<ruleset name="blt">
<description>Drupal PHP_CodeSniffer standards.</description>
<!-- By default, warnings and errors cause an exception. -->
<config name="ignore_warnings_on_exit" value="0"/>
<config name="ignore_errors_on_exit" value="0"/>
<!-- Set ignore extensions. -->
<!-- @see https://www.drupal.org/node/2867601#comment-12075633 -->
<arg name="ignore" value="*.css,*.md,*.txt,*.png,*.gif,*.jpeg,*.jpg,*.svg"/>
<exclude-pattern>*/_twig-components/*</exclude-pattern>
<!-- Use colors in output. -->
<arg name="colors"/>
<!-- Show progress. -->
<arg value="p"/>
<!-- Include existing standards. -->
<rule ref="Drupal"/>
<rule ref="DrupalPractice">
<!-- Ignore specific sniffs. -->
<!--
<exclude name="DrupalPractice.InfoFiles.NamespacedDependency"/>
-->
<exclude name="DrupalPractice.InfoFiles.CoreVersionRequirement"/>
</rule>
<rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar">
<severity>0</severity>
</rule>
<!-- Control structures -->
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen"/>
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose"/>
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpaceBeforeCloseBrace">
<severity>0</severity>
</rule>
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing.LineAfterClose">
<severity>0</severity>
</rule>
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing.NoLineAfterClose">
<severity>0</severity>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/>
<file>web/modules/custom</file>
<file>web/themes/custom</file>
<file>tests</file>
<exclude-pattern>*/behat</exclude-pattern>
<exclude-pattern>*/node_modules</exclude-pattern>
<exclude-pattern>*/vendor</exclude-pattern>
<exclude-pattern>*/pattern-lab</exclude-pattern>
<!-- see https://www.drupal.org/project/coder/issues/3309040 -->
<rule ref="Generic.PHP.UpperCaseConstant">
<exclude-pattern>*.js</exclude-pattern>
</rule>
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction">
<exclude-pattern>*.js</exclude-pattern>
</rule>
<rule ref="Generic.PHP.LowerCaseConstant">
<include-pattern>*.js</include-pattern>
</rule>
</ruleset>