-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomposer.json
More file actions
140 lines (140 loc) · 4.89 KB
/
Copy pathcomposer.json
File metadata and controls
140 lines (140 loc) · 4.89 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"name": "kununu/code-tools",
"description": "Code Tools",
"license": "MIT",
"type": "composer-plugin",
"authors": [
{
"name": "Team Rosa Mota",
"email": "rosamota-dev@kununu.com"
}
],
"require": {
"php": ">=8.4",
"ext-mbstring": "*",
"ext-simplexml": "*",
"ext-tokenizer": "*",
"composer-plugin-api": "^2.0",
"composer/composer": "^2.10",
"friendsofphp/php-cs-fixer": "^3.95",
"jetbrains/phpstorm-attributes": "^1.3",
"phpat/phpat": "^0.11.4",
"phpstan/phpstan": "^2.2",
"phpstan/phpstan-phpunit": "^2.0",
"psalm/plugin-phpunit": "^0.19",
"psalm/plugin-symfony": "^5.3",
"rector/rector": "^2.6",
"squizlabs/php_codesniffer": "^3.13",
"symfony/console": "^6.4 || ^7.4",
"symfony/process": "^6.4 || ^7.4",
"symfony/yaml": "^6.4 || ^7.4",
"vimeo/psalm": "^6.17"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.53",
"maglnet/composer-require-checker": "^4.20",
"phpunit/phpunit": "^13.3",
"shipmonk/composer-dependency-analyser": "^1.8"
},
"conflict": {
"symfony/config": "<6.4 || >=8.0",
"symfony/dependency-injection": "<6.4 || >=8.0",
"symfony/error-handler": "<6.4 || >=8.0",
"symfony/event-dispatcher": "<6.4 || >=8.0",
"symfony/expression-language": "<6.4 || >=8.0",
"symfony/filesystem": "<6.4 || >=8.0",
"symfony/finder": "<6.4 || >=8.0",
"symfony/framework-bundle": "<6.4 || >=8.0",
"symfony/http-foundation": "<6.4 || >=8.0",
"symfony/http-kernel": "<6.4 || >=8.0",
"symfony/options-resolver": "<6.4 || >=8.0",
"symfony/routing": "<6.4 || >=8.0",
"symfony/stopwatch": "<6.4 || >=8.0",
"symfony/string": "<6.4 || >=8.0",
"symfony/symfony": "*",
"symfony/var-dumper": "<6.4 || >=8.0",
"symfony/var-exporter": "<6.4 || >=8.0"
},
"autoload": {
"psr-4": {
"Kununu\\CodeTools\\": "src/",
"Kununu\\Sniffs\\": "src/PHPCodeSniffer/Kununu/Sniffs/"
}
},
"autoload-dev": {
"psr-4": {
"Kununu\\CodeTools\\Tests\\": "tests/"
}
},
"bin": [
"bin/code-tools",
"bin/coverage-check",
"bin/php-in-k8s",
"bin/print-section"
],
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
},
"process-timeout": 900,
"sort-packages": true
},
"extra": {
"class": "Kununu\\CodeTools\\PHPCSFixer\\CsFixerPlugin"
},
"scripts": {
"post-install-cmd": "@git-hook",
"post-update-cmd": "@git-hook",
"ci": [
"bin/print-section 'Security Audit'",
"composer audit --abandoned=report",
"bin/print-section 'Dependency Analyser'",
"composer-dependency-analyser",
"bin/print-section 'Composer Require Checker'",
"composer-require-checker",
"bin/print-section 'Composer Normalize'",
"composer normalize --dry-run --indent-size 2 --indent-style space --no-check-lock --no-update-lock",
"bin/print-section 'PHP CS Fixer'",
"@cs-fix",
"bin/print-section 'PHP CodeSniffer'",
"@sniffer",
"bin/print-section 'Rector'",
"@rector",
"bin/print-section 'PHPStan'",
"@phpstan",
"bin/print-section 'Psalm'",
"@psalm",
"bin/print-section 'Tests & Coverage'",
"@test-coverage",
"bin/print-section 'Coverage Check'",
"@coverage-check"
],
"coverage-check": "bin/coverage-check tests/.results/tests-cobertura.xml 95",
"cs": "php-cs-fixer check --config=php-cs-fixer.php.dist",
"cs-fix": "php-cs-fixer fix --config=php-cs-fixer.php.dist",
"git-hook": "Kununu\\CodeTools\\PHPCSFixer\\CsFixerPlugin::installGitHooks",
"phpstan": "phpstan analyze",
"psalm": "psalm",
"rector": "rector process --dry-run --config=rector-ci.php src/ tests/",
"rector-fix": "rector process --config=rector-ci.php src/ tests/",
"sniffer": "phpcs --standard=phpcs.xml.dist src/ tests/",
"sniffer-fix": "phpcbf --standard=phpcs.xml.dist src/ tests/",
"test": "@php -d zend.assertions=1 vendor/bin/phpunit --testsuite Full --testdox --testdox-summary --no-coverage --no-logging",
"test-coverage": [
"@putenv XDEBUG_MODE=coverage",
"@php -d zend.assertions=1 vendor/bin/phpunit --testsuite Full --testdox --testdox-summary --log-junit tests/.results/tests-junit.xml --coverage-clover tests/.results/tests-clover.xml --coverage-cobertura tests/.results/tests-cobertura.xml --coverage-html tests/.results/html/"
]
},
"scripts-descriptions": {
"ci": "Run all CI checks",
"coverage-check": "Check that the line coverage of the last coverage run is at least 95%",
"cs": "Run PHP CS Fixer",
"git-hook": "Install the PHP CS Fixer git pre-commit hook in this repository",
"phpstan": "Run PHPStan",
"rector": "Run Rector in dry-run mode with CI rules",
"rector-fix": "Run Rector in fix mode with CI rules",
"sniffer": "Run PHP_CodeSniffer",
"test": "Run all tests",
"test-coverage": "Run all tests with coverage report"
}
}