From a8d5dcb64ef96c792862aaeb8fdab92f73abd45d Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Tue, 18 Jul 2023 18:18:01 +0200 Subject: [PATCH 1/3] Ignore 'wp-content' during CS checks, which is created during composer install, when package is tested and not running within ft-platform --- .phpcs.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.phpcs.xml b/.phpcs.xml index 57e6aa7..e571c0d 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -9,6 +9,13 @@ */tests/* */vendor/* --> + + */wp-content/* + From 2a397785f44fcaf5d9abe6b306b8c3325d3eef66 Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Tue, 18 Jul 2023 18:18:25 +0200 Subject: [PATCH 2/3] Ignore Figuren_Theater\\get_config in phpstan --- phpstan.neon | 1 + 1 file changed, 1 insertion(+) diff --git a/phpstan.neon b/phpstan.neon index b80cbb6..64f0b46 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -17,3 +17,4 @@ parameters: ignoreErrors: # Find a nicer way instead of ignoring this Error on every ft-module - '#Function Altis\\register_module not found\.#' + - '#Function Figuren_Theater\\get_config not found\.#' From ff37df7672302eb07c108daf194a43164d9ffc2f Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Tue, 18 Jul 2023 18:20:20 +0200 Subject: [PATCH 3/3] Update formatting using spaces --- phpstan.neon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index 64f0b46..dc6c2f5 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -15,6 +15,6 @@ parameters: - wp-content/ - tests/ ignoreErrors: - # Find a nicer way instead of ignoring this Error on every ft-module + # Find a nicer way instead of ignoring this Error on every ft-module - '#Function Altis\\register_module not found\.#' - '#Function Figuren_Theater\\get_config not found\.#'