DEV: Update rubocop-discourse to 3.6.0 (#24945)

This commit is contained in:
Jarek Radosz 2023-12-18 13:44:36 +01:00 committed by GitHub
parent 157a2fce1b
commit 6d7dd658a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 8 deletions

View File

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

View File

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

View File

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

View File

@ -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}']")