-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
RedundantException should catch RuntimeError.new
#3034
Comments
This issue was closed by mistake due to a faulty commit message. |
jonas054
added a commit
to jonas054/rubocop
that referenced
this issue
May 2, 2016
…tException Until now we have only had support for reporting `raise RuntimeError, msg`. Add support for reporting `raise RuntimeError.new(msg)`.
Neodelf
pushed a commit
to Neodelf/rubocop
that referenced
this issue
Oct 15, 2016
…s using parentheses
Neodelf
pushed a commit
to Neodelf/rubocop
that referenced
this issue
Oct 15, 2016
…tException (rubocop#3102) Until now we have only had support for reporting `raise RuntimeError, msg`. Add support for reporting `raise RuntimeError.new(msg)`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Complains and autocorrects to
raise 'message'
Actual behavior
Steps to reproduce the problem
Make the files as I showed above.
RuboCop version
The text was updated successfully, but these errors were encountered: