-
Notifications
You must be signed in to change notification settings - Fork 12
/
composer.json
49 lines (49 loc) · 1.47 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
{
"name": "sirbrillig/phpcs-changed",
"description": "Run phpcs on files, but only report warnings/errors from lines which were changed.",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Payton Swick",
"email": "[email protected]"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"precommit": "composer test && composer lint && composer static-analysis",
"test": "./vendor/bin/phpunit --color=always --verbose",
"lint": "./vendor/bin/phpcs -s PhpcsChanged bin tests index.php",
"psalm": "./vendor/bin/psalm --no-cache bin/phpcs-changed",
"static-analysis": "composer psalm"
},
"bin": [
"bin/phpcs-changed"
],
"config": {
"sort-order": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"autoload": {
"psr-4": {
"PhpcsChanged\\": "PhpcsChanged/"
},
"files": [
"PhpcsChanged/Cli.php",
"PhpcsChanged/functions.php"
]
},
"require": {
"php": "^7.1 || ^8.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"phpunit/phpunit": "^6.4 || ^9.5",
"squizlabs/php_codesniffer": "^3.2.1",
"sirbrillig/phpcs-variable-analysis": "^2.1.3",
"vimeo/psalm": "^0.2 || ^0.3 || ^1.1 || ^4.24 || ^5.0@beta"
}
}