mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Editcount
synced 2024-11-23 15:57:19 +00:00
build: Add php-parallel-lint and MinusX
php-lint will test for valid php files MinusX will test for executable bits Change-Id: I29038a499eb83d2ea0bad6a8c23c739964d86087
This commit is contained in:
parent
dc435c89a1
commit
039d2cd82a
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,6 @@
|
|||
/node_modules/
|
||||
/vendor/
|
||||
/composer.lock
|
||||
.svn
|
||||
*~
|
||||
*.kate-swp
|
||||
|
|
|
@ -10,7 +10,8 @@ module.exports = function ( grunt ) {
|
|||
jsonlint: {
|
||||
all: [
|
||||
'**/*.json',
|
||||
'!node_modules/**'
|
||||
'!node_modules/**',
|
||||
'!vendor/**'
|
||||
]
|
||||
}
|
||||
} );
|
||||
|
|
16
composer.json
Normal file
16
composer.json
Normal 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 ."
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue