-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
49 lines (49 loc) · 1.45 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": "ctw/ctw-qa",
"description": "Configuration for commonly used quality assurance (QA) tools for PHP projects.",
"license": "proprietary",
"type": "library",
"require": {
"php": "^8.1",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0",
"rector/rector": "^1.0",
"symplify/easy-coding-standard": "^11.0"
},
"require-dev": {
"phpunit/phpunit": "^10.0",
"phpunitgen/console": "^5.0",
"symfony/var-dumper": "^6.0"
},
"autoload": {
"psr-4": {
"Ctw\\Qa\\": "src"
}
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true
},
"sort-packages": true
},
"scripts": {
"ecs": "php vendor/bin/ecs",
"ecs-fix": "php vendor/bin/ecs --fix",
"phpstan": "d=build/phpstan ; rm -fr $d ; mkdir -p $d ; php vendor/bin/phpstan analyse --error-format=raw | tee $d/output.txt",
"phpstan-baseline": "php vendor/bin/phpstan analyse --generate-baseline",
"qa": [
"@rector",
"@ecs",
"@phpstan"
],
"qa-fix": [
"@rector-fix",
"@ecs-fix",
"@phpstan"
],
"rector": "php vendor/bin/rector process --dry-run",
"rector-fix": "php vendor/bin/rector process",
"test": "php vendor/bin/phpunit"
}
}