Sha256: ddf297ef31c7d6bd34d502045bbda95e38b1ad507177bf8f906c3fe56b778a91
Contents?: true
Size: 385 Bytes
Versions: 3
Compression:
Stored size: 385 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' def on_send(node) return unless node.children[1] == :in_batches add_offense(node.loc.selector) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gitlab-styles-11.0.0 | lib/rubocop/cop/in_batches.rb |
gitlab-styles-10.1.0 | lib/rubocop/cop/in_batches.rb |
gitlab-styles-10.0.0 | lib/rubocop/cop/in_batches.rb |