[英]How to configure Atom linter-rubocop to run --rails flag always
[英]Rails configure rubocop
我在Rails 4應用程序中使用pre-commit和rubocop gem。 我想避免使用引號檢查, Prefer single-quoted strings when you don't need string interpolation or special symbols.
,會導致諸如“ Prefer single-quoted strings when you don't need string interpolation or special symbols.
類的錯誤Prefer single-quoted strings when you don't need string interpolation or special symbols.
這是我已經在.rubocop.yml中嘗試過的方法,但沒有達到我想要的效果。
Style/StringLiterals:
Enabled: false
Style/UnneededPercentQ:
Enabled: false
您可以嘗試:
Style/StringLiterals:
EnforcedStyle: double_quotes
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.