Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Ignore stderr when getting rubocop version #1403

Closed
wants to merge 1 commit into from
Closed

Ignore stderr when getting rubocop version #1403

wants to merge 1 commit into from

Conversation

docwhat
Copy link
Contributor

@docwhat docwhat commented Apr 27, 2015

rubocop --version may emit a warning about parser versions not
matching. Due to the way dependent libraries work, there isn't an
easy way to prevent this warning from showing up within rubocop itself.

Fixes #1145

`rubocop --version` may emit a warning about parser versions not
matching.  Due to the way dependent libraries work, there isn't an
easy way to prevent this warning from showing up within rubocop itself.

Fixes #1145
@lcd047
Copy link
Collaborator

lcd047 commented Apr 27, 2015

Please see #1399.

@lcd047 lcd047 closed this Apr 27, 2015
@docwhat
Copy link
Contributor Author

docwhat commented Apr 27, 2015

Fair enough, I guess.

Unfortunately, the rubocop people have the same thought as you; there might be an important warning.

And the parser people think no "real" code should use parser so it should always emit that warning.

sigh

@lcd047
Copy link
Collaborator

lcd047 commented Apr 27, 2015

Well, you can still use the wrapper I posted in the other thread. It only kills the warning about the parser version.

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

Successfully merging this pull request may close these issues.

Rubocop not working
2 participants