From 9e33e1f76fd16a90fdc91ac782a59cb6275e4513 Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Tue, 8 Jul 2025 17:15:37 +0100 Subject: [PATCH] AutoFix RuboCop Style/StringLiteralsInInterpolation --- .rubocop_todo.yml | 8 -------- lib/grape_logging/formatters/rails.rb | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 1183460..f0c05ae 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -291,14 +291,6 @@ Style/StringLiterals: - 'spec/lib/grape_logging/loggers/response_spec.rb' - 'spec/lib/grape_logging/middleware/request_logger_spec.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: single_quotes, double_quotes -Style/StringLiteralsInInterpolation: - Exclude: - - 'lib/grape_logging/formatters/rails.rb' - # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments. diff --git a/lib/grape_logging/formatters/rails.rb b/lib/grape_logging/formatters/rails.rb index 4d43548..6d82abc 100644 --- a/lib/grape_logging/formatters/rails.rb +++ b/lib/grape_logging/formatters/rails.rb @@ -46,7 +46,7 @@ module GrapeLogging message << " Parameters: #{params.inspect}\n" if params message << "Completed #{status} #{::Rack::Utils::HTTP_STATUS_CODES[status]} in #{total_time}ms" - message << " (#{additions.join(" | ".freeze)})" unless additions.empty? + message << " (#{additions.join(' | '.freeze)})" unless additions.empty? message << "\n" message << "\n" if defined?(::Rails.env) && ::Rails.env.development?