diff options
| author | Geremia Taglialatela <[email protected]> | 2023-04-07 23:40:27 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-04-07 23:40:27 +0200 |
| commit | fc73023ea783ff7fdeb11ac903baa9142c98cd1c (patch) | |
| tree | d85a68bc5155f06ad164f33d0b22065d6f9bb06c | |
| parent | 6ddcc4588013dfa46fe34a235163dad2b66bdc4c (diff) | |
| download | caxlsx-fc73023ea783ff7fdeb11ac903baa9142c98cd1c.tar.gz caxlsx-fc73023ea783ff7fdeb11ac903baa9142c98cd1c.zip | |
Fix Layout/FirstArrayElementIndentation offense
```
rubocop --only Layout/FirstArrayElementIndentation -a
```
| -rw-r--r-- | .rubocop_todo.yml | 8 | ||||
| -rw-r--r-- | 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 @@ -74,14 +74,6 @@ Layout/ExtraSpacing: # 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. # SupportedStyles: special_inside_parentheses, consistent, align_braces Layout/FirstHashElementIndentation: 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| |
