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
Given this code:
begin puts 'Test'; exit(0); end unless defined?(IORTable)
I'm expecting it to work after auto-correction (if it's needed).
The code is changed to:
puts 'Test'; exit(0); unless defined?(IORTable)
Which shows this error when trying to run with ruby command: test.rb:1: syntax error, unexpected end-of-input
ruby
test.rb:1: syntax error, unexpected end-of-input
1.18.4 (using Parser 3.0.1.1, rubocop-ast 1.9.1, running on ruby 3.0.1 x64-mingw32)
The text was updated successfully, but these errors were encountered:
Style/RedundantBegin
[Fix rubocop#10004] Fix a false positive for Style/RedundantBegin
0723cce
Fixes rubocop#10004. This PR fixes a false positive for `Style/RedundantBegin` when using one-liner with semicolon.
[Fix #10004] Fix a false positive for Style/RedundantBegin
a2730c3
Fixes #10004. This PR fixes a false positive for `Style/RedundantBegin` when using one-liner with semicolon.
Successfully merging a pull request may close this issue.
Expected behavior
Given this code:
I'm expecting it to work after auto-correction (if it's needed).
Actual behavior
The code is changed to:
Which shows this error when trying to run with
ruby
command:test.rb:1: syntax error, unexpected end-of-input
RuboCop version
The text was updated successfully, but these errors were encountered: