AutoFix RuboCop Style/BlockDelimiters

This commit is contained in:
Pieter Oliver 2025-07-08 17:23:49 +01:00
parent 086281a5e9
commit f3552bc1ff
No known key found for this signature in database
GPG key ID: AAC5BA1478582D1F
2 changed files with 2 additions and 13 deletions

View file

@ -97,17 +97,6 @@ Style/BlockComments:
Exclude:
- 'spec/spec_helper.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
# FunctionalMethods: let, let!, subject, watch
# AllowedMethods: lambda, proc, it
Style/BlockDelimiters:
Exclude:
- 'spec/lib/grape_logging/formatters/rails_spec.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: MinBranchesCount.

View file

@ -6,7 +6,7 @@ describe GrapeLogging::Formatters::Rails do
let(:datetime) { Time.new('2018', '03', '02', '10', '35', '04', '+13:00') }
let(:exception_data) { ArgumentError.new('Message') }
let(:hash_data) {
let(:hash_data) do
{
status: 200,
time: {
@ -18,7 +18,7 @@ describe GrapeLogging::Formatters::Rails do
path: '/api/endpoint',
host: 'localhost'
}
}
end
describe '#call' do
context 'string data' do