Refactor to exclude rules rather than change severity
This commit is contained in:
parent
4e427340df
commit
0ec295d01e
|
@ -10,48 +10,19 @@
|
||||||
<exclude-pattern>./web/sites/*</exclude-pattern>
|
<exclude-pattern>./web/sites/*</exclude-pattern>
|
||||||
<exclude-pattern>./web/themes/custom/*\.(?!theme$)</exclude-pattern>
|
<exclude-pattern>./web/themes/custom/*\.(?!theme$)</exclude-pattern>
|
||||||
|
|
||||||
<arg name="colors" />
|
<arg name="colors"/>
|
||||||
<arg value="np"/>
|
<arg value="np"/>
|
||||||
|
|
||||||
<!-- Use Drupal rules -->
|
<rule ref="Drupal">
|
||||||
<rule ref="Drupal"/>
|
<exclude name="Drupal.Commenting.ClassComment.Missing"/>
|
||||||
<rule ref="DrupalPractice"/>
|
<exclude name="Drupal.Commenting.DataTypeNamespace.DataTypeNamespace"/>
|
||||||
|
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
|
||||||
<rule ref="Drupal.Commenting.ClassComment.Missing">
|
<exclude name="Drupal.Commenting.FunctionComment.Missing"/>
|
||||||
<severity>0</severity>
|
<exclude name="Drupal.Commenting.FunctionComment.MissingReturnComment"/>
|
||||||
</rule>
|
<exclude name="Drupal.Commenting.VariableComment.Missing"/>
|
||||||
<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>
|
||||||
|
|
||||||
<!-- -->
|
<rule ref="DrupalPractice">
|
||||||
<rule ref="Drupal.Commenting.DocComment.ContentAfterOpen">
|
<exclude name="DrupalPractice.Objects.StrictSchemaDisabled.StrictConfigSchema"/>
|
||||||
<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>
|
</rule>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
Loading…
Reference in a new issue