mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-27 14:57:40 +00:00
AutoFix RuboCop Style/PercentLiteralDelimiters
This commit is contained in:
parent
6f0ffc2fda
commit
481a6f67ff
2 changed files with 1 additions and 9 deletions
|
|
@ -208,14 +208,6 @@ Style/ParallelAssignment:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/grape_logging/util/parameter_filter.rb'
|
- 'lib/grape_logging/util/parameter_filter.rb'
|
||||||
|
|
||||||
# Offense count: 3
|
|
||||||
# This cop supports safe autocorrection (--autocorrect).
|
|
||||||
# Configuration parameters: PreferredDelimiters.
|
|
||||||
Style/PercentLiteralDelimiters:
|
|
||||||
Exclude:
|
|
||||||
- 'grape_logging.gemspec'
|
|
||||||
- 'lib/grape_logging/loggers/filter_parameters.rb'
|
|
||||||
|
|
||||||
# Offense count: 3
|
# Offense count: 3
|
||||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||||
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ module GrapeLogging
|
||||||
class FilterParameters < GrapeLogging::Loggers::Base
|
class FilterParameters < GrapeLogging::Loggers::Base
|
||||||
AD_PARAMS = 'action_dispatch.request.parameters'.freeze
|
AD_PARAMS = 'action_dispatch.request.parameters'.freeze
|
||||||
|
|
||||||
def initialize(filter_parameters = nil, replacement = nil, exceptions = %w(controller action format))
|
def initialize(filter_parameters = nil, replacement = nil, exceptions = %w[controller action format])
|
||||||
@filter_parameters = filter_parameters || (defined?(::Rails.application) ? ::Rails.application.config.filter_parameters : [])
|
@filter_parameters = filter_parameters || (defined?(::Rails.application) ? ::Rails.application.config.filter_parameters : [])
|
||||||
@replacement = replacement || '[FILTERED]'
|
@replacement = replacement || '[FILTERED]'
|
||||||
@exceptions = exceptions
|
@exceptions = exceptions
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue