Add frozen_string_literal magic comment

re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FrozenStringLiteralComment
This commit is contained in:
James Mason 2018-05-07 16:47:29 -07:00
parent 6775add832
commit d8bd269a64
15 changed files with 28 additions and 2 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
wb.add_worksheet(name: 'all booths') do |sheet|
bold_style = wb.styles.add_style(b: true)
wrap_text = wb.styles.add_style alignment: {wrap_text: true}

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
wb.add_worksheet(name: 'all booths') do |sheet|
bold_style = wb.styles.add_style(b: true)
wrap_text = wb.styles.add_style alignment: {wrap_text: true}

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
wb = xlsx_package.workbook
xlsx_package.use_autowidth = true
if @booth_export_option == 'confirmed'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
wb.add_worksheet(name: 'all events') do |sheet|
bold_style = wb.styles.add_style(b: true)
wrap_text = wb.styles.add_style alignment: {wrap_text: true}

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
wb.use_shared_strings = true
wb.add_worksheet(name: 'events with comments') do |sheet|
bold_style = wb.styles.add_style(b: true)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
wb.add_worksheet(name: 'confirmed events') do |sheet|
bold_style = wb.styles.add_style(b: true)
wrap_text = wb.styles.add_style alignment: {wrap_text: true}

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
wb = xlsx_package.workbook
if @event_export_option == 'confirmed'
render partial: 'confirmed_events', locals: {:wb => wb}

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
wb = xlsx_package.workbook
wb.add_worksheet(name: 'registrations') do |sheet|
bold_style = wb.styles.add_style(b: true)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
wb.add_worksheet(name: 'all tracks') do |sheet|
bold_style = wb.styles.add_style(b: true)
wrap_text = wb.styles.add_style alignment: {wrap_text: true}

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
wb.add_worksheet(name: 'all tracks') do |sheet|
bold_style = wb.styles.add_style(b: true)
wrap_text = wb.styles.add_style alignment: {wrap_text: true}

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
wb = xlsx_package.workbook
if @track_export_option == 'confirmed'
render partial: 'confirmed_tracks', locals: { wb: wb }