From eab1c5900ad8f0283fdd077b2482cf1384067e88 Mon Sep 17 00:00:00 2001 From: Herwin Date: Wed, 6 Nov 2024 11:34:06 +0100 Subject: [PATCH] Rubocop: disable Lint/RescueException This cop tries to stop `rescue Exception`. This is generally a good idea in regular Ruby code, but we actually need this pretty often in the specs. Disable it to get it out of the way in this repo. --- .rubocop.yml | 3 +++ .rubocop_todo.yml | 17 ----------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 59c8e979f..a385b5e79 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -61,6 +61,9 @@ Lint/RedundantSafeNavigation: Lint/RedundantSplatExpansion: Enabled: false +Lint/RescueException: + Enabled: false + Lint/UnifiedInteger: Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 45a897459..6b43db9b9 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -85,23 +85,6 @@ Lint/RedundantStringCoercion: Exclude: - 'core/io/print_spec.rb' -# Offense count: 25 -Lint/RescueException: - Exclude: - - 'command_line/fixtures/debug_info.rb' - - 'core/dir/fileno_spec.rb' - - 'core/exception/cause_spec.rb' - - 'core/exception/no_method_error_spec.rb' - - 'core/fiber/kill_spec.rb' - - 'core/kernel/fixtures/autoload_frozen.rb' - - 'core/kernel/raise_spec.rb' - - 'core/module/autoload_spec.rb' - - 'core/mutex/sleep_spec.rb' - - 'core/thread/abort_on_exception_spec.rb' - - 'core/thread/shared/exit.rb' - - 'language/rescue_spec.rb' - - 'library/erb/filename_spec.rb' - # Offense count: 1 Lint/SelfAssignment: Exclude: