-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
New cop to discourage context
with only a single test
#2001
Comments
tejasbubane
added a commit
to tejasbubane/rubocop-rspec
that referenced
this issue
Jan 8, 2025
To check context with single example. Closes rubocop#2001
tejasbubane
added a commit
to tejasbubane/rubocop-rspec
that referenced
this issue
Jan 8, 2025
To check context with single example. Closes rubocop#2001
tejasbubane
added a commit
to tejasbubane/rubocop-rspec
that referenced
this issue
Jan 8, 2025
To check context with single example. Closes rubocop#2001
tejasbubane
added a commit
to tejasbubane/rubocop-rspec
that referenced
this issue
Jan 8, 2025
To check context with single example. Closes rubocop#2001
12 tasks
tejasbubane
added a commit
to tejasbubane/rubocop-rspec
that referenced
this issue
Jan 8, 2025
To check context with single example. Closes rubocop#2001
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Relevant to #2000.
When the
context
block has only a single test, it makes little sense to actually use thecontext
block and making the code unnecessary indented and a little more complicated.The text was updated successfully, but these errors were encountered: