summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Wininger <fw.centrale@gmail.com>2020-05-29 10:44:33 +0200
committerFlorian Wininger <fw.centrale@gmail.com>2020-05-29 10:44:33 +0200
commitee26aad6bb4f7c1c53a140889478b73d34daf4d5 (patch)
treec334e699104113c234efa5286b80ef11eca33fb3
parentd0b4ffe8984dafbfafd79ac99caef4229edb8557 (diff)
downloadnet-ssh-ee26aad6bb4f7c1c53a140889478b73d34daf4d5.tar.gz
Fix Style/DefWithParentheses
Signed-off-by: Florian Wininger <fw.centrale@gmail.com>
-rw-r--r--.rubocop_todo.yml6
-rw-r--r--test/integration/test_forward.rb2
2 files changed, 1 insertions, 7 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 30f7041..d554db7 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -471,12 +471,6 @@ Style/ConditionalAssignment:
- 'lib/net/ssh/transport/state.rb'
- 'test/test_key_factory.rb'
-# Offense count: 1
-# Cop supports --auto-correct.
-Style/DefWithParentheses:
- Exclude:
- - 'test/integration/test_forward.rb'
-
# Offense count: 13
Style/Documentation:
Exclude:
diff --git a/test/integration/test_forward.rb b/test/integration/test_forward.rb
index 3ff76cd..60630fc 100644
--- a/test/integration/test_forward.rb
+++ b/test/integration/test_forward.rb
@@ -302,7 +302,7 @@ class TestForward < ForwardTestBase
end
class TCPProxy
- def initialize()
+ def initialize
@sockets = []
end
attr_reader :sockets