Class: RuboCop::Cop::Style::RescueModifier

Checks for uses of ‘rescue` in its modifier form is added for following reasons:

Examples:

# bad some_method rescue handle_error # bad some_method rescue SomeException # good begin some_method rescue handle_error end # good begin some_method rescue SomeException handle_error end

Constant Summary collapse

'Avoid using `rescue` in its modifier form.'