-
Notifications
You must be signed in to change notification settings - Fork 12
/
composer.json
30 lines (30 loc) · 942 Bytes
/
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
{
"require-dev": {
"mediawiki/mediawiki-codesniffer": "39.0.0",
"php-parallel-lint/php-console-highlighter": "1.0.0",
"php-parallel-lint/php-parallel-lint": "1.3.2",
"phpstan/phpstan": "^1.7"
},
"scripts": {
"test": [
"@analyze",
"@phpunit"
],
"test-coverage": [
"@analyze",
"@phpunit-coverage"
],
"analyze": [
"@lint",
"@phpcs",
"@phpstan"
],
"lint": "parallel-lint . --exclude vendor",
"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",
"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"
}
}