forked from overtrue/phplint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
68 lines (68 loc) · 1.55 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
{
"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",
"syntax",
"check"
],
"license": "MIT",
"authors": [
{
"name": "overtrue",
"email": "anzhengchao@gmail.com"
}
],
"require": {
"php": ">=8.0",
"ext-json": "*",
"symfony/console": "^5.0",
"symfony/finder": "^5.0",
"symfony/process": "^5.0",
"symfony/yaml": "^5.0",
"n98/junit-xml": "1.1.0"
},
"require-dev": {
"jakub-onderka/php-console-highlighter": "^0.4",
"brainmaestro/composer-git-hooks": "^2.7",
"friendsofphp/php-cs-fixer": "^3.0"
},
"autoload": {
"psr-4": {
"Overtrue\\PHPLint\\": "src/"
}
},
"extra": {
"hooks": {
"pre-commit": [
"composer fix-style"
],
"pre-push": [
"composer check-style"
]
}
},
"scripts": {
"post-update-cmd": [
"cghooks update"
],
"post-merge": "composer install",
"post-install-cmd": [
"cghooks add --ignore-lock",
"cghooks update"
],
"cghooks": "vendor/bin/cghooks",
"check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --ansi",
"fix-style": "php-cs-fixer fix --using-cache=no --ansi",
"lint:syntax": "./bin/phplint --ansi"
},
"scripts-descriptions": {
"check-style": "Run style checks (only dry run - no fixing!).",
"fix-style": "Run style checks and fix violations."
},
"bin": [
"bin/phplint"
]
}