mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-03-25 08:55:47 +00:00
AutoFix RuboCop Style/ParallelAssignment
This commit is contained in:
parent
481a6f67ff
commit
c1fa224cc2
2 changed files with 3 additions and 7 deletions
|
|
@ -202,12 +202,6 @@ Style/OpenStructUse:
|
|||
- 'spec/lib/grape_logging/loggers/request_headers_spec.rb'
|
||||
- 'spec/lib/grape_logging/loggers/response_spec.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Style/ParallelAssignment:
|
||||
Exclude:
|
||||
- 'lib/grape_logging/util/parameter_filter.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
||||
|
|
|
|||
|
|
@ -39,7 +39,9 @@ else
|
|||
def self.compile(replacement, filters)
|
||||
return lambda { |params| params.dup } if filters.empty?
|
||||
|
||||
strings, regexps, blocks = [], [], []
|
||||
strings = []
|
||||
regexps = []
|
||||
blocks = []
|
||||
|
||||
filters.each do |item|
|
||||
case item
|
||||
|
|
|
|||
Loading…
Reference in a new issue