Skip to content

Commit

Permalink
Merge pull request #39 from koic/use_restrict_on_send
Browse files Browse the repository at this point in the history
Use `RESTRICT_ON_SEND`
  • Loading branch information
koic committed Aug 22, 2021
2 parents 5a1d4ab + afc0d4f commit 0457421
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rubocop/cop/rake/helper/on_task.rb
Expand Up @@ -7,6 +7,8 @@ module Helper
module OnTask
extend NodePattern::Macros

RESTRICT_ON_SEND = %i[task].freeze

def_node_matcher :task?, <<~PATTERN
(send nil? :task ...)
PATTERN
Expand Down

0 comments on commit 0457421

Please sign in to comment.