diff --git a/.rubocop/cop/zammad/exists_condition.rb b/.rubocop/cop/zammad/exists_condition.rb index b66b10396..801bd6d5b 100644 --- a/.rubocop/cop/zammad/exists_condition.rb +++ b/.rubocop/cop/zammad/exists_condition.rb @@ -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 { diff --git a/.rubocop/cop/zammad/prefer_negated_if_over_unless.rb b/.rubocop/cop/zammad/prefer_negated_if_over_unless.rb index 49b0d8a9b..f6c3466fc 100644 --- a/.rubocop/cop/zammad/prefer_negated_if_over_unless.rb +++ b/.rubocop/cop/zammad/prefer_negated_if_over_unless.rb @@ -11,7 +11,7 @@ module RuboCop # # good # if !statement # return if !statement - class PreferNegatedIfOverUnless < Cop + class PreferNegatedIfOverUnless < Base include ConfigurableEnforcedStyle include NegativeConditional extend AutoCorrector