mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
input_lock: ignore Lint/InheritException
I'm not sure if we should ignore it but this code is not tested and it's been in Pry for years, so it's better not to amend this behaviour.
This commit is contained in:
parent
9bdbaa4059
commit
e85a16e2e6
2 changed files with 1 additions and 9 deletions
|
@ -33,14 +33,6 @@ Lint/HandleExceptions:
|
|||
- 'lib/pry/pager.rb'
|
||||
- 'lib/pry/terminal.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: runtime_error, standard_error
|
||||
Lint/InheritException:
|
||||
Exclude:
|
||||
- 'lib/pry/input_lock.rb'
|
||||
|
||||
# Offense count: 16
|
||||
Lint/InterpolationCheck:
|
||||
Exclude:
|
||||
|
|
|
@ -4,7 +4,7 @@ class Pry
|
|||
# that threads to not conflict with each other. The latest thread to request
|
||||
# ownership of the input wins.
|
||||
class InputLock
|
||||
class Interrupt < Exception; end
|
||||
class Interrupt < Exception; end # rubocop:disable Lint/InheritException
|
||||
|
||||
class << self
|
||||
attr_accessor :input_locks
|
||||
|
|
Loading…
Add table
Reference in a new issue