Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark Lint/InheritException as unsafe auto-correction #10408

Merged
merged 1 commit into from Feb 11, 2022

Commits on Feb 9, 2022

  1. Mark Lint/InheritException as unsafe auto-correction

    This PR marks `Lint/InheritException` as unsafe auto-correction.
    
    This cop's autocorrection is unsafe because `rescue` that omit
    exception class handle `StandardError` and its subclasses,
    but not `Exception` and its subclasses.
    
    ```ruby
    begin
    rescue # Handles only `StandardError` and its subclasses because exception class is omitted.
    end
    ```
    
    It's still unsafe after rubocop#10406 is resolved.
    koic committed Feb 9, 2022
    Copy the full SHA
    bc9d310 View commit details
    Browse the repository at this point in the history