From 6fa1c0cdfccdabcdcfbeb3659daadf88932842f5 Mon Sep 17 00:00:00 2001 From: James Mead <3169+floehopper@users.noreply.github.com> Date: Thu, 26 Jul 2018 11:40:30 +0100 Subject: [PATCH] Disable Style/FrozenStringLiteralComment for all files 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. --- .rubocop.yml | 4 ++++ .rubocop_todo.yml | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 21e7490c7..7a36a1e04 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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 diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 8f78b8662..e7e29ba1c 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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