I find that Lint/HandleExceptions is often bypassed with a nil in the rescue block. This is not helpful, whereas comments would be. However, a rescue block consisting of only a comment will still trigger a Lint/HandleExceptions offense.
I would like an option to allow comments within a rescue block to avoid Lint/HandleExceptions. Perhaps AllowComments: true.
nil with no add'l contextn/a
There are two parts to this:
AllowComments - done in #7060 nil (especially single line rescue) - I will do this once above is merged to avoid conflicts.I like this, and I think it should be the new default.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!
Fixed in #7297
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!
This issue should be closed, as it was fixed
I agree with @rmm5t. I opened PR #7805.
Most helpful comment
I like this, and I think it should be the new default.