From 554804518e7720f0aba10664694c91f4f5ece573 Mon Sep 17 00:00:00 2001 From: Mark Casias Date: Mon, 16 Dec 2024 11:02:35 -0700 Subject: [PATCH 1/2] Exclude include fixer from twigcsfixer --- drainpipe-dev/scaffold/.twig-cs-fixer.dist.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drainpipe-dev/scaffold/.twig-cs-fixer.dist.php b/drainpipe-dev/scaffold/.twig-cs-fixer.dist.php index b76f4ab53..7806bc21c 100644 --- a/drainpipe-dev/scaffold/.twig-cs-fixer.dist.php +++ b/drainpipe-dev/scaffold/.twig-cs-fixer.dist.php @@ -32,6 +32,9 @@ // default standard. $ruleset->addStandard(new TwigCsFixer\Standard\TwigCsFixer()); +// Remove the IncludeFunctionRule which breaks TwigJS. +$ruleset->removeRule(TwigCsFixer\Rules\Function\includeFunctionRule::class); + $config = new TwigCsFixer\Config\Config(); $config->setRuleset($ruleset); $config->addTwigExtension(new TwigExtension($renderer, $urlGenerator, $themeManager, $dateFormatter, $fileUrlGenerator)); From b1e257c45e85c4c980c50e70cd47d214abceff8f Mon Sep 17 00:00:00 2001 From: Mark Casias Date: Thu, 9 Jan 2025 16:57:33 -0700 Subject: [PATCH 2/2] Correcting the case --- drainpipe-dev/scaffold/.twig-cs-fixer.dist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drainpipe-dev/scaffold/.twig-cs-fixer.dist.php b/drainpipe-dev/scaffold/.twig-cs-fixer.dist.php index 7806bc21c..2e8da7776 100644 --- a/drainpipe-dev/scaffold/.twig-cs-fixer.dist.php +++ b/drainpipe-dev/scaffold/.twig-cs-fixer.dist.php @@ -33,7 +33,7 @@ $ruleset->addStandard(new TwigCsFixer\Standard\TwigCsFixer()); // Remove the IncludeFunctionRule which breaks TwigJS. -$ruleset->removeRule(TwigCsFixer\Rules\Function\includeFunctionRule::class); +$ruleset->removeRule(TwigCsFixer\Rules\Function\IncludeFunctionRule::class); $config = new TwigCsFixer\Config\Config(); $config->setRuleset($ruleset);