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

Change RSpec/ContextWording cop to always report an offense when both Prefixes and AllowedPatterns are empty #1982

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

ydah
Copy link
Member

@ydah ydah commented Oct 21, 2024

see: #1972 (comment)


Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master (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).

@ydah ydah requested a review from a team as a code owner October 21, 2024 11:07
Copy link
Collaborator

@bquorning bquorning left a comment

Choose a reason for hiding this comment

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

This PR is exactly what I had in mind 😄

I am not a native English speaker, but we usually use “report an offense”, so I made a few such suggestions.

lib/rubocop/cop/rspec/context_wording.rb Outdated Show resolved Hide resolved
spec/rubocop/cop/rspec/context_wording_spec.rb Outdated Show resolved Hide resolved
lib/rubocop/cop/rspec/context_wording.rb Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@ydah ydah changed the title Change RSpec/ContextWording cop to always occur offenses when both Prefixes and AllowedPatterns are empty Change RSpec/ContextWording cop to always report an offense when both Prefixes and AllowedPatterns are empty Oct 22, 2024
@ydah ydah requested a review from bquorning October 22, 2024 04:57
@ydah
Copy link
Member Author

ydah commented Oct 22, 2024

Thank you for your review! I updated this PR.

@ydah ydah merged commit ff444c2 into master Oct 22, 2024
24 checks passed
@ydah ydah deleted the improve-cwc branch October 22, 2024 11:21
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.

2 participants