提问人:user2219071 提问时间:11/30/2022 最后编辑:user2219071 更新时间:11/30/2022 访问量:98
代码嗅探器自定义 PSR2。Methods.FunctionCallSignature.MultipleArguments 规则
Code sniffer custom PSR2.Methods.FunctionCallSignature.MultipleArguments rule
问:
嗨,我需要更改使用选项卡的规则。
现在我有自定义配置:PSR2.Methods.FunctionCallSignature.MultipleArguments
<arg name="tab-width" value="4"/>
<rule ref="PSR2">
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore"/>
</rule>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="tabIndent" value="true"/>
</properties>
</rule>
当我使用时,修复是可以的:
从phpcbf
$this->afpJobService->createFileThumb(
$this->a, $this->b, $this->c, $this->d, $e
);
自:
$this->afpJobService->createFileThumb(
$this->a,
$this->b,
$this->c,
$this->d,
$e
);
但是使用 SPACES,而不是 TABS。我怎样才能改变它?
命令运行参数sniffs=PSR2.Methods.FunctionCallSignature
答: 暂无答案
评论