58 lines
1.7 KiB
XML
58 lines
1.7 KiB
XML
<?xml version="1.0"?>
|
|
<ruleset name="Custom code">
|
|
<description>Drupal Coding Standards</description>
|
|
|
|
<file>./web/modules/custom</file>
|
|
<file>./web/themes/custom</file>
|
|
<arg name="extensions" value="inc,install,module,php,profile,test,theme,yml"/>
|
|
|
|
<!-- Exclude third party code.-->
|
|
<exclude-pattern>./web/sites/*</exclude-pattern>
|
|
<exclude-pattern>./web/themes/custom/*\.(?!theme$)</exclude-pattern>
|
|
|
|
<arg name="colors" />
|
|
<arg value="np"/>
|
|
|
|
<!-- Use Drupal rules -->
|
|
<rule ref="Drupal"/>
|
|
<rule ref="DrupalPractice"/>
|
|
|
|
<rule ref="Drupal.Commenting.ClassComment.Missing">
|
|
<severity>0</severity>
|
|
</rule>
|
|
<rule ref="Drupal.Commenting.ClassComment.Missing">
|
|
<severity>0</severity>
|
|
</rule>
|
|
<rule ref="Drupal.Commenting.FunctionComment.Missing">
|
|
<severity>0</severity>
|
|
</rule>
|
|
<rule ref="Drupal.Commenting.DocComment.MissingShort">
|
|
<severity>0</severity>
|
|
</rule>
|
|
<rule ref="Drupal.Commenting.FunctionComment.MissingParamComment">
|
|
<severity>0</severity>
|
|
</rule>
|
|
<rule ref="Drupal.Commenting.FunctionComment.MissingReturnComment">
|
|
<severity>0</severity>
|
|
</rule>
|
|
<rule ref="Drupal.Commenting.VariableComment.Missing">
|
|
<severity>0</severity>
|
|
</rule>
|
|
<rule ref="Drupal.Commenting.DataTypeNamespace.DataTypeNamespace">
|
|
<severity>0</severity>
|
|
</rule>
|
|
|
|
<!-- -->
|
|
<rule ref="Drupal.Commenting.DocComment.ContentAfterOpen">
|
|
<severity>1</severity>
|
|
</rule>
|
|
<rule ref="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps">
|
|
<severity>1</severity>
|
|
</rule>
|
|
|
|
<!-- Features module doesn't export config schema -->
|
|
<rule ref="DrupalPractice.Objects.StrictSchemaDisabled.StrictConfigSchema">
|
|
<severity>0</severity>
|
|
</rule>
|
|
</ruleset>
|