From e67a7180a75bdaf58d162edc9b25cd4443f110a3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 23 Apr 2023 17:37:27 +0100 Subject: [PATCH] feat(phpcs): add rule overrides --- templates/php/phpcs.xml.twig | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/templates/php/phpcs.xml.twig b/templates/php/phpcs.xml.twig index 185bb76..e79e175 100644 --- a/templates/php/phpcs.xml.twig +++ b/templates/php/phpcs.xml.twig @@ -3,9 +3,36 @@ PHPCS configuration file for {{ name }}. - src + + {% for path in php.phpcs.paths|default('[]') %} + {{ path }} + {% endfor %} + + {% for standard in php.phpcs.standards|default(['Drupal', 'DrupalPractice']) %} {% endfor %} + + {% if type is same as "drupal-project" and "Drupal" in php.phpcs.standards %} + + + + + + + + + + + + + + + + + + + + {% endif %}