mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 07:49:56 +08:00
DEV: Update rubocop (#18754)
This commit is contained in:
parent
9129f18815
commit
305b7c8fae
@ -406,14 +406,14 @@ GEM
|
|||||||
json-schema (>= 2.2, < 4.0)
|
json-schema (>= 2.2, < 4.0)
|
||||||
railties (>= 3.1, < 7.1)
|
railties (>= 3.1, < 7.1)
|
||||||
rspec-core (>= 2.14)
|
rspec-core (>= 2.14)
|
||||||
rubocop (1.36.0)
|
rubocop (1.37.1)
|
||||||
json (~> 2.3)
|
json (~> 2.3)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 3.1.2.1)
|
parser (>= 3.1.2.1)
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
regexp_parser (>= 1.8, < 3.0)
|
regexp_parser (>= 1.8, < 3.0)
|
||||||
rexml (>= 3.2.5, < 4.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)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (>= 1.4.0, < 3.0)
|
unicode-display_width (>= 1.4.0, < 3.0)
|
||||||
rubocop-ast (1.23.0)
|
rubocop-ast (1.23.0)
|
||||||
@ -421,7 +421,7 @@ GEM
|
|||||||
rubocop-discourse (3.0)
|
rubocop-discourse (3.0)
|
||||||
rubocop (>= 1.1.0)
|
rubocop (>= 1.1.0)
|
||||||
rubocop-rspec (>= 2.0.0)
|
rubocop-rspec (>= 2.0.0)
|
||||||
rubocop-rspec (2.13.2)
|
rubocop-rspec (2.14.2)
|
||||||
rubocop (~> 1.33)
|
rubocop (~> 1.33)
|
||||||
ruby-prof (1.4.3)
|
ruby-prof (1.4.3)
|
||||||
ruby-progressbar (1.11.0)
|
ruby-progressbar (1.11.0)
|
||||||
|
@ -21,8 +21,7 @@ class AddExampleColumnComments < CommentMigration
|
|||||||
end
|
end
|
||||||
|
|
||||||
def comments_down
|
def comments_down
|
||||||
{
|
{}
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -5,8 +5,7 @@ RSpec.describe Auth::FacebookAuthenticator do
|
|||||||
{
|
{
|
||||||
provider: "facebook",
|
provider: "facebook",
|
||||||
extra: {
|
extra: {
|
||||||
raw_info: {
|
raw_info: {}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
info: {
|
info: {
|
||||||
email: "bob@bob.com",
|
email: "bob@bob.com",
|
||||||
|
@ -34,8 +34,7 @@ RSpec.describe 'private messages' do
|
|||||||
},
|
},
|
||||||
primary_groups: {
|
primary_groups: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
topic_list: {
|
topic_list: {
|
||||||
type: :object,
|
type: :object,
|
||||||
@ -144,8 +143,7 @@ RSpec.describe 'private messages' do
|
|||||||
},
|
},
|
||||||
primary_groups: {
|
primary_groups: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
topic_list: {
|
topic_list: {
|
||||||
type: :object,
|
type: :object,
|
||||||
@ -206,8 +204,7 @@ RSpec.describe 'private messages' do
|
|||||||
},
|
},
|
||||||
participants: {
|
participants: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -31,13 +31,11 @@ RSpec.describe 'tags' do
|
|||||||
name: { type: :string },
|
name: { type: :string },
|
||||||
tag_names: {
|
tag_names: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
parent_tag_name: {
|
parent_tag_name: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
one_per_topic: { type: :boolean },
|
one_per_topic: { type: :boolean },
|
||||||
permissions: {
|
permissions: {
|
||||||
@ -101,13 +99,11 @@ RSpec.describe 'tags' do
|
|||||||
name: { type: :string },
|
name: { type: :string },
|
||||||
tag_names: {
|
tag_names: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
parent_tag_name: {
|
parent_tag_name: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
one_per_topic: { type: :boolean },
|
one_per_topic: { type: :boolean },
|
||||||
permissions: {
|
permissions: {
|
||||||
@ -151,13 +147,11 @@ RSpec.describe 'tags' do
|
|||||||
name: { type: :string },
|
name: { type: :string },
|
||||||
tag_names: {
|
tag_names: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
parent_tag_name: {
|
parent_tag_name: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
one_per_topic: { type: :boolean },
|
one_per_topic: { type: :boolean },
|
||||||
permissions: {
|
permissions: {
|
||||||
@ -204,8 +198,7 @@ RSpec.describe 'tags' do
|
|||||||
properties: {
|
properties: {
|
||||||
categories: {
|
categories: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -240,8 +233,7 @@ RSpec.describe 'tags' do
|
|||||||
},
|
},
|
||||||
primary_groups: {
|
primary_groups: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
topic_list: {
|
topic_list: {
|
||||||
type: :object,
|
type: :object,
|
||||||
@ -294,8 +286,7 @@ RSpec.describe 'tags' do
|
|||||||
liked: { type: :boolean },
|
liked: { type: :boolean },
|
||||||
tags: {
|
tags: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
views: { type: :integer },
|
views: { type: :integer },
|
||||||
like_count: { type: :integer },
|
like_count: { type: :integer },
|
||||||
|
@ -337,8 +337,7 @@ RSpec.describe 'topics' do
|
|||||||
},
|
},
|
||||||
primary_groups: {
|
primary_groups: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
topic_list: {
|
topic_list: {
|
||||||
type: :object,
|
type: :object,
|
||||||
@ -442,8 +441,7 @@ RSpec.describe 'topics' do
|
|||||||
},
|
},
|
||||||
primary_groups: {
|
primary_groups: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {},
|
||||||
},
|
|
||||||
},
|
},
|
||||||
topic_list: {
|
topic_list: {
|
||||||
type: :object,
|
type: :object,
|
||||||
|
@ -124,8 +124,7 @@ RSpec.configure do |config|
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
components: {
|
components: {
|
||||||
schemas: {
|
schemas: {}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user