mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 05:01:05 +08:00
DEV: Update rubocop-discourse to 3.6.0 (#24945)
This commit is contained in:
parent
157a2fce1b
commit
6d7dd658a4
|
@ -424,9 +424,9 @@ GEM
|
||||||
parser (>= 3.2.1.0)
|
parser (>= 3.2.1.0)
|
||||||
rubocop-capybara (2.19.0)
|
rubocop-capybara (2.19.0)
|
||||||
rubocop (~> 1.41)
|
rubocop (~> 1.41)
|
||||||
rubocop-discourse (3.4.1)
|
rubocop-discourse (3.6.0)
|
||||||
rubocop (>= 1.1.0)
|
rubocop (>= 1.59.0)
|
||||||
rubocop-rspec (>= 2.0.0)
|
rubocop-rspec (>= 2.25.0)
|
||||||
rubocop-factory_bot (2.24.0)
|
rubocop-factory_bot (2.24.0)
|
||||||
rubocop (~> 1.33)
|
rubocop (~> 1.33)
|
||||||
rubocop-rspec (2.25.0)
|
rubocop-rspec (2.25.0)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
# rubocop:disable Lint/UnreachableCode
|
||||||
|
|
||||||
require "memory_profiler"
|
require "memory_profiler"
|
||||||
require "benchmark/ips"
|
require "benchmark/ips"
|
||||||
|
|
|
@ -105,7 +105,7 @@ def crawl_topics
|
||||||
# abort if this in an incremental crawl and there were too many consecutive, skipped topics
|
# abort if this in an incremental crawl and there were too many consecutive, skipped topics
|
||||||
if @finished && @skipped_topic_count > ABORT_AFTER_SKIPPED_TOPIC_COUNT
|
if @finished && @skipped_topic_count > ABORT_AFTER_SKIPPED_TOPIC_COUNT
|
||||||
puts "Skipping all other topics, because this is an incremental crawl.".green
|
puts "Skipping all other topics, because this is an incremental crawl.".green
|
||||||
return
|
return # rubocop:disable Lint/NonLocalExitFromIterator
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -60,10 +60,6 @@ module PageObjects
|
||||||
find(".sidebar__panel-switch-button[data-key='main']").click
|
find(".sidebar__panel-switch-button[data-key='main']").click
|
||||||
end
|
end
|
||||||
|
|
||||||
def has_no_section?(name)
|
|
||||||
has_no_css?(".sidebar-sections [data-section-name='#{name.parameterize}']")
|
|
||||||
end
|
|
||||||
|
|
||||||
def has_switch_button?(key = nil)
|
def has_switch_button?(key = nil)
|
||||||
if key
|
if key
|
||||||
page.has_css?(".sidebar__panel-switch-button[data-key='#{key.parameterize}']")
|
page.has_css?(".sidebar__panel-switch-button[data-key='#{key.parameterize}']")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user