-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
25 lines (22 loc) · 993 Bytes
/
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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="drupal_core">
<description>Default PHP CodeSniffer configuration for Drupal core.</description>
<file>.</file>
<arg name="extensions" value="inc,info,install,module,php,profile,test,theme,js"/>
<!--Exclude third party code.-->
<exclude-pattern>./vendor/*</exclude-pattern>
<exclude-pattern>*.md</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>assets/*</exclude-pattern>
<exclude-pattern>gulpfile.js</exclude-pattern>
<rule ref="Drupal">
<exclude name="Drupal.Commenting.VariableComment.IncorrectVarType" />
<exclude name="Drupal.Commenting.FunctionComment.ParamTypeSpaces" />
<exclude name="Drupal.Commenting.FunctionComment.InvalidReturn" />
<exclude name="Drupal.Commenting.FunctionComment.ReturnTypeSpaces" />
</rule>
<rule ref="DrupalPractice">
</rule>
</ruleset>