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
return
Distilled from a real world example (https://github.com/seomoz/qless/blob/9e5ef9cae19ef8ba59d0ac51636bf068aa0ff9a1/spec/integration/qless_spec.rb#L2433). If I have:
# foo.rb # Encoding: utf-8 def foo return 1, 2 end
If I then run rubocop -a foo.rb, it generates invalid ruby:
rubocop -a foo.rb
# foo.rb # Encoding: utf-8 def foo 1, 2 end
The text was updated successfully, but these errors were encountered:
Excellent work finding these bugs! I'll take this one too.
I think the auto-correction in this case should produce
# foo.rb # Encoding: utf-8 def foo [1, 2] end
The other alternative would be to leave it unchanged, but I prefer to change it.
Sorry, something went wrong.
@jonas054 Autocorrect this to an array as you suggested.
6776df3
Merge pull request #518 from jonas054/fix_redundant_return_bug
1084155
[Fix #516] Fix RedundantReturn auto-correction bug.
jonas054
No branches or pull requests
Distilled from a real world example (https://github.com/seomoz/qless/blob/9e5ef9cae19ef8ba59d0ac51636bf068aa0ff9a1/spec/integration/qless_spec.rb#L2433). If I have:
If I then run
rubocop -a foo.rb
, it generates invalid ruby:The text was updated successfully, but these errors were encountered: