使用composer,我试图自动格式化代码,但当php-cs-fixer修复其中一个目录时,它将以非0的代码退出,并且不会继续修复其余的目录。有没有办法在退出代码不是0的时候告诉composer继续?
composer.json:
"csf": [
"php-cs-fixer fix models/",
"php-cs-fixer fix config/",
"php-cs-fixer fix controllers/",
"php-cs-fixer fix test/"
],发布于 2018-05-31 03:46:16
改为在.php_cs配置文件中定义修复路径,例如“
return PhpCsFixer\Config::create()
->setFinder(
PhpCsFixer\Finder::create()
->in([
__DIR__.'/models',
__DIR__.'/config',
__DIR__.'/controllers',
__DIR__.'/test',
])
)
;https://stackoverflow.com/questions/41746352
复制相似问题