Skip to content

Commit

Permalink
Style/ExplicitBlockArgument-20240104233316 (#12)
Browse files Browse the repository at this point in the history
* 🚓 regenerate rubocop todo

* 🚓 Style/ExplicitBlockArgument

* 🚓 regenerate rubocop todo

---------

Co-authored-by: Rubocop Challenger <rubocop@payrollhero.com>
Co-authored-by: Mathieu Jobin <99191+mathieujobin@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 17, 2024
1 parent 42a03d8 commit 99678fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,6 @@ Lint/SymbolConversion:
Exclude:
- 'lib/excel_templating/excel_abstraction/sheet.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Lint/UnusedMethodArgument:
Exclude:
- 'lib/excel_templating/excel_abstraction/cell_range.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/UselessAssignment:
Expand Down Expand Up @@ -385,12 +378,6 @@ Style/ExpandPathArguments:
Exclude:
- 'excel_templating.gemspec'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/ExplicitBlockArgument:
Exclude:
- 'lib/excel_templating/excel_abstraction/cell_range.rb'

# Offense count: 41
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
Expand Down
2 changes: 1 addition & 1 deletion lib/excel_templating/excel_abstraction/cell_range.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initialize
end

def each(&block)
cell_references.each { |cell_reference| yield(cell_reference) }
cell_references.each(&block)
end

def <<(attrs)
Expand Down

0 comments on commit 99678fa

Please sign in to comment.