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

Backport RSpec/ExpectInLet cop to v2 branch #1894

Merged
merged 1 commit into from
Jun 2, 2024
Merged

Conversation

bquorning
Copy link
Collaborator

Backport the addition of new cop RSpec/ExpectInLet added in #1885 from the main branch to the 2-x-stable branch.

We want to get as much feedback as possible on new cops before (eventually) enabling them when v3 is released.


Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master 2-x-stable (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Updated documentation.
  • Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

If you have created a new cop:

  • Added the new cop to config/default.yml.
  • The cop is configured as Enabled: pending in config/default.yml.
  • The cop is configured as Enabled: true in .rubocop.yml.
  • The cop documents examples of good and bad code.
  • The tests assert both that bad code is reported and that good code is not reported.
  • Set VersionAdded: "<<next>>" in default/config.yml.

@bquorning bquorning changed the base branch from master to 2-x-stable June 2, 2024 14:32
@bquorning bquorning marked this pull request as ready for review June 2, 2024 14:32
@bquorning bquorning requested a review from a team as a code owner June 2, 2024 14:32
Backport the addition of new cop RSpec/ExpectInLet added in #1885 from
the main branch to the 2-x-stable branch.

We want to get as much feedback as possible on new cops before
(eventually) enabling them when v3 is released.
@bquorning bquorning changed the title Add new RSpec/ExpectInLet cop Backport RSpec/ExpectInLet cop to v2 branch Jun 2, 2024
Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

Thank you!

@pirj pirj merged commit 3d97a57 into 2-x-stable Jun 2, 2024
24 checks passed
@pirj pirj deleted the backport-pr-1885 branch June 2, 2024 21:15
@pirj
Copy link
Member

pirj commented Jun 2, 2024

Now I get it why we needed the branch.

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