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

Skip config tests on minimum Rubocop version #391

Merged
merged 1 commit into from May 13, 2022

Conversation

sambostock
Copy link
Contributor

@sambostock sambostock commented May 13, 2022

While we want to ensure we're always compatible with the minimum Rubocop version we declare in our gemspec, the config checks are specific to the Rubocop version listed in Gemfile.lock because different Rubocop versions have different default config.

As such, we skip these tests when checking against the minimum Rubocop version.

Rubocop is still invoked against the repository's own code during these runs, which allows us to catch incompatible config (e.g. cops only available in new versions, deprecated config keys).

While we want to ensure we're always compatible with the minimum Rubocop
version we declare in our gemspec, the config checks are specific to the
Rubocop version listed in Gemfile.lock.

As such, we skip these tests when checking against the minimum Rubocop version.

Rubocop is still invoked against the repository's own code during these runs,
which allows us to catch incompatible config (e.g. cops only available in new
versions, deprecated config keys).
@rafaelfranca rafaelfranca merged commit f56d998 into main May 13, 2022
@rafaelfranca rafaelfranca deleted the fix-config-check-for-minimum-rubocop-version branch May 13, 2022 18:08
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems May 13, 2022 19:59 Inactive
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

2 participants