mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-22 18:27:31 +00:00
fix(phpcs): duplicate Drupal rule
This commit is contained in:
parent
c6fe47aff2
commit
a947001772
|
@ -2,37 +2,39 @@
|
|||
<!-- {{ managedText | raw }} -->
|
||||
|
||||
<ruleset name="{{ name }} coding standards">
|
||||
<description>PHPCS configuration file for {{ name }}.</description>
|
||||
<description>PHPCS configuration file for {{ name }}.</description>
|
||||
|
||||
{% for path in php.phpcs.paths|default('[]') %}
|
||||
<file>{{ path }}</file>
|
||||
{% endfor %}
|
||||
{% for path in php.phpcs.paths|default('[]') %}
|
||||
<file>{{ path }}</file>
|
||||
{% endfor %}
|
||||
|
||||
<arg value="np"/>
|
||||
<arg value="np"/>
|
||||
|
||||
{% for standard in php.phpcs.standards|default(['Drupal', 'DrupalPractice']) %}
|
||||
<rule ref="{{ standard }}"/>
|
||||
{% endfor %}
|
||||
{% for standard in php.phpcs.standards|default(['Drupal', 'DrupalPractice']) %}
|
||||
{% if not standard is same as "Drupal" %}
|
||||
<rule ref="{{ standard }}"/>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if type is same as "drupal-project" and "Drupal" in php.phpcs.standards %}
|
||||
<rule ref="Drupal">
|
||||
<exclude name="Drupal.Commenting.ClassComment.Missing"/>
|
||||
<exclude name="Drupal.Commenting.DataTypeNamespace.DataTypeNamespace"/>
|
||||
<exclude name="Drupal.Commenting.Deprecated"/>
|
||||
<exclude name="Drupal.Commenting.DocComment.ContentAfterOpen"/>
|
||||
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.IncorrectParamVarName"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.IncorrectTypeHint"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.InvalidReturn"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.Missing"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.MissingParamComment"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.MissingReturnComment"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.ParamTypeSpaces"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.TypeHintMissing"/>
|
||||
<exclude name="Drupal.Commenting.InlineComment.DocBlock"/>
|
||||
<exclude name="Drupal.Commenting.VariableComment.Missing"/>
|
||||
<exclude name="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
|
||||
<exclude name="DrupalPractice.Objects.StrictSchemaDisabled.StrictConfigSchema"/>
|
||||
</rule>
|
||||
{% endif %}
|
||||
{% if type is same as "drupal-project" and "Drupal" in php.phpcs.standards %}
|
||||
<rule ref="Drupal">
|
||||
<exclude name="Drupal.Commenting.ClassComment.Missing"/>
|
||||
<exclude name="Drupal.Commenting.DataTypeNamespace.DataTypeNamespace"/>
|
||||
<exclude name="Drupal.Commenting.Deprecated"/>
|
||||
<exclude name="Drupal.Commenting.DocComment.ContentAfterOpen"/>
|
||||
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.IncorrectParamVarName"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.IncorrectTypeHint"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.InvalidReturn"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.Missing"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.MissingParamComment"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.MissingReturnComment"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.ParamTypeSpaces"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.TypeHintMissing"/>
|
||||
<exclude name="Drupal.Commenting.InlineComment.DocBlock"/>
|
||||
<exclude name="Drupal.Commenting.VariableComment.Missing"/>
|
||||
<exclude name="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
|
||||
<exclude name="DrupalPractice.Objects.StrictSchemaDisabled.StrictConfigSchema"/>
|
||||
</rule>
|
||||
{% endif %}
|
||||
</ruleset>
|
||||
|
|
Loading…
Reference in a new issue