rubocop: Drop "e" from Naming/MethodParameterName allowlist

This commit is contained in:
Issy Long 2023-03-09 21:58:57 +00:00
parent f1ab720000
commit 188466d28e
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
2 changed files with 7 additions and 8 deletions

View File

@ -191,7 +191,6 @@ Naming/MethodParameterName:
[ [
"a", "a",
"b", "b",
"e",
"f", "f",
"o", "o",
"pr", "pr",

View File

@ -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|