summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-05-24 09:27:14 +0200
committerGitHub <[email protected]>2023-05-24 09:27:14 +0200
commit0fa9d7523bff020b92c2a548b493ad3fb05ebed9 (patch)
treebac1854dc09c98563b2356a290deb033e4ddd0c2
parentc1f922b3de788c1bb4e9b0dcf18f930897027446 (diff)
parent1b62a41707001631d75db805facb2476283c4e1e (diff)
downloadcaxlsx-0fa9d7523bff020b92c2a548b493ad3fb05ebed9.tar.gz
caxlsx-0fa9d7523bff020b92c2a548b493ad3fb05ebed9.zip
Merge pull request #253 from tagliala/chore/fix-line-end-concatenation-offenses
Fix Style/LineEndConcatenation offenses
-rw-r--r--.rubocop_todo.yml5
-rw-r--r--lib/axlsx/package.rb4
2 files changed, 2 insertions, 7 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 0bf54fef..a7427d9b 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -216,11 +216,6 @@ Style/Lambda:
- 'lib/axlsx/stylesheet/styles.rb'
- 'lib/axlsx/util/validators.rb'
-# This cop supports unsafe autocorrection (--autocorrect-all).
-Style/LineEndConcatenation:
- Exclude:
- - 'lib/axlsx/package.rb'
-
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMethodComparison.
Style/MultipleComparison:
diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb
index 3f225648..2983ed72 100644
--- a/lib/axlsx/package.rb
+++ b/lib/axlsx/package.rb
@@ -379,7 +379,7 @@ module Axlsx
# @private
def parse_serialize_options(options, secondary_options)
if secondary_options
- warn "[DEPRECATION] Axlsx::Package#serialize with 3 arguments is deprecated. " +
+ 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')"
end
if options.is_a?(Hash)
@@ -391,7 +391,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. " +
+ 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)"
parse_serialize_options((secondary_options || {}).merge(confirm_valid: options), nil)
end