From 6ddcc4588013dfa46fe34a235163dad2b66bdc4c Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Fri, 7 Apr 2023 23:38:09 +0200 Subject: Fix Layout/EmptyLinesAroundBlockBody offenses ``` rubocop --only Layout/EmptyLinesAroundBlockBody -a ``` --- .rubocop_todo.yml | 9 --------- lib/axlsx/drawing/bar_series.rb | 1 - test/benchmark.rb | 1 - 3 files changed, 11 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 817fdd67..26b70dfc 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -47,15 +47,6 @@ Layout/ClosingParenthesisIndentation: Layout/EmptyLineAfterGuardClause: Enabled: false -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: empty_lines, no_empty_lines -Layout/EmptyLinesAroundBlockBody: - Exclude: - - 'lib/axlsx/drawing/bar_series.rb' - - 'test/benchmark.rb' - # Offense count: 285 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. diff --git a/lib/axlsx/drawing/bar_series.rb b/lib/axlsx/drawing/bar_series.rb index e90a2818..2ee40488 100644 --- a/lib/axlsx/drawing/bar_series.rb +++ b/lib/axlsx/drawing/bar_series.rb @@ -59,7 +59,6 @@ module Axlsx # @return [String] def to_xml_string(str = '') super(str) do - colors.each_with_index do |c, index| str << '' str << ('') diff --git a/test/benchmark.rb b/test/benchmark.rb index 8d90cdf5..e9f6c22b 100644 --- a/test/benchmark.rb +++ b/test/benchmark.rb @@ -9,7 +9,6 @@ input = (32..126).to_a.pack('U*').chars.to_a 20.times { row << input.shuffle.join} times = 3000 Benchmark.bmbm(30) do |x| - x.report('axlsx_noautowidth') { p = Axlsx::Package.new p.workbook do |wb| -- cgit v1.2.3