From f572e01b1623a3a0c549e6aef2c83c68d4494b4e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 3 Sep 2026 00:40:19 +0100 Subject: [PATCH] Fix new rubocop warnings --- config/initializers/config.rb | 3 +-- lib/tasks/backfill_changeset_stats.rake | 3 +-- test/system/manage_moderation_zones_test.rb | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/config/initializers/config.rb b/config/initializers/config.rb index 970dc4875..10c8c18cc 100644 --- a/config/initializers/config.rb +++ b/config/initializers/config.rb @@ -3,7 +3,7 @@ # Guard against deployments with old-style application.yml configurations # Otherwise, admins might not be aware that they are now silently ignored # and major problems could occur -# rubocop:disable Rails/Output, Rails/Exit +# rubocop:disable-next Rails/Output, Rails/Exit if Rails.root.join("config/application.yml").exist? puts "The config/application.yml file is no longer supported." puts "" @@ -15,7 +15,6 @@ if Rails.root.join("config/application.yml").exist? puts "your config/application.yml file." exit! end -# rubocop:enable Rails/Output, Rails/Exit # Allowed status values unless Object.const_defined?(:ALLOWED_STATUS) diff --git a/lib/tasks/backfill_changeset_stats.rake b/lib/tasks/backfill_changeset_stats.rake index 36d6d507a..188661f34 100644 --- a/lib/tasks/backfill_changeset_stats.rake +++ b/lib/tasks/backfill_changeset_stats.rake @@ -1,6 +1,6 @@ # frozen_string_literal: true -# rubocop:disable Metrics/BlockLength +# rubocop:disable-next Metrics/BlockLength namespace :db do desc "Backfill enhanced changeset stats" task :changeset_stats => :environment do @@ -119,4 +119,3 @@ namespace :db do puts "\nDone." end end -# rubocop:enable Metrics/BlockLength diff --git a/test/system/manage_moderation_zones_test.rb b/test/system/manage_moderation_zones_test.rb index 60eb6e48b..59fd50bd2 100644 --- a/test/system/manage_moderation_zones_test.rb +++ b/test/system/manage_moderation_zones_test.rb @@ -14,9 +14,9 @@ class ManageModerationZones < ApplicationSystemTestCase map = find_by_id("map") map.click(:offset => :center, :x => -50, :y => -50) - map.click(:offset => :center, :x => 0, :y => -50) - map.click(:offset => :center, :x => 0, :y => 0) - map.click(:offset => :center, :x => -50, :y => 0) + map.click(:offset => :center, :x => 0, :y => -50) + map.click(:offset => :center, :x => 0, :y => 0) + map.click(:offset => :center, :x => -50, :y => 0) map.click(:offset => :center, :x => -50, :y => -50) select "1 week", :from => :moderation_zone_period -- 2.47.3