From d1bd1baf5f45df178cea398848668d5b34bcdb46 Mon Sep 17 00:00:00 2001 From: Martin Schurz <2090677-schurzi@users.noreply.gitlab.com> Date: Thu, 17 Oct 2024 13:03:14 +0000 Subject: [PATCH] Fix deprecated usagepatterns of rubocop --- rubocop/cop/gitlab/rails_logger.rb | 2 +- .../cop/migration/change_column_null_on_high_traffic_table.rb | 2 +- rubocop/cop/qa/feature_flags.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rubocop/cop/gitlab/rails_logger.rb b/rubocop/cop/gitlab/rails_logger.rb index ae05491ca7d1c..4eaaa693e595d 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 f5da6a466a30f..88b6b8ac4e1f0 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 9c27fe4119432..41fb248433d2e 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." -- GitLab