mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-03-31 09:55:47 +00:00
AutoFix RuboCop Layout/EndAlignment
This commit is contained in:
parent
cf62a2439d
commit
4cdf5f31b6
3 changed files with 2 additions and 11 deletions
|
|
@ -29,15 +29,6 @@ Gemspec/RequiredRubyVersion:
|
|||
Exclude:
|
||||
- 'grape_logging.gemspec'
|
||||
|
||||
# Offense count: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
||||
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
||||
Layout/EndAlignment:
|
||||
Exclude:
|
||||
- 'lib/grape_logging/middleware/request_logger.rb'
|
||||
- 'spec/lib/grape_logging/formatters/rails_spec.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ module GrapeLogging
|
|||
Reporters::ActiveSupportReporter.new(@options[:instrumentation_key])
|
||||
else
|
||||
Reporters::LoggerReporter.new(@options[:logger], @options[:formatter], @options[:log_level])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def before
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ describe GrapeLogging::Formatters::Rails do
|
|||
' Parameters: {"some_param" => {value_1: "123", value_2: "456"}}'
|
||||
else
|
||||
' Parameters: {"some_param"=>{:value_1=>"123", :value_2=>"456"}}'
|
||||
end
|
||||
end
|
||||
expect(lines.first).to eq expected_output
|
||||
expect(lines.last).to eq "Completed 200 OK in 272.4ms (Views: 231.77ms | DB: 40.63ms)"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue