Refactor to exclude rules rather than change severity
This commit is contained in:
parent
4e427340df
commit
0ec295d01e
|
@ -13,45 +13,16 @@
|
|||
<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 ref="Drupal">
|
||||
<exclude name="Drupal.Commenting.ClassComment.Missing"/>
|
||||
<exclude name="Drupal.Commenting.DataTypeNamespace.DataTypeNamespace"/>
|
||||
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.Missing"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.MissingReturnComment"/>
|
||||
<exclude name="Drupal.Commenting.VariableComment.Missing"/>
|
||||
</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 ref="DrupalPractice">
|
||||
<exclude name="DrupalPractice.Objects.StrictSchemaDisabled.StrictConfigSchema"/>
|
||||
</rule>
|
||||
</ruleset>
|
||||
|
|
Loading…
Reference in a new issue