mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-03 10:25:47 +00:00
AutoFix RuboCop Style/StringLiteralsInInterpolation
This commit is contained in:
parent
78f7ba0e64
commit
9e33e1f76f
2 changed files with 1 additions and 9 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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?
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue