From fc73023ea783ff7fdeb11ac903baa9142c98cd1c Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Fri, 7 Apr 2023 23:40:27 +0200 Subject: Fix Layout/FirstArrayElementIndentation offense ``` rubocop --only Layout/FirstArrayElementIndentation -a ``` --- .rubocop_todo.yml | 8 -------- lib/axlsx/package.rb | 10 +++++----- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 26b70dfc..86ee1482 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -72,14 +72,6 @@ Layout/EmptyLinesAroundModuleBody: Layout/ExtraSpacing: Enabled: false -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: special_inside_parentheses, consistent, align_brackets -Layout/FirstArrayElementIndentation: - Exclude: - - 'lib/axlsx/package.rb' - # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: IndentationWidth. diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb index 29f72d5c..ed73397a 100644 --- a/lib/axlsx/package.rb +++ b/lib/axlsx/package.rb @@ -211,11 +211,11 @@ module Axlsx # @private def parts parts = [ - {:entry => "xl/#{STYLES_PN}", :doc => workbook.styles, :schema => SML_XSD}, - {:entry => CORE_PN, :doc => @core, :schema => CORE_XSD}, - {:entry => APP_PN, :doc => @app, :schema => APP_XSD}, - {:entry => WORKBOOK_RELS_PN, :doc => workbook.relationships, :schema => RELS_XSD}, - {:entry => WORKBOOK_PN, :doc => workbook, :schema => SML_XSD} + {:entry => "xl/#{STYLES_PN}", :doc => workbook.styles, :schema => SML_XSD}, + {:entry => CORE_PN, :doc => @core, :schema => CORE_XSD}, + {:entry => APP_PN, :doc => @app, :schema => APP_XSD}, + {:entry => WORKBOOK_RELS_PN, :doc => workbook.relationships, :schema => RELS_XSD}, + {:entry => WORKBOOK_PN, :doc => workbook, :schema => SML_XSD} ] workbook.drawings.each do |drawing| -- cgit v1.2.3