diff --git a/composer.json b/composer.json index 28c8792..77387a0 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,10 @@ "mediawiki/page-forms": ">=5.3.0" }, "require-dev": { - "mediawiki/semantic-media-wiki": "@dev" + "mediawiki/semantic-media-wiki": "@dev", + "mediawiki/minus-x": "1.1.3", + "php-parallel-lint/php-console-highlighter": "1.0.0", + "php-parallel-lint/php-parallel-lint": "1.4.0" }, "extra": { "branch-alias": { @@ -56,15 +59,22 @@ } }, "config": { - "process-timeout": 0 + "process-timeout": 0, + "allow-plugins": { + "composer/installers": true, + "dealerdirect/phpcodesniffer-composer-installer": true + } }, "scripts":{ "test": [ + "@lint", + "minus-x check .", "@phpunit" ], "test-coverage": [ "@phpunit-coverage" ], + "lint": "parallel-lint . --exclude vendor --exclude node_modules", "phpunit": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist", "phpunit-coverage": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist --testdox --coverage-text --coverage-html coverage/php --coverage-clover coverage/php/coverage.xml" }