Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/cop/database/establish_connection.rb')
-rw-r--r--rubocop/cop/database/establish_connection.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/database/establish_connection.rb b/rubocop/cop/database/establish_connection.rb
index 20454887ce2..3681974640b 100644
--- a/rubocop/cop/database/establish_connection.rb
+++ b/rubocop/cop/database/establish_connection.rb
@@ -3,7 +3,7 @@
module RuboCop
module Cop
module Database
- class EstablishConnection < RuboCop::Cop::Cop
+ class EstablishConnection < RuboCop::Cop::Base
MSG = "Don't establish new database connections, as this slows down " \
'tests and may result in new connections using an incorrect configuration'
@@ -12,7 +12,7 @@ module RuboCop
PATTERN
def on_send(node)
- add_offense(node, location: :expression) if establish_connection?(node)
+ add_offense(node) if establish_connection?(node)
end
end
end