summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-08 00:02:14 +0200
committerGeremia Taglialatela <[email protected]>2023-04-08 00:02:14 +0200
commit108df9b563a4539802f83864e4aa9261b35a590f (patch)
treefda2305b68eee99343cf713e495c953ac38f002b
parent555a3cc193458679a9fc6f8cc664b3cfe590fa74 (diff)
downloadcaxlsx-108df9b563a4539802f83864e4aa9261b35a590f.tar.gz
caxlsx-108df9b563a4539802f83864e4aa9261b35a590f.zip
Fix Layout/MultilineOperationIndentation offenses
``` rubocop --only Layout/MultilineOperationIndentation -a ```
-rw-r--r--.rubocop_todo.yml8
-rw-r--r--lib/axlsx/package.rb4
2 files changed, 2 insertions, 10 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index e9cbc738..da547011 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -119,14 +119,6 @@ Layout/IndentationWidth:
Layout/LeadingCommentSpace:
Enabled: false
-# Offense count: 2
-# This cop supports safe autocorrection (--autocorrect).
-# Configuration parameters: EnforcedStyle, IndentationWidth.
-# SupportedStyles: aligned, indented
-Layout/MultilineOperationIndentation:
- Exclude:
- - 'lib/axlsx/package.rb'
-
# Offense count: 264
# This cop supports safe autocorrection (--autocorrect).
Layout/SpaceAfterComma:
diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb
index 5bd8d5c2..0c03b1a2 100644
--- a/lib/axlsx/package.rb
+++ b/lib/axlsx/package.rb
@@ -375,7 +375,7 @@ module Axlsx
def parse_serialize_options(options, secondary_options)
if secondary_options
warn "[DEPRECATION] Axlsx::Package#serialize with 3 arguments is deprecated. " +
- "Use keyword args instead e.g., package.serialize(output, confirm_valid: false, zip_command: 'zip')"
+ "Use keyword args instead e.g., package.serialize(output, confirm_valid: false, zip_command: 'zip')"
end
if options.is_a?(Hash)
options.merge!(secondary_options || {})
@@ -386,7 +386,7 @@ module Axlsx
[options.fetch(:confirm_valid, false), options.fetch(:zip_command, nil)]
else
warn "[DEPRECATION] Axlsx::Package#serialize with confirm_valid as a boolean is deprecated. " +
- "Use keyword args instead e.g., package.serialize(output, confirm_valid: false)"
+ "Use keyword args instead e.g., package.serialize(output, confirm_valid: false)"
parse_serialize_options((secondary_options || {}).merge(confirm_valid: options), nil)
end
end