summaryrefslogtreecommitdiff
path: root/rubocop/cop/in_batches.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/cop/in_batches.rb')
-rw-r--r--rubocop/cop/in_batches.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/rubocop/cop/in_batches.rb b/rubocop/cop/in_batches.rb
deleted file mode 100644
index c0240187e66..00000000000
--- a/rubocop/cop/in_batches.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-require_relative '../model_helpers'
-
-module RuboCop
- module Cop
- # Cop that prevents the use of `in_batches`
- class InBatches < RuboCop::Cop::Cop
- MSG = 'Do not use `in_batches`, use `each_batch` from the EachBatch module instead'.freeze
-
- def on_send(node)
- return unless node.children[1] == :in_batches
-
- add_offense(node, :selector)
- end
- end
- end
-end