-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Adding rubocop to ruby layer #2949
Conversation
Awhile ago I would have objected but this is handy...Flycheck can run rubocop for you _BUT_ this is handy for the autocorrect :D |
|---------------+-------------------------------| | ||
| ~SPC m r a f~ | check current file | | ||
| ~SPC m r a d~ | check current directory | | ||
| ~SPC m r a p~ | check current project | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need the check commands ? Can flycheck do it automatically for us ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, should I remove these? How do I do it? Just push a new commit, send a new PR or something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, commit and push to the same branch and then rebase (choose "fixup") -- your PR should be _ONE_ commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, should be good to go now.
👍 ❤️ |
A quick |
Apart from rebase we will need hooks/keys for ruby-mode since we moved away from enh-ruby as default. |
yes, please do this @dcluna ;) |
Thank you 👍 |
rubocop is a useful lint tool and should have its place in Spacemacs.