Maintenance: Custom rubocops should inherit from Base not Cop (as other core rubocops).
This commit is contained in:
parent
7f54f05c1a
commit
52f5605310
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ module RuboCop
|
|||
# # good
|
||||
# if !statement
|
||||
# return if !statement
|
||||
class PreferNegatedIfOverUnless < Cop
|
||||
class PreferNegatedIfOverUnless < Base
|
||||
include ConfigurableEnforcedStyle
|
||||
include NegativeConditional
|
||||
extend AutoCorrector
|
||||
|
|
Loading…
Reference in a new issue