Maintenance: Custom rubocops should inherit from Base not Cop (as other core rubocops).

This commit is contained in:
Thorsten Eckel 2020-08-21 10:15:25 +02:00
parent 7f54f05c1a
commit 52f5605310
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ module RuboCop
# if exists?(name: 'Rubocop')
# if !exists?(name: 'Rubocop')
# unless exists?(name: 'Rubocop')
class ExistsCondition < Cop
class ExistsCondition < Base
def_node_matcher :find_by_condition?, <<-PATTERN
{

View file

@ -11,7 +11,7 @@ module RuboCop
# # good
# if !statement
# return if !statement
class PreferNegatedIfOverUnless < Cop
class PreferNegatedIfOverUnless < Base
include ConfigurableEnforcedStyle
include NegativeConditional
extend AutoCorrector