我只想用几个来自gem rubocop rspec的警察。
我试过这种方法,但不起作用:
require:
- rubocop-rspec
RSpec:
Enabled: false
RSpec/ExampleWithoutDescription:
Enabled: true我也尝试过这个:
require:
- rubocop-rspec
AllCops:
RSpec:
Enabled: false
RSpec/ExampleWithoutDescription:
Enabled: true发布于 2020-02-07 22:52:42
默认情况下,您可以禁用所有cops -根据the documentation
AllCops:
DisabledByDefault: truehttps://stackoverflow.com/questions/60114188
复制相似问题