forked from alma-oss/php-coding-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
67 lines (67 loc) · 1.84 KB
/
composer.json
File metadata and controls
67 lines (67 loc) · 1.84 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
{
"name": "lmc/coding-standard",
"type": "library",
"description": "Coding standard used in LMC projects",
"license": "MIT",
"authors": [
{
"name": "LMC s.r.o.",
"homepage": "https://github.com/lmc-eu"
}
],
"require": {
"php": "^7.3 || ^8.0",
"friendsofphp/php-cs-fixer": "^2.16.3",
"slevomat/coding-standard": "^6.4.1",
"symplify/easy-coding-standard": "^9.0.50"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.13.2",
"php-parallel-lint/php-parallel-lint": "^1.2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^0.12.71",
"phpstan/phpstan-phpunit": "^0.12.17",
"phpunit/phpunit": "^9.5.2"
},
"config": {
"preferred-install": {
"squizlabs/php_codesniffer": "source"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"Lmc\\CodingStandard\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Lmc\\CodingStandard\\": "tests/"
}
},
"prefer-stable": true,
"scripts": {
"all": [
"@lint",
"@analyze",
"@test"
],
"analyze": [
"vendor/bin/ecs check src/ tests/ ecs.php --ansi",
"vendor/bin/ecs check-markdown README.md --ansi",
"vendor/bin/phpstan analyze -c phpstan.neon --ansi"
],
"fix": [
"@composer normalize",
"vendor/bin/ecs check ./src/ ./tests/ ecs.php --ansi --fix"
],
"lint": [
"vendor/bin/parallel-lint -j 10 -e php ./src ./tests ecs.php",
"@composer validate",
"@composer normalize --dry-run"
],
"test": [
"vendor/bin/phpunit --colors=always"
]
}
}