net-ssh 2.9.2 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.gitignore +6 -0
  4. data/.rubocop.yml +5 -0
  5. data/.rubocop_todo.yml +1129 -0
  6. data/.travis.yml +41 -5
  7. data/CHANGES.txt +133 -1
  8. data/Gemfile +13 -0
  9. data/Gemfile.norbnacl +10 -0
  10. data/Gemfile.norbnacl.lock +41 -0
  11. data/ISSUE_TEMPLATE.md +30 -0
  12. data/README.rdoc +26 -81
  13. data/Rakefile +63 -45
  14. data/appveyor.yml +51 -0
  15. data/lib/net/ssh/authentication/agent.rb +174 -14
  16. data/lib/net/ssh/authentication/ed25519.rb +137 -0
  17. data/lib/net/ssh/authentication/ed25519_loader.rb +21 -0
  18. data/lib/net/ssh/authentication/key_manager.rb +36 -30
  19. data/lib/net/ssh/authentication/methods/abstract.rb +4 -0
  20. data/lib/net/ssh/authentication/methods/keyboard_interactive.rb +16 -9
  21. data/lib/net/ssh/authentication/methods/password.rb +17 -4
  22. data/lib/net/ssh/authentication/pageant.rb +166 -45
  23. data/lib/net/ssh/authentication/session.rb +3 -2
  24. data/lib/net/ssh/buffer.rb +49 -10
  25. data/lib/net/ssh/buffered_io.rb +17 -12
  26. data/lib/net/ssh/config.rb +39 -8
  27. data/lib/net/ssh/connection/channel.rb +42 -20
  28. data/lib/net/ssh/connection/event_loop.rb +114 -0
  29. data/lib/net/ssh/connection/keepalive.rb +2 -2
  30. data/lib/net/ssh/connection/session.rb +120 -34
  31. data/lib/net/ssh/errors.rb +6 -6
  32. data/lib/net/ssh/key_factory.rb +49 -43
  33. data/lib/net/ssh/known_hosts.rb +49 -3
  34. data/lib/net/ssh/prompt.rb +47 -78
  35. data/lib/net/ssh/proxy/command.rb +31 -5
  36. data/lib/net/ssh/proxy/http.rb +15 -11
  37. data/lib/net/ssh/proxy/https.rb +49 -0
  38. data/lib/net/ssh/proxy/socks4.rb +2 -1
  39. data/lib/net/ssh/proxy/socks5.rb +3 -2
  40. data/lib/net/ssh/ruby_compat.rb +2 -29
  41. data/lib/net/ssh/service/forward.rb +2 -2
  42. data/lib/net/ssh/test/channel.rb +7 -0
  43. data/lib/net/ssh/test/extensions.rb +17 -0
  44. data/lib/net/ssh/test/kex.rb +4 -4
  45. data/lib/net/ssh/test/packet.rb +18 -2
  46. data/lib/net/ssh/test/script.rb +16 -2
  47. data/lib/net/ssh/test/socket.rb +1 -1
  48. data/lib/net/ssh/test.rb +5 -5
  49. data/lib/net/ssh/transport/algorithms.rb +92 -75
  50. data/lib/net/ssh/transport/cipher_factory.rb +19 -26
  51. data/lib/net/ssh/transport/ctr.rb +7 -9
  52. data/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb +20 -9
  53. data/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb +5 -3
  54. data/lib/net/ssh/transport/kex/ecdh_sha2_nistp256.rb +1 -1
  55. data/lib/net/ssh/transport/key_expander.rb +1 -0
  56. data/lib/net/ssh/transport/openssl.rb +1 -1
  57. data/lib/net/ssh/transport/packet_stream.rb +11 -3
  58. data/lib/net/ssh/transport/server_version.rb +13 -6
  59. data/lib/net/ssh/transport/session.rb +20 -10
  60. data/lib/net/ssh/transport/state.rb +1 -1
  61. data/lib/net/ssh/verifiers/secure.rb +8 -10
  62. data/lib/net/ssh/version.rb +4 -4
  63. data/lib/net/ssh.rb +62 -14
  64. data/net-ssh-public_cert.pem +19 -18
  65. data/net-ssh.gemspec +34 -194
  66. data/support/arcfour_check.rb +1 -1
  67. data/support/ssh_tunnel_bug.rb +1 -1
  68. data.tar.gz.sig +0 -0
  69. metadata +125 -109
  70. metadata.gz.sig +0 -0
  71. data/Rudyfile +0 -96
  72. data/lib/net/ssh/authentication/agent/java_pageant.rb +0 -85
  73. data/lib/net/ssh/authentication/agent/socket.rb +0 -178
  74. data/setup.rb +0 -1585
  75. data/test/README.txt +0 -47
  76. data/test/authentication/methods/common.rb +0 -28
  77. data/test/authentication/methods/test_abstract.rb +0 -51
  78. data/test/authentication/methods/test_hostbased.rb +0 -114
  79. data/test/authentication/methods/test_keyboard_interactive.rb +0 -100
  80. data/test/authentication/methods/test_none.rb +0 -41
  81. data/test/authentication/methods/test_password.rb +0 -95
  82. data/test/authentication/methods/test_publickey.rb +0 -148
  83. data/test/authentication/test_agent.rb +0 -224
  84. data/test/authentication/test_key_manager.rb +0 -227
  85. data/test/authentication/test_session.rb +0 -107
  86. data/test/common.rb +0 -108
  87. data/test/configs/auth_off +0 -5
  88. data/test/configs/auth_on +0 -4
  89. data/test/configs/empty +0 -0
  90. data/test/configs/eqsign +0 -3
  91. data/test/configs/exact_match +0 -8
  92. data/test/configs/host_plus +0 -10
  93. data/test/configs/multihost +0 -4
  94. data/test/configs/negative_match +0 -6
  95. data/test/configs/nohost +0 -19
  96. data/test/configs/numeric_host +0 -4
  97. data/test/configs/send_env +0 -2
  98. data/test/configs/substitutes +0 -8
  99. data/test/configs/wild_cards +0 -14
  100. data/test/connection/test_channel.rb +0 -467
  101. data/test/connection/test_session.rb +0 -543
  102. data/test/known_hosts/github +0 -1
  103. data/test/manual/test_forward.rb +0 -285
  104. data/test/manual/test_pageant.rb +0 -37
  105. data/test/start/test_connection.rb +0 -53
  106. data/test/start/test_options.rb +0 -43
  107. data/test/start/test_transport.rb +0 -28
  108. data/test/test_all.rb +0 -11
  109. data/test/test_buffer.rb +0 -433
  110. data/test/test_buffered_io.rb +0 -63
  111. data/test/test_config.rb +0 -221
  112. data/test/test_key_factory.rb +0 -191
  113. data/test/test_known_hosts.rb +0 -13
  114. data/test/transport/hmac/test_md5.rb +0 -41
  115. data/test/transport/hmac/test_md5_96.rb +0 -27
  116. data/test/transport/hmac/test_none.rb +0 -34
  117. data/test/transport/hmac/test_ripemd160.rb +0 -36
  118. data/test/transport/hmac/test_sha1.rb +0 -36
  119. data/test/transport/hmac/test_sha1_96.rb +0 -27
  120. data/test/transport/hmac/test_sha2_256.rb +0 -37
  121. data/test/transport/hmac/test_sha2_256_96.rb +0 -27
  122. data/test/transport/hmac/test_sha2_512.rb +0 -37
  123. data/test/transport/hmac/test_sha2_512_96.rb +0 -27
  124. data/test/transport/kex/test_diffie_hellman_group14_sha1.rb +0 -13
  125. data/test/transport/kex/test_diffie_hellman_group1_sha1.rb +0 -146
  126. data/test/transport/kex/test_diffie_hellman_group_exchange_sha1.rb +0 -92
  127. data/test/transport/kex/test_diffie_hellman_group_exchange_sha256.rb +0 -34
  128. data/test/transport/kex/test_ecdh_sha2_nistp256.rb +0 -161
  129. data/test/transport/kex/test_ecdh_sha2_nistp384.rb +0 -38
  130. data/test/transport/kex/test_ecdh_sha2_nistp521.rb +0 -38
  131. data/test/transport/test_algorithms.rb +0 -324
  132. data/test/transport/test_cipher_factory.rb +0 -443
  133. data/test/transport/test_hmac.rb +0 -34
  134. data/test/transport/test_identity_cipher.rb +0 -40
  135. data/test/transport/test_packet_stream.rb +0 -1761
  136. data/test/transport/test_server_version.rb +0 -78
  137. data/test/transport/test_session.rb +0 -331
  138. data/test/transport/test_state.rb +0 -181
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,1129 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2016-12-11 13:27:14 +0100 using RuboCop version 0.46.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 4
10
+ # Configuration parameters: AllowSafeAssignment.
11
+ Lint/AssignmentInCondition:
12
+ Exclude:
13
+ - 'lib/net/ssh/connection/channel.rb'
14
+ - 'lib/net/ssh/connection/session.rb'
15
+ - 'lib/net/ssh/proxy/command.rb'
16
+
17
+ # Offense count: 1
18
+ # Cop supports --auto-correct.
19
+ # Configuration parameters: AlignWith, SupportedStyles.
20
+ # SupportedStyles: either, start_of_block, start_of_line
21
+ Lint/BlockAlignment:
22
+ Exclude:
23
+ - 'test/integration/test_proxy.rb'
24
+
25
+ # Offense count: 1
26
+ # Cop supports --auto-correct.
27
+ Lint/DeprecatedClassMethods:
28
+ Exclude:
29
+ - 'Rakefile'
30
+
31
+ # Offense count: 1
32
+ Lint/EmptyWhen:
33
+ Exclude:
34
+ - 'lib/net/ssh/config.rb'
35
+
36
+ # Offense count: 223
37
+ # Cop supports --auto-correct.
38
+ # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
39
+ # SupportedStyles: keyword, variable, start_of_line
40
+ Lint/EndAlignment:
41
+ Enabled: false
42
+
43
+ # Offense count: 8
44
+ Lint/HandleExceptions:
45
+ Exclude:
46
+ - 'lib/net/ssh/authentication/session.rb'
47
+ - 'lib/net/ssh/known_hosts.rb'
48
+ - 'lib/net/ssh/transport/openssl.rb'
49
+ - 'test/integration/common.rb'
50
+ - 'test/integration/test_forward.rb'
51
+ - 'test/start/test_connection.rb'
52
+ - 'test/start/test_transport.rb'
53
+
54
+ # Offense count: 72
55
+ Lint/ImplicitStringConcatenation:
56
+ Exclude:
57
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
58
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
59
+
60
+ # Offense count: 1
61
+ Lint/LiteralInCondition:
62
+ Exclude:
63
+ - 'lib/net/ssh/authentication/pageant.rb'
64
+
65
+ # Offense count: 2
66
+ Lint/Loop:
67
+ Exclude:
68
+ - 'lib/net/ssh/authentication/methods/password.rb'
69
+ - 'lib/net/ssh/key_factory.rb'
70
+
71
+ # Offense count: 1
72
+ Lint/NextWithoutAccumulator:
73
+ Exclude:
74
+ - 'lib/net/ssh/connection/session.rb'
75
+
76
+ # Offense count: 1
77
+ Lint/NonLocalExitFromIterator:
78
+ Exclude:
79
+ - 'lib/net/ssh/known_hosts.rb'
80
+
81
+ # Offense count: 4
82
+ Lint/RescueException:
83
+ Exclude:
84
+ - 'lib/net/ssh/authentication/key_manager.rb'
85
+ - 'lib/net/ssh/service/forward.rb'
86
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
87
+
88
+ # Offense count: 2
89
+ Lint/ShadowedException:
90
+ Exclude:
91
+ - 'lib/net/ssh/authentication/key_manager.rb'
92
+
93
+ # Offense count: 1
94
+ Lint/UnderscorePrefixedVariableName:
95
+ Exclude:
96
+ - 'lib/net/ssh/test/local_packet.rb'
97
+
98
+ # Offense count: 52
99
+ # Cop supports --auto-correct.
100
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
101
+ Lint/UnusedBlockArgument:
102
+ Exclude:
103
+ - 'lib/net/ssh/connection/keepalive.rb'
104
+ - 'lib/net/ssh/connection/session.rb'
105
+ - 'lib/net/ssh/service/forward.rb'
106
+ - 'test/authentication/methods/test_password.rb'
107
+ - 'test/authentication/test_agent.rb'
108
+ - 'test/common.rb'
109
+ - 'test/connection/test_channel.rb'
110
+ - 'test/connection/test_session.rb'
111
+ - 'test/transport/test_algorithms.rb'
112
+ - 'test/transport/test_hmac.rb'
113
+
114
+ # Offense count: 50
115
+ # Cop supports --auto-correct.
116
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
117
+ Lint/UnusedMethodArgument:
118
+ Enabled: false
119
+
120
+ # Offense count: 3
121
+ # Configuration parameters: ContextCreatingMethods.
122
+ Lint/UselessAccessModifier:
123
+ Exclude:
124
+ - 'lib/net/ssh/buffered_io.rb'
125
+ - 'lib/net/ssh/connection/channel.rb'
126
+ - 'lib/net/ssh/transport/session.rb'
127
+
128
+ # Offense count: 10
129
+ Lint/UselessAssignment:
130
+ Exclude:
131
+ - 'lib/net/ssh/proxy/socks4.rb'
132
+ - 'lib/net/ssh/proxy/socks5.rb'
133
+ - 'test/integration/common.rb'
134
+ - 'test/integration/test_forward.rb'
135
+
136
+ # Offense count: 196
137
+ Metrics/AbcSize:
138
+ Max: 76
139
+
140
+ # Offense count: 14
141
+ # Configuration parameters: CountComments.
142
+ Metrics/BlockLength:
143
+ Max: 88
144
+
145
+ # Offense count: 1
146
+ Metrics/BlockNesting:
147
+ Max: 4
148
+
149
+ # Offense count: 27
150
+ # Configuration parameters: CountComments.
151
+ Metrics/ClassLength:
152
+ Max: 548
153
+
154
+ # Offense count: 34
155
+ Metrics/CyclomaticComplexity:
156
+ Max: 39
157
+
158
+ # Offense count: 1341
159
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
160
+ # URISchemes: http, https
161
+ Metrics/LineLength:
162
+ Max: 934
163
+
164
+ # Offense count: 164
165
+ # Configuration parameters: CountComments.
166
+ Metrics/MethodLength:
167
+ Max: 93
168
+
169
+ # Offense count: 1
170
+ # Configuration parameters: CountComments.
171
+ Metrics/ModuleLength:
172
+ Max: 142
173
+
174
+ # Offense count: 1
175
+ # Configuration parameters: CountKeywordArgs.
176
+ Metrics/ParameterLists:
177
+ Max: 6
178
+
179
+ # Offense count: 27
180
+ Metrics/PerceivedComplexity:
181
+ Max: 23
182
+
183
+ # Offense count: 3
184
+ # Cop supports --auto-correct.
185
+ Performance/RangeInclude:
186
+ Exclude:
187
+ - 'lib/net/ssh/transport/algorithms.rb'
188
+
189
+ # Offense count: 3
190
+ # Cop supports --auto-correct.
191
+ Performance/RedundantBlockCall:
192
+ Exclude:
193
+ - 'lib/net/ssh/connection/session.rb'
194
+ - 'test/connection/test_channel.rb'
195
+
196
+ # Offense count: 6
197
+ # Cop supports --auto-correct.
198
+ Performance/RedundantMatch:
199
+ Exclude:
200
+ - 'lib/net/ssh/key_factory.rb'
201
+ - 'lib/net/ssh/transport/server_version.rb'
202
+
203
+ # Offense count: 13
204
+ Style/AccessorMethodName:
205
+ Exclude:
206
+ - 'lib/net/ssh/authentication/methods/password.rb'
207
+ - 'lib/net/ssh/authentication/pageant.rb'
208
+ - 'lib/net/ssh/connection/session.rb'
209
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
210
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
211
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb'
212
+ - 'lib/net/ssh/transport/kex/ecdh_sha2_nistp256.rb'
213
+
214
+ # Offense count: 2
215
+ # Cop supports --auto-correct.
216
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
217
+ # SupportedStyles: prefer_alias, prefer_alias_method
218
+ Style/Alias:
219
+ Exclude:
220
+ - 'lib/net/ssh/connection/session.rb'
221
+ - 'lib/net/ssh/service/forward.rb'
222
+
223
+ # Offense count: 1
224
+ # Cop supports --auto-correct.
225
+ Style/AlignArray:
226
+ Exclude:
227
+ - 'lib/net/ssh/proxy/socks5.rb'
228
+
229
+ # Offense count: 25
230
+ # Cop supports --auto-correct.
231
+ # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
232
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
233
+ Style/AlignHash:
234
+ Exclude:
235
+ - 'lib/net/ssh/transport/algorithms.rb'
236
+ - 'test/connection/test_channel.rb'
237
+ - 'test/integration/test_id_rsa_keys.rb'
238
+ - 'test/transport/kex/test_diffie_hellman_group1_sha1.rb'
239
+ - 'test/transport/kex/test_ecdh_sha2_nistp256.rb'
240
+ - 'test/transport/test_algorithms.rb'
241
+ - 'test/transport/test_cipher_factory.rb'
242
+ - 'test/transport/test_state.rb'
243
+
244
+ # Offense count: 72
245
+ # Cop supports --auto-correct.
246
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
247
+ # SupportedStyles: with_first_parameter, with_fixed_indentation
248
+ Style/AlignParameters:
249
+ Enabled: false
250
+
251
+ # Offense count: 33
252
+ # Cop supports --auto-correct.
253
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
254
+ # SupportedStyles: always, conditionals
255
+ Style/AndOr:
256
+ Exclude:
257
+ - 'lib/net/ssh/authentication/key_manager.rb'
258
+ - 'lib/net/ssh/buffer.rb'
259
+ - 'lib/net/ssh/buffered_io.rb'
260
+ - 'lib/net/ssh/config.rb'
261
+ - 'lib/net/ssh/connection/channel.rb'
262
+ - 'lib/net/ssh/connection/session.rb'
263
+ - 'lib/net/ssh/key_factory.rb'
264
+ - 'lib/net/ssh/service/forward.rb'
265
+ - 'lib/net/ssh/test/channel.rb'
266
+ - 'lib/net/ssh/test/script.rb'
267
+ - 'lib/net/ssh/transport/cipher_factory.rb'
268
+ - 'lib/net/ssh/transport/hmac.rb'
269
+ - 'lib/net/ssh/transport/key_expander.rb'
270
+ - 'lib/net/ssh/transport/packet_stream.rb'
271
+ - 'test/common.rb'
272
+
273
+ # Offense count: 2
274
+ Style/AsciiComments:
275
+ Exclude:
276
+ - 'lib/net/ssh/authentication/pageant.rb'
277
+ - 'lib/net/ssh/buffered_io.rb'
278
+
279
+ # Offense count: 11
280
+ # Cop supports --auto-correct.
281
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
282
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining
283
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
284
+ # FunctionalMethods: let, let!, subject, watch
285
+ # IgnoredMethods: lambda, proc, it
286
+ Style/BlockDelimiters:
287
+ Exclude:
288
+ - 'Rakefile'
289
+ - 'lib/net/ssh/authentication/key_manager.rb'
290
+ - 'lib/net/ssh/config.rb'
291
+ - 'lib/net/ssh/connection/keepalive.rb'
292
+ - 'lib/net/ssh/proxy/command.rb'
293
+ - 'lib/net/ssh/transport/ctr.rb'
294
+ - 'test/test_buffer.rb'
295
+ - 'test/verifiers/test_secure.rb'
296
+
297
+ # Offense count: 8
298
+ # Cop supports --auto-correct.
299
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
300
+ # SupportedStyles: braces, no_braces, context_dependent
301
+ Style/BracesAroundHashParameters:
302
+ Exclude:
303
+ - 'lib/net/ssh/config.rb'
304
+ - 'test/integration/test_ed25519_pkeys.rb'
305
+ - 'test/integration/test_id_rsa_keys.rb'
306
+ - 'test/transport/test_hmac.rb'
307
+ - 'test/transport/test_session.rb'
308
+ - 'test_kerberos_client2.rb'
309
+
310
+ # Offense count: 2
311
+ Style/CaseEquality:
312
+ Exclude:
313
+ - 'lib/net/ssh/buffer.rb'
314
+ - 'lib/net/ssh/connection/session.rb'
315
+
316
+ # Offense count: 42
317
+ # Cop supports --auto-correct.
318
+ # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
319
+ # SupportedStyles: case, end
320
+ Style/CaseIndentation:
321
+ Exclude:
322
+ - 'lib/net/ssh.rb'
323
+ - 'lib/net/ssh/authentication/methods/hostbased.rb'
324
+ - 'lib/net/ssh/authentication/methods/none.rb'
325
+ - 'lib/net/ssh/authentication/methods/password.rb'
326
+ - 'lib/net/ssh/authentication/methods/publickey.rb'
327
+ - 'lib/net/ssh/buffer.rb'
328
+ - 'lib/net/ssh/config.rb'
329
+ - 'lib/net/ssh/test/local_packet.rb'
330
+ - 'lib/net/ssh/test/packet.rb'
331
+
332
+ # Offense count: 1
333
+ # Cop supports --auto-correct.
334
+ Style/CharacterLiteral:
335
+ Exclude:
336
+ - 'test/test_buffer.rb'
337
+
338
+ # Offense count: 12
339
+ Style/ClassAndModuleCamelCase:
340
+ Exclude:
341
+ - 'lib/net/ssh/transport/hmac/md5_96.rb'
342
+ - 'lib/net/ssh/transport/hmac/sha1_96.rb'
343
+ - 'lib/net/ssh/transport/hmac/sha2_256.rb'
344
+ - 'lib/net/ssh/transport/hmac/sha2_256_96.rb'
345
+ - 'lib/net/ssh/transport/hmac/sha2_512.rb'
346
+ - 'lib/net/ssh/transport/hmac/sha2_512_96.rb'
347
+ - 'test/transport/hmac/test_md5_96.rb'
348
+ - 'test/transport/hmac/test_sha1_96.rb'
349
+ - 'test/transport/hmac/test_sha2_256.rb'
350
+ - 'test/transport/hmac/test_sha2_256_96.rb'
351
+ - 'test/transport/hmac/test_sha2_512.rb'
352
+ - 'test/transport/hmac/test_sha2_512_96.rb'
353
+
354
+ # Offense count: 16
355
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
356
+ # SupportedStyles: nested, compact
357
+ Style/ClassAndModuleChildren:
358
+ Enabled: false
359
+
360
+ # Offense count: 1
361
+ # Cop supports --auto-correct.
362
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
363
+ # SupportedStyles: is_a?, kind_of?
364
+ Style/ClassCheck:
365
+ Exclude:
366
+ - 'test/authentication/test_key_manager.rb'
367
+
368
+ # Offense count: 7
369
+ Style/ClassVars:
370
+ Exclude:
371
+ - 'lib/net/ssh/config.rb'
372
+ - 'lib/net/ssh/packet.rb'
373
+ - 'test/authentication/methods/test_hostbased.rb'
374
+ - 'test/authentication/methods/test_publickey.rb'
375
+
376
+ # Offense count: 1
377
+ # Cop supports --auto-correct.
378
+ Style/ColonMethodCall:
379
+ Exclude:
380
+ - 'lib/net/ssh/authentication/ed25519.rb'
381
+
382
+ # Offense count: 4
383
+ # Cop supports --auto-correct.
384
+ # Configuration parameters: Keywords.
385
+ # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
386
+ Style/CommentAnnotation:
387
+ Exclude:
388
+ - 'lib/net/ssh/authentication/ed25519.rb'
389
+ - 'lib/net/ssh/authentication/session.rb'
390
+ - 'lib/net/ssh/buffer.rb'
391
+ - 'lib/net/ssh/config.rb'
392
+
393
+ # Offense count: 2
394
+ # Cop supports --auto-correct.
395
+ Style/CommentIndentation:
396
+ Exclude:
397
+ - 'test/integration/test_forward.rb'
398
+ - 'test/transport/test_server_version.rb'
399
+
400
+ # Offense count: 4
401
+ # Cop supports --auto-correct.
402
+ # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
403
+ # SupportedStyles: assign_to_condition, assign_inside_condition
404
+ Style/ConditionalAssignment:
405
+ Exclude:
406
+ - 'lib/net/ssh/transport/ctr.rb'
407
+ - 'lib/net/ssh/transport/state.rb'
408
+ - 'test/test_key_factory.rb'
409
+ - 'lib/net/ssh/config.rb'
410
+ - 'lib/net/ssh/known_hosts.rb'
411
+ - 'lib/net/ssh/proxy/socks5.rb'
412
+ - 'lib/net/ssh/test/script.rb'
413
+
414
+ # Offense count: 5
415
+ Style/ConstantName:
416
+ Exclude:
417
+ - 'lib/net/ssh/authentication/pageant.rb'
418
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
419
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
420
+ - 'lib/net/ssh/transport/openssl.rb'
421
+
422
+ # Offense count: 1
423
+ # Cop supports --auto-correct.
424
+ Style/DefWithParentheses:
425
+ Exclude:
426
+ - 'test/integration/test_forward.rb'
427
+
428
+ # Offense count: 16
429
+ Style/Documentation:
430
+ Exclude:
431
+ - 'spec/**/*'
432
+ - 'test/**/*'
433
+ - 'lib/net/ssh/authentication/ed25519.rb'
434
+ - 'lib/net/ssh/connection/keepalive.rb'
435
+ - 'lib/net/ssh/connection/session.rb'
436
+ - 'lib/net/ssh/ruby_compat.rb'
437
+ - 'lib/net/ssh/test/extensions.rb'
438
+ - 'lib/net/ssh/transport/hmac/sha2_256_96.rb'
439
+ - 'lib/net/ssh/transport/hmac/sha2_512.rb'
440
+ - 'lib/net/ssh/transport/hmac/sha2_512_96.rb'
441
+ - 'lib/net/ssh/transport/kex.rb'
442
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha256.rb'
443
+ - 'lib/net/ssh/transport/key_expander.rb'
444
+ - 'lib/net/ssh/transport/openssl.rb'
445
+
446
+ # Offense count: 6
447
+ # Cop supports --auto-correct.
448
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
449
+ # SupportedStyles: leading, trailing
450
+ Style/DotPosition:
451
+ Exclude:
452
+ - 'test/transport/test_algorithms.rb'
453
+
454
+ # Offense count: 3
455
+ # Cop supports --auto-correct.
456
+ Style/EachWithObject:
457
+ Exclude:
458
+ - 'lib/net/ssh/config.rb'
459
+ - 'lib/net/ssh/connection/session.rb'
460
+ - 'lib/net/ssh/service/forward.rb'
461
+
462
+ # Offense count: 1
463
+ # Cop supports --auto-correct.
464
+ Style/ElseAlignment:
465
+ Exclude:
466
+ - 'lib/net/ssh/packet.rb'
467
+
468
+ # Offense count: 12
469
+ # Cop supports --auto-correct.
470
+ # Configuration parameters: AllowAdjacentOneLineDefs.
471
+ Style/EmptyLineBetweenDefs:
472
+ Exclude:
473
+ - 'lib/net/ssh/buffered_io.rb'
474
+ - 'lib/net/ssh/ruby_compat.rb'
475
+ - 'lib/net/ssh/transport/kex/ecdh_sha2_nistp384.rb'
476
+ - 'lib/net/ssh/transport/kex/ecdh_sha2_nistp521.rb'
477
+ - 'test/test_buffer.rb'
478
+ - 'test/test_key_factory.rb'
479
+
480
+ # Offense count: 16
481
+ # Cop supports --auto-correct.
482
+ Style/EmptyLines:
483
+ Exclude:
484
+ - 'Rakefile'
485
+ - 'lib/net/ssh/buffered_io.rb'
486
+ - 'lib/net/ssh/connection/session.rb'
487
+ - 'lib/net/ssh/known_hosts.rb'
488
+ - 'lib/net/ssh/transport/cipher_factory.rb'
489
+ - 'lib/net/ssh/transport/packet_stream.rb'
490
+ - 'lib/net/ssh/transport/session.rb'
491
+ - 'test/authentication/methods/test_keyboard_interactive.rb'
492
+ - 'test/authentication/methods/test_password.rb'
493
+ - 'test/integration/test_ed25519_pkeys.rb'
494
+ - 'test/integration/test_id_rsa_keys.rb'
495
+ - 'test/test_config.rb'
496
+ - 'test/test_known_hosts.rb'
497
+ - 'test/transport/test_cipher_factory.rb'
498
+
499
+ # Offense count: 39
500
+ # Cop supports --auto-correct.
501
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
502
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
503
+ Style/EmptyLinesAroundClassBody:
504
+ Enabled: false
505
+
506
+ # Offense count: 4
507
+ # Cop supports --auto-correct.
508
+ Style/EmptyLinesAroundMethodBody:
509
+ Exclude:
510
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb'
511
+ - 'lib/net/ssh/transport/openssl.rb'
512
+ - 'test/transport/hmac/test_sha2_256.rb'
513
+ - 'test/transport/hmac/test_sha2_512.rb'
514
+
515
+ # Offense count: 209
516
+ # Cop supports --auto-correct.
517
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
518
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
519
+ Style/EmptyLinesAroundModuleBody:
520
+ Enabled: false
521
+
522
+ # Offense count: 2
523
+ # Cop supports --auto-correct.
524
+ Style/EmptyLiteral:
525
+ Exclude:
526
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
527
+ - 'lib/net/ssh/transport/kex/ecdh_sha2_nistp256.rb'
528
+
529
+ # Offense count: 1
530
+ # Cop supports --auto-correct.
531
+ Style/EvenOdd:
532
+ Exclude:
533
+ - 'lib/net/ssh/buffer.rb'
534
+
535
+ # Offense count: 17
536
+ # Cop supports --auto-correct.
537
+ # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
538
+ Style/ExtraSpacing:
539
+ Exclude:
540
+ - 'Rakefile'
541
+ - 'lib/net/ssh/authentication/methods/password.rb'
542
+ - 'lib/net/ssh/authentication/pageant.rb'
543
+ - 'lib/net/ssh/proxy/socks5.rb'
544
+ - 'lib/net/ssh/transport/hmac/sha2_256_96.rb'
545
+ - 'lib/net/ssh/transport/hmac/sha2_512_96.rb'
546
+ - 'test/authentication/test_key_manager.rb'
547
+ - 'test/integration/test_forward.rb'
548
+ - 'test/test_config.rb'
549
+ - 'test/test_key_factory.rb'
550
+ - 'test/transport/test_packet_stream.rb'
551
+
552
+ # Offense count: 2
553
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
554
+ # SupportedStyles: format, sprintf, percent
555
+ Style/FormatString:
556
+ Exclude:
557
+ - 'lib/net/ssh/authentication/pageant.rb'
558
+ - 'lib/net/ssh/loggable.rb'
559
+
560
+ # Offense count: 35
561
+ # Configuration parameters: MinBodyLength.
562
+ Style/GuardClause:
563
+ Enabled: false
564
+
565
+ # Offense count: 1
566
+ Style/IfInsideElse:
567
+ Exclude:
568
+ - 'lib/net/ssh/connection/session.rb'
569
+
570
+ # Offense count: 9
571
+ # Cop supports --auto-correct.
572
+ # Configuration parameters: MaxLineLength.
573
+ Style/IfUnlessModifier:
574
+ Exclude:
575
+ - 'lib/net/ssh.rb'
576
+ - 'lib/net/ssh/authentication/pageant.rb'
577
+ - 'lib/net/ssh/proxy/command.rb'
578
+ - 'lib/net/ssh/service/forward.rb'
579
+ - 'lib/net/ssh/transport/ctr.rb'
580
+ - 'lib/net/ssh/transport/key_expander.rb'
581
+ - 'test/integration/test_proxy.rb'
582
+ - 'test/test_key_factory.rb'
583
+
584
+ # Offense count: 4
585
+ # Cop supports --auto-correct.
586
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
587
+ # SupportedStyles: special_inside_parentheses, consistent, align_brackets
588
+ Style/IndentArray:
589
+ Exclude:
590
+ - 'lib/net/ssh/transport/openssl.rb'
591
+
592
+ # Offense count: 4
593
+ # Cop supports --auto-correct.
594
+ # Configuration parameters: IndentationWidth.
595
+ Style/IndentAssignment:
596
+ Exclude:
597
+ - 'test/transport/kex/test_diffie_hellman_group1_sha1.rb'
598
+ - 'test/transport/kex/test_ecdh_sha2_nistp256.rb'
599
+ - 'test/transport/kex/test_ecdh_sha2_nistp384.rb'
600
+ - 'test/transport/kex/test_ecdh_sha2_nistp521.rb'
601
+
602
+ # Offense count: 227
603
+ # Cop supports --auto-correct.
604
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
605
+ # SupportedStyles: normal, rails
606
+ Style/IndentationConsistency:
607
+ Enabled: false
608
+
609
+ # Offense count: 96
610
+ # Cop supports --auto-correct.
611
+ # Configuration parameters: Width.
612
+ Style/IndentationWidth:
613
+ Enabled: false
614
+
615
+ # Offense count: 1
616
+ # Cop supports --auto-correct.
617
+ Style/InfiniteLoop:
618
+ Exclude:
619
+ - 'lib/net/ssh/authentication/pageant.rb'
620
+
621
+ # Offense count: 17
622
+ # Cop supports --auto-correct.
623
+ Style/LeadingCommentSpace:
624
+ Exclude:
625
+ - 'test/integration/test_ed25519_pkeys.rb'
626
+ - 'test/integration/test_forward.rb'
627
+ - 'test/integration/test_id_rsa_keys.rb'
628
+ - 'test/integration/test_proxy.rb'
629
+
630
+ # Offense count: 27
631
+ # Cop supports --auto-correct.
632
+ Style/LineEndConcatenation:
633
+ Exclude:
634
+ - 'lib/net/ssh/authentication/pageant.rb'
635
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
636
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
637
+ - 'lib/net/ssh/transport/kex/ecdh_sha2_nistp256.rb'
638
+ - 'lib/net/ssh/verifiers/secure.rb'
639
+
640
+ # Offense count: 12
641
+ # Cop supports --auto-correct.
642
+ Style/MethodCallParentheses:
643
+ Exclude:
644
+ - 'test/authentication/test_key_manager.rb'
645
+ - 'test/connection/test_session.rb'
646
+ - 'test/integration/test_forward.rb'
647
+ - 'test/start/test_user_nil.rb'
648
+
649
+ # Offense count: 2
650
+ # Cop supports --auto-correct.
651
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
652
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
653
+ Style/MethodDefParentheses:
654
+ Exclude:
655
+ - 'test/common.rb'
656
+ - 'test/integration/common.rb'
657
+
658
+ # Offense count: 1
659
+ Style/MethodMissing:
660
+ Exclude:
661
+ - 'lib/net/ssh/connection/session.rb'
662
+
663
+ # Offense count: 24
664
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
665
+ # SupportedStyles: snake_case, camelCase
666
+ Style/MethodName:
667
+ Exclude:
668
+ - 'lib/net/ssh/authentication/ed25519_loader.rb'
669
+ - 'test/authentication/test_agent.rb'
670
+ - 'test/authentication/test_session.rb'
671
+ - 'test/common.rb'
672
+ - 'test/connection/test_channel.rb'
673
+ - 'test/test_config.rb'
674
+ - 'test/test_key_factory.rb'
675
+
676
+ # Offense count: 3
677
+ # Cop supports --auto-correct.
678
+ Style/MultilineIfThen:
679
+ Exclude:
680
+ - 'lib/net/ssh/buffered_io.rb'
681
+ - 'lib/net/ssh/service/forward.rb'
682
+
683
+ # Offense count: 23
684
+ # Cop supports --auto-correct.
685
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
686
+ # SupportedStyles: aligned, indented
687
+ Style/MultilineOperationIndentation:
688
+ Exclude:
689
+ - 'lib/net/ssh/authentication/pageant.rb'
690
+ - 'lib/net/ssh/known_hosts.rb'
691
+ - 'lib/net/ssh/proxy/https.rb'
692
+ - 'lib/net/ssh/transport/algorithms.rb'
693
+ - 'lib/net/ssh/transport/kex/ecdh_sha2_nistp256.rb'
694
+ - 'lib/net/ssh/transport/state.rb'
695
+ - 'lib/net/ssh/verifiers/secure.rb'
696
+ - 'test/authentication/methods/test_hostbased.rb'
697
+ - 'test/authentication/methods/test_publickey.rb'
698
+
699
+ # Offense count: 40
700
+ # Cop supports --auto-correct.
701
+ Style/MutableConstant:
702
+ Enabled: false
703
+
704
+ # Offense count: 13
705
+ # Cop supports --auto-correct.
706
+ Style/NegatedIf:
707
+ Exclude:
708
+ - 'lib/net/ssh.rb'
709
+ - 'lib/net/ssh/authentication/key_manager.rb'
710
+ - 'lib/net/ssh/service/forward.rb'
711
+ - 'lib/net/ssh/transport/algorithms.rb'
712
+ - 'lib/net/ssh/transport/hmac/abstract.rb'
713
+ - 'lib/net/ssh/transport/session.rb'
714
+ - 'lib/net/ssh/transport/state.rb'
715
+ - 'test/test_key_factory.rb'
716
+ - 'test/transport/test_state.rb'
717
+
718
+ # Offense count: 1
719
+ # Cop supports --auto-correct.
720
+ Style/NegatedWhile:
721
+ Exclude:
722
+ - 'lib/net/ssh/config.rb'
723
+
724
+ # Offense count: 2
725
+ # Cop supports --auto-correct.
726
+ # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
727
+ # SupportedStyles: skip_modifier_ifs, always
728
+ Style/Next:
729
+ Exclude:
730
+ - 'lib/net/ssh/authentication/key_manager.rb'
731
+ - 'lib/net/ssh/transport/algorithms.rb'
732
+
733
+ # Offense count: 2
734
+ # Cop supports --auto-correct.
735
+ Style/NilComparison:
736
+ Exclude:
737
+ - 'lib/net/ssh/proxy/command.rb'
738
+ - 'lib/net/ssh/transport/openssl.rb'
739
+
740
+ # Offense count: 3
741
+ # Cop supports --auto-correct.
742
+ Style/Not:
743
+ Exclude:
744
+ - 'lib/net/ssh/connection/channel.rb'
745
+
746
+ # Offense count: 7
747
+ # Cop supports --auto-correct.
748
+ Style/NumericLiterals:
749
+ MinDigits: 310
750
+
751
+ # Offense count: 11
752
+ # Cop supports --auto-correct.
753
+ # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
754
+ # SupportedStyles: predicate, comparison
755
+ Style/NumericPredicate:
756
+ Exclude:
757
+ - 'spec/**/*'
758
+ - 'lib/net/ssh/authentication/methods/password.rb'
759
+ - 'lib/net/ssh/authentication/pageant.rb'
760
+ - 'lib/net/ssh/buffer.rb'
761
+ - 'lib/net/ssh/service/forward.rb'
762
+ - 'lib/net/ssh/test/extensions.rb'
763
+ - 'lib/net/ssh/transport/key_expander.rb'
764
+ - 'test/transport/test_packet_stream.rb'
765
+ - 'test_connection_close_shall_close_cannels.rb'
766
+
767
+ # Offense count: 2
768
+ Style/OpMethod:
769
+ Exclude:
770
+ - 'lib/net/ssh/buffer.rb'
771
+ - 'lib/net/ssh/version.rb'
772
+
773
+ # Offense count: 15
774
+ # Cop supports --auto-correct.
775
+ Style/ParallelAssignment:
776
+ Exclude:
777
+ - 'lib/net/ssh/config.rb'
778
+ - 'lib/net/ssh/connection/channel.rb'
779
+ - 'lib/net/ssh/connection/session.rb'
780
+ - 'lib/net/ssh/errors.rb'
781
+ - 'lib/net/ssh/test/socket.rb'
782
+ - 'lib/net/ssh/version.rb'
783
+ - 'test/authentication/test_agent.rb'
784
+ - 'test/common.rb'
785
+ - 'test/connection/test_channel.rb'
786
+
787
+ # Offense count: 7
788
+ # Cop supports --auto-correct.
789
+ # Configuration parameters: AllowSafeAssignment.
790
+ Style/ParenthesesAroundCondition:
791
+ Exclude:
792
+ - 'lib/net/ssh/authentication/ed25519.rb'
793
+ - 'lib/net/ssh/service/forward.rb'
794
+ - 'lib/net/ssh/transport/cipher_factory.rb'
795
+ - 'lib/net/ssh/transport/ctr.rb'
796
+ - 'test/integration/test_proxy.rb'
797
+
798
+ # Offense count: 5
799
+ # Cop supports --auto-correct.
800
+ # Configuration parameters: PreferredDelimiters.
801
+ Style/PercentLiteralDelimiters:
802
+ Exclude:
803
+ - 'Rakefile'
804
+ - 'net-ssh.gemspec'
805
+ - 'test/test_config.rb'
806
+
807
+ # Offense count: 16
808
+ # Cop supports --auto-correct.
809
+ Style/PerlBackrefs:
810
+ Exclude:
811
+ - 'lib/net/ssh/buffer.rb'
812
+ - 'lib/net/ssh/config.rb'
813
+ - 'lib/net/ssh/key_factory.rb'
814
+ - 'lib/net/ssh/proxy/command.rb'
815
+ - 'lib/net/ssh/proxy/socks5.rb'
816
+ - 'lib/net/ssh/transport/openssl.rb'
817
+ - 'test/integration/common.rb'
818
+
819
+ # Offense count: 14
820
+ # Cop supports --auto-correct.
821
+ Style/Proc:
822
+ Exclude:
823
+ - 'lib/net/ssh/connection/session.rb'
824
+ - 'lib/net/ssh/test/channel.rb'
825
+ - 'lib/net/ssh/transport/algorithms.rb'
826
+ - 'lib/net/ssh/verifiers/secure.rb'
827
+ - 'test/authentication/methods/test_hostbased.rb'
828
+ - 'test/authentication/methods/test_publickey.rb'
829
+ - 'test/connection/test_channel.rb'
830
+ - 'test/connection/test_session.rb'
831
+
832
+ # Offense count: 7
833
+ # Cop supports --auto-correct.
834
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
835
+ # SupportedStyles: compact, exploded
836
+ Style/RaiseArgs:
837
+ Exclude:
838
+ - 'lib/net/ssh/authentication/ed25519.rb'
839
+
840
+ # Offense count: 4
841
+ # Cop supports --auto-correct.
842
+ Style/RedundantBegin:
843
+ Exclude:
844
+ - 'lib/net/ssh/buffered_io.rb'
845
+ - 'lib/net/ssh/verifiers/strict.rb'
846
+ - 'test/manual/test_pageant.rb'
847
+
848
+ # Offense count: 1
849
+ # Cop supports --auto-correct.
850
+ Style/RedundantParentheses:
851
+ Exclude:
852
+ - 'support/arcfour_check.rb'
853
+
854
+ # Offense count: 57
855
+ # Cop supports --auto-correct.
856
+ # Configuration parameters: AllowMultipleReturnValues.
857
+ Style/RedundantReturn:
858
+ Enabled: false
859
+
860
+ # Offense count: 11
861
+ # Cop supports --auto-correct.
862
+ Style/RedundantSelf:
863
+ Exclude:
864
+ - 'lib/net/ssh/authentication/ed25519.rb'
865
+ - 'lib/net/ssh/connection/channel.rb'
866
+ - 'lib/net/ssh/test/extensions.rb'
867
+ - 'lib/net/ssh/transport/openssl.rb'
868
+ - 'test/authentication/test_ed25519.rb'
869
+
870
+ # Offense count: 4
871
+ # Cop supports --auto-correct.
872
+ Style/RescueModifier:
873
+ Exclude:
874
+ - 'lib/net/ssh/service/forward.rb'
875
+ - 'lib/net/ssh/transport/algorithms.rb'
876
+
877
+ # Offense count: 1
878
+ # Cop supports --auto-correct.
879
+ Style/SelfAssignment:
880
+ Exclude:
881
+ - 'lib/net/ssh/config.rb'
882
+
883
+ # Offense count: 8
884
+ # Cop supports --auto-correct.
885
+ # Configuration parameters: AllowAsExpressionSeparator.
886
+ Style/Semicolon:
887
+ Exclude:
888
+ - 'lib/net/ssh/buffer.rb'
889
+ - 'test/connection/test_channel.rb'
890
+ - 'test/connection/test_session.rb'
891
+ - 'test/transport/kex/test_ecdh_sha2_nistp256.rb'
892
+
893
+ # Offense count: 2
894
+ # Cop supports --auto-correct.
895
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
896
+ # SupportedStyles: only_raise, only_fail, semantic
897
+ Style/SignalException:
898
+ Exclude:
899
+ - 'lib/net/ssh/config.rb'
900
+ - 'lib/net/ssh/connection/channel.rb'
901
+
902
+ # Offense count: 2
903
+ # Cop supports --auto-correct.
904
+ # Configuration parameters: AllowIfMethodIsEmpty.
905
+ Style/SingleLineMethods:
906
+ Exclude:
907
+ - 'lib/net/ssh/buffered_io.rb'
908
+
909
+ # Offense count: 16
910
+ # Cop supports --auto-correct.
911
+ Style/SpaceAfterColon:
912
+ Exclude:
913
+ - 'lib/net/ssh/authentication/ed25519.rb'
914
+ - 'test/integration/test_ed25519_pkeys.rb'
915
+ - 'test/verifiers/test_secure.rb'
916
+
917
+ # Offense count: 254
918
+ # Cop supports --auto-correct.
919
+ Style/SpaceAfterComma:
920
+ Enabled: false
921
+
922
+ # Offense count: 132
923
+ # Cop supports --auto-correct.
924
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
925
+ # SupportedStyles: space, no_space
926
+ Style/SpaceAroundEqualsInParameterDefault:
927
+ Enabled: false
928
+
929
+ # Offense count: 55
930
+ # Cop supports --auto-correct.
931
+ # Configuration parameters: AllowForAlignment.
932
+ Style/SpaceAroundOperators:
933
+ Enabled: false
934
+
935
+ # Offense count: 6
936
+ # Cop supports --auto-correct.
937
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
938
+ # SupportedStyles: space, no_space
939
+ Style/SpaceBeforeBlockBraces:
940
+ Exclude:
941
+ - 'lib/net/ssh/authentication/session.rb'
942
+ - 'support/ssh_tunnel_bug.rb'
943
+ - 'test/authentication/test_agent.rb'
944
+ - 'test/connection/test_session.rb'
945
+
946
+ # Offense count: 4
947
+ # Cop supports --auto-correct.
948
+ Style/SpaceBeforeComma:
949
+ Exclude:
950
+ - 'test/integration/test_forward.rb'
951
+ - 'test/integration/test_proxy.rb'
952
+
953
+ # Offense count: 3
954
+ # Cop supports --auto-correct.
955
+ # Configuration parameters: AllowForAlignment.
956
+ Style/SpaceBeforeFirstArg:
957
+ Exclude:
958
+ - 'lib/net/ssh/transport/hmac/sha2_256_96.rb'
959
+ - 'lib/net/ssh/transport/hmac/sha2_512_96.rb'
960
+ - 'test/authentication/test_key_manager.rb'
961
+
962
+ # Offense count: 10
963
+ # Cop supports --auto-correct.
964
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
965
+ # SupportedStyles: space, no_space
966
+ Style/SpaceInsideBlockBraces:
967
+ Exclude:
968
+ - 'lib/net/ssh/authentication/session.rb'
969
+ - 'lib/net/ssh/transport/ctr.rb'
970
+ - 'support/ssh_tunnel_bug.rb'
971
+ - 'test/authentication/test_agent.rb'
972
+ - 'test/authentication/test_key_manager.rb'
973
+ - 'test/start/test_user_nil.rb'
974
+
975
+ # Offense count: 22
976
+ # Cop supports --auto-correct.
977
+ Style/SpaceInsideBrackets:
978
+ Exclude:
979
+ - 'Rakefile'
980
+ - 'lib/net/ssh/transport/algorithms.rb'
981
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb'
982
+ - 'test/integration/test_forward.rb'
983
+ - 'test/start/test_options.rb'
984
+
985
+ # Offense count: 69
986
+ # Cop supports --auto-correct.
987
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
988
+ # SupportedStyles: space, no_space, compact
989
+ Style/SpaceInsideHashLiteralBraces:
990
+ Enabled: false
991
+
992
+ # Offense count: 13
993
+ # Cop supports --auto-correct.
994
+ Style/SpaceInsideParens:
995
+ Exclude:
996
+ - 'lib/net/ssh/transport/algorithms.rb'
997
+ - 'lib/net/ssh/transport/openssl.rb'
998
+
999
+ # Offense count: 3
1000
+ # Cop supports --auto-correct.
1001
+ Style/SpaceInsideRangeLiteral:
1002
+ Exclude:
1003
+ - 'lib/net/ssh/authentication/ed25519.rb'
1004
+ - 'lib/net/ssh/transport/algorithms.rb'
1005
+
1006
+ # Offense count: 22
1007
+ # Cop supports --auto-correct.
1008
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
1009
+ # SupportedStyles: use_perl_names, use_english_names
1010
+ Style/SpecialGlobalVars:
1011
+ Exclude:
1012
+ - 'lib/net/ssh/authentication/agent.rb'
1013
+ - 'lib/net/ssh/connection/session.rb'
1014
+ - 'support/ssh_tunnel_bug.rb'
1015
+ - 'test/integration/common.rb'
1016
+ - 'test/integration/test_forward.rb'
1017
+ - 'test/manual/test_pageant.rb'
1018
+ - 'test/test_all.rb'
1019
+ - 'test_connection_close_shall_close_cannels.rb'
1020
+ - 'test_kerberos_client2.rb'
1021
+
1022
+ # Offense count: 1846
1023
+ # Cop supports --auto-correct.
1024
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
1025
+ # SupportedStyles: single_quotes, double_quotes
1026
+ Style/StringLiterals:
1027
+ Enabled: false
1028
+
1029
+ # Offense count: 11
1030
+ # Cop supports --auto-correct.
1031
+ # Configuration parameters: IgnoredMethods.
1032
+ # IgnoredMethods: respond_to, define_method
1033
+ Style/SymbolProc:
1034
+ Exclude:
1035
+ - 'lib/net/ssh/authentication/session.rb'
1036
+ - 'lib/net/ssh/buffer.rb'
1037
+ - 'lib/net/ssh/connection/session.rb'
1038
+ - 'lib/net/ssh/test/extensions.rb'
1039
+ - 'lib/net/ssh/transport/algorithms.rb'
1040
+ - 'test/integration/test_forward.rb'
1041
+ - 'test/test/test_test.rb'
1042
+
1043
+ # Offense count: 1
1044
+ # Cop supports --auto-correct.
1045
+ Style/Tab:
1046
+ Exclude:
1047
+ - 'lib/net/ssh/config.rb'
1048
+
1049
+ # Offense count: 39
1050
+ # Cop supports --auto-correct.
1051
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
1052
+ # SupportedStyles: final_newline, final_blank_line
1053
+ Style/TrailingBlankLines:
1054
+ Enabled: false
1055
+
1056
+ # Offense count: 255
1057
+ # Cop supports --auto-correct.
1058
+ # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
1059
+ # SupportedStyles: comma, consistent_comma, no_comma
1060
+ Style/TrailingCommaInLiteral:
1061
+ Exclude:
1062
+ - 'lib/net/ssh/key_factory.rb'
1063
+ - 'lib/net/ssh/transport/cipher_factory.rb'
1064
+ - 'lib/net/ssh/transport/kex.rb'
1065
+ - 'lib/net/ssh/transport/openssl.rb'
1066
+ - 'test/transport/test_packet_stream.rb'
1067
+
1068
+ # Offense count: 66
1069
+ # Cop supports --auto-correct.
1070
+ Style/TrailingWhitespace:
1071
+ Enabled: false
1072
+
1073
+ # Offense count: 1
1074
+ # Cop supports --auto-correct.
1075
+ # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
1076
+ # Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
1077
+ Style/TrivialAccessors:
1078
+ Exclude:
1079
+ - 'test/transport/kex/test_diffie_hellman_group1_sha1.rb'
1080
+
1081
+ # Offense count: 6
1082
+ # Cop supports --auto-correct.
1083
+ Style/UnlessElse:
1084
+ Exclude:
1085
+ - 'lib/net/ssh/buffer.rb'
1086
+ - 'lib/net/ssh/transport/ctr.rb'
1087
+ - 'test/transport/kex/test_ecdh_sha2_nistp256.rb'
1088
+ - 'test/transport/kex/test_ecdh_sha2_nistp384.rb'
1089
+ - 'test/transport/kex/test_ecdh_sha2_nistp521.rb'
1090
+ - 'test/transport/test_server_version.rb'
1091
+
1092
+ # Offense count: 4
1093
+ # Cop supports --auto-correct.
1094
+ Style/UnneededInterpolation:
1095
+ Exclude:
1096
+ - 'lib/net/ssh/proxy/socks5.rb'
1097
+ - 'lib/net/ssh/transport/session.rb'
1098
+ - 'test/integration/test_forward.rb'
1099
+
1100
+ # Offense count: 4
1101
+ # Cop supports --auto-correct.
1102
+ Style/UnneededPercentQ:
1103
+ Exclude:
1104
+ - 'net-ssh.gemspec'
1105
+ - 'test/test_config.rb'
1106
+
1107
+ # Offense count: 2
1108
+ # Cop supports --auto-correct.
1109
+ Style/WhileUntilDo:
1110
+ Exclude:
1111
+ - 'lib/net/ssh/config.rb'
1112
+ - 'test/integration/common.rb'
1113
+
1114
+ # Offense count: 3
1115
+ # Cop supports --auto-correct.
1116
+ # Configuration parameters: SupportedStyles, WordRegex.
1117
+ # SupportedStyles: percent, brackets
1118
+ Style/WordArray:
1119
+ EnforcedStyle: percent
1120
+ MinSize: 3
1121
+
1122
+ # Offense count: 7
1123
+ # Cop supports --auto-correct.
1124
+ Style/ZeroLengthPredicate:
1125
+ Exclude:
1126
+ - 'lib/net/ssh/buffered_io.rb'
1127
+ - 'lib/net/ssh/connection/channel.rb'
1128
+ - 'test/integration/test_forward.rb'
1129
+ - 'test_connection_close_shall_close_cannels.rb'