0
显然有两种方法配置scrutinizer-ci使用自定义phpCodeSniffer标准。该文档仅提及phpcs在“构建”节点中使用,并且不清楚它们是否做了不同的事情,或者如果有人比其他人更喜欢。scrutinizer-ci配置PHP代码嗅探器
文档参考:https://scrutinizer-ci.com/docs/tools/php/code-sniffer/
是什么运行“构建”或“检查”里面的检查有什么区别?我应该同时使用吗?
checks:
php:
custom_coding_standard:
ruleset_path: 'ruleset.xml'
build:
tests:
override:
- 'phpcs-run --standard=ruleset.xml'