Ruby

Ruby

Made by DeepSource

Unused method arguments detected RB-LI1074

Bug risk
Major

If an unused method argument is intended, it should be prefixed with an underscore.

Bad practice

def some_method(used, unused)
  puts used
end

Recommended

def some_method(used, _unused)
  puts used
end