From 58cb9933a7c5378a74f83248e082ec4e532c3c37 Mon Sep 17 00:00:00 2001 From: Damien Louis Date: Sun, 10 Dec 2023 10:53:10 +0100 Subject: [PATCH] Move qa config files in subfolder --- Makefile | 12 ++++++------ .php-cs-fixer.dist.php => qa/.php-cs-fixer.dist.php | 4 ++-- .phpcs.xml => qa/.phpcs.xml | 0 phpcs.xml.dist => qa/phpcs.xml.dist | 0 phpinsights.php => qa/phpinsights.php | 0 phpstan.dist.neon => qa/phpstan.dist.neon | 0 6 files changed, 8 insertions(+), 8 deletions(-) rename .php-cs-fixer.dist.php => qa/.php-cs-fixer.dist.php (97%) rename .phpcs.xml => qa/.phpcs.xml (100%) rename phpcs.xml.dist => qa/phpcs.xml.dist (100%) rename phpinsights.php => qa/phpinsights.php (100%) rename phpstan.dist.neon => qa/phpstan.dist.neon (100%) diff --git a/Makefile b/Makefile index 0d5d9c8..f831bbe 100644 --- a/Makefile +++ b/Makefile @@ -120,27 +120,27 @@ lint-container: ## Lints containers .PHONY: phpcs phpcs: ## PHP_CodeSniffer (https://github.com/squizlabs/PHP_CodeSniffer) - $(APP) vendor/bin/phpcs -p -n --colors --standard=.phpcs.xml src + $(APP) vendor/bin/phpcs -p -n --colors --standard=./qa/.phpcs.xml src .PHONY: phpstan phpstan: ## Execute phpstan - $(APP) vendor/bin/phpstan --memory-limit=-1 analyse src + $(APP) vendor/bin/phpstan --memory-limit=-1 -c"./qa/phpstan.dist.neon" analyse src .PHONY: phpinsights phpinsights: ## PHP Insights (https://phpinsights.com) - $(APP) vendor/bin/phpinsights analyse --no-interaction + $(APP) vendor/bin/phpinsights analyse --config-path="./qa/phpinsights.php" --no-interaction .PHONY: phpinsights-fix phpinsights-fix: ## PHP Insights (https://phpinsights.com) - $(APP) vendor/bin/phpinsights analyse --no-interaction --fix + $(APP) vendor/bin/phpinsights analyse --config-path="./qa/phpinsights.php" --no-interaction --fix .PHONY: php-cs-fixer php-cs-fixer: ## Execute php-cs-fixer in dry-run mode - $(APP) vendor/bin/php-cs-fixer fix --using-cache=no --verbose --diff --dry-run + $(APP) vendor/bin/php-cs-fixer fix --config=./qa/.php-cs-fixer.dist.php --using-cache=no --verbose --diff --dry-run .PHONY: php-cs-fixer-apply php-cs-fixer-apply: ## Execute php-cs-fixer and apply changes - $(APP) vendor/bin/php-cs-fixer fix --using-cache=no --verbose + $(APP) vendor/bin/php-cs-fixer fix --config=./qa/.php-cs-fixer.dist.php --using-cache=no --verbose ## ## —— ✨ Tests —— diff --git a/.php-cs-fixer.dist.php b/qa/.php-cs-fixer.dist.php similarity index 97% rename from .php-cs-fixer.dist.php rename to qa/.php-cs-fixer.dist.php index cfa3e00..5de053c 100644 --- a/.php-cs-fixer.dist.php +++ b/qa/.php-cs-fixer.dist.php @@ -62,8 +62,8 @@ ]; $finder = Finder::create() - ->in(__DIR__.'/src') -// ->in(__DIR__.'/tests') + ->in(__DIR__ . '/../src') + ->in(__DIR__.'/../tests') ->notPath('bootstrap.php') ; diff --git a/.phpcs.xml b/qa/.phpcs.xml similarity index 100% rename from .phpcs.xml rename to qa/.phpcs.xml diff --git a/phpcs.xml.dist b/qa/phpcs.xml.dist similarity index 100% rename from phpcs.xml.dist rename to qa/phpcs.xml.dist diff --git a/phpinsights.php b/qa/phpinsights.php similarity index 100% rename from phpinsights.php rename to qa/phpinsights.php diff --git a/phpstan.dist.neon b/qa/phpstan.dist.neon similarity index 100% rename from phpstan.dist.neon rename to qa/phpstan.dist.neon