Skip to content

Commit c9cd1a5

Browse files
committed
Use RuboCop Base class not Cop
- This was showing a deprecation warning with the latest RuboCop version. ``` warning: Inheriting from `RuboCop::Cop::Cop` is deprecated. Use `RuboCop::Cop::Base` instead. For more information, see https://docs.rubocop.org/rubocop/v1_upgrade_notes.html ``
1 parent aff5882 commit c9cd1a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rubocop/cop/graphql/heredoc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module RuboCop
55
module Cop
66
module GraphQL
77
# Public: Cop for enforcing non-interpolated GRAPHQL heredocs.
8-
class Heredoc < Cop
8+
class Heredoc < Base
99
def on_dstr(node)
1010
check_str(node)
1111
end

lib/rubocop/cop/graphql/overfetch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module RuboCop
88
module Cop
99
module GraphQL
1010
# Public: Rubocop for catching overfetched fields in ERB templates.
11-
class Overfetch < Cop
11+
class Overfetch < Base
1212
if defined?(RangeHelp)
1313
# rubocop 0.53 moved the #source_range method into this module
1414
include RangeHelp

0 commit comments

Comments
 (0)