Sha256: 8ae544fc2fe4eb523804ecdb6763528994f00742f91b46e3baf01709efe21dc1

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module Rubocop
  module Cop
    # Cop that prevents the use of `in_batches`
    class InBatches < RuboCop::Cop::Base
      MSG = 'Do not use `in_batches`, use `each_batch` from the EachBatch module instead'

      RESTRICT_ON_SEND = %i[in_batches].freeze

      def on_send(node)
        add_offense(node.loc.selector)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gitlab-styles-13.0.1 lib/rubocop/cop/in_batches.rb
gitlab-styles-13.0.0 lib/rubocop/cop/in_batches.rb