forked from wikimedia/mediawiki-tools-codesniffer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
58 lines (58 loc) · 1.4 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "mediawiki/mediawiki-codesniffer",
"description": "MediaWiki CodeSniffer Standards",
"keywords": [
"mediawiki",
"codesniffer"
],
"homepage": "https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP",
"license": "GPL-2.0-or-later",
"type": "phpcodesniffer-standard",
"require": {
"php": ">=7.4.0",
"ext-json": "*",
"ext-mbstring": "*",
"composer/semver": "3.4.2 || 3.4.3",
"composer/spdx-licenses": "~1.5.2",
"squizlabs/php_codesniffer": "3.10.3",
"symfony/polyfill-php80": "^1.26.0",
"phpcsstandards/phpcsextra": "1.2.1"
},
"autoload": {
"psr-4": {
"MediaWiki\\Sniffs\\": "MediaWiki/Sniffs/",
"MediaWiki\\Sniffs\\Tests\\": "MediaWiki/Tests/"
}
},
"require-dev": {
"ext-dom": "*",
"mediawiki/mediawiki-phan-config": "0.14.0",
"mediawiki/minus-x": "1.1.3",
"php-parallel-lint/php-console-highlighter": "1.0.0",
"php-parallel-lint/php-parallel-lint": "1.4.0",
"phpunit/phpunit": "9.6.21"
},
"scripts": {
"phan": "phan -d . -p --allow-polyfill-parser --long-progress-bar",
"phpcs": "phpcs -p -s",
"phpcbf": "phpcbf",
"phpunit": "phpunit",
"lint": "parallel-lint . --exclude vendor --exclude MediaWiki/Tests/files",
"test": [
"@lint",
"@phpunit",
"@phpcs",
"@phan",
"minus-x check ."
],
"fix": [
"minus-x fix .",
"@phpcbf"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}