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

Planning to rewrite around rubocop #38

Open
erniebrodeur opened this issue Apr 2, 2017 · 1 comment
Open

Planning to rewrite around rubocop #38

erniebrodeur opened this issue Apr 2, 2017 · 1 comment
Assignees

Comments

@erniebrodeur
Copy link
Owner

Hey Everybody,

Thought I would chime in and let everybody know that I'm planning on rewriting this to leverage the rubocop app, while still allowing for the same behavior currently in place.

This is going to take a bit and I haven't begun to investigate how to do this.

More information will be posted as I have time.

@bbugh
Copy link

bbugh commented Jul 25, 2017

You can accomplish the same thing with Rubocop by specifying only Layout cops, like this:

rubocop --only Layout <filename>

ruby-beautify can be completely replaced with Rubocop by simply using

rubocop --auto-correct --only Layout <filename>

which will auto correct using only the Layout cops, but won't make any of the opinionated style guide changes.

You can also pipe a file into rubocop and get it back through stdout.

cat <filename> | rubocop --stdin <filename> --auto-correct

(rubocop uses the second filename for what it should display in its output results, should be the same as the one passed to cat)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants