editions-tissot/php-cs-fixer-config
最新稳定版本:v4.0.2
Composer 安装命令:
composer require editions-tissot/php-cs-fixer-config
包简介
PHP CS Fixer config
README 文档
README
PHP CS Fixer config for Editions Tissot components.
Installation
Run
$ composer require --dev editions-tissot/php-cs-fixer-config
Usage
Configuration
Create a configuration file .php-cs-fixer.dist.php in the root of your project:
<?php $config = new EditionsTissot\CS\Config\Config; $config->getFinder() ->in( [ __DIR__.'/src', __DIR__.'/tests', ] ); return $config;
Git
Add .php-cs-fixer.cache (this is the cache file created by php-cs-fixer) to .gitignore:
vendor/
.php-cs-fixer.cache
Makefile
Create a Makefile with the targets below:
# Coding Style cs: ./bin/php-cs-fixer fix --dry-run --stop-on-violation --diff cs-fix: ./bin/php-cs-fixer fix cs-ci: ./bin/php-cs-fixer fix --dry-run --using-cache=no --verbose
Fixing issues
Manually
If you need to check issues locally, just run
$ make cs
If you need to fix issues locally, just run
$ make cs-fix
In your Continuous Integration, run
$ make cs-ci
Credits
Developed by Editions Tissot , inspired by Rémy BRUYERE (rem42).
License
This project is licensed under the MIT license.
统计信息
- 总下载量: 5.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-10