mpalencia mpalencia - 2 days ago 5
Ruby Question

Disable frozen string literal comment checking

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

This one worked for me

Style/FrozenStringLiteralComment:
  Enabled: false
Comments