build: Add php-parallel-lint and MinusX

php-lint will test for valid php files
MinusX will test for executable bits

Change-Id: I2dfeb4eb2fba609f0d8677eef94551fd77fffb41
This commit is contained in:
Umherirrender 2017-11-03 18:34:06 +01:00
parent 61dcee7a73
commit f27a3cc159
3 changed files with 20 additions and 1 deletions

2
.gitignore vendored
View file

@ -2,3 +2,5 @@
*.kate-swp
.*.swp
node_modules/**
vendor/**
composer.lock

View file

@ -10,7 +10,8 @@ module.exports = function ( grunt ) {
jsonlint: {
all: [
'**/*.json',
'!node_modules/**'
'!node_modules/**',
'!vendor/**'
]
}
} );

16
composer.json Normal file
View file

@ -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 ."
]
}
}