Use indented style for multiline method calls

This enables the Rubocop's Style/MultilineMethodCallIndentation cop with
indentend enforced style. Which makes you split multiline method calls like:

  orders = Spree::Order
    .an_scope
    .another_scope
    .where(id: list_of_ids)

It also autofixes the current violations and updates the
rubocop_todo.yml
This commit is contained in:
Pau Perez
2017-07-11 10:10:07 +02:00
parent d0c6292e9d
commit cee24dcca7
35 changed files with 236 additions and 216 deletions

View File

@@ -29,7 +29,7 @@ class BaseController < ApplicationController
end
@order_cycles = OrderCycle.with_distributor(@distributor).active
.order(@distributor.preferred_shopfront_order_cycle_order)
.order(@distributor.preferred_shopfront_order_cycle_order)
applicator = OpenFoodNetwork::TagRuleApplicator.new(@distributor, "FilterOrderCycles", current_customer.andand.tag_list)
applicator.filter!(@order_cycles)