Skip to content

Commit

Permalink
Disable Style/FrozenStringLiteralComment for all files
Browse files Browse the repository at this point in the history
The `frozen_string_literal` magic comment has only been supported since
Ruby v2.3 and I don't want to jeopardise support for earlier versions of
Ruby.
  • Loading branch information
floehopper committed Jul 26, 2018
1 parent 2cc5a52 commit 6fa1c0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Expand Up @@ -50,3 +50,7 @@ Style/SymbolArray:
# I'm not keen on this cop, because it's easy to miss the while/until
Style/WhileUntilModifier:
Enabled: false

# frozen_string_literal magic comment has only been supported since Ruby v2.3
Style/FrozenStringLiteralComment:
Enabled: false
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Expand Up @@ -93,13 +93,6 @@ Style/AccessModifierDeclarations:
Style/Documentation:
Enabled: false

# Offense count: 237
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: when_needed, always, never
Style/FrozenStringLiteralComment:
Enabled: false

# Offense count: 777
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Expand Down

0 comments on commit 6fa1c0c

Please sign in to comment.