-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathruleset.xml
19 lines (19 loc) · 1 KB
/
ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0"?>
<ruleset name="drupal">
<description>A ruleset for Drupal coding standards.</description>
<!-- Include the whole Drupal standard -->
<rule ref="node_modules/project-gulp/vendor/drupal/coder/coder_sniffer">
<!-- Exclude the variable naming conventions sniff so we can use camel case if we want to. -->
<exclude name="Drupal.NamingConventions.ValidVariableName"/>
<!-- Exclude class and method naming conventions so we can use contrib module conventions. -->
<exclude name="Drupal.NamingConventions.ValidClassName"/>
<exclude name="Drupal.NamingConventions.ValidFunctionName.ScopeNotLowerCamel"/>
</rule>
<rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis">
<properties>
<property name="allowUnusedFunctionParameters" value="true" />
<property name="allowUnusedCaughtExceptions" value="true" />
</properties>
</rule>
<exclude-pattern type="relative">./drush/**/*</exclude-pattern>
</ruleset>