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
Style/TrailingBodyOnMethodDefinition
Successfully autocorrects trailing body offenses that do not start on the first line of a file.
This:
foo def some_method; body end
should become:
foo def some_method body end
The semicolon is not removed, and the offense autocorrects to:
See above.
$ rubocop -V 0.52.1 (using Parser 2.4.0.2, running on ruby 2.4.3 x86_64-linux)
The text was updated successfully, but these errors were encountered:
[Fix rubocop#5334] Semicolon autocorrection for TrailingBodyOnMethodD…
c057129
…efinition
[Fix #5334] Fix semicolon autocorrection for TrailingBodyOnMethodDefi…
bf819d9
…nition (#5335)
Successfully merging a pull request may close this issue.
Expected behavior
Successfully autocorrects trailing body offenses that do not start on the first line of a file.
This:
should become:
Actual behavior
The semicolon is not removed, and the offense autocorrects to:
Steps to reproduce the problem
See above.
RuboCop version
The text was updated successfully, but these errors were encountered: