LogofaT
LogofaT

Reputation: 289

Rails configure rubocop

I am using pre-commit and rubocop gem in a rails 4 application. I would like to escape quote checks which result in errors like Prefer single-quoted strings when you don't need string interpolation or special symbols.

This is what i have already tried in .rubocop.yml but it doesn't have the effect that I want.

Style/StringLiterals:
 Enabled: false
Style/UnneededPercentQ:
 Enabled: false

Upvotes: 1

Views: 1724

Answers (1)

Igor Guzak
Igor Guzak

Reputation: 2165

you could try:

Style/StringLiterals:
  EnforcedStyle: double_quotes

Upvotes: 4

Related Questions