相当于 haml-lint 的 --fail-level
Equivalent of --fail-level for haml-lint
RuboCop 具有 --fail-level
配置选项:
--fail-level
Minimum severity for exit with error code. Full severity name or
upper case initial can be given. Normally, auto-corrected offenses are
ignored. Use A or autocorrect if you'd like them to trigger failure.
是否有 haml-lint 的等价物,即使文件有警告,haml-lint 程序 returns 成功,所以它可以在 CI 中使用?
Haml-lint 具有严重级别:
severity
The severity of the linter. External tools consuming haml-lint output
can use this to determine whether to warn or error based on the lints
reported.
但没有 --fail-level
的迹象。
作为解决方法,如果您只想测试错误,请选择不太可能失败的单个 linter:
bundle exec haml-lint --include-linter ClassAttributeWithStaticValue app/views/
RuboCop 具有 --fail-level
配置选项:
--fail-level
Minimum severity for exit with error code. Full severity name or upper case initial can be given. Normally, auto-corrected offenses are ignored. Use A or autocorrect if you'd like them to trigger failure.
是否有 haml-lint 的等价物,即使文件有警告,haml-lint 程序 returns 成功,所以它可以在 CI 中使用?
Haml-lint 具有严重级别:
severity
The severity of the linter. External tools consuming haml-lint output can use this to determine whether to warn or error based on the lints reported.
但没有 --fail-level
的迹象。
作为解决方法,如果您只想测试错误,请选择不太可能失败的单个 linter:
bundle exec haml-lint --include-linter ClassAttributeWithStaticValue app/views/