diff options
| author | Geremia Taglialatela <[email protected]> | 2023-04-07 23:38:09 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-04-07 23:38:59 +0200 |
| commit | 6ddcc4588013dfa46fe34a235163dad2b66bdc4c (patch) | |
| tree | c12752e1aa0b23c1f81b61033b353d60844ef37a | |
| parent | 70d3dfc768ecbea6ea52e9481fbfd3068445bbc4 (diff) | |
| download | caxlsx-6ddcc4588013dfa46fe34a235163dad2b66bdc4c.tar.gz caxlsx-6ddcc4588013dfa46fe34a235163dad2b66bdc4c.zip | |
Fix Layout/EmptyLinesAroundBlockBody offenses
```
rubocop --only Layout/EmptyLinesAroundBlockBody -a
```
| -rw-r--r-- | .rubocop_todo.yml | 9 | ||||
| -rw-r--r-- | lib/axlsx/drawing/bar_series.rb | 1 | ||||
| -rw-r--r-- | test/benchmark.rb | 1 |
3 files changed, 0 insertions, 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 << '<c:dPt>' str << ('<c:idx val="' << index.to_s << '"/>') 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| |
