Skip to content

Commit

Permalink
Rubocop: disable Lint/RescueException
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
herwinw authored and eregon committed Nov 6, 2024
1 parent 5d9e270 commit eab1c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ Lint/RedundantSafeNavigation:
Lint/RedundantSplatExpansion:
Enabled: false

Lint/RescueException:
Enabled: false

Lint/UnifiedInteger:
Enabled: false

Expand Down
17 changes: 0 additions & 17 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eab1c59

Please sign in to comment.