This commit is contained in:
Robert Mosolgo 2018-03-15 10:59:08 -04:00
Родитель f0d9f75f42
Коммит 8b258ca18a
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -9,6 +9,11 @@ module RuboCop
module GraphQL module GraphQL
# Public: Rubocop for catching overfetched fields in ERB templates. # Public: Rubocop for catching overfetched fields in ERB templates.
class Overfetch < Cop class Overfetch < Cop
if defined?(RangeHelp)
# rubocop 0.53 moved the #source_range method into this module
include RangeHelp
end
def_node_search :send_methods, "({send csend block_pass} ...)" def_node_search :send_methods, "({send csend block_pass} ...)"
def investigate(processed_source) def investigate(processed_source)