-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Add earliest supported RuboCop CI check #815
Conversation
41bb6cd
to
e0f52f2
Compare
No surprise, but it seems at least our specs do not work with 0.60.0 specified in the Gemfile:
I suggest merging #804 first. |
I think this is actually a good case for not including the “earliest supported RuboCop“ in the test suite: The I have been playing with the idea of extracting different parts of rubocop, rubocop-performance, rubocop-rails and this project into a rubocop-dev gem. If that were realised, we might be able to reliably test against the earliest supported version of RuboCop. |
That makes total sense to me, even though it's a bit strange to use different supported versions of RuboCop as development and runtime dependencies. |
Could we split this PR in two? I’d like to think some more on the “earliest” part, but “edge” is ready to merge. |
@bquorning Fair enough. |
5e82009
to
fcd1df9
Compare
So, to summarize the problem at hand. The idea was to extract spec helpers/shared examples/etc to You also mentioned there are parts in With the introduction of edge/earliest checks and upcoming semantic versioning in RuboCop, the idea of a centralized repository (like WDYT if we start small and extract spec helpers and shared examples to |
Sounds good. We should perhaps involve the rubocop core team too. |
Since there's no definitive conclusion on this topic, and RuboCop 1.0 is on the horizon with its more conservative cop introduction policy, I believe that following minor |
Add a job to be making sure the changes in pull requests are still compatible with the earliest supported RuboCop version.
For
earliest-supported-rubocop
jobbundle install
step reports:Fixes #283
Before submitting the PR make sure the following are checked:
master
(if not - rebase it).bundle exec rake
) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).