From 108df9b563a4539802f83864e4aa9261b35a590f Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 8 Apr 2023 00:02:14 +0200 Subject: Fix Layout/MultilineOperationIndentation offenses ``` rubocop --only Layout/MultilineOperationIndentation -a ``` --- .rubocop_todo.yml | 8 -------- lib/axlsx/package.rb | 4 ++-- 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 -- cgit v1.2.3