yieldstudio/grumphp-laravel-pint
最新稳定版本:1.0.0
Composer 安装命令:
composer require yieldstudio/grumphp-laravel-pint
包简介
A Laravel Pint task for GrumPHP.
README 文档
README
A Laravel Pint task for GrumPHP.
Installation
composer require yieldstudio/grumphp-laravel-pint
For GrumPHP v1 :
composer require yieldstudio/grumphp-laravel-pint:^0.0.2
Usage
In your grumphp.yml :
grumphp: extensions: - YieldStudio\GrumPHPLaravelPint\ExtensionLoader tasks: laravel_pint: # These are all optional and have been set to sensible defaults. config: pint.json preset: laravel # Auto fix Laravel Pint issues # Can be false, true, 'run' or 'pre_commit' (default) auto_fix: 'pre_commit' # Auto stage files after auto fix # Can be false, true, 'run' or 'pre_commit' (default) # Works only if the task has been auto fixed (Without GrumPHP having to ask for it) auto_stage: 'pre_commit' triggered_by: - php ignore_patterns: - /^a-patten-to-ignore-files-or-folders\/.*/
Auto fix
When auto_fix is not enabled, GrumPHP runs Pint in dry mode and then asks if you want to apply patches automatically.
By default, auto_fix is enabled only in a pre_commit context.
Possible values are true, false, pre_commit, run.
Auto stage
Allows you to automatically stage (git add) files affected by Pint with GrumPHP.
By default, auto_stage is enabled only in a pre_commit context.
This option only works when auto_fix is enabled for the runtime context.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
If you've found a bug regarding security please mail contact@yieldstudio.fr instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 207.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 2
- 依赖项目数: 10
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-27