A platform for community discussion. Free, open, simple.
DEV: Update rubocop (#18754)
Alan Guo Xiang Tan305b7c8fae71
diff --git a/Gemfile.lock b/Gemfile.lockindex a1ddadf5f70..5aefbc4bc68 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -406,14 +406,14 @@ GEMjson-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 @@ GEMrubocop-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.rbindex 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 < CommentMigrationenddef comments_down- {- }+ {}endenddiff --git a/spec/lib/auth/facebook_authenticator_spec.rb b/spec/lib/auth/facebook_authenticator_spec.rbindex 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: {email: "[email protected]",diff --git a/spec/requests/api/private_messages_spec.rb b/spec/requests/api/private_messages_spec.rbindex 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.rbindex 3227f0518b7..95bfd028832 100644--- a/spec/requests/api/tags_spec.rb+++ b/spec/requests/api/tags_spec.rb@@ -31,13 +31,11 @@ RSpec.describe 'tags' doname: { 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' doname: { 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' doname: { 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' doproperties: {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' doliked: { 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.rbindex 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.rbindex ea9d5b0ac7b..4a92cc7dc94 100644--- a/spec/swagger_helper.rb+++ b/spec/swagger_helper.rb@@ -124,8 +124,7 @@ RSpec.configure do |config|}],components: {- schemas: {- }+ schemas: {}}}}