fix(phpcs): Drupal standard missing if standards

...are empty
This commit is contained in:
Oliver Davies 2023-04-23 20:47:08 +01:00
parent e715496e76
commit 4af661bad4

View file

@ -16,7 +16,7 @@
{% endif %}
{% endfor %}
{% if type is same as "drupal-project" and "Drupal" in php.phpcs.standards %}
{% if type is same as "drupal-project" and "Drupal" in php.phpcs.standards or php.phpcs.standards is empty %}
<rule ref="Drupal">
<exclude name="Drupal.Commenting.ClassComment.Missing"/>
<exclude name="Drupal.Commenting.DataTypeNamespace.DataTypeNamespace"/>