Fix Style/FirstParameterIndentation
This commit is contained in:
parent
4b3fbab08a
commit
9ec7bb82af
|
@ -62,14 +62,6 @@ Style/ClassAndModuleChildren:
|
|||
Style/Documentation:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
||||
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
||||
Style/FirstParameterIndentation:
|
||||
Exclude:
|
||||
- 'lib/paper_trail/serializers/json.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
Style/Lambda:
|
||||
|
|
|
@ -25,8 +25,7 @@ module PaperTrail
|
|||
# 123.
|
||||
if value.is_a? Numeric
|
||||
arel_field.matches("%\"#{field}\":#{json_value},%").
|
||||
or(
|
||||
arel_field.matches("%\"#{field}\":#{json_value}}%"))
|
||||
or(arel_field.matches("%\"#{field}\":#{json_value}}%"))
|
||||
else
|
||||
arel_field.matches("%\"#{field}\":#{json_value}%")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue