-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcomposer.json
More file actions
64 lines (64 loc) · 2.18 KB
/
Copy pathcomposer.json
File metadata and controls
64 lines (64 loc) · 2.18 KB
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
59
60
61
62
63
64
{
"name": "digitalrevolution/php-codesniffer-baseline",
"description": "Digital Revolution PHP_Codesniffer baseline extension",
"type": "composer-plugin",
"license": "MIT",
"minimum-stability": "stable",
"config": {
"sort-packages": true,
"process-timeout": 0,
"allow-plugins": {
"phpstan/extension-installer": true
},
"lock": false
},
"require": {
"php": ">=8.1",
"composer-plugin-api": "^2.0",
"squizlabs/php_codesniffer": "^3.6 || ^4.0"
},
"require-dev": {
"composer/composer": "^2.0",
"mikey179/vfsstream": "1.6.12",
"phpmd/phpmd": "^2.15",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpstan/extension-installer": "^1.4",
"phpunit/phpunit": "^10.5 || ^11.5 || ^12.0 || ^13.0",
"roave/security-advisories": "dev-latest"
},
"scripts": {
"baseline": ["@baseline:phpcs", "@baseline:phpmd", "@baseline:phpstan", "@baseline:phpcqc"],
"baseline:phpcs": "@php bin/phpcs-baseline src tests --no-exit-code",
"baseline:phpmd": "@check:phpmd --generate-baseline",
"baseline:phpstan": "phpstan --generate-baseline",
"run:plugin": "DR\\CodeSnifferBaseline\\Plugin\\Plugin::run",
"check": ["@check:phpstan", "@check:phpmd", "@check:phpcs"],
"check:phpstan": "phpstan analyse",
"check:phpmd": "phpmd src,tests text phpmd.xml.dist --suffixes php",
"check:phpcs": "phpcs src tests",
"fix": "@fix:phpcbf",
"fix:phpcbf": "phpcbf src tests",
"test": "phpunit",
"test:integration": "phpunit --testsuite integration",
"test:unit": "phpunit --testsuite unit"
},
"extra": {
"class": "DR\\CodeSnifferBaseline\\Plugin\\Plugin"
},
"autoload": {
"psr-4": {
"DR\\CodeSnifferBaseline\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"DR\\CodeSnifferBaseline\\Tests\\Unit\\": "tests/Unit/",
"DR\\CodeSnifferBaseline\\Tests\\": "tests/"
}
},
"bin": [
"bin/phpcs-baseline"
]
}