rubocop / rubocop-rspec

Code style checking for RSpec files.
https://docs.rubocop.org/rubocop-rspec
MIT License
792 stars 272 forks source link

Move node patterns into private scope #1906

Closed bquorning closed 4 weeks ago

bquorning commented 4 weeks ago

Private code should be private. I think this makes it easier to read and understand the code.

I am not sure if this is a code style we should enforce with a cop? We haven’t done so with the previous style, and yet it was uses consistently on all cops except two.

If we don’t have a cop to enforce this style, it’s something we need to be aware of when doing code review.


Before submitting the PR make sure the following are checked: