schnittstabil / sugared-php-cs-fixer
2.1.0
2018-03-31 21:43 UTC
Requires
- php: >=5.6.0
- friendsofphp/php-cs-fixer: ^2.0
- schnittstabil/composer-extra: ^1.0 || ^2.0
- schnittstabil/finder-by-config: ^0.1 || ^1.0
- schnittstabil/get: ^2.0 || ^3.0
Requires (Dev)
- sugared-rim/phpunit: ^2.0 || ^6.0 || ^7.0
This package is not auto-updated.
Last update: 2022-02-01 12:57:37 UTC
README
PHP-CS-Fixer 轻松加糖 🍒
SugaredRim\PHP-CS-Fixer 对代码风格检查持有自己的看法,并预配置了PHP-CS-Fixer,以尽可能快地帮助您开始使用。
安装
$ composer require --dev sugared-rim/php-cs-fixer
使用
无需运行带有所有选项的 php-cs-fixer
,只需运行 sugared-rim-php-cs-fixer
即可。
{ ... "require-dev": { "sugared-rim/php-cs-fixer": ... }, "scripts": { "lint": "sugared-rim-php-cs-fixer" } }
配置
您可以通过在 composer.json
中放置它来覆盖一些选项。
一些默认设置
{ ... "scripts": { "lint": "sugared-rim-php-cs-fixer" }, "extra": { "sugared-rim/php-cs-fixer": { "diff": true, "dry-run": true, "cache": true, "path": { "in": [ "." ], "name": [ "*.php", "*.phtml", "*.twig", "*.xml", "*.yml" ], "exclude": [ "build", "bower_components", "node_modules", "vendor" ], "ignoreDotFiles": true, "ignoreVCS": true } } } }
许可证
MIT © Michael Mayer