diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 72f5e2c7e2..700d5a241b 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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. diff --git a/app/controllers/checkout_controller.rb b/app/controllers/checkout_controller.rb index 428626ef2e..16b5134b11 100644 --- a/app/controllers/checkout_controller.rb +++ b/app/controllers/checkout_controller.rb @@ -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 diff --git a/app/controllers/spree/admin/reports_controller_decorator.rb b/app/controllers/spree/admin/reports_controller_decorator.rb index 20379694a8..cbd997af0c 100644 --- a/app/controllers/spree/admin/reports_controller_decorator.rb +++ b/app/controllers/spree/admin/reports_controller_decorator.rb @@ -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 diff --git a/app/serializers/api/product_serializer.rb b/app/serializers/api/product_serializer.rb index 1ccc46b15f..27ea6c5ed4 100644 --- a/app/serializers/api/product_serializer.rb +++ b/app/serializers/api/product_serializer.rb @@ -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 diff --git a/lib/open_food_network/orders_and_fulfillments_report.rb b/lib/open_food_network/orders_and_fulfillments_report.rb index 94fef9bea1..7f71b33c1c 100644 --- a/lib/open_food_network/orders_and_fulfillments_report.rb +++ b/lib/open_food_network/orders_and_fulfillments_report.rb @@ -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