Do not suppress exceptions.
19# Raises "empty rescue block detected"
20begin
21 bar
22rescue23end
24
25# Raises "redundant `else`-clause detected"
Description
If a rescue
block has no code, the exception that was supposed
to be handled get suppressed.
Bad practice
def some_method
do_something
rescue
end
Recommended
def some_method
do_something
rescue
handle_exception
end