-
Notifications
You must be signed in to change notification settings - Fork 258
/
phpcs.xml
37 lines (33 loc) · 1.67 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
<?xml version="1.0"?>
<ruleset name="commerce">
<description>Default PHP CodeSniffer configuration for Commerce.</description>
<file>.</file>
<arg name="extensions" value="php,module,inc,install,test,profile,theme"/>
<config name="drupal_core_version" value="8"/>
<exclude-pattern>*/.git/*</exclude-pattern>
<exclude-pattern>*/config/*</exclude-pattern>
<exclude-pattern>*/css/*</exclude-pattern>
<exclude-pattern>*/js/*</exclude-pattern>
<exclude-pattern>*/icons/*</exclude-pattern>
<exclude-pattern>README.md</exclude-pattern>
<rule ref="Drupal">
<!-- Commerce is not yet compliant with the new deprecation format. -->
<exclude name="Drupal.Commenting.Deprecated"/>
<exclude name="Drupal.Semantics.FunctionTriggerError"/>
<!-- The following rules are intentionally disabled. -->
<exclude name="Drupal.Commenting.ClassComment.Missing"/>
<exclude name="Drupal.Files.LineLength.TooLong"/>
<exclude name="Drupal.Arrays.Array.LongLineDeclaration"/>
<exclude name="Drupal.Semantics.FunctionT.NotLiteralString"/>
<!-- Complains about example code. -->
<exclude name="Generic.CodeAnalysis.UselessOverridingMethod.Found"/>
<!-- Complains about tests which don't need short descriptions. -->
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
<exclude name="Drupal.Commenting.DocComment.ShortNotCapital"/>
<exclude name="Drupal.Commenting.DocComment.ShortSingleLine"/>
<!-- Complains about constraint plugins. -->
<exclude name="Drupal.Commenting.VariableComment"/>
<!-- Complains about config entity types. -->
<exclude name="Drupal.NamingConventions.ValidVariableName.LowerCamelName"/>
</rule>
</ruleset>