diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-23 00:42:09 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-23 00:42:09 +0200 |
| commit | 1b62a41707001631d75db805facb2476283c4e1e (patch) | |
| tree | 813d98f9fe771fd31f27c79901ea977e35bfcb30 | |
| parent | 6752225bbb8a9eec905ec02a98f1a25a309c404a (diff) | |
| download | caxlsx-1b62a41707001631d75db805facb2476283c4e1e.tar.gz caxlsx-1b62a41707001631d75db805facb2476283c4e1e.zip | |
Fix Style/LineEndConcatenation offenses
| -rw-r--r-- | .rubocop_todo.yml | 10 | ||||
| -rw-r--r-- | lib/axlsx/package.rb | 4 |
2 files changed, 2 insertions, 12 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 1de00edb..d220a4d7 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -77,11 +77,6 @@ Lint/UnusedMethodArgument: - 'lib/axlsx/package.rb' - 'lib/axlsx/util/validators.rb' -Lint/UselessAssignment: - Exclude: - - 'lib/axlsx/workbook/worksheet/header_footer.rb' - - 'lib/axlsx/workbook/worksheet/sheet_protection.rb' - # Configuration parameters: MinSize. Performance/CollectionLiteralInLoop: Exclude: @@ -244,11 +239,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 |
