-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
composer.json
66 lines (66 loc) · 2.82 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
{
"name": "spaze/phpstan-disallowed-calls",
"type": "phpstan-extension",
"description": "PHPStan rules to detect disallowed method & function calls, constant, namespace & superglobal usages",
"license": "MIT",
"authors": [
{
"name": "Michal Špaček",
"homepage": "https://www.michalspacek.cz",
"email": "[email protected]"
}
],
"keywords": [
"static analysis"
],
"extra": {
"phpstan": {
"includes": [
"extension.neon"
]
}
},
"require": {
"php": "^7.4 || ^8.0",
"phpstan/phpstan": "^1.12.6 || ^2.0"
},
"require-dev": {
"nette/neon": "^3.3.1",
"nikic/php-parser": "^4.13 || ^5.0",
"phpunit/phpunit": "^8.5.14 || ^10.1 || ^11.0",
"php-parallel-lint/php-parallel-lint": "^1.2",
"php-parallel-lint/php-console-highlighter": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1.2 || ^2.0",
"spaze/coding-standard": "^1.7"
},
"autoload": {
"psr-4": {"Spaze\\PHPStan\\Rules\\Disallowed\\": "src"}
},
"autoload-dev": {
"classmap": ["tests/src"]
},
"scripts": {
"lint": "vendor/bin/parallel-lint --colors src/ tests/",
"lint-7.x": "vendor/bin/parallel-lint --colors src/ tests/ --exclude tests/src/TypesEverywhere.php --exclude tests/src/AttributesEverywhere.php --exclude tests/src/disallowed/functionCallsNamedParams.php --exclude tests/src/disallowed-allow/functionCallsNamedParams.php --exclude tests/src/disallowed/attributeUsages.php --exclude tests/src/disallowed-allow/attributeUsages.php --exclude tests/src/disallowed/constantDynamicUsages.php --exclude tests/src/disallowed-allow/constantDynamicUsages.php --exclude tests/src/Enums.php --exclude tests/src/disallowed/controlStructures.php --exclude tests/src/disallowed-allow/controlStructures.php",
"lint-8.0": "vendor/bin/parallel-lint --colors src/ tests/ --exclude tests/src/TypesEverywhere.php --exclude tests/src/AttributesEverywhere.php --exclude tests/src/disallowed/constantDynamicUsages.php --exclude tests/src/disallowed-allow/constantDynamicUsages.php --exclude tests/src/Enums.php",
"lint-8.1": "vendor/bin/parallel-lint --colors src/ tests/ --exclude tests/src/AttributesEverywhere.php --exclude tests/src/disallowed/constantDynamicUsages.php --exclude tests/src/disallowed-allow/constantDynamicUsages.php",
"lint-8.2": "vendor/bin/parallel-lint --colors src/ tests/ --exclude tests/src/disallowed/constantDynamicUsages.php --exclude tests/src/disallowed-allow/constantDynamicUsages.php",
"lint-neon": "vendor/bin/neon-lint .",
"phpcs": "vendor/bin/phpcs src/ tests/",
"cs-fix": "vendor/bin/phpcbf src/ tests/",
"phpstan": "vendor/bin/phpstan --ansi analyse --configuration phpstan.neon",
"phpunit": "vendor/bin/phpunit --colors=always",
"test": [
"@lint",
"@lint-neon",
"@phpcs",
"@phpstan",
"@phpunit"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}