diff --git a/lib/rubocop/cop/rake/helper/on_task.rb b/lib/rubocop/cop/rake/helper/on_task.rb index 70c8df2..60d75f5 100644 --- a/lib/rubocop/cop/rake/helper/on_task.rb +++ b/lib/rubocop/cop/rake/helper/on_task.rb @@ -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