From cfa65ec068984513af7538a5dacce304cf663e3c Mon Sep 17 00:00:00 2001 From: Justin Foell Date: Fri, 6 Apr 2018 16:19:22 -0500 Subject: [PATCH] Updated composer file and phpcs rules --- .gitignore | 5 +++++ composer.json | 17 ++++++++++------- composer.lock | 19 ------------------- phpcs.xml | 5 +++-- vendor/composer/installed.json | 1 - 5 files changed, 18 insertions(+), 29 deletions(-) delete mode 100644 composer.lock delete mode 100644 vendor/composer/installed.json diff --git a/.gitignore b/.gitignore index 2e8a44a..b1d153c 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ *~ .svn .vscode +composer.lock +vendor/bin/ +vendor/squizlabs/ +vendor/wp-coding-standards/ +vendor/composer/installed.json diff --git a/composer.json b/composer.json index a304514..f0b657a 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,15 @@ { - "name": "wpackagist-plugin/wp-strava", - "description": "Show your strava.com activity on your WordPress site.", - "require":{ - "php": ">=5.2.4" - }, + "name": "wpackagist-plugin/wp-strava", + "description": "Show your strava.com activity on your WordPress site.", + "require": { + "php": ">=5.2.4" + }, + "require-dev": { + "wp-coding-standards/wpcs": "~0.14" + }, "autoload": { "psr-0": { "WPStrava_": "lib/" - } + } } -} \ No newline at end of file +} diff --git a/composer.lock b/composer.lock deleted file mode 100644 index 23603e5..0000000 --- a/composer.lock +++ /dev/null @@ -1,19 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", - "This file is @generated automatically" - ], - "content-hash": "724eef3de7c6e2ee812ac6b4f92edb80", - "packages": [], - "packages-dev": [], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": { - "php": ">=5.2.4" - }, - "platform-dev": [] -} diff --git a/phpcs.xml b/phpcs.xml index 47a5817..2447be3 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,5 +1,5 @@ - + @@ -11,4 +11,5 @@ */tests/* */vendor/* - \ No newline at end of file + + diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json deleted file mode 100644 index fe51488..0000000 --- a/vendor/composer/installed.json +++ /dev/null @@ -1 +0,0 @@ -[]