Skip to content
代码片段 群组 项目
未验证 提交 d1bd1baf 编辑于 作者: Martin Schurz's avatar Martin Schurz 提交者: GitLab
浏览文件

Fix deprecated usagepatterns of rubocop

上级 290cd04f
No related branches found
No related tags found
无相关合并请求
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
module RuboCop module RuboCop
module Cop module Cop
module Gitlab module Gitlab
class RailsLogger < ::RuboCop::Cop::Cop class RailsLogger < ::RuboCop::Cop::Base
include CodeReuseHelpers include CodeReuseHelpers
# This cop checks for the Rails.logger log methods in the codebase # This cop checks for the Rails.logger log methods in the codebase
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
module RuboCop module RuboCop
module Cop module Cop
module Migration module Migration
class ChangeColumnNullOnHighTrafficTable < RuboCop::Cop::Cop class ChangeColumnNullOnHighTrafficTable < RuboCop::Cop::Base
include MigrationHelpers include MigrationHelpers
MSG = 'Using `change_column_null` migration helper is risky for high-traffic tables. ' \ MSG = 'Using `change_column_null` migration helper is risky for high-traffic tables. ' \
......
...@@ -23,7 +23,7 @@ module QA ...@@ -23,7 +23,7 @@ module QA
# describe 'some test' do # describe 'some test' do
# before do # before do
# Runtime::Feature.enable(:flag) # 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 " \ APPLY_MESSAGE = "Apply the `feature_flag: { name: :flag }` metadata to the test to use `%{feature}` in " \
"end-to-end tests." "end-to-end tests."
BLOCK_MESSAGE = "Feature flags must specify a name. Use a block with `feature_flag: { name: :flag }` instead." BLOCK_MESSAGE = "Feature flags must specify a name. Use a block with `feature_flag: { name: :flag }` instead."
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册