Auto correct Rubocop's Layout/IndentAssignment cop

This commit is contained in:
Pau Perez
2018-04-09 17:40:11 +02:00
parent 33ea2c0b07
commit 76fe1c7ee9
2 changed files with 2 additions and 9 deletions

View File

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

View File

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