-
Notifications
You must be signed in to change notification settings - Fork 2
/
composer.json
36 lines (36 loc) · 1.18 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"require-dev": {
"mediawiki/mediawiki-codesniffer": "39.0.0",
"mediawiki/minus-x": "1.1.1",
"php-parallel-lint/php-console-highlighter": "1.0.0",
"php-parallel-lint/php-parallel-lint": "1.3.2",
"phpstan/phpstan": "^1.7",
"vimeo/psalm": "^4.23"
},
"scripts": {
"test": [
"@analyze",
"@phpunit"
],
"test-coverage": [
"@analyze",
"@phpunit-coverage"
],
"analyze": [
"@lint",
"@phpcs",
"@phpstan"
],
"lint": "parallel-lint . --exclude vendor --exclude node_modules",
"phpcs": "phpcs -p -s .",
"phpcs-fix": "phpcbf .",
"phpstan": "phpstan analyse --configuration=phpstan.neon --memory-limit=2G",
"phpstan-baseline": "phpstan analyse --configuration=phpstan.neon --memory-limit=2G --generate-baseline",
"psalm": "psalm --config=psalm.xml",
"psalm-baseline": "psalm --config=psalm.xml --set-baseline=psalm-baseline.xml",
"phpunit": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist --testdox",
"phpunit-coverage": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist --testdox --coverage-text --coverage-html coverage/php --coverage-clover coverage/php/coverage.xml",
"minus-x": "minus-x check .",
"minus-x-fix": "minus-x fix ."
}
}