-
Notifications
You must be signed in to change notification settings - Fork 3
/
composer.json
82 lines (82 loc) · 2.53 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
{
"name": "yoast/yoastcs",
"description": "PHP_CodeSniffer rules for Yoast projects",
"license": "MIT",
"type": "phpcodesniffer-standard",
"keywords": [
"phpcs",
"standards",
"static analysis",
"wordpress",
"yoast"
],
"authors": [
{
"name": "Team Yoast",
"email": "[email protected]",
"homepage": "https://yoast.com"
}
],
"homepage": "https://github.com/Yoast/yoastcs",
"support": {
"issues": "https://github.com/Yoast/yoastcs/issues",
"source": "https://github.com/Yoast/yoastcs",
"security": "https://github.com/Yoast/yoastcs/security/policy"
},
"require": {
"php": ">=7.2",
"ext-tokenizer": "*",
"automattic/vipwpcs": "^3.0.0",
"php-parallel-lint/php-console-highlighter": "^1.0.0",
"php-parallel-lint/php-parallel-lint": "^1.4.0",
"phpcompatibility/phpcompatibility-wp": "^2.1.4",
"phpcsstandards/phpcsextra": "^1.2.1",
"phpcsstandards/phpcsutils": "^1.0.10",
"sirbrillig/phpcs-variable-analysis": "^2.11.17",
"slevomat/coding-standard": "^8.15.0",
"squizlabs/php_codesniffer": "^3.9.1",
"wp-coding-standards/wpcs": "^3.1.0"
},
"require-dev": {
"phpcompatibility/php-compatibility": "^9.3.5",
"phpcsstandards/phpcsdevtools": "^1.2.1",
"phpunit/phpunit": "^8.0 || ^9.0",
"roave/security-advisories": "dev-master"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"lock": false
},
"scripts": {
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git"
],
"check-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcs"
],
"fix-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
],
"test": [
"@php ./vendor/phpunit/phpunit/phpunit --filter Yoast ./vendor/squizlabs/php_codesniffer/tests/AllTests.php --no-coverage"
],
"coverage": [
"@php ./vendor/phpunit/phpunit/phpunit --filter Yoast ./vendor/squizlabs/php_codesniffer/tests/AllTests.php"
],
"check-complete": [
"@php ./vendor/phpcsstandards/phpcsdevtools/bin/phpcs-check-feature-completeness ./Yoast"
]
},
"scripts-descriptions": {
"lint": "Check the PHP files for parse errors.",
"check-cs": "Check the PHP files for code style violations and best practices.",
"fix-cs": "Auto-fix code style violations in the PHP files.",
"test": "Run the unit tests without code coverage.",
"coverage": "Run the unit tests with code coverage.",
"check-complete": "Check if all the sniffs have tests and XML documentation."
}
}