Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Conversation

dcluna
Copy link
Contributor

@dcluna dcluna commented Sep 8, 2015

rubocop is a useful lint tool and should have its place in Spacemacs.

@robbyoconnor
Copy link
Contributor

Awhile ago I would have objected but this is handy...Flycheck can run rubocop for you _BUT_ this is handy for the autocorrect :D

@robbyoconnor robbyoconnor mentioned this pull request Sep 9, 2015
|---------------+-------------------------------|
| ~SPC m r a f~ | check current file |
| ~SPC m r a d~ | check current directory |
| ~SPC m r a p~ | check current project |
Copy link
Owner

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 ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was opposed to #2362 on these grounds, but literally the only saving grace for this is the autocorrect functionality...I agree with @syl20bnr on this one...leave the autocorrect stuff though, that's handy.

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@robbyoconnor
Copy link
Contributor

👍 ❤️

@robbyoconnor
Copy link
Contributor

A quick git pull --rebase on this branch should bring it up to date with the current develop ;)

@nixmaniack
Copy link
Contributor

Apart from rebase we will need hooks/keys for ruby-mode since we moved away from enh-ruby as default.

@robbyoconnor
Copy link
Contributor

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 ;)

@syl20bnr
Copy link
Owner

Thank you 👍
I adapted it in commit 5b99a60 the main change is that RuboCop bindings are under SPC m r r.
Cherry-picked into develop branch, you can safely delete your branch.

@syl20bnr syl20bnr closed this Nov 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants