From e85a16e2e68c047ca6221730cea472eca5f5381d Mon Sep 17 00:00:00 2001 From: Kyrylo Silin Date: Wed, 27 Feb 2019 00:20:42 +0200 Subject: [PATCH] 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. --- .rubocop_todo.yml | 8 -------- lib/pry/input_lock.rb | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 921f37ba..827070ad 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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: diff --git a/lib/pry/input_lock.rb b/lib/pry/input_lock.rb index 8bedb3f8..2cb46abe 100644 --- a/lib/pry/input_lock.rb +++ b/lib/pry/input_lock.rb @@ -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