From 039d2cd82a57c8bacf3064b43721ef75e079bb78 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 3 Nov 2017 19:48:45 +0100 Subject: [PATCH] build: Add php-parallel-lint and MinusX php-lint will test for valid php files MinusX will test for executable bits Change-Id: I29038a499eb83d2ea0bad6a8c23c739964d86087 --- .gitignore | 2 ++ Gruntfile.js | 3 ++- composer.json | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 composer.json diff --git a/.gitignore b/.gitignore index a30a7d4..9b29323 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ /node_modules/ +/vendor/ +/composer.lock .svn *~ *.kate-swp diff --git a/Gruntfile.js b/Gruntfile.js index 7756e75..a45071e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -10,7 +10,8 @@ module.exports = function ( grunt ) { jsonlint: { all: [ '**/*.json', - '!node_modules/**' + '!node_modules/**', + '!vendor/**' ] } } ); diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..392434c --- /dev/null +++ b/composer.json @@ -0,0 +1,16 @@ +{ + "require-dev": { + "jakub-onderka/php-parallel-lint": "0.9.2", + "jakub-onderka/php-console-highlighter": "0.3.2", + "mediawiki/minus-x": "0.2.0" + }, + "scripts": { + "test": [ + "parallel-lint . --exclude vendor --exclude node_modules", + "minus-x check ." + ], + "fix": [ + "minus-x fix ." + ] + } +}