Skip to content

Commit

Permalink
Prefer single-line definition on def_node_matcher pattern
Browse files Browse the repository at this point in the history
Co-authored-by: Phil Pirozhkov <pirj@users.noreply.github.com>
  • Loading branch information
r7kamura and pirj committed Oct 22, 2022
1 parent 18cdd75 commit 28c3304
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/rubocop/cop/rspec/factory_bot/association_style.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,7 @@ def on_send(node)
# @param node [RuboCop::AST::SendNode]
# @return [Boolean]
def_node_matcher :explicit_association?, <<~PATTERN
(send
nil?
:association
sym
...
)
(send nil? :association sym ...)
PATTERN

# @!method implicit_association?(node)
Expand Down

0 comments on commit 28c3304

Please sign in to comment.