Sha256: 5adc8f67cf9bd53db022d03fb7265610028265c24d30dc0bfdfeb170ce72152c

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    module Rake
      module Helper
        module OnTask
          extend NodePattern::Macros

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

          def on_send(node)
            return unless task?(node)

            on_task(node)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/rubocop-rake-0.6.0/lib/rubocop/cop/rake/helper/on_task.rb
rubocop-rake-0.6.0 lib/rubocop/cop/rake/helper/on_task.rb
rubocop-rake-0.5.1 lib/rubocop/cop/rake/helper/on_task.rb
rubocop-rake-0.5.0 lib/rubocop/cop/rake/helper/on_task.rb
rubocop-rake-0.4.0 lib/rubocop/cop/rake/helper/on_task.rb