AnalyzePlatypus/TranslitKit

View on GitHub
lib/permuter.rb

Summary

Maintainability
A
0 mins
Test Coverage

Unused block argument - item. If it's necessary, use _ or _item as an argument name to indicate that it won't be used.
Open

      @arrays[indices.length].each_with_index do |item,i|
Severity: Minor
Found in lib/permuter.rb by rubocop

This cop checks for unused block arguments.

Example:

# bad

do_something do |used, unused|
  puts used
end

do_something do |bar|
  puts :foo
end

define_method(:foo) do |bar|
  puts :baz
end

Example:

#good

do_something do |used, _unused|
  puts used
end

do_something do
  puts :foo
end

define_method(:foo) do |_bar|
  puts :baz
end

There are no issues that match your filters.

Category
Status