【发布时间】:2016-06-22 12:31:19
【问题描述】:
我想在 Rubocop 中对匹配 *_spec.rb(Serverspec 文件)的文件名全局禁用行长度检查。
我尝试通过以下方式将Exclude 添加到config/default.yml,但它不起作用(没有错误,检测到违规行为):
Metrics/LineLength:
Max: 80
AllowHeredoc: true
AllowURI: true
URISchemes:
- http
- https
Exclude:
- '*_spec.rb'
如果可能,应该在哪里/如何配置?
【问题讨论】:
标签: rubocop