From 1781335f25f7f6b4da253f6dbddd97deefd1bf66 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Sat, 15 Jul 2017 15:50:17 +0200 Subject: [PATCH] Composer and PHPCS added A composer package descriptor has been added, along with a PHPunit descriptor and code sniffer ruleset. --- .gitignore | 3 +++ composer.json | 28 ++++++++++++++++++++++++++++ phpunit.xml | 9 +++++++++ ruleset.xml | 15 +++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 .gitignore create mode 100644 composer.json create mode 100644 phpunit.xml create mode 100644 ruleset.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..155f8d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +composer.lock +/vendor/ +.idea diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..6e801ce --- /dev/null +++ b/composer.json @@ -0,0 +1,28 @@ +{ + "name": "stklcode/statify-blacklist", + "description": "A blacklist extension for the famous Statify WordPress plugin", + "keywords": [ + "wordpress", + "plugin", + "statistics", + "blacklist" + ], + "license": "GPL-2.0+", + "authors": [ + { + "name": "Stefan Kalscheuer", + "email": "stefan@stklcode.de", + "homepage": "https://www.stklcode.de" + } + ], + "type": "wordpress-plugin", + "require": { + "php": ">=5.5", + "composer/installers": "~1.0" + }, + "require-dev": { + "php": ">=5.5", + "phpunit/phpunit": "*", + "wp-coding-standards/wpcs": "~0.6.0" + } +} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..8089d7f --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,9 @@ + + + + + ./test + + + + \ No newline at end of file diff --git a/ruleset.xml b/ruleset.xml new file mode 100644 index 0000000..0b0c251 --- /dev/null +++ b/ruleset.xml @@ -0,0 +1,15 @@ + + + Derived from WordPress + + + + + + + + + + + +