-
Notifications
You must be signed in to change notification settings - Fork 251
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 fixes #196
Rubocop fixes #196
Conversation
This makes the 👮 be happy. A lot of this is just: - rubocop -a (auto-fix) - rubocop --auto-gen (generate todo config) But, the good part about this is that we can now run Rubocop on each Travis build, to ensure that _new code_ follows the Rubocop rules as defined in .rubocop.yml
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.
Great job! I was about to ask if we already have a decision on style because of the code climate complains. This really enables us to have a solid base.
Thanks.
Great job!
In my opinion, if possible, we should fix each code climate complains for each PR. |
The code climate may check only modified files. Not lines. |
Thanks to you both! @scepticulous
Well, we don't really have a decision other than using the defaults as provided by Rubocop. I think most of these make sense, but there are cases where I typically deviate (you saw it mentioned in the PR in the .rubocop.yml change).
Yes, that'd be the idea. If people have spare time and want to work on cleaning these issues up, they are very welcome to do so. With this change in place, the Rubocop rules will run:
That's of course a bit silly, but we can live with it for now. (It seems the codeclimate settings use a different version of Rubocop - if someone knows how to fix that, please do. OTOH, we could disable Rubocop on codeclimate since we already run it on Travis anyway.) |
This makes the 👮 be happy. A lot of this is just: - rubocop -a (auto-fix) - rubocop --auto-gen (generate todo config) But, the good part about this is that we can now run Rubocop on each Travis build, to ensure that _new code_ follows the Rubocop rules as defined in .rubocop.yml
This makes the 👮 be happy.
A lot of this is just:
But, the good part about this is that we can now run Rubocop on each Travis build, to ensure that new code follows the Rubocop rules as defined in .rubocop.yml