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

Remove RuboCop #82

Merged
merged 1 commit into from
May 4, 2018
Merged

Remove RuboCop #82

merged 1 commit into from
May 4, 2018

Conversation

grobie
Copy link
Member

@grobie grobie commented Feb 15, 2018

Github warns about a low security vulernability in the rubocop gem
(which is only used during development). I tried briefly to upgrade the
gem, but I was greeted with hundreds of new style checks. The vast
majority for which RuboCop demanded the opposite in previous versions.

I'm just tired of spending my time to follow the guidelines of whoever
is in charge of RuboCop this year. As much as I'd like to enforce a
consistent code style, the rubocop project doesn't seem to have a clear
idea on such style either.

@brian-brazil @porras

Github warns about a low security vulernability in the rubocop gem
(which is only used during development). I tried briefly to upgrade the
gem, but I was greeted with hundreds of new style checks. The vast
majority for whom RuboCop demanded the opposite in previous versions.

I'm just tired of spending my time to follow the guidelines of whoever
is in charge of RuboCop this year. As much as I'd like to enforce a
consistent code style, the rubocop project doesn't seem to have a clear
idea on such style either.
@coveralls
Copy link

coveralls commented Feb 15, 2018

Coverage Status

Coverage remained the same at 98.667% when pulling 85db51e on grobie/fix-rubocop into e9f6590 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.667% when pulling 85db51e on grobie/fix-rubocop into e9f6590 on master.

@brian-brazil
Copy link

👍

I'm not a Ruby person, but that sounds reasonable to me.

@porras
Copy link
Contributor

porras commented Feb 15, 2018

Good call, there might be some value on Rubocop pickiness but most of the time not worth the maintenance effort.

@juliancheal
Copy link

Instead of removing Rubocop completely, one option is just to run Rubocop on any lines changed (using git diff, etc).

This is something we do over on the ManageIQ project (https://github.com/ManageIQ)

@grobie
Copy link
Member Author

grobie commented Feb 27, 2018

@juliancheal I wanted to use Rubocop to ensure consistent code formatting, and fail to see how only enforcing new rules on changed lines will help with that?

@dlbock
Copy link

dlbock commented Mar 2, 2018

@grobie Probably a good idea to upgrade Rubocop to the latest version?

Then you can generate a todo file that you inherit from in .rubocop.yml that would contain all the violations that haven't been "fixed" yet, which you can fix at a later time, but doesn't fail the build right now.

I created a gist for the change I made based off master and ran bundle exec rake and everything passes (specs and rubocop): https://gist.github.com/dlbock/4391150077b4e7c2ed66e7afedff39e4

If you'd rather do that I can submit a PR.

@grobie grobie merged commit 08a0157 into master May 4, 2018
@grobie grobie deleted the grobie/fix-rubocop branch May 4, 2018 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants