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

Update Rubocop to 0.85 #641

Merged
merged 1 commit into from
Jun 3, 2020
Merged

Update Rubocop to 0.85 #641

merged 1 commit into from
Jun 3, 2020

Conversation

jacobsteves
Copy link
Member

WHY are these changes introduced?

Shopify's Ruby style guide introduced a new cop yesterday (Lint/DeprecatedOpenSSLConstant) that is only supported in Rubocop v0.84+ (Shopify/ruby-style-guide#164). If we dont add this then all our future Travis checks would fail.

WHAT is this pull request doing?

Updates the Rubocop development dependency v0.85.0.

@jacobsteves jacobsteves requested a review from a team as a code owner June 3, 2020 14:14
Copy link
Contributor

@erik-shopify erik-shopify left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Gemfile Outdated
@@ -8,7 +8,7 @@ group :development, :test do
gem 'rake'
gem 'pry-byebug'
gem 'byebug'
gem 'rubocop'
gem 'rubocop', '~> 0.85.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should set a specific constraint here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If rubocop will fail in other versions, having a constraint makes sense, no?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only need to update Gemfile.lock for that.

(some projects do prefer to specify constraints for everything in the Gemfile, but since we're not doing that currently, I think we should following the existing convention).

@jacobsteves jacobsteves merged commit 326738e into master Jun 3, 2020
@jacobsteves jacobsteves deleted the fix-rubocop branch June 3, 2020 15:36
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.

3 participants