Auto correct Rubocop's Layout/EmptyLinesAroundMethodBody cop

This commit is contained in:
Pau Perez
2018-04-09 17:34:50 +02:00
parent 3161fa3801
commit 6593dea4f6
5 changed files with 0 additions and 13 deletions

View File

@@ -336,15 +336,6 @@ Layout/EmptyLinesAroundClassBody:
- 'lib/open_food_network/rack_request_blocker.rb'
- 'lib/open_food_network/reports/bulk_coop_report.rb'
# Offense count: 4
# Cop supports --auto-correct.
Layout/EmptyLinesAroundMethodBody:
Exclude:
- 'app/controllers/checkout_controller.rb'
- 'app/controllers/spree/admin/reports_controller_decorator.rb'
- 'app/serializers/api/product_serializer.rb'
- 'lib/open_food_network/orders_and_fulfillments_report.rb'
# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.

View File

@@ -84,7 +84,6 @@ class CheckoutController < Spree::CheckoutController
customer_bill_address_id = @order.customer.bill_address.andand.id
@order.customer.update_attributes(bill_address_attributes: new_bill_address.merge('id' => customer_bill_address_id))
end
end
def set_default_ship_address

View File

@@ -222,7 +222,6 @@ Spree::Admin::ReportsController.class_eval do
csv_file_name = "#{params[:report_type]}_#{timestamp}.csv"
render_report(@report.header, @table, params[:csv], csv_file_name)
end
def products_and_inventory

View File

@@ -27,7 +27,6 @@ class Api::UncachedProductSerializer < ActiveModel::Serializer
else
object.master.price_with_fees(options[:current_distributor], options[:current_order_cycle])
end
end
end

View File

@@ -43,7 +43,6 @@ module OpenFoodNetwork
I18n.t(:report_header_amount), I18n.t(:report_header_curr_cost_per_unit), I18n.t(:report_header_total_cost),
I18n.t(:report_header_status), I18n.t(:report_header_incoming_transport)]
end
end
def search