Skip to content
Snippets Groups Projects
Unverified Commit 1ee68d1a authored by Peter Leitzen's avatar Peter Leitzen Committed by GitLab
Browse files

Merge branch 'update_cops' into 'master'

Fix deprecated usagepatterns of rubocop

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/169584



Merged-by: default avatarPeter Leitzen <pleitzen@gitlab.com>
Approved-by: default avatarPeter Leitzen <pleitzen@gitlab.com>
Co-authored-by: default avatarMartin Schurz <Martin.Schurz@telekom.de>
parents d0f2a1d7 d1bd1baf
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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. ' \
Loading
Loading
Loading
Loading
@@ -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."
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment