Php 编写器继续执行错误代码
使用composer,我试图自动格式化代码,但当php cs fixer修复其中一个目录时,它将以0以外的代码退出,而不会继续修复其余目录。当存在非0的退出代码时,是否有方法告诉composer继续 composer.json:Php 编写器继续执行错误代码,php,shell,composer-php,Php,Shell,Composer Php,使用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/" ],
"csf": [
"php-cs-fixer fix models/",
"php-cs-fixer fix config/",
"php-cs-fixer fix controllers/",
"php-cs-fixer fix test/"
],
在
.php\u cs
配置文件中定义修复路径,例如“
在
.php\u cs
配置文件中定义修复路径,例如“
return PhpCsFixer\Config::create()
->setFinder(
PhpCsFixer\Finder::create()
->in([
__DIR__.'/models',
__DIR__.'/config',
__DIR__.'/controllers',
__DIR__.'/test',
])
)
;