From f91f786026148a0416ff363367a5fda505d4f532 Mon Sep 17 00:00:00 2001 From: kkmuffme <11071985+kkmuffme@users.noreply.github.com> Date: Wed, 27 Sep 2023 13:16:08 +0200 Subject: [PATCH 1/2] Disable VariableAnalysis for phpcbf to speed up by 20% Also removes default "ruleset", as there's only one rule which is specifically declared, therefore making the ruleset redundant and causing problems with custom rulesets, that only declare the rule (with phpcs-only="true"), but not the ruleset itself, causing this ruleset to load variable analysis unnecessarily --- WordPressVIPMinimum/ruleset.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/WordPressVIPMinimum/ruleset.xml b/WordPressVIPMinimum/ruleset.xml index 13670326..e9a56f5a 100644 --- a/WordPressVIPMinimum/ruleset.xml +++ b/WordPressVIPMinimum/ruleset.xml @@ -178,9 +178,8 @@ `%1$s()` performs a no-LIMIT query by default, make sure to set a reasonable `posts_per_page`. `%1$s()` will do a -1 query by default, a maximum of 100 should be used. - - - + + From 8d95df98a96a6f6ce00db846225b7d92a8aee0de Mon Sep 17 00:00:00 2001 From: kkmuffme <11071985+kkmuffme@users.noreply.github.com> Date: Sat, 30 Sep 2023 10:39:28 +0200 Subject: [PATCH 2/2] adjust VIP Go too --- WordPress-VIP-Go/ruleset.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WordPress-VIP-Go/ruleset.xml b/WordPress-VIP-Go/ruleset.xml index 190bebc8..fd0e4d50 100644 --- a/WordPress-VIP-Go/ruleset.xml +++ b/WordPress-VIP-Go/ruleset.xml @@ -218,7 +218,7 @@ warning 3 - + 3 @@ -238,7 +238,7 @@ - + 0