Skip to content

Commit 3472734

Browse files
committed
Update composer.json
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
1 parent cdeaac3 commit 3472734

1 file changed

Lines changed: 59 additions & 38 deletions

File tree

composer.json

Lines changed: 59 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,69 @@
11
{
2-
"name" : "phpcsstandards/phpcsdevtools",
3-
"description" : "Tools for PHP_CodeSniffer sniff developers.",
4-
"type" : "phpcodesniffer-standard",
5-
"keywords" : [ "phpcs", "devtools", "debug", "dev", "static analysis", "php_codesniffer", "phpcodesniffer-standard" ],
6-
"homepage": "https://phpcsstandards.github.io/PHPCSDevTools/",
7-
"license" : "LGPL-3.0-or-later",
8-
"authors" : [
2+
"name": "phpcsstandards/phpcsdevtools",
3+
"description": "Tools for PHP_CodeSniffer sniff developers.",
4+
"license": "LGPL-3.0-or-later",
5+
"type": "phpcodesniffer-standard",
6+
"keywords": [
7+
"phpcs",
8+
"devtools",
9+
"debug",
10+
"dev",
11+
"static analysis",
12+
"php_codesniffer",
13+
"phpcodesniffer-standard"
14+
],
15+
"authors": [
916
{
10-
"name" : "Juliette Reinders Folmer",
11-
"role" : "lead",
12-
"homepage" : "https://github.com/jrfnl"
17+
"name": "Juliette Reinders Folmer",
18+
"homepage": "https://github.com/jrfnl",
19+
"role": "lead"
1320
},
1421
{
15-
"name" : "Contributors",
16-
"homepage" : "https://github.com/PHPCSStandards/PHPCSDevTools/graphs/contributors"
22+
"name": "Contributors",
23+
"homepage": "https://github.com/PHPCSStandards/PHPCSDevTools/graphs/contributors"
1724
}
1825
],
19-
"support" : {
20-
"issues" : "https://github.com/PHPCSStandards/PHPCSDevTools/issues",
21-
"source" : "https://github.com/PHPCSStandards/PHPCSDevTools",
26+
"homepage": "https://phpcsstandards.github.io/PHPCSDevTools/",
27+
"support": {
28+
"issues": "https://github.com/PHPCSStandards/PHPCSDevTools/issues",
29+
"source": "https://github.com/PHPCSStandards/PHPCSDevTools",
2230
"security": "https://github.com/PHPCSStandards/PHPCSDevTools/security/policy"
2331
},
24-
"require" : {
25-
"php" : ">=5.4",
26-
"squizlabs/php_codesniffer" : "^3.1.0 || ^4.0",
27-
"dealerdirect/phpcodesniffer-composer-installer" : "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0"
32+
"require": {
33+
"php": ">=5.4",
34+
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0",
35+
"squizlabs/php_codesniffer": "^3.1.0 || ^4.0"
2836
},
29-
"require-dev" : {
30-
"phpunit/phpunit" : "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.5.32 || ^11.3.3",
31-
"php-parallel-lint/php-parallel-lint": "^1.4.0",
37+
"require-dev": {
3238
"php-parallel-lint/php-console-highlighter": "^1.0.0",
39+
"php-parallel-lint/php-parallel-lint": "^1.4.0",
3340
"phpcsstandards/phpcsdevcs": "^1.2.0",
34-
"phpcsstandards/phpcsutils" : "^1.0",
41+
"phpcsstandards/phpcsutils": "^1.0",
42+
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.5.32 || ^11.3.3",
3543
"yoast/phpunit-polyfills": "^1.1 || ^2.0 || ^3.0"
3644
},
37-
"config": {
38-
"allow-plugins": {
39-
"dealerdirect/phpcodesniffer-composer-installer": true
40-
},
41-
"lock": false
45+
"minimum-stability": "dev",
46+
"prefer-stable": true,
47+
"autoload": {
48+
"psr-4": {
49+
"PHPCSDevTools\\Scripts\\": "Scripts/"
50+
}
4251
},
43-
"autoload-dev" : {
52+
"autoload-dev": {
4453
"psr-4": {
4554
"PHPCSDevTools\\Tests\\": "Tests/"
4655
}
4756
},
4857
"bin": [
4958
"bin/phpcs-check-feature-completeness"
5059
],
51-
"minimum-stability": "dev",
52-
"prefer-stable": true,
53-
"scripts" : {
60+
"config": {
61+
"allow-plugins": {
62+
"dealerdirect/phpcodesniffer-composer-installer": true
63+
},
64+
"lock": false
65+
},
66+
"scripts": {
5467
"lint": [
5568
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git"
5669
],
@@ -64,25 +77,33 @@
6477
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
6578
],
6679
"test": [
67-
"@php ./vendor/phpunit/phpunit/phpunit"
80+
"@phpunit"
6881
],
6982
"test-sniff": [
70-
"@php ./vendor/phpunit/phpunit/phpunit --testsuite DebugSniff"
83+
84+
"@phpunit --testsuite DebugSniff"
7185
],
7286
"test-tools": [
73-
"@php ./vendor/phpunit/phpunit/phpunit --testsuite DevTools"
87+
"@phpunit --testsuite DevTools"
7488
],
7589
"test-lte9": [
76-
"@php ./vendor/phpunit/phpunit/phpunit -c phpunitlte9.xml.dist"
90+
"@phpunit -c phpunitlte9.xml.dist"
7791
],
7892
"test-sniff-lte9": [
79-
"@php ./vendor/phpunit/phpunit/phpunit -c phpunitlte9.xml.dist --testsuite DebugSniff"
93+
"@phpunit -c phpunitlte9.xml.dist --testsuite DebugSniff"
8094
],
8195
"test-tools-lte9": [
82-
"@php ./vendor/phpunit/phpunit/phpunit -c phpunitlte9.xml.dist --testsuite DevTools"
96+
"@phpunit -c phpunitlte9.xml.dist --testsuite DevTools"
8397
],
8498
"check-complete": [
8599
"@php ./bin/phpcs-check-feature-completeness ./PHPCSDebug"
100+
],
101+
"phpunit": [
102+
"@xdebug",
103+
"@php ./vendor/phpunit/phpunit/phpunit"
104+
],
105+
"xdebug": [
106+
"@putenv XDEBUG_MODE=coverage"
86107
]
87108
}
88109
}

0 commit comments

Comments
 (0)