From 26de40b25556d2a070d7dd4caeb83a3351daa0fe Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Mon, 19 Feb 2024 03:05:57 -0400 Subject: [PATCH] Created phpcs.xml.dist with automatic local config creation script --- .gitignore | 1 + composer.json | 3 ++- phpcs.xml => phpcs.xml.dist | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename phpcs.xml => phpcs.xml.dist (100%) diff --git a/.gitignore b/.gitignore index fd379ad..6ca7489 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ coverage/ *.sublime* .vscode/ clover.xml +phpcs.xml diff --git a/composer.json b/composer.json index ba3dcc0..6c61fde 100644 --- a/composer.json +++ b/composer.json @@ -62,7 +62,8 @@ "test-coverage:win": "del clover.xml && phpunit --coverage-html=coverage --coverage-clover=clover.xml && coverage-check clover.xml 100", "lint": "phpstan --no-progress -cphpstan.neon", "beautify": "phpcbf --standard=phpcs.xml", - "phpcs": "phpcs --standard=phpcs.xml -n" + "phpcs": "phpcs --standard=phpcs.xml -n", + "post-install-cmd": ["php -r \"if (!file_exists('phpcs.xml')) copy('phpcs.xml.dist', 'phpcs.xml');\""] }, "suggest": { "latte/latte": "Latte template engine", diff --git a/phpcs.xml b/phpcs.xml.dist similarity index 100% rename from phpcs.xml rename to phpcs.xml.dist