Refactor to exclude rules rather than change severity

This commit is contained in:
Oliver Davies 2020-12-17 22:53:24 +00:00
parent 4e427340df
commit 0ec295d01e

View file

@ -13,45 +13,16 @@
<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>