-
-
Notifications
You must be signed in to change notification settings - Fork 89
/
composer.json
118 lines (118 loc) · 3.66 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"name": "overtrue/phplint",
"description": "`phplint` is a tool that can speed up linting of php files by running several lint processes at once.",
"type": "library",
"keywords": [
"phplint",
"lint",
"static analysis",
"syntax",
"check"
],
"license": "MIT",
"authors": [
{
"name": "overtrue",
"email": "anzhengchao@gmail.com"
},
{
"name": "Laurent Laville",
"homepage": "https://github.com/llaville"
}
],
"require": {
"php": "^8.1",
"ext-dom": "*",
"ext-json": "*",
"ext-mbstring": "*",
"symfony/cache": "^6.4 || ^7.0",
"symfony/console": "^6.4 || ^7.0",
"symfony/event-dispatcher": "^6.4 || ^7.0",
"symfony/finder": "^6.4 || ^7.0",
"symfony/options-resolver": "^6.4 || ^7.0",
"symfony/process": "^6.4 || ^7.0",
"symfony/yaml": "^6.4 || ^7.0"
},
"require-dev": {
"bartlett/sarif-php-sdk": "^1.2",
"php-parallel-lint/php-console-highlighter": "^1.0",
"brainmaestro/composer-git-hooks": "^2.8.5 || 3.0.0-alpha.1",
"jetbrains/phpstorm-stubs": "^2021.3 || ^2022.3 || ^2023.3 || ^2024.1",
"bamarni/composer-bin-plugin": "^1.4"
},
"autoload": {
"psr-4": {
"Overtrue\\PHPLint\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Overtrue\\PHPLint\\Tests\\": "tests/"
}
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"target-directory": "vendor-bin",
"forward-command": true
},
"hooks": {
"pre-commit": [
"composer style:fix",
"composer code:check"
],
"pre-push": [
"composer qa:check"
]
},
"branch-alias": {
"dev-main": "9.2.x-dev"
}
},
"scripts": {
"bin": "echo 'bin not installed'",
"post-update-cmd": [
"cghooks update",
"@composer bin all update --ansi"
],
"post-merge": "composer install",
"post-install-cmd": [
"cghooks add --ignore-lock",
"cghooks update",
"@composer bin all install --ansi"
],
"cghooks": "vendor/bin/cghooks",
"qa:check": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.release.php --using-cache=no --verbose --ansi --diff --dry-run",
"qa:fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.release.php --using-cache=no --verbose --ansi",
"style:check": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --using-cache=no --verbose --ansi --diff --dry-run",
"style:fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --using-cache=no --verbose --ansi",
"tests:unit": "vendor/bin/phpunit --testsuite=cache,configuration,finder",
"tests:e2e": "vendor/bin/phpunit --testsuite=e2e",
"tests:all": "vendor/bin/phpunit",
"lint:syntax": "./bin/phplint --ansi",
"code:check": "vendor/bin/phpstan analyse --configuration phpstan.neon.dist"
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts-descriptions": {
"qa:check": "Run QA style checks before pushing new tag and releasing a new version (only dry run - no fixing!).",
"qa:fix": "Run QA style checks and fix violations.",
"style:check": "Run style checks (only dry run - no fixing!).",
"style:fix": "Run style checks and fix violations.",
"tests:unit": "Run unit tests on following components: cache, configuration, finder",
"tests:e2e": "Run end to end tests",
"tests:all": "Run unit and end to end tests",
"lint:syntax": "Run PHPLint on it own source code",
"code:check": "Run PHPStan code analysis on PHPLint source code"
},
"bin": [
"bin/phplint"
],
"config": {
"sort-packages": true,
"optimize-autoloader": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
}
}