Rubocop FrozenStringLiteralComment
Tim Riley gave me yet another reminder that you should take time to read the documentation.
In a recent post Tim showed how you can configure Rubocop to automatically insert the frozen string literal magic comment into Ruby source files.
Style/FrozenStringLiteralComment:
Enabled: true
EnforcedStyle: always_true
SafeAutoCorrect: true
My editor auto completes the line once I start typing it but this is a much better solution. Cheers Tim.