-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark unsafe for
Lint/RaiseException
cop
Follow up #8169 (comment). `Lint/RaiseException` cop is unsafe due to incompatibility between bad and good cases. ## bad case ```console % cat /tmp/example_for_exception.rb begin raise Exception rescue puts 'Handle exception' end % ruby example_for_exception.rb example_for_exception.rb:2:in `<main>': Exception (Exception) ``` ## good case ```console % cat example_for_starndard_error.rb begin raise StandardError rescue puts 'Handle exception' end % ruby /tmp/example_for_starndard_error.rb Handle exception ```
- Loading branch information
Showing
3 changed files
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters