Corrected with rubocop cop 'Style/MultilineOperationIndentation'.

This commit is contained in:
Thorsten Eckel 2015-05-05 15:23:45 +02:00
parent ffb2836ed7
commit 3cefc118c9
5 changed files with 5 additions and 7 deletions

View file

@ -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:

View file

@ -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 = []

View file

@ -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|

View file

@ -46,7 +46,7 @@ class String
end end
c c
} }
.join('') .join('') # rubocop:disable Style/MultilineOperationIndentation
end end
=begin =begin