diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a5d7fd2008..ba8e50a9ad 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -386,13 +386,6 @@ Layout/ExtraSpacing: Layout/IndentArray: EnforcedStyle: consistent -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: IndentationWidth. -Layout/IndentAssignment: - Exclude: - - 'app/controllers/spree/admin/reports_controller_decorator.rb' - # Offense count: 52 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. diff --git a/app/controllers/spree/admin/reports_controller_decorator.rb b/app/controllers/spree/admin/reports_controller_decorator.rb index cbd997af0c..6c16031c0b 100644 --- a/app/controllers/spree/admin/reports_controller_decorator.rb +++ b/app/controllers/spree/admin/reports_controller_decorator.rb @@ -319,9 +319,9 @@ Spree::Admin::ReportsController.class_eval do reports[:order_cycle_management][:description] = render_to_string(partial: 'order_cycle_management_description', layout: false, locals: {report_types: report_types[:order_cycle_management]}).html_safe reports[:packing][:description] = - render_to_string(partial: 'packing_description', layout: false, locals: {report_types: report_types[:packing]}).html_safe + render_to_string(partial: 'packing_description', layout: false, locals: {report_types: report_types[:packing]}).html_safe reports[:sales_tax][:description] = - render_to_string(partial: 'sales_tax_description', layout: false, locals: {report_types: report_types[:sales_tax]}).html_safe + render_to_string(partial: 'sales_tax_description', layout: false, locals: {report_types: report_types[:sales_tax]}).html_safe # Return only reports the user is authorized to view. reports.select { |action| can? action, :report }