Corrected with rubocop cop 'Style/MultilineOperationIndentation'.
This commit is contained in:
parent
ffb2836ed7
commit
3cefc118c9
5 changed files with 5 additions and 7 deletions
|
@ -268,8 +268,6 @@ Lint/AmbiguousRegexpLiteral:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Rails/Validation:
|
Rails/Validation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/MultilineOperationIndentation:
|
|
||||||
Enabled: false
|
|
||||||
Lint/Eval:
|
Lint/Eval:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Style/ModuleFunction:
|
Style/ModuleFunction:
|
||||||
|
|
|
@ -163,7 +163,7 @@ returns
|
||||||
history_object_related.id,
|
history_object_related.id,
|
||||||
requested_object_id,
|
requested_object_id,
|
||||||
)
|
)
|
||||||
.order('created_at ASC, id ASC')
|
.order('created_at ASC, id ASC') # rubocop:disable Style/MultilineOperationIndentation
|
||||||
end
|
end
|
||||||
asset_list = {}
|
asset_list = {}
|
||||||
list = []
|
list = []
|
||||||
|
|
|
@ -116,8 +116,8 @@ return all online notifications of an object
|
||||||
object_lookup_id: object_id,
|
object_lookup_id: object_id,
|
||||||
o_id: o_id,
|
o_id: o_id,
|
||||||
)
|
)
|
||||||
.order( 'created_at DESC, id DESC' )
|
.order( 'created_at DESC, id DESC' ) # rubocop:disable Style/MultilineOperationIndentation
|
||||||
.limit( 10_000 )
|
.limit( 10_000 ) # rubocop:disable Style/MultilineOperationIndentation
|
||||||
|
|
||||||
list = []
|
list = []
|
||||||
notifications.each do |item|
|
notifications.each do |item|
|
||||||
|
|
|
@ -46,7 +46,7 @@ class String
|
||||||
end
|
end
|
||||||
c
|
c
|
||||||
}
|
}
|
||||||
.join('')
|
.join('') # rubocop:disable Style/MultilineOperationIndentation
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
|
@ -1262,7 +1262,7 @@ module Import::OTRS2
|
||||||
if !user
|
if !user
|
||||||
begin
|
begin
|
||||||
display_name = Mail::Address.new( article['from'] ).display_name ||
|
display_name = Mail::Address.new( article['from'] ).display_name ||
|
||||||
( Mail::Address.new( article['from'] ).comments && Mail::Address.new( article['from'] ).comments[0] )
|
( Mail::Address.new( article['from'] ).comments && Mail::Address.new( article['from'] ).comments[0] )
|
||||||
rescue
|
rescue
|
||||||
display_name = article['from']
|
display_name = article['from']
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue