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
Fix multiple cops to detect let
with proc argument
#904
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thank you
WDYT of adding |
Makes sense, this might simplify lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb |
@Darhazer could you open a new issue for that? Or maybe a PR to showcase the change. |
Sure 👍 |
@bquorning @Darhazer I added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Affected cops: 1. `RSpec/ScatteredLet` 2. `RSpec/AlignLeftLetBrace` 3. `RSpec/AlignRightLetBrace` 4. `RSpec/LeadingSubject` 5. `RSpec/EmptyLineAfterFinalLet` 6. `RSpec/LetBeforeExamples` Closes rubocop#771
RSpec/ScatteredLet
to detect let
with proc argumentlet
with proc argument
@pirj Added specs for those other cops as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you open a new issue for that? Or maybe a PR to showcase the change.
I was clearly confused when I wrote that comment. Of course “the change” belongs in this PR. Thanks you for the bugfix and Language
module improvements @tejasbubane 🚀
Thank you! |
Closes #771
Before submitting the PR make sure the following are checked:
master
(if not - rebase it).bundle exec rake
) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).