我在一个rails 4应用程序中使用了pre-commit和rubocop。我想避开引号检查,这会导致像Prefer single-quoted strings when you don't need string interpolation or special symbols.这样的错误
这是我在.rubocop.yml中已经尝试过的,但没有达到我想要的效果。
Style/StringLiterals:
Enabled: false
Style/UnneededPercentQ:
Enabled: false发布于 2014-09-01 21:00:30
您可以尝试:
Style/StringLiterals:
EnforcedStyle: double_quoteshttps://stackoverflow.com/questions/25606309
复制相似问题