From 6f0ffc2fdaaee10916240a617a40220b91a81533 Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Tue, 8 Jul 2025 17:19:40 +0100 Subject: [PATCH] AutoFix RuboCop Style/QuotedSymbols --- .rubocop_todo.yml | 8 -------- spec/lib/grape_logging/loggers/response_spec.rb | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index e0c9e28..62a87f2 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -216,14 +216,6 @@ Style/PercentLiteralDelimiters: - 'grape_logging.gemspec' - 'lib/grape_logging/loggers/filter_parameters.rb' -# Offense count: 3 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: same_as_string_literals, single_quotes, double_quotes -Style/QuotedSymbols: - Exclude: - - 'spec/lib/grape_logging/loggers/response_spec.rb' - # Offense count: 3 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength. diff --git a/spec/lib/grape_logging/loggers/response_spec.rb b/spec/lib/grape_logging/loggers/response_spec.rb index d04d91d..430eb82 100644 --- a/spec/lib/grape_logging/loggers/response_spec.rb +++ b/spec/lib/grape_logging/loggers/response_spec.rb @@ -4,7 +4,7 @@ require 'ostruct' describe GrapeLogging::Loggers::Response do context 'with a parseable JSON body' do let(:response) do - OpenStruct.new(body: [{ "one": 'two', "three": { "four": 5 } }]) + OpenStruct.new(body: [{ 'one': 'two', 'three': { 'four': 5 } }]) end it 'returns an array of parsed JSON objects' do