Disable frozen string literal comment checking

mpalencia picture mpalencia · Jul 12, 2016 · Viewed 16k times · Source

I'm newbie in Rails. I am using 'Rubocop' for checking standards, however I'm bothered with the way it checks the 'frozen string literal'. It keeps on saying on my files:

Missing frozen string literal comment.

Is there a way to disable the checking of this on rubocop? Or is it a bad idea to disable it?

I tried this on rubocop.yml but didn't work

frozen_string_literal: false

Answer

mpalencia picture mpalencia · Jul 15, 2016

This one worked for me

Style/FrozenStringLiteralComment:
  Enabled: false