【发布时间】:2020-09-24 22:25:00
【问题描述】:
我正在使用 GrumPhp 来嗅探我在 symfony 项目中的提交:https://github.com/phpro/grumphp
这是我的配置:
parameters:
git_dir: .
bin_dir: vendor/bin
tasks:
phpcsfixer:
config_file: ~
config: sf23
fixers: [psr2, symfony, indentation]
level: psr2
verbose: true
我的问题是:
有没有办法让 Grumphp 在我提交时自动运行php-cs-fixer?
【问题讨论】:
-
如果你运行 ./vendor/bin/grumphp run 你的输出是什么?