We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Signal Exception does not care the type of class that uses the method. This should only fire when using Exception.fail (or a subclass)
EX.
class Test def fail puts "reporting the failure somewhere" end end t = Test.new t.fail
The text was updated successfully, but these errors were encountered:
But SignalException doesn't report any offenses for you example! Can you change it to illustrate your point?
SignalException
Sorry, something went wrong.
Sorry. We have an additional rule
Style/SignalException: EnforcedStyle: only_raise
That appears to be the cause.
Yes, t.fail should not have been reported by Style/SignalException since there's an explicit receiver.
t.fail
Style/SignalException
5922932
Merge pull request #2227 from lumeet/2161_fix_explicit_receiver
5ee1a87
[Fix #2161] Explicit receiver in SignalException
No branches or pull requests
Signal Exception does not care the type of class that uses the method. This should only fire when using Exception.fail (or a subclass)
EX.
The text was updated successfully, but these errors were encountered: