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

Update to a version of Rubocop that is compatible with Ruby 2.4-3.1 #2927

Merged
merged 2 commits into from
Apr 8, 2022
Merged

Update to a version of Rubocop that is compatible with Ruby 2.4-3.1 #2927

merged 2 commits into from
Apr 8, 2022

Conversation

petergoldstein
Copy link
Contributor

This is an update to Rubocop that maintains compatibility with Ruby 2.4-3.1 using a common .rubocop_rspec_base.yml file across rspec-core, rspec-expectations, rspec-mocks, and rspec-support

Changes to this common base configuration file are minimal, limited to:

  1. Adding missing Departments for Cops
  2. Splitting/renaming Cop configurations where directed by Rubocop for pre-existing configurations.
  3. Removing a Performance cop configuration as that is now packaged in a separate library.

Each repo now has a .rubocop_todo.yml file which can be worked through at the maintainers leisure.

Some updates to the existing .rubocop.yml files were made, mostly in removing duplication and updating some variables so Rubocop would run green.

@@ -4,76 +4,73 @@
# This file contains defaults for RSpec projects. Individual projects
# can customize by inheriting this file and overriding particular settings.

AccessModifierIndentation:
Layout/AccessModifierIndentation:
Copy link
Member

Choose a reason for hiding this comment

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

We generally update this file using rspec-dev that can make multiple changes at once, I'd prefer to do that and then add the extra "version bump" commit to those prs by hand.

.rubocop.yml Outdated Show resolved Hide resolved
.rubocop.yml Outdated Show resolved Hide resolved
.rubocop.yml Outdated Show resolved Hide resolved
@pirj
Copy link
Member

pirj commented Apr 8, 2022

@petergoldstein Thanks a lot for making this happen!

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.

3 participants