mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-27 14:57:40 +00:00
AutoFix RuboCop Style/RedundantConstantBase
This commit is contained in:
parent
e6af1dabf8
commit
3a71be798e
2 changed files with 1 additions and 7 deletions
|
|
@ -224,12 +224,6 @@ Style/QuotedSymbols:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'spec/lib/grape_logging/loggers/response_spec.rb'
|
- 'spec/lib/grape_logging/loggers/response_spec.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
# This cop supports safe autocorrection (--autocorrect).
|
|
||||||
Style/RedundantConstantBase:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/grape_logging/util/parameter_filter.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.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
if defined?(::Rails.application)
|
if defined?(Rails.application)
|
||||||
if Gem::Version.new(Rails.version) < Gem::Version.new('6.0.0')
|
if Gem::Version.new(Rails.version) < Gem::Version.new('6.0.0')
|
||||||
class ParameterFilter < ActionDispatch::Http::ParameterFilter
|
class ParameterFilter < ActionDispatch::Http::ParameterFilter
|
||||||
def initialize(_replacement, filter_parameters)
|
def initialize(_replacement, filter_parameters)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue