/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
test/php/gutenberg-coding-standards/composer.json
67 строк
2 KB
Jon Surrell
Update phpcs, wpcs dependencies (#81279)
06 авг 2026, 14:44
Не верифицирован
06 авг 2026, 14:44
23b5b85
Код
Авторство
О чём код?
{ "name": "gutenberg/gutenberg-coding-standards", "type": "phpcodesniffer-standard", "description": "PHP_CodeSniffer rules (sniffs) to enforce Gutenberg coding conventions", "keywords": [ "phpcs", "standards", "static analysis", "Gutenberg" ], "license": "GPL-2.0-or-later", "authors": [ { "name": "Contributors", "homepage": "https://github.com/WordPress/gutenberg/graphs/contributors" } ], "require": { "php": ">=7.0", "ext-libxml": "*", "ext-tokenizer": "*", "ext-xmlreader": "*", "squizlabs/php_codesniffer": "^3.13.6", "phpcsstandards/phpcsutils": "^1.0.8" }, "require-dev": { "phpcompatibility/php-compatibility": "^9.0", "phpunit/phpunit": "^5.0 || ^6.0 || ^7.0", "php-parallel-lint/php-parallel-lint": "^1.3.2", "php-parallel-lint/php-console-highlighter": "^1.0.0", "wp-coding-standards/wpcs": "^3.4.1" }, "suggest": { "ext-mbstring": "For improved results" }, "config": { "allow-plugins": { "dealerdirect/phpcodesniffer-composer-installer": true } }, "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" ], "run-tests": [ "@php ./vendor/phpunit/phpunit/phpunit --filter Gutenberg ./vendor/squizlabs/php_codesniffer/tests/AllTests.php --no-coverage" ], "check-all": [ "@lint", "@check-cs", "@run-tests" ] }, "scripts-descriptions": { "lint": "Lint PHP files against parse errors.", "check-cs": "Run the PHPCS script against the entire codebase.", "fix-cs": "Run the PHPCBF script to fix all the autofixable violations on the codebase.", "run-tests": "Run all the unit tests for the Gutenberg Coding Standards sniffs.", "check-all": "Run all checks (lint, phpcs) and tests." } }