You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this cop has 2 choices (implicit and explicit), I'm not sure how to make a PR for this change to show that it's "bad" with defaults, but "good" with changes (not even sure the guide cares about those choices)
The text was updated successfully, but these errors were encountered:
# good, if Style/RescueStandardError is set to "implicit"
begin
# a blind rescue rescues from StandardError, not Exception as many
# programmers assume.
rescue => e
# exception handling
end
That section of the README was primarily written with regard to rescue Exception, so I think there is certainly some value in highlighting why rescue => e is typically OK - and does not violate the above.
This issue has 2 parts
rescue => e
is "good", but this line would fail against Style/RescueStandardError 's default of "explicit".Since this cop has 2 choices (implicit and explicit), I'm not sure how to make a PR for this change to show that it's "bad" with defaults, but "good" with changes (not even sure the guide cares about those choices)
The text was updated successfully, but these errors were encountered: