From ac8c1248ea5bba536bbac6b442cfd875abf37c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Tue, 17 Sep 2024 11:41:40 +0200 Subject: [PATCH] [TASK] Move php sniff to `Build` dir (#1357) Part of #1186 --- .gitattributes | 1 - phpcs.xml => Build/phpcs/phpcs.xml | 0 CHANGELOG.md | 1 + composer.json | 5 ++--- 4 files changed, 3 insertions(+), 4 deletions(-) rename phpcs.xml => Build/phpcs/phpcs.xml (100%) diff --git a/.gitattributes b/.gitattributes index 59bf335..88ab648 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18,7 +18,6 @@ /package-lock.json export-ignore /package.json export-ignore /phive.xml export-ignore -/phpcs.xml export-ignore /phpstan-baseline.neon export-ignore /phpstan.neon export-ignore /rector.php export-ignore diff --git a/phpcs.xml b/Build/phpcs/phpcs.xml similarity index 100% rename from phpcs.xml rename to Build/phpcs/phpcs.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index 0108d65..5d28704 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). - Add support for PostgreSQL 16 (#1271) ### Changed +- Move php sniff configuration to Build dir (#1357) - Move xliff configuration to Build xliff dir (#1356) - Move tests configuration to Build dir (#1352) - Stop storing development tool PHARs in the repository (#1277) diff --git a/composer.json b/composer.json index 513b884..d5de972 100644 --- a/composer.json +++ b/composer.json @@ -147,7 +147,7 @@ "ci:php:cs-fixer": "php-cs-fixer fix --config .php-cs-fixer.php -v --dry-run --diff", "ci:php:lint": "parallel-lint .*.php *.php Classes Configuration Tests", "ci:php:mess": "phpmd Classes text Build/phpmd/phpmd.xml", - "ci:php:sniff": "phpcs Classes Configuration Tests", + "ci:php:sniff": "phpcs --standard=Build/phpcs/phpcs.xml Classes Configuration Tests", "ci:php:stan": "phpstan --no-progress -v", "ci:static": [ "@ci:composer:normalize", @@ -178,7 +178,7 @@ "@fix:php:sniff" ], "fix:php:cs": "php-cs-fixer fix --config .php-cs-fixer.php", - "fix:php:sniff": "phpcbf Classes Configuration Tests", + "fix:php:sniff": "phpcbf --standard=Build/phpcs/phpcs.xml Classes Configuration Tests", "phpstan:baseline": "phpstan --generate-baseline --allow-empty-baseline", "prepare-release": [ "rm -rf .Build", @@ -202,7 +202,6 @@ "rm package-lock.json", "rm package.json", "rm phive.xml", - "rm phpcs.xml", "rm phpstan-baseline.neon", "rm phpstan.neon", "rm rector.php",