DEV: Update rubocop (#18754)

This commit is contained in:
Alan Guo Xiang Tan 2022-10-26 09:05:15 +08:00 committed by GitHub
parent 9129f18815
commit 305b7c8fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 37 deletions

View File

@ -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)

View File

@ -21,8 +21,7 @@ class AddExampleColumnComments < CommentMigration
end
def comments_down
{
}
{}
end
end

View File

@ -5,8 +5,7 @@ RSpec.describe Auth::FacebookAuthenticator do
{
provider: "facebook",
extra: {
raw_info: {
}
raw_info: {}
},
info: {
email: "bob@bob.com",

View File

@ -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: {},
},
}
},

View File

@ -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 },

View File

@ -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,

View File

@ -124,8 +124,7 @@ RSpec.configure do |config|
}
],
components: {
schemas: {
}
schemas: {}
}
}
}