diff --git a/rubocop/cop/gitlab/rails_logger.rb b/rubocop/cop/gitlab/rails_logger.rb index ae05491ca7d1c24de87a65836895e1802eb1fef2..4eaaa693e595d816a74a77549c0704dcb232fd0f 100644 --- a/rubocop/cop/gitlab/rails_logger.rb +++ b/rubocop/cop/gitlab/rails_logger.rb @@ -5,7 +5,7 @@ module RuboCop module Cop module Gitlab - class RailsLogger < ::RuboCop::Cop::Cop + class RailsLogger < ::RuboCop::Cop::Base include CodeReuseHelpers # This cop checks for the Rails.logger log methods in the codebase diff --git a/rubocop/cop/migration/change_column_null_on_high_traffic_table.rb b/rubocop/cop/migration/change_column_null_on_high_traffic_table.rb index f5da6a466a30fea58f1ba637cc63f12ee3e1a217..88b6b8ac4e1f0b63a1fb9d147993ec08e4e4dca9 100644 --- a/rubocop/cop/migration/change_column_null_on_high_traffic_table.rb +++ b/rubocop/cop/migration/change_column_null_on_high_traffic_table.rb @@ -5,7 +5,7 @@ module RuboCop module Cop module Migration - class ChangeColumnNullOnHighTrafficTable < RuboCop::Cop::Cop + class ChangeColumnNullOnHighTrafficTable < RuboCop::Cop::Base include MigrationHelpers MSG = 'Using `change_column_null` migration helper is risky for high-traffic tables. ' \ diff --git a/rubocop/cop/qa/feature_flags.rb b/rubocop/cop/qa/feature_flags.rb index 9c27fe4119432d256e925a377f23a61d98cb8c86..41fb248433d2e83267cb5c10a512415a8deb4fe2 100644 --- a/rubocop/cop/qa/feature_flags.rb +++ b/rubocop/cop/qa/feature_flags.rb @@ -23,7 +23,7 @@ module QA # describe 'some test' do # before do # Runtime::Feature.enable(:flag) - class FeatureFlags < RuboCop::Cop::Cop + class FeatureFlags < RuboCop::Cop::Base APPLY_MESSAGE = "Apply the `feature_flag: { name: :flag }` metadata to the test to use `%{feature}` in " \ "end-to-end tests." BLOCK_MESSAGE = "Feature flags must specify a name. Use a block with `feature_flag: { name: :flag }` instead."