From e876ef7df10b84d071825bbf741b74d43f0c7f52 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Mon, 9 Apr 2018 17:22:52 +0200 Subject: [PATCH] Auto correct Rubocop's Layout/ClosingParenthesisIndentation cop --- .rubocop_todo.yml | 7 ------- app/overrides/add_capture_order_shortcut.rb | 4 ++-- spec/serializers/variant_serializer_spec.rb | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2708b078b6..d817553734 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -84,13 +84,6 @@ Layout/AlignParameters: - 'spec/lib/open_food_network/user_balance_calculator_spec.rb' - 'spec/support/request/authentication_workflow.rb' -# Offense count: 3 -# Cop supports --auto-correct. -Layout/ClosingParenthesisIndentation: - Exclude: - - 'app/overrides/add_capture_order_shortcut.rb' - - 'spec/serializers/variant_serializer_spec.rb' - # Offense count: 8 # Cop supports --auto-correct. Layout/CommentIndentation: diff --git a/app/overrides/add_capture_order_shortcut.rb b/app/overrides/add_capture_order_shortcut.rb index b24744261e..db6947cf08 100644 --- a/app/overrides/add_capture_order_shortcut.rb +++ b/app/overrides/add_capture_order_shortcut.rb @@ -2,10 +2,10 @@ Deface::Override.new(:virtual_path => "spree/admin/orders/index", :name => "add_capture_order_shortcut", :insert_bottom => "[data-hook='admin_orders_index_row_actions']", :partial => 'spree/admin/orders/capture' - ) + ) # And align actions column (not spree standard, but looks better IMO) Deface::Override.new(:virtual_path => "spree/admin/orders/index", :name => "add_capture_order_shortcut_align", :set_attributes => "[data-hook='admin_orders_index_row_actions']", :attributes => {:class => "actions", :style => "text-align:left;"} #removes 'align-center' class - ) + ) diff --git a/spec/serializers/variant_serializer_spec.rb b/spec/serializers/variant_serializer_spec.rb index 2df65b100e..02f5b26e8b 100644 --- a/spec/serializers/variant_serializer_spec.rb +++ b/spec/serializers/variant_serializer_spec.rb @@ -21,6 +21,6 @@ describe Api::VariantSerializer do :price_with_fees, :product_name, :tag_list # Used to apply tag rules - ) + ) end end