-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
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
Rubocop does not properly indent method body #4219
Comments
The indentation can be corrected by I think we can fix the problem by adding a link to the style guide for the cop. https://github.com/bbatsov/ruby-style-guide#spaces-indentation |
Definitely. |
I'm not a huge fan on relying on people having a certain other cop enabled to clean up a messy auto-correct. I've been making the opposite assumption for the cops I've been working on. 🤔 |
Thanks. You guys are fast. The fix does work. |
sample.rb
:Expected behavior
Actual behavior
Steps to reproduce the problem
Ran with default options (no
.rubocop.yml
) and using command linerubocop --only-guide-cops -a -D sample.rb
.The text was updated successfully, but these errors were encountered: