Skip to content

Commit

Permalink
Add RESTRICT_ON_SEND for RSpec/FactoryBot/ConsistentParenthesesStyle
Browse files Browse the repository at this point in the history
In this PR, add `RESTRICT_ON_SEND` for `RSpec/FactoryBot/ConsistentParenthesesStyle`
This prevents on_send from being called more than necessary.
  • Loading branch information
ydah committed Nov 3, 2022
1 parent 4a2a155 commit 70120b6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def self.autocorrect_incompatible_with
MSG_OMIT_PARENS = 'Prefer method call without parentheses'

FACTORY_CALLS = RuboCop::RSpec::FactoryBot::Language::METHODS
RESTRICT_ON_SEND = FACTORY_CALLS

# @!method factory_call(node)
def_node_matcher :factory_call, <<-PATTERN
Expand Down

0 comments on commit 70120b6

Please sign in to comment.