Skip to content

Commit

Permalink
Modify the new_cop task to generate a valid node matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
rrosenblum authored and bbatsov committed Feb 1, 2017
1 parent 245924a commit 4b1fddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/new_cop.rake
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module RuboCop
MSG = 'Message of #{badge.cop_name}'.freeze
def_node_matcher :bad_method?, <<-PATTERN
(:send nil :bad_method ...)
(send nil :bad_method ...)
PATTERN
def on_send(node)
Expand Down

0 comments on commit 4b1fddb

Please sign in to comment.