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
Non-local exit from iterator
Hello!
I have a code:
str = 'foo' str.define_singleton_method :bar do |baz| return unless baz replace baz end
I think I can make PR for fixing this.
No warnings from Rubocop.
Warning about Non-local exit from iterator.
Check the file with this code (or similar) by Rubocop.
$ rubocop -V 0.45.0 (using Parser 2.3.1.4, running on ruby 2.3.3 x86_64-linux)
The text was updated successfully, but these errors were encountered:
[Fix rubocop#3746] Lint/NonLocalExitFromIterator doesn't warn about…
Lint/NonLocalExitFromIterator
26d96bb
… block passed to `Object#define_singleton_method` `return`s don't cause problems in blocks passed to `define_singleton_method`.
17a863f
No branches or pull requests
Hello!
I have a code:
I think I can make PR for fixing this.
Expected behavior
No warnings from Rubocop.
Actual behavior
Warning about
Non-local exit from iterator
.Steps to reproduce the problem
Check the file with this code (or similar) by Rubocop.
RuboCop version
The text was updated successfully, but these errors were encountered: