diff options
| author | Geremia Taglialatela <[email protected]> | 2023-06-15 09:20:31 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-06-15 09:20:31 +0200 |
| commit | 9e5bc61c60f8775150163d6d2da73d60083f0dbd (patch) | |
| tree | dccab6808cde0975e2cd32f69e234b3394b36b3e /.rubocop_todo.yml | |
| parent | ad87c51bf8c8f59a36514bb95dc6d3a582c6b2fd (diff) | |
| download | caxlsx-9e5bc61c60f8775150163d6d2da73d60083f0dbd.tar.gz caxlsx-9e5bc61c60f8775150163d6d2da73d60083f0dbd.zip | |
Fix Lint/UnusedBlockArgument offenses
Use `each_value` instead of `each` where possible. The performance gain
is minimal (3%).
```
Comparison:
each_value: 4105733.4 i/s
each: 3998011.4 i/s - 1.03x (± 0.00) slower
```
Diffstat (limited to '.rubocop_todo.yml')
| -rw-r--r-- | .rubocop_todo.yml | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index fc0449d9..525fd031 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -61,14 +61,6 @@ Lint/NonLocalExitFromIterator: - 'lib/axlsx/util/validators.rb' # This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. -Lint/UnusedBlockArgument: - Exclude: - - 'lib/axlsx/drawing/axes.rb' - - 'lib/axlsx/workbook/worksheet/pivot_table.rb' - - 'lib/axlsx/workbook/worksheet/sheet_view.rb' - -# This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. Lint/UnusedMethodArgument: Exclude: |
