rubocop: Drop "e" from Naming/MethodParameterName
allowlist
This commit is contained in:
parent
f1ab720000
commit
188466d28e
@ -191,7 +191,6 @@ Naming/MethodParameterName:
|
|||||||
[
|
[
|
||||||
"a",
|
"a",
|
||||||
"b",
|
"b",
|
||||||
"e",
|
|
||||||
"f",
|
"f",
|
||||||
"o",
|
"o",
|
||||||
"pr",
|
"pr",
|
||||||
|
@ -98,22 +98,22 @@ module Debrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.debug(e)
|
def self.debug(exception)
|
||||||
raise(e) if !active? || !debugged_exceptions.add?(e) || !try_lock
|
raise(exception) if !active? || !debugged_exceptions.add?(exception) || !try_lock
|
||||||
|
|
||||||
begin
|
begin
|
||||||
puts e.backtrace.first.to_s
|
puts exception.backtrace.first.to_s
|
||||||
puts Formatter.error(e, label: e.class.name)
|
puts Formatter.error(exception, label: exception.class.name)
|
||||||
|
|
||||||
loop do
|
loop do
|
||||||
Menu.choose do |menu|
|
Menu.choose do |menu|
|
||||||
menu.prompt = "Choose an action: "
|
menu.prompt = "Choose an action: "
|
||||||
|
|
||||||
menu.choice(:raise) { raise(e) }
|
menu.choice(:raise) { raise(e) }
|
||||||
menu.choice(:ignore) { return :ignore } if e.is_a?(Ignorable::ExceptionMixin)
|
menu.choice(:ignore) { return :ignore } if exception.is_a?(Ignorable::ExceptionMixin)
|
||||||
menu.choice(:backtrace) { puts e.backtrace }
|
menu.choice(:backtrace) { puts exception.backtrace }
|
||||||
|
|
||||||
if e.is_a?(Ignorable::ExceptionMixin)
|
if exception.is_a?(Ignorable::ExceptionMixin)
|
||||||
menu.choice(:irb) do
|
menu.choice(:irb) do
|
||||||
puts "When you exit this IRB session, execution will continue."
|
puts "When you exit this IRB session, execution will continue."
|
||||||
set_trace_func proc { |event, _, _, id, binding, klass|
|
set_trace_func proc { |event, _, _, id, binding, klass|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user