Skip to content

A platform for community discussion. Free, open, simple.

DEV: Update rubocop (#18754)

Alan Guo Xiang Tan305b7c8fae71
diff --git a/Gemfile.lock b/Gemfile.lock
index a1ddadf5f70..5aefbc4bc68 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -406,14 +406,14 @@ GEM
json-schema (>= 2.2, < 4.0)
railties (>= 3.1, < 7.1)
rspec-core (>= 2.14)
- rubocop (1.36.0)
+ rubocop (1.37.1)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.2.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
- rubocop-ast (>= 1.20.1, < 2.0)
+ rubocop-ast (>= 1.23.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.23.0)
@@ -421,7 +421,7 @@ GEM
rubocop-discourse (3.0)
rubocop (>= 1.1.0)
rubocop-rspec (>= 2.0.0)
- rubocop-rspec (2.13.2)
+ rubocop-rspec (2.14.2)
rubocop (~> 1.33)
ruby-prof (1.4.3)
ruby-progressbar (1.11.0)
diff --git a/db/migrate/20150727230537_add_example_column_comments.rb b/db/migrate/20150727230537_add_example_column_comments.rb
index ce5062aa2a0..73acbb93d2a 100644
--- a/db/migrate/20150727230537_add_example_column_comments.rb
+++ b/db/migrate/20150727230537_add_example_column_comments.rb
@@ -21,8 +21,7 @@ class AddExampleColumnComments < CommentMigration
end
def comments_down
- {
- }
+ {}
end
end
diff --git a/spec/lib/auth/facebook_authenticator_spec.rb b/spec/lib/auth/facebook_authenticator_spec.rb
index 4a39fe5c469..9033506af33 100644
--- a/spec/lib/auth/facebook_authenticator_spec.rb
+++ b/spec/lib/auth/facebook_authenticator_spec.rb
@@ -5,8 +5,7 @@ RSpec.describe Auth::FacebookAuthenticator do
{
provider: "facebook",
extra: {
- raw_info: {
- }
+ raw_info: {}
},
info: {
diff --git a/spec/requests/api/private_messages_spec.rb b/spec/requests/api/private_messages_spec.rb
index aaecd897e60..d85345e5a65 100644
--- a/spec/requests/api/private_messages_spec.rb
+++ b/spec/requests/api/private_messages_spec.rb
@@ -34,8 +34,7 @@ RSpec.describe 'private messages' do
},
primary_groups: {
type: :array,
- items: {
- },
+ items: {},
},
topic_list: {
type: :object,
@@ -144,8 +143,7 @@ RSpec.describe 'private messages' do
},
primary_groups: {
type: :array,
- items: {
- },
+ items: {},
},
topic_list: {
type: :object,
@@ -206,8 +204,7 @@ RSpec.describe 'private messages' do
},
participants: {
type: :array,
- items: {
- },
+ items: {},
},
}
},
diff --git a/spec/requests/api/tags_spec.rb b/spec/requests/api/tags_spec.rb
index 3227f0518b7..95bfd028832 100644
--- a/spec/requests/api/tags_spec.rb
+++ b/spec/requests/api/tags_spec.rb
@@ -31,13 +31,11 @@ RSpec.describe 'tags' do
name: { type: :string },
tag_names: {
type: :array,
- items: {
- },
+ items: {},
},
parent_tag_name: {
type: :array,
- items: {
- },
+ items: {},
},
one_per_topic: { type: :boolean },
permissions: {
@@ -101,13 +99,11 @@ RSpec.describe 'tags' do
name: { type: :string },
tag_names: {
type: :array,
- items: {
- },
+ items: {},
},
parent_tag_name: {
type: :array,
- items: {
- },
+ items: {},
},
one_per_topic: { type: :boolean },
permissions: {
@@ -151,13 +147,11 @@ RSpec.describe 'tags' do
name: { type: :string },
tag_names: {
type: :array,
- items: {
- },
+ items: {},
},
parent_tag_name: {
type: :array,
- items: {
- },
+ items: {},
},
one_per_topic: { type: :boolean },
permissions: {
@@ -204,8 +198,7 @@ RSpec.describe 'tags' do
properties: {
categories: {
type: :array,
- items: {
- },
+ items: {},
},
}
},
@@ -240,8 +233,7 @@ RSpec.describe 'tags' do
},
primary_groups: {
type: :array,
- items: {
- },
+ items: {},
},
topic_list: {
type: :object,
@@ -294,8 +286,7 @@ RSpec.describe 'tags' do
liked: { type: :boolean },
tags: {
type: :array,
- items: {
- },
+ items: {},
},
views: { type: :integer },
like_count: { type: :integer },
diff --git a/spec/requests/api/topics_spec.rb b/spec/requests/api/topics_spec.rb
index ac690323c3f..c576e7a3c9a 100644
--- a/spec/requests/api/topics_spec.rb
+++ b/spec/requests/api/topics_spec.rb
@@ -337,8 +337,7 @@ RSpec.describe 'topics' do
},
primary_groups: {
type: :array,
- items: {
- },
+ items: {},
},
topic_list: {
type: :object,
@@ -442,8 +441,7 @@ RSpec.describe 'topics' do
},
primary_groups: {
type: :array,
- items: {
- },
+ items: {},
},
topic_list: {
type: :object,
diff --git a/spec/swagger_helper.rb b/spec/swagger_helper.rb
index ea9d5b0ac7b..4a92cc7dc94 100644
--- a/spec/swagger_helper.rb
+++ b/spec/swagger_helper.rb
@@ -124,8 +124,7 @@ RSpec.configure do |config|
}
],
components: {
- schemas: {
- }
+ schemas: {}
}
}
}