From 760e7cc2d0fd5b71f9bfdc1e94976bffc7e0fad6 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sun, 2 May 2021 20:44:00 +0100 Subject: [PATCH] ci: move PHPCS settings to own config --- composer.json | 4 ++-- phpcs.xml.dist | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 phpcs.xml.dist diff --git a/composer.json b/composer.json index be31c62..db020a0 100644 --- a/composer.json +++ b/composer.json @@ -11,8 +11,8 @@ "build": "./_tools/build.sh", "lint": "composer run lint:php; npm run lint", "lint:fix": "composer run lint:php:fix; npm run lint:fix", - "lint:php": "./vendor/bin/phpcs --standard=WordPress,PHPCompatibilityWP --runtime-set testVersion 7.4- --colors --encoding=utf-8 -p --ignore=index.php ./src/*.php ./src/*/*.php ./src/*/*/*.php", - "lint:php:fix": "./vendor/bin/phpcbf --standard=WordPress,PHPCompatibilityWP --runtime-set testVersion 7.4- --colors --encoding=utf-8 -p --ignore=index.php ./src/*.php ./src/*/*.php ./src/*/*/*.php", + "lint:php": "./vendor/bin/phpcs", + "lint:php:fix": "./vendor/bin/phpcbf", "lint:css": "npm run lint:css", "lint:css:fix": "npm run lint:css:fix", "lint:js": "npm run lint:js", diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000..ee5a1f6 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,30 @@ + + + The coding standard for PHP_CodeSniffer itself. + + src + + index.php + + + + + + + + + + + + + + + + + + + + + + +