From 89f6246e70d0dfdf068a1fe47e81b3f066c6bea7 Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Fri, 8 Sep 2017 11:43:06 +0100 Subject: [PATCH 1/3] Composer: Add PHPCompatibility standard This plugin already has PHP_CodeSniffer as a dependency, but the project itself should also be checked against code standards. While PSR-2 is already included, it would be useful to also check that the code supports down to the PHP 5.3 version specified in the Travis CI config file. --- composer.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9b26bb0d..835e40f7 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,8 @@ "squizlabs/php_codesniffer": "*" }, "require-dev": { - "composer/composer": "*" + "composer/composer": "*", + "wimg/php-compatibility": "^8.0" }, "suggest": { "dealerdirect/qa-tools": "All the PHP QA tools you'll need" @@ -40,5 +41,10 @@ }, "extra": { "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" + }, + "scripts": { + "install-codestandards": [ + "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run" + ] } } From 53290da9056aa5a7a240c01bc6bfa84683e21698 Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Fri, 8 Sep 2017 11:43:38 +0100 Subject: [PATCH 2/3] CS: Add phpcs.xml.dist --- phpcs.xml.dist | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 phpcs.xml.dist diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 00000000..eae3b8b0 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,17 @@ + + + Coding standards for PHP_CodeSniffer Standards Composer Installer Plugin + + + + + + . + */.github/* + */vendor/* + + + + + + From ca50e1f4d1fd7a967c00b09bdfc5cef7bf30b86d Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 16 Sep 2017 20:59:57 +0200 Subject: [PATCH 3/3] Retrigger for VersionEye (empty commit)