Skip to content

Commit 7200f25

Browse files
committed
update rubocop yml
1 parent 2fe8c0a commit 7200f25

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.rubocop.yml

+2
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,7 @@ Naming/MemoizedInstanceVariableName:
4242
Enabled: true
4343
Exclude:
4444
- test/**/*
45+
Naming/RescuedExceptionsVariableName:
46+
Enabled: false
4547
Layout/RescueEnsureAlignment:
4648
Enabled: false

lib/appium_lib_core/common/wait.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def until(timeout: DEFAULT_TIMEOUT, interval: DEFAULT_INTERVAL, message: nil, ig
5353
return yield(object)
5454
rescue ::Errno::ECONNREFUSED => e
5555
raise e
56-
rescue *ignored => last_error # rubocop:disable Lint/HandleExceptions, Naming/RescuedExceptionsVariableName
56+
rescue *ignored => last_error # rubocop:disable Lint/HandleExceptions
5757
# swallowed
5858
end
5959
sleep interval
@@ -98,7 +98,7 @@ def until_true(timeout: DEFAULT_TIMEOUT, interval: DEFAULT_INTERVAL, message: ni
9898
return result if result
9999
rescue ::Errno::ECONNREFUSED => e
100100
raise e
101-
rescue *ignored => last_error # rubocop:disable Lint/HandleExceptions, Naming/RescuedExceptionsVariableName
101+
rescue *ignored => last_error # rubocop:disable Lint/HandleExceptions
102102
# swallowed
103103
end
104104
sleep interval

0 commit comments

Comments
 (0)