Auto correct Rubocop's Layout/ClosingParenthesisIndentation cop

This commit is contained in:
Pau Perez
2018-04-09 17:22:52 +02:00
parent e4c86df7b2
commit e876ef7df1
3 changed files with 3 additions and 10 deletions

View File

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

View File

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

View File

@@ -21,6 +21,6 @@ describe Api::VariantSerializer do
:price_with_fees,
:product_name,
:tag_list # Used to apply tag rules
)
)
end
end