eximius-net-ssh 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. checksums.yaml +7 -0
  2. data/.dockerignore +6 -0
  3. data/.github/config/rubocop_linter_action.yml +4 -0
  4. data/.github/workflows/ci-with-docker.yml +44 -0
  5. data/.github/workflows/ci.yml +87 -0
  6. data/.github/workflows/rubocop.yml +13 -0
  7. data/.gitignore +13 -0
  8. data/.rubocop.yml +22 -0
  9. data/.rubocop_todo.yml +1072 -0
  10. data/CHANGES.txt +698 -0
  11. data/Dockerfile +27 -0
  12. data/Dockerfile.openssl3 +17 -0
  13. data/Gemfile +13 -0
  14. data/Gemfile.noed25519 +12 -0
  15. data/ISSUE_TEMPLATE.md +30 -0
  16. data/LICENSE.txt +19 -0
  17. data/Manifest +132 -0
  18. data/README.md +293 -0
  19. data/Rakefile +105 -0
  20. data/THANKS.txt +110 -0
  21. data/appveyor.yml +58 -0
  22. data/docker-compose.yml +23 -0
  23. data/lib/net/ssh/authentication/agent.rb +284 -0
  24. data/lib/net/ssh/authentication/certificate.rb +183 -0
  25. data/lib/net/ssh/authentication/constants.rb +20 -0
  26. data/lib/net/ssh/authentication/ed25519.rb +185 -0
  27. data/lib/net/ssh/authentication/ed25519_loader.rb +31 -0
  28. data/lib/net/ssh/authentication/key_manager.rb +310 -0
  29. data/lib/net/ssh/authentication/methods/abstract.rb +79 -0
  30. data/lib/net/ssh/authentication/methods/hostbased.rb +72 -0
  31. data/lib/net/ssh/authentication/methods/keyboard_interactive.rb +77 -0
  32. data/lib/net/ssh/authentication/methods/none.rb +34 -0
  33. data/lib/net/ssh/authentication/methods/password.rb +80 -0
  34. data/lib/net/ssh/authentication/methods/publickey.rb +137 -0
  35. data/lib/net/ssh/authentication/pageant.rb +497 -0
  36. data/lib/net/ssh/authentication/pub_key_fingerprint.rb +43 -0
  37. data/lib/net/ssh/authentication/session.rb +165 -0
  38. data/lib/net/ssh/buffer.rb +440 -0
  39. data/lib/net/ssh/buffered_io.rb +202 -0
  40. data/lib/net/ssh/config.rb +406 -0
  41. data/lib/net/ssh/connection/channel.rb +695 -0
  42. data/lib/net/ssh/connection/constants.rb +33 -0
  43. data/lib/net/ssh/connection/event_loop.rb +123 -0
  44. data/lib/net/ssh/connection/keepalive.rb +59 -0
  45. data/lib/net/ssh/connection/session.rb +712 -0
  46. data/lib/net/ssh/connection/term.rb +180 -0
  47. data/lib/net/ssh/errors.rb +106 -0
  48. data/lib/net/ssh/key_factory.rb +218 -0
  49. data/lib/net/ssh/known_hosts.rb +265 -0
  50. data/lib/net/ssh/loggable.rb +62 -0
  51. data/lib/net/ssh/packet.rb +106 -0
  52. data/lib/net/ssh/prompt.rb +62 -0
  53. data/lib/net/ssh/proxy/command.rb +123 -0
  54. data/lib/net/ssh/proxy/errors.rb +16 -0
  55. data/lib/net/ssh/proxy/http.rb +98 -0
  56. data/lib/net/ssh/proxy/https.rb +50 -0
  57. data/lib/net/ssh/proxy/jump.rb +54 -0
  58. data/lib/net/ssh/proxy/socks4.rb +67 -0
  59. data/lib/net/ssh/proxy/socks5.rb +140 -0
  60. data/lib/net/ssh/service/forward.rb +426 -0
  61. data/lib/net/ssh/test/channel.rb +147 -0
  62. data/lib/net/ssh/test/extensions.rb +173 -0
  63. data/lib/net/ssh/test/kex.rb +46 -0
  64. data/lib/net/ssh/test/local_packet.rb +53 -0
  65. data/lib/net/ssh/test/packet.rb +101 -0
  66. data/lib/net/ssh/test/remote_packet.rb +40 -0
  67. data/lib/net/ssh/test/script.rb +180 -0
  68. data/lib/net/ssh/test/socket.rb +65 -0
  69. data/lib/net/ssh/test.rb +94 -0
  70. data/lib/net/ssh/transport/algorithms.rb +502 -0
  71. data/lib/net/ssh/transport/cipher_factory.rb +103 -0
  72. data/lib/net/ssh/transport/constants.rb +40 -0
  73. data/lib/net/ssh/transport/ctr.rb +115 -0
  74. data/lib/net/ssh/transport/hmac/abstract.rb +97 -0
  75. data/lib/net/ssh/transport/hmac/md5.rb +10 -0
  76. data/lib/net/ssh/transport/hmac/md5_96.rb +9 -0
  77. data/lib/net/ssh/transport/hmac/none.rb +13 -0
  78. data/lib/net/ssh/transport/hmac/ripemd160.rb +11 -0
  79. data/lib/net/ssh/transport/hmac/sha1.rb +11 -0
  80. data/lib/net/ssh/transport/hmac/sha1_96.rb +9 -0
  81. data/lib/net/ssh/transport/hmac/sha2_256.rb +11 -0
  82. data/lib/net/ssh/transport/hmac/sha2_256_96.rb +9 -0
  83. data/lib/net/ssh/transport/hmac/sha2_256_etm.rb +12 -0
  84. data/lib/net/ssh/transport/hmac/sha2_512.rb +11 -0
  85. data/lib/net/ssh/transport/hmac/sha2_512_96.rb +9 -0
  86. data/lib/net/ssh/transport/hmac/sha2_512_etm.rb +12 -0
  87. data/lib/net/ssh/transport/hmac.rb +47 -0
  88. data/lib/net/ssh/transport/identity_cipher.rb +57 -0
  89. data/lib/net/ssh/transport/kex/abstract.rb +130 -0
  90. data/lib/net/ssh/transport/kex/abstract5656.rb +72 -0
  91. data/lib/net/ssh/transport/kex/curve25519_sha256.rb +39 -0
  92. data/lib/net/ssh/transport/kex/curve25519_sha256_loader.rb +30 -0
  93. data/lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb +37 -0
  94. data/lib/net/ssh/transport/kex/diffie_hellman_group14_sha256.rb +11 -0
  95. data/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb +122 -0
  96. data/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb +72 -0
  97. data/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha256.rb +11 -0
  98. data/lib/net/ssh/transport/kex/ecdh_sha2_nistp256.rb +39 -0
  99. data/lib/net/ssh/transport/kex/ecdh_sha2_nistp384.rb +21 -0
  100. data/lib/net/ssh/transport/kex/ecdh_sha2_nistp521.rb +21 -0
  101. data/lib/net/ssh/transport/kex.rb +31 -0
  102. data/lib/net/ssh/transport/key_expander.rb +30 -0
  103. data/lib/net/ssh/transport/openssl.rb +262 -0
  104. data/lib/net/ssh/transport/packet_stream.rb +280 -0
  105. data/lib/net/ssh/transport/server_version.rb +77 -0
  106. data/lib/net/ssh/transport/session.rb +354 -0
  107. data/lib/net/ssh/transport/state.rb +208 -0
  108. data/lib/net/ssh/verifiers/accept_new.rb +33 -0
  109. data/lib/net/ssh/verifiers/accept_new_or_local_tunnel.rb +33 -0
  110. data/lib/net/ssh/verifiers/always.rb +58 -0
  111. data/lib/net/ssh/verifiers/never.rb +19 -0
  112. data/lib/net/ssh/version.rb +70 -0
  113. data/lib/net/ssh.rb +330 -0
  114. data/net-ssh-public_cert.pem +20 -0
  115. data/net-ssh.gemspec +44 -0
  116. data/support/ssh_tunnel_bug.rb +65 -0
  117. metadata +277 -0
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,1072 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2022-04-12 08:30:13 UTC using RuboCop version 1.27.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: 1
10
+ # This cop supports safe auto-correction (--auto-correct).
11
+ # Configuration parameters: Include.
12
+ # Include: **/*.gemspec
13
+ Gemspec/RequireMFA:
14
+ Exclude:
15
+ - 'net-ssh.gemspec'
16
+
17
+ # Offense count: 1
18
+ # This cop supports safe auto-correction (--auto-correct).
19
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
20
+ # SupportedStyles: aligned, indented
21
+ Layout/LineEndStringConcatenationIndentation:
22
+ Exclude:
23
+ - 'lib/net/ssh/transport/algorithms.rb'
24
+
25
+ # Offense count: 7
26
+ # This cop supports safe auto-correction (--auto-correct).
27
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
28
+ # SupportedStyles: aligned, indented
29
+ Layout/MultilineOperationIndentation:
30
+ Exclude:
31
+ - 'lib/net/ssh/authentication/pageant.rb'
32
+ - 'lib/net/ssh/proxy/https.rb'
33
+ - 'lib/net/ssh/transport/algorithms.rb'
34
+ - 'lib/net/ssh/transport/state.rb'
35
+
36
+ # Offense count: 5
37
+ # This cop supports safe auto-correction (--auto-correct).
38
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
39
+ # SupportedStyles: space, no_space
40
+ # SupportedStylesForEmptyBraces: space, no_space
41
+ Layout/SpaceInsideBlockBraces:
42
+ Exclude:
43
+ - 'lib/net/ssh/authentication/session.rb'
44
+ - 'lib/net/ssh/transport/ctr.rb'
45
+ - 'support/ssh_tunnel_bug.rb'
46
+
47
+ # Offense count: 6
48
+ # This cop supports safe auto-correction (--auto-correct).
49
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
50
+ # SupportedStyles: space, no_space
51
+ # SupportedStylesForEmptyBrackets: space, no_space
52
+ Layout/SpaceInsideReferenceBrackets:
53
+ Exclude:
54
+ - 'lib/net/ssh/transport/algorithms.rb'
55
+
56
+ # Offense count: 11
57
+ # This cop supports safe auto-correction (--auto-correct).
58
+ Lint/AmbiguousOperatorPrecedence:
59
+ Exclude:
60
+ - 'lib/net/ssh/authentication/certificate.rb'
61
+ - 'lib/net/ssh/config.rb'
62
+ - 'lib/net/ssh/loggable.rb'
63
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb'
64
+ - 'lib/net/ssh/transport/openssl.rb'
65
+ - 'lib/net/ssh/transport/state.rb'
66
+ - 'lib/net/ssh/version.rb'
67
+ - 'test/integration/test_proxy.rb'
68
+
69
+ # Offense count: 4
70
+ # Configuration parameters: AllowSafeAssignment.
71
+ Lint/AssignmentInCondition:
72
+ Exclude:
73
+ - 'lib/net/ssh/connection/channel.rb'
74
+ - 'lib/net/ssh/connection/session.rb'
75
+ - 'lib/net/ssh/proxy/command.rb'
76
+
77
+ # Offense count: 1
78
+ # Configuration parameters: AllowedMethods.
79
+ # AllowedMethods: enums
80
+ Lint/ConstantDefinitionInBlock:
81
+ Exclude:
82
+ - 'test/transport/test_cipher_factory.rb'
83
+
84
+ # Offense count: 1
85
+ # This cop supports safe auto-correction (--auto-correct).
86
+ Lint/DeprecatedClassMethods:
87
+ Exclude:
88
+ - 'lib/net/ssh/transport/packet_stream.rb'
89
+
90
+ # Offense count: 12
91
+ # This cop supports safe auto-correction (--auto-correct).
92
+ Lint/DeprecatedOpenSSLConstant:
93
+ Exclude:
94
+ - 'lib/net/ssh/transport/openssl.rb'
95
+
96
+ # Offense count: 2
97
+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
98
+ Lint/EmptyBlock:
99
+ Exclude:
100
+ - 'test/common.rb'
101
+ - 'test/start/test_transport.rb'
102
+
103
+ # Offense count: 1
104
+ # Configuration parameters: AllowComments.
105
+ Lint/EmptyWhen:
106
+ Exclude:
107
+ - 'lib/net/ssh/config.rb'
108
+
109
+ # Offense count: 72
110
+ Lint/ImplicitStringConcatenation:
111
+ Exclude:
112
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
113
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
114
+
115
+ # Offense count: 8
116
+ # This cop supports safe auto-correction (--auto-correct).
117
+ Lint/IncompatibleIoSelectWithFiberScheduler:
118
+ Exclude:
119
+ - 'lib/net/ssh/buffered_io.rb'
120
+ - 'lib/net/ssh/proxy/command.rb'
121
+ - 'lib/net/ssh/transport/packet_stream.rb'
122
+ - 'lib/net/ssh/transport/server_version.rb'
123
+
124
+ # Offense count: 2
125
+ # This cop supports unsafe auto-correction (--auto-correct-all).
126
+ Lint/Loop:
127
+ Exclude:
128
+ - 'lib/net/ssh/authentication/methods/password.rb'
129
+ - 'lib/net/ssh/key_factory.rb'
130
+
131
+ # Offense count: 3
132
+ Lint/MissingSuper:
133
+ Exclude:
134
+ - 'lib/net/ssh/proxy/jump.rb'
135
+ - 'test/common.rb'
136
+ - 'test/integration/mitm_server.rb'
137
+
138
+ # Offense count: 1
139
+ Lint/NonLocalExitFromIterator:
140
+ Exclude:
141
+ - 'lib/net/ssh/known_hosts.rb'
142
+
143
+ # Offense count: 2
144
+ # This cop supports unsafe auto-correction (--auto-correct-all).
145
+ Lint/OrAssignmentToConstant:
146
+ Exclude:
147
+ - 'lib/net/ssh/authentication/pageant.rb'
148
+
149
+ # Offense count: 6
150
+ # This cop supports unsafe auto-correction (--auto-correct-all).
151
+ # Configuration parameters: AllowedImplicitNamespaces.
152
+ # AllowedImplicitNamespaces: Gem
153
+ Lint/RaiseException:
154
+ Exclude:
155
+ - 'Rakefile'
156
+ - 'lib/net/ssh/buffer.rb'
157
+ - 'lib/net/ssh/key_factory.rb'
158
+
159
+ # Offense count: 1
160
+ # This cop supports safe auto-correction (--auto-correct).
161
+ Lint/RedundantCopDisableDirective:
162
+ Exclude:
163
+ - 'lib/net/ssh/key_factory.rb'
164
+
165
+ # Offense count: 3
166
+ Lint/RescueException:
167
+ Exclude:
168
+ - 'lib/net/ssh/authentication/key_manager.rb'
169
+ - 'lib/net/ssh/service/forward.rb'
170
+
171
+ # Offense count: 4
172
+ # This cop supports safe auto-correction (--auto-correct).
173
+ Lint/SendWithMixinArgument:
174
+ Exclude:
175
+ - 'lib/net/ssh/test/extensions.rb'
176
+
177
+ # Offense count: 2
178
+ Lint/ShadowedException:
179
+ Exclude:
180
+ - 'lib/net/ssh/authentication/key_manager.rb'
181
+
182
+ # Offense count: 5
183
+ # Configuration parameters: AllowComments, AllowNil.
184
+ Lint/SuppressedException:
185
+ Exclude:
186
+ - 'lib/net/ssh/authentication/session.rb'
187
+ - 'lib/net/ssh/transport/openssl.rb'
188
+ - 'test/integration/common.rb'
189
+ - 'test/integration/test_forward.rb'
190
+
191
+ # Offense count: 1
192
+ # Configuration parameters: AllowKeywordBlockArguments.
193
+ Lint/UnderscorePrefixedVariableName:
194
+ Exclude:
195
+ - 'lib/net/ssh/test/local_packet.rb'
196
+
197
+ # Offense count: 15
198
+ # This cop supports safe auto-correction (--auto-correct).
199
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
200
+ Lint/UnusedBlockArgument:
201
+ Exclude:
202
+ - 'lib/net/ssh/connection/keepalive.rb'
203
+ - 'lib/net/ssh/connection/session.rb'
204
+ - 'lib/net/ssh/service/forward.rb'
205
+
206
+ # Offense count: 74
207
+ # This cop supports safe auto-correction (--auto-correct).
208
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
209
+ Lint/UnusedMethodArgument:
210
+ Enabled: false
211
+
212
+ # Offense count: 3
213
+ # This cop supports safe auto-correction (--auto-correct).
214
+ # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
215
+ Lint/UselessAccessModifier:
216
+ Exclude:
217
+ - 'lib/net/ssh/buffered_io.rb'
218
+ - 'lib/net/ssh/connection/channel.rb'
219
+ - 'lib/net/ssh/transport/session.rb'
220
+
221
+ # Offense count: 10
222
+ Lint/UselessAssignment:
223
+ Exclude:
224
+ - 'lib/net/ssh/proxy/socks4.rb'
225
+ - 'lib/net/ssh/proxy/socks5.rb'
226
+ - 'test/integration/common.rb'
227
+ - 'test/integration/test_forward.rb'
228
+
229
+ # Offense count: 1
230
+ # This cop supports unsafe auto-correction (--auto-correct-all).
231
+ Lint/UselessTimes:
232
+ Exclude:
233
+ - 'test/integration/test_forward.rb'
234
+
235
+ # Offense count: 205
236
+ # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
237
+ Metrics/AbcSize:
238
+ Max: 74
239
+
240
+ # Offense count: 16
241
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
242
+ # IgnoredMethods: refine
243
+ Metrics/BlockLength:
244
+ Max: 59
245
+
246
+ # Offense count: 1
247
+ # Configuration parameters: CountBlocks.
248
+ Metrics/BlockNesting:
249
+ Max: 4
250
+
251
+ # Offense count: 33
252
+ # Configuration parameters: CountComments, CountAsOne.
253
+ Metrics/ClassLength:
254
+ Max: 488
255
+
256
+ # Offense count: 38
257
+ # Configuration parameters: IgnoredMethods.
258
+ Metrics/CyclomaticComplexity:
259
+ Max: 32
260
+
261
+ # Offense count: 232
262
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
263
+ Metrics/MethodLength:
264
+ Max: 72
265
+
266
+ # Offense count: 3
267
+ # Configuration parameters: CountComments, CountAsOne.
268
+ Metrics/ModuleLength:
269
+ Max: 160
270
+
271
+ # Offense count: 2
272
+ # Configuration parameters: Max, CountKeywordArgs.
273
+ Metrics/ParameterLists:
274
+ MaxOptionalParameters: 4
275
+
276
+ # Offense count: 34
277
+ # Configuration parameters: IgnoredMethods.
278
+ Metrics/PerceivedComplexity:
279
+ Max: 32
280
+
281
+ # Offense count: 10
282
+ Naming/AccessorMethodName:
283
+ Exclude:
284
+ - 'lib/net/ssh/authentication/methods/password.rb'
285
+ - 'lib/net/ssh/authentication/pageant.rb'
286
+ - 'lib/net/ssh/connection/channel.rb'
287
+ - 'lib/net/ssh/connection/session.rb'
288
+ - 'lib/net/ssh/transport/kex/abstract5656.rb'
289
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
290
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb'
291
+
292
+ # Offense count: 2
293
+ # This cop supports safe auto-correction (--auto-correct).
294
+ Naming/BinaryOperatorParameterName:
295
+ Exclude:
296
+ - 'lib/net/ssh/buffer.rb'
297
+ - 'lib/net/ssh/version.rb'
298
+
299
+ # Offense count: 16
300
+ # Configuration parameters: AllowedNames.
301
+ # AllowedNames: module_parent
302
+ Naming/ClassAndModuleCamelCase:
303
+ Enabled: false
304
+
305
+ # Offense count: 4
306
+ Naming/ConstantName:
307
+ Exclude:
308
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
309
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
310
+ - 'lib/net/ssh/transport/openssl.rb'
311
+
312
+ # Offense count: 12
313
+ # Configuration parameters: ForbiddenDelimiters.
314
+ # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
315
+ Naming/HeredocDelimiterNaming:
316
+ Exclude:
317
+ - 'test/authentication/test_agent.rb'
318
+ - 'test/authentication/test_certificate.rb'
319
+ - 'test/authentication/test_ed25519.rb'
320
+ - 'test/authentication/test_session.rb'
321
+ - 'test/integration/test_agent.rb'
322
+ - 'test/test_key_factory.rb'
323
+
324
+ # Offense count: 5
325
+ # Configuration parameters: EnforcedStyleForLeadingUnderscores.
326
+ # SupportedStylesForLeadingUnderscores: disallowed, required, optional
327
+ Naming/MemoizedInstanceVariableName:
328
+ Exclude:
329
+ - 'lib/net/ssh/transport/openssl.rb'
330
+ - 'test/authentication/test_key_manager.rb'
331
+
332
+ # Offense count: 32
333
+ # Configuration parameters: EnforcedStyle, IgnoredPatterns.
334
+ # SupportedStyles: snake_case, camelCase
335
+ Naming/MethodName:
336
+ Exclude:
337
+ - 'lib/net/ssh/authentication/ed25519_loader.rb'
338
+ - 'lib/net/ssh/transport/kex/curve25519_sha256_loader.rb'
339
+ - 'test/authentication/test_agent.rb'
340
+ - 'test/authentication/test_session.rb'
341
+ - 'test/common.rb'
342
+ - 'test/connection/test_channel.rb'
343
+ - 'test/test_config.rb'
344
+ - 'test/test_key_factory.rb'
345
+
346
+ # Offense count: 23
347
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
348
+ # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
349
+ Naming/MethodParameterName:
350
+ Exclude:
351
+ - 'lib/net/ssh/authentication/certificate.rb'
352
+ - 'lib/net/ssh/authentication/ed25519.rb'
353
+ - 'lib/net/ssh/authentication/key_manager.rb'
354
+ - 'lib/net/ssh/authentication/pageant.rb'
355
+ - 'lib/net/ssh/buffer.rb'
356
+ - 'lib/net/ssh/buffered_io.rb'
357
+ - 'lib/net/ssh/test/socket.rb'
358
+ - 'lib/net/ssh/transport/ctr.rb'
359
+ - 'lib/net/ssh/transport/hmac/abstract.rb'
360
+ - 'lib/net/ssh/transport/identity_cipher.rb'
361
+ - 'test/connection/test_session.rb'
362
+
363
+ # Offense count: 4
364
+ # This cop supports safe auto-correction (--auto-correct).
365
+ # Configuration parameters: PreferredName.
366
+ Naming/RescuedExceptionsVariableName:
367
+ Exclude:
368
+ - 'lib/net/ssh/connection/session.rb'
369
+ - 'lib/net/ssh/service/forward.rb'
370
+ - 'lib/net/ssh/verifiers/accept_new.rb'
371
+
372
+ # Offense count: 5
373
+ # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
374
+ # SupportedStyles: snake_case, normalcase, non_integer
375
+ # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
376
+ Naming/VariableNumber:
377
+ Exclude:
378
+ - 'test/test_buffer.rb'
379
+ - 'test/test_known_hosts.rb'
380
+ - 'test/transport/test_identity_cipher.rb'
381
+
382
+ # Offense count: 1
383
+ # This cop supports unsafe auto-correction (--auto-correct-all).
384
+ Security/IoMethods:
385
+ Exclude:
386
+ - 'lib/net/ssh/config.rb'
387
+
388
+ # Offense count: 2
389
+ # Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
390
+ # SupportedStyles: inline, group
391
+ Style/AccessModifierDeclarations:
392
+ Exclude:
393
+ - 'lib/net/ssh/authentication/pageant.rb'
394
+
395
+ # Offense count: 31
396
+ # This cop supports safe auto-correction (--auto-correct).
397
+ # Configuration parameters: EnforcedStyle.
398
+ # SupportedStyles: separated, grouped
399
+ Style/AccessorGrouping:
400
+ Exclude:
401
+ - 'lib/net/ssh/authentication/certificate.rb'
402
+ - 'lib/net/ssh/transport/kex/abstract.rb'
403
+ - 'test/common.rb'
404
+ - 'test/connection/test_channel.rb'
405
+ - 'test/integration/mitm_server.rb'
406
+ - 'test/start/test_transport.rb'
407
+
408
+ # Offense count: 2
409
+ # This cop supports safe auto-correction (--auto-correct).
410
+ # Configuration parameters: EnforcedStyle.
411
+ # SupportedStyles: prefer_alias, prefer_alias_method
412
+ Style/Alias:
413
+ Exclude:
414
+ - 'lib/net/ssh/connection/session.rb'
415
+ - 'lib/net/ssh/service/forward.rb'
416
+
417
+ # Offense count: 9
418
+ # This cop supports safe auto-correction (--auto-correct).
419
+ # Configuration parameters: EnforcedStyle.
420
+ # SupportedStyles: always, conditionals
421
+ Style/AndOr:
422
+ Exclude:
423
+ - 'lib/net/ssh/connection/channel.rb'
424
+ - 'lib/net/ssh/connection/session.rb'
425
+ - 'lib/net/ssh/service/forward.rb'
426
+
427
+ # Offense count: 9
428
+ # This cop supports safe auto-correction (--auto-correct).
429
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
430
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
431
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
432
+ # FunctionalMethods: let, let!, subject, watch
433
+ # IgnoredMethods: lambda, proc, it
434
+ Style/BlockDelimiters:
435
+ Exclude:
436
+ - 'Rakefile'
437
+ - 'lib/net/ssh/authentication/key_manager.rb'
438
+ - 'lib/net/ssh/config.rb'
439
+ - 'lib/net/ssh/connection/keepalive.rb'
440
+ - 'lib/net/ssh/proxy/command.rb'
441
+ - 'lib/net/ssh/transport/ctr.rb'
442
+ - 'test/verifiers/test_always.rb'
443
+
444
+ # Offense count: 2
445
+ # This cop supports safe auto-correction (--auto-correct).
446
+ # Configuration parameters: AllowOnConstant.
447
+ Style/CaseEquality:
448
+ Exclude:
449
+ - 'lib/net/ssh/buffer.rb'
450
+ - 'lib/net/ssh/connection/session.rb'
451
+
452
+ # Offense count: 3
453
+ # This cop supports unsafe auto-correction (--auto-correct-all).
454
+ Style/CaseLikeIf:
455
+ Exclude:
456
+ - 'lib/net/ssh/transport/openssl.rb'
457
+ - 'test/connection/test_session.rb'
458
+
459
+ # Offense count: 1
460
+ # This cop supports safe auto-correction (--auto-correct).
461
+ Style/CharacterLiteral:
462
+ Exclude:
463
+ - 'test/test_buffer.rb'
464
+
465
+ # Offense count: 18
466
+ # This cop supports safe auto-correction (--auto-correct).
467
+ # Configuration parameters: EnforcedStyle.
468
+ # SupportedStyles: nested, compact
469
+ Style/ClassAndModuleChildren:
470
+ Enabled: false
471
+
472
+ # Offense count: 1
473
+ # This cop supports safe auto-correction (--auto-correct).
474
+ # Configuration parameters: IgnoredMethods.
475
+ # IgnoredMethods: ==, equal?, eql?
476
+ Style/ClassEqualityComparison:
477
+ Exclude:
478
+ - 'lib/net/ssh/service/forward.rb'
479
+
480
+ # Offense count: 7
481
+ Style/ClassVars:
482
+ Exclude:
483
+ - 'lib/net/ssh/config.rb'
484
+ - 'lib/net/ssh/packet.rb'
485
+ - 'test/authentication/methods/test_hostbased.rb'
486
+ - 'test/authentication/methods/test_publickey.rb'
487
+
488
+ # Offense count: 1
489
+ # This cop supports safe auto-correction (--auto-correct).
490
+ Style/ColonMethodCall:
491
+ Exclude:
492
+ - 'lib/net/ssh/authentication/ed25519.rb'
493
+
494
+ # Offense count: 2
495
+ Style/CombinableLoops:
496
+ Exclude:
497
+ - 'lib/net/ssh/connection/channel.rb'
498
+ - 'test/integration/test_hmac_etm.rb'
499
+
500
+ # Offense count: 4
501
+ # This cop supports safe auto-correction (--auto-correct).
502
+ # Configuration parameters: Keywords, RequireColon.
503
+ # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
504
+ Style/CommentAnnotation:
505
+ Exclude:
506
+ - 'lib/net/ssh/authentication/ed25519.rb'
507
+ - 'lib/net/ssh/authentication/session.rb'
508
+ - 'lib/net/ssh/buffer.rb'
509
+ - 'lib/net/ssh/config.rb'
510
+
511
+ # Offense count: 3
512
+ # This cop supports safe auto-correction (--auto-correct).
513
+ Style/CommentedKeyword:
514
+ Exclude:
515
+ - 'test/connection/test_session.rb'
516
+ - 'test/integration/test_forward.rb'
517
+
518
+ # Offense count: 7
519
+ # This cop supports safe auto-correction (--auto-correct).
520
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
521
+ # SupportedStyles: assign_to_condition, assign_inside_condition
522
+ Style/ConditionalAssignment:
523
+ Exclude:
524
+ - 'lib/net/ssh/config.rb'
525
+ - 'lib/net/ssh/proxy/socks5.rb'
526
+ - 'lib/net/ssh/test/script.rb'
527
+ - 'lib/net/ssh/transport/state.rb'
528
+ - 'test/test_key_factory.rb'
529
+
530
+ # Offense count: 12
531
+ # Configuration parameters: AllowedConstants.
532
+ Style/Documentation:
533
+ Exclude:
534
+ - 'spec/**/*'
535
+ - 'test/**/*'
536
+ - 'lib/net/ssh/authentication/ed25519.rb'
537
+ - 'lib/net/ssh/connection/keepalive.rb'
538
+ - 'lib/net/ssh/connection/session.rb'
539
+ - 'lib/net/ssh/test/extensions.rb'
540
+ - 'lib/net/ssh/transport/kex.rb'
541
+ - 'lib/net/ssh/transport/key_expander.rb'
542
+ - 'lib/net/ssh/transport/openssl.rb'
543
+
544
+ # Offense count: 1
545
+ # This cop supports safe auto-correction (--auto-correct).
546
+ Style/EvenOdd:
547
+ Exclude:
548
+ - 'lib/net/ssh/buffer.rb'
549
+
550
+ # Offense count: 9
551
+ # This cop supports safe auto-correction (--auto-correct).
552
+ Style/ExplicitBlockArgument:
553
+ Exclude:
554
+ - 'lib/net/ssh/loggable.rb'
555
+ - 'lib/net/ssh/test.rb'
556
+ - 'test/integration/common.rb'
557
+ - 'test/integration/mitm_server.rb'
558
+ - 'test/integration/test_forward.rb'
559
+
560
+ # Offense count: 1
561
+ # This cop supports safe auto-correction (--auto-correct).
562
+ Style/FileWrite:
563
+ Exclude:
564
+ - 'test/integration/test_proxy.rb'
565
+
566
+ # Offense count: 2
567
+ # This cop supports safe auto-correction (--auto-correct).
568
+ # Configuration parameters: EnforcedStyle.
569
+ # SupportedStyles: format, sprintf, percent
570
+ Style/FormatString:
571
+ Exclude:
572
+ - 'lib/net/ssh/authentication/pageant.rb'
573
+ - 'lib/net/ssh/loggable.rb'
574
+
575
+ # Offense count: 173
576
+ # This cop supports safe auto-correction (--auto-correct).
577
+ # Configuration parameters: EnforcedStyle.
578
+ # SupportedStyles: always, always_true, never
579
+ Style/FrozenStringLiteralComment:
580
+ Enabled: false
581
+
582
+ # Offense count: 1
583
+ # This cop supports safe auto-correction (--auto-correct).
584
+ Style/GlobalStdStream:
585
+ Exclude:
586
+ - 'lib/net/ssh.rb'
587
+
588
+ # Offense count: 35
589
+ # Configuration parameters: MinBodyLength.
590
+ Style/GuardClause:
591
+ Enabled: false
592
+
593
+ # Offense count: 3
594
+ # This cop supports safe auto-correction (--auto-correct).
595
+ # Configuration parameters: AllowSplatArgument.
596
+ Style/HashConversion:
597
+ Exclude:
598
+ - 'lib/net/ssh/authentication/certificate.rb'
599
+ - 'test/test_config.rb'
600
+
601
+ # Offense count: 1
602
+ # This cop supports safe auto-correction (--auto-correct).
603
+ # Configuration parameters: AllowIfModifier.
604
+ Style/IfInsideElse:
605
+ Exclude:
606
+ - 'lib/net/ssh/connection/session.rb'
607
+
608
+ # Offense count: 13
609
+ # This cop supports safe auto-correction (--auto-correct).
610
+ Style/IfUnlessModifier:
611
+ Exclude:
612
+ - 'lib/net/ssh.rb'
613
+ - 'lib/net/ssh/authentication/pageant.rb'
614
+ - 'lib/net/ssh/proxy/command.rb'
615
+ - 'lib/net/ssh/service/forward.rb'
616
+ - 'lib/net/ssh/transport/ctr.rb'
617
+ - 'lib/net/ssh/transport/key_expander.rb'
618
+ - 'test/integration/test_proxy.rb'
619
+ - 'test/test_key_factory.rb'
620
+
621
+ # Offense count: 1
622
+ # This cop supports unsafe auto-correction (--auto-correct-all).
623
+ Style/InfiniteLoop:
624
+ Exclude:
625
+ - 'lib/net/ssh/authentication/pageant.rb'
626
+
627
+ # Offense count: 27
628
+ # This cop supports safe auto-correction (--auto-correct).
629
+ Style/LineEndConcatenation:
630
+ Exclude:
631
+ - 'lib/net/ssh/authentication/pageant.rb'
632
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
633
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
634
+ - 'lib/net/ssh/verifiers/always.rb'
635
+
636
+ # Offense count: 1
637
+ # This cop supports unsafe auto-correction (--auto-correct-all).
638
+ Style/MapToHash:
639
+ Exclude:
640
+ - 'lib/net/ssh/config.rb'
641
+
642
+ # Offense count: 1
643
+ Style/MissingRespondToMissing:
644
+ Exclude:
645
+ - 'lib/net/ssh/connection/session.rb'
646
+
647
+ # Offense count: 3
648
+ # This cop supports safe auto-correction (--auto-correct).
649
+ Style/MultilineIfThen:
650
+ Exclude:
651
+ - 'lib/net/ssh/buffered_io.rb'
652
+ - 'lib/net/ssh/service/forward.rb'
653
+
654
+ # Offense count: 7
655
+ # This cop supports safe auto-correction (--auto-correct).
656
+ Style/MultilineWhenThen:
657
+ Exclude:
658
+ - 'lib/net/ssh/transport/packet_stream.rb'
659
+ - 'lib/net/ssh/transport/session.rb'
660
+
661
+ # Offense count: 5
662
+ # This cop supports safe auto-correction (--auto-correct).
663
+ # Configuration parameters: AllowMethodComparison.
664
+ Style/MultipleComparison:
665
+ Exclude:
666
+ - 'lib/net/ssh/authentication/agent.rb'
667
+ - 'lib/net/ssh/authentication/pageant.rb'
668
+ - 'lib/net/ssh/known_hosts.rb'
669
+ - 'lib/net/ssh/verifiers/accept_new_or_local_tunnel.rb'
670
+
671
+ # Offense count: 42
672
+ # This cop supports safe auto-correction (--auto-correct).
673
+ # Configuration parameters: EnforcedStyle.
674
+ # SupportedStyles: literals, strict
675
+ Style/MutableConstant:
676
+ Enabled: false
677
+
678
+ # Offense count: 14
679
+ # This cop supports safe auto-correction (--auto-correct).
680
+ # Configuration parameters: EnforcedStyle.
681
+ # SupportedStyles: both, prefix, postfix
682
+ Style/NegatedIf:
683
+ Exclude:
684
+ - 'lib/net/ssh.rb'
685
+ - 'lib/net/ssh/authentication/key_manager.rb'
686
+ - 'lib/net/ssh/service/forward.rb'
687
+ - 'lib/net/ssh/transport/algorithms.rb'
688
+ - 'lib/net/ssh/transport/hmac/abstract.rb'
689
+ - 'lib/net/ssh/transport/session.rb'
690
+ - 'lib/net/ssh/transport/state.rb'
691
+ - 'test/test_key_factory.rb'
692
+ - 'test/transport/test_state.rb'
693
+
694
+ # Offense count: 2
695
+ # This cop supports safe auto-correction (--auto-correct).
696
+ Style/NegatedIfElseCondition:
697
+ Exclude:
698
+ - 'lib/net/ssh/transport/algorithms.rb'
699
+ - 'lib/net/ssh/transport/cipher_factory.rb'
700
+
701
+ # Offense count: 1
702
+ # This cop supports safe auto-correction (--auto-correct).
703
+ Style/NegatedWhile:
704
+ Exclude:
705
+ - 'lib/net/ssh/config.rb'
706
+
707
+ # Offense count: 1
708
+ # This cop supports safe auto-correction (--auto-correct).
709
+ # Configuration parameters: EnforcedStyle, MinBodyLength.
710
+ # SupportedStyles: skip_modifier_ifs, always
711
+ Style/Next:
712
+ Exclude:
713
+ - 'lib/net/ssh/authentication/key_manager.rb'
714
+
715
+ # Offense count: 1
716
+ # This cop supports safe auto-correction (--auto-correct).
717
+ # Configuration parameters: EnforcedStyle.
718
+ # SupportedStyles: predicate, comparison
719
+ Style/NilComparison:
720
+ Exclude:
721
+ - 'lib/net/ssh/proxy/command.rb'
722
+
723
+ # Offense count: 3
724
+ # This cop supports safe auto-correction (--auto-correct).
725
+ Style/Not:
726
+ Exclude:
727
+ - 'lib/net/ssh/connection/channel.rb'
728
+
729
+ # Offense count: 11
730
+ # This cop supports safe auto-correction (--auto-correct).
731
+ # Configuration parameters: Strict, AllowedNumbers.
732
+ Style/NumericLiterals:
733
+ MinDigits: 310
734
+
735
+ # Offense count: 29
736
+ # This cop supports unsafe auto-correction (--auto-correct-all).
737
+ # Configuration parameters: EnforcedStyle, IgnoredMethods.
738
+ # SupportedStyles: predicate, comparison
739
+ Style/NumericPredicate:
740
+ Enabled: false
741
+
742
+ # Offense count: 13
743
+ Style/OpenStructUse:
744
+ Exclude:
745
+ - 'test/authentication/test_ed25519.rb'
746
+ - 'test/common.rb'
747
+ - 'test/transport/kex/test_curve25519_sha256.rb'
748
+ - 'test/transport/kex/test_diffie_hellman_group1_sha1.rb'
749
+ - 'test/transport/kex/test_ecdh_sha2_nistp256.rb'
750
+ - 'test/verifiers/test_always.rb'
751
+
752
+ # Offense count: 16
753
+ # Configuration parameters: AllowedMethods.
754
+ # AllowedMethods: respond_to_missing?
755
+ Style/OptionalBooleanParameter:
756
+ Exclude:
757
+ - 'lib/net/ssh/connection/session.rb'
758
+ - 'lib/net/ssh/key_factory.rb'
759
+ - 'lib/net/ssh/prompt.rb'
760
+ - 'lib/net/ssh/test/channel.rb'
761
+ - 'lib/net/ssh/test/script.rb'
762
+ - 'lib/net/ssh/transport/algorithms.rb'
763
+ - 'lib/net/ssh/transport/session.rb'
764
+ - 'lib/net/ssh/transport/state.rb'
765
+ - 'test/common.rb'
766
+ - 'test/transport/test_server_version.rb'
767
+
768
+ # Offense count: 15
769
+ # This cop supports safe auto-correction (--auto-correct).
770
+ Style/ParallelAssignment:
771
+ Exclude:
772
+ - 'lib/net/ssh/config.rb'
773
+ - 'lib/net/ssh/connection/channel.rb'
774
+ - 'lib/net/ssh/connection/session.rb'
775
+ - 'lib/net/ssh/errors.rb'
776
+ - 'lib/net/ssh/test/socket.rb'
777
+ - 'lib/net/ssh/version.rb'
778
+ - 'test/authentication/test_agent.rb'
779
+ - 'test/common.rb'
780
+ - 'test/connection/test_channel.rb'
781
+
782
+ # Offense count: 5
783
+ # This cop supports safe auto-correction (--auto-correct).
784
+ # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
785
+ Style/ParenthesesAroundCondition:
786
+ Exclude:
787
+ - 'lib/net/ssh/authentication/ed25519.rb'
788
+ - 'lib/net/ssh/service/forward.rb'
789
+ - 'lib/net/ssh/transport/ctr.rb'
790
+ - 'test/integration/test_proxy.rb'
791
+
792
+ # Offense count: 23
793
+ # This cop supports safe auto-correction (--auto-correct).
794
+ # Configuration parameters: PreferredDelimiters.
795
+ Style/PercentLiteralDelimiters:
796
+ Exclude:
797
+ - 'net-ssh.gemspec'
798
+ - 'test/test_config.rb'
799
+
800
+ # Offense count: 16
801
+ # This cop supports safe auto-correction (--auto-correct).
802
+ Style/PerlBackrefs:
803
+ Exclude:
804
+ - 'lib/net/ssh/buffer.rb'
805
+ - 'lib/net/ssh/config.rb'
806
+ - 'lib/net/ssh/key_factory.rb'
807
+ - 'lib/net/ssh/proxy/command.rb'
808
+ - 'lib/net/ssh/proxy/socks5.rb'
809
+ - 'test/integration/common.rb'
810
+
811
+ # Offense count: 15
812
+ # This cop supports safe auto-correction (--auto-correct).
813
+ Style/Proc:
814
+ Exclude:
815
+ - 'lib/net/ssh/connection/session.rb'
816
+ - 'lib/net/ssh/test/channel.rb'
817
+ - 'lib/net/ssh/transport/algorithms.rb'
818
+ - 'lib/net/ssh/verifiers/always.rb'
819
+ - 'test/authentication/methods/test_hostbased.rb'
820
+ - 'test/authentication/methods/test_publickey.rb'
821
+ - 'test/connection/test_channel.rb'
822
+ - 'test/connection/test_session.rb'
823
+
824
+ # Offense count: 7
825
+ # This cop supports safe auto-correction (--auto-correct).
826
+ # Configuration parameters: EnforcedStyle, AllowedCompactTypes.
827
+ # SupportedStyles: compact, exploded
828
+ Style/RaiseArgs:
829
+ Exclude:
830
+ - 'lib/net/ssh/authentication/ed25519.rb'
831
+
832
+ # Offense count: 6
833
+ # This cop supports unsafe auto-correction (--auto-correct-all).
834
+ # Configuration parameters: Methods.
835
+ Style/RedundantArgument:
836
+ Exclude:
837
+ - 'lib/net/ssh/known_hosts.rb'
838
+ - 'test/authentication/test_ed25519.rb'
839
+
840
+ # Offense count: 5
841
+ # This cop supports safe auto-correction (--auto-correct).
842
+ Style/RedundantBegin:
843
+ Exclude:
844
+ - 'lib/net/ssh/buffered_io.rb'
845
+ - 'lib/net/ssh/service/forward.rb'
846
+ - 'lib/net/ssh/verifiers/accept_new.rb'
847
+ - 'test/manual/test_pageant.rb'
848
+
849
+ # Offense count: 1
850
+ # This cop supports safe auto-correction (--auto-correct).
851
+ Style/RedundantCondition:
852
+ Exclude:
853
+ - 'lib/net/ssh/proxy/command.rb'
854
+
855
+ # Offense count: 1
856
+ # This cop supports safe auto-correction (--auto-correct).
857
+ Style/RedundantFileExtensionInRequire:
858
+ Exclude:
859
+ - 'lib/net/ssh/transport/cipher_factory.rb'
860
+
861
+ # Offense count: 1
862
+ Style/RedundantInitialize:
863
+ Exclude:
864
+ - 'lib/net/ssh/prompt.rb'
865
+
866
+ # Offense count: 2
867
+ # This cop supports safe auto-correction (--auto-correct).
868
+ Style/RedundantInterpolation:
869
+ Exclude:
870
+ - 'lib/net/ssh/proxy/socks5.rb'
871
+ - 'lib/net/ssh/transport/session.rb'
872
+
873
+ # Offense count: 2
874
+ # This cop supports safe auto-correction (--auto-correct).
875
+ Style/RedundantPercentQ:
876
+ Exclude:
877
+ - 'net-ssh.gemspec'
878
+
879
+ # Offense count: 9
880
+ # This cop supports safe auto-correction (--auto-correct).
881
+ Style/RedundantRegexpEscape:
882
+ Exclude:
883
+ - 'lib/net/ssh/authentication/agent.rb'
884
+ - 'lib/net/ssh/buffer.rb'
885
+ - 'lib/net/ssh/config.rb'
886
+ - 'lib/net/ssh/transport/cipher_factory.rb'
887
+
888
+ # Offense count: 87
889
+ # This cop supports safe auto-correction (--auto-correct).
890
+ # Configuration parameters: AllowMultipleReturnValues.
891
+ Style/RedundantReturn:
892
+ Enabled: false
893
+
894
+ # Offense count: 18
895
+ # This cop supports safe auto-correction (--auto-correct).
896
+ Style/RedundantSelf:
897
+ Exclude:
898
+ - 'lib/net/ssh/connection/channel.rb'
899
+ - 'lib/net/ssh/test/extensions.rb'
900
+ - 'test/authentication/test_ed25519.rb'
901
+
902
+ # Offense count: 6
903
+ # This cop supports safe auto-correction (--auto-correct).
904
+ Style/RescueModifier:
905
+ Exclude:
906
+ - 'lib/net/ssh/service/forward.rb'
907
+ - 'lib/net/ssh/transport/algorithms.rb'
908
+
909
+ # Offense count: 25
910
+ # This cop supports safe auto-correction (--auto-correct).
911
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
912
+ # AllowedMethods: present?, blank?, presence, try, try!
913
+ Style/SafeNavigation:
914
+ Exclude:
915
+ - 'lib/net/ssh/authentication/key_manager.rb'
916
+ - 'lib/net/ssh/authentication/methods/keyboard_interactive.rb'
917
+ - 'lib/net/ssh/authentication/methods/password.rb'
918
+ - 'lib/net/ssh/authentication/session.rb'
919
+ - 'lib/net/ssh/connection/channel.rb'
920
+ - 'lib/net/ssh/connection/event_loop.rb'
921
+ - 'lib/net/ssh/connection/session.rb'
922
+ - 'lib/net/ssh/key_factory.rb'
923
+ - 'lib/net/ssh/loggable.rb'
924
+ - 'lib/net/ssh/test/local_packet.rb'
925
+ - 'lib/net/ssh/transport/algorithms.rb'
926
+ - 'lib/net/ssh/transport/packet_stream.rb'
927
+
928
+ # Offense count: 3
929
+ # This cop supports safe auto-correction (--auto-correct).
930
+ Style/SelectByRegexp:
931
+ Exclude:
932
+ - 'test/test_all.rb'
933
+
934
+ # Offense count: 2
935
+ # This cop supports safe auto-correction (--auto-correct).
936
+ Style/SelfAssignment:
937
+ Exclude:
938
+ - 'lib/net/ssh/config.rb'
939
+
940
+ # Offense count: 7
941
+ # This cop supports safe auto-correction (--auto-correct).
942
+ # Configuration parameters: AllowAsExpressionSeparator.
943
+ Style/Semicolon:
944
+ Exclude:
945
+ - 'lib/net/ssh/buffer.rb'
946
+ - 'test/connection/test_channel.rb'
947
+ - 'test/connection/test_session.rb'
948
+
949
+ # Offense count: 2
950
+ # This cop supports safe auto-correction (--auto-correct).
951
+ # Configuration parameters: EnforcedStyle.
952
+ # SupportedStyles: only_raise, only_fail, semantic
953
+ Style/SignalException:
954
+ Exclude:
955
+ - 'lib/net/ssh/config.rb'
956
+ - 'lib/net/ssh/connection/channel.rb'
957
+
958
+ # Offense count: 2
959
+ # This cop supports safe auto-correction (--auto-correct).
960
+ # Configuration parameters: AllowIfMethodIsEmpty.
961
+ Style/SingleLineMethods:
962
+ Exclude:
963
+ - 'lib/net/ssh/buffered_io.rb'
964
+
965
+ # Offense count: 11
966
+ # This cop supports unsafe auto-correction (--auto-correct-all).
967
+ Style/SlicingWithRange:
968
+ Exclude:
969
+ - 'lib/net/ssh/authentication/ed25519.rb'
970
+ - 'lib/net/ssh/buffer.rb'
971
+ - 'lib/net/ssh/config.rb'
972
+ - 'lib/net/ssh/transport/algorithms.rb'
973
+ - 'lib/net/ssh/transport/packet_stream.rb'
974
+ - 'lib/net/ssh/transport/state.rb'
975
+ - 'test/transport/test_packet_stream.rb'
976
+
977
+ # Offense count: 3
978
+ # This cop supports safe auto-correction (--auto-correct).
979
+ # Configuration parameters: AllowModifier.
980
+ Style/SoleNestedConditional:
981
+ Exclude:
982
+ - 'lib/net/ssh/transport/packet_stream.rb'
983
+ - 'test/common.rb'
984
+ - 'test/integration/test_proxy.rb'
985
+
986
+ # Offense count: 18
987
+ # This cop supports safe auto-correction (--auto-correct).
988
+ # Configuration parameters: RequireEnglish, EnforcedStyle.
989
+ # SupportedStyles: use_perl_names, use_english_names
990
+ Style/SpecialGlobalVars:
991
+ Exclude:
992
+ - 'lib/net/ssh/authentication/agent.rb'
993
+ - 'lib/net/ssh/connection/session.rb'
994
+ - 'support/ssh_tunnel_bug.rb'
995
+ - 'test/integration/common.rb'
996
+ - 'test/integration/test_forward.rb'
997
+ - 'test/manual/test_pageant.rb'
998
+ - 'test/test_all.rb'
999
+
1000
+ # Offense count: 1
1001
+ # This cop supports unsafe auto-correction (--auto-correct-all).
1002
+ Style/StringChars:
1003
+ Exclude:
1004
+ - 'test/transport/test_server_version.rb'
1005
+
1006
+ # Offense count: 27
1007
+ # This cop supports unsafe auto-correction (--auto-correct-all).
1008
+ # Configuration parameters: Mode.
1009
+ Style/StringConcatenation:
1010
+ Exclude:
1011
+ - 'lib/net/ssh/authentication/certificate.rb'
1012
+ - 'lib/net/ssh/authentication/key_manager.rb'
1013
+ - 'lib/net/ssh/authentication/pageant.rb'
1014
+ - 'lib/net/ssh/config.rb'
1015
+ - 'lib/net/ssh/transport/algorithms.rb'
1016
+ - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
1017
+ - 'test/authentication/test_key_manager.rb'
1018
+ - 'test/integration/common.rb'
1019
+ - 'test/integration/test_proxy.rb'
1020
+ - 'test/test_buffer.rb'
1021
+ - 'test/test_key_factory.rb'
1022
+
1023
+ # Offense count: 1846
1024
+ # This cop supports safe auto-correction (--auto-correct).
1025
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
1026
+ # SupportedStyles: single_quotes, double_quotes
1027
+ Style/StringLiterals:
1028
+ Enabled: false
1029
+
1030
+ # Offense count: 6
1031
+ # This cop supports unsafe auto-correction (--auto-correct-all).
1032
+ # Configuration parameters: AllowMethodsWithArguments, IgnoredMethods.
1033
+ # IgnoredMethods: respond_to, define_method
1034
+ Style/SymbolProc:
1035
+ Exclude:
1036
+ - 'lib/net/ssh/authentication/session.rb'
1037
+ - 'lib/net/ssh/buffer.rb'
1038
+ - 'lib/net/ssh/connection/session.rb'
1039
+ - 'lib/net/ssh/test/extensions.rb'
1040
+
1041
+ # Offense count: 14
1042
+ # This cop supports safe auto-correction (--auto-correct).
1043
+ Style/UnpackFirst:
1044
+ Exclude:
1045
+ - 'lib/net/ssh/authentication/pageant.rb'
1046
+ - 'lib/net/ssh/buffer.rb'
1047
+ - 'lib/net/ssh/key_factory.rb'
1048
+ - 'lib/net/ssh/known_hosts.rb'
1049
+ - 'lib/net/ssh/transport/openssl.rb'
1050
+ - 'lib/net/ssh/transport/packet_stream.rb'
1051
+
1052
+ # Offense count: 2
1053
+ # This cop supports safe auto-correction (--auto-correct).
1054
+ Style/WhileUntilDo:
1055
+ Exclude:
1056
+ - 'lib/net/ssh/config.rb'
1057
+ - 'test/integration/common.rb'
1058
+
1059
+ # Offense count: 4
1060
+ # This cop supports safe auto-correction (--auto-correct).
1061
+ # Configuration parameters: WordRegex.
1062
+ # SupportedStyles: percent, brackets
1063
+ Style/WordArray:
1064
+ EnforcedStyle: percent
1065
+ MinSize: 3
1066
+
1067
+ # Offense count: 4
1068
+ # This cop supports unsafe auto-correction (--auto-correct-all).
1069
+ Style/ZeroLengthPredicate:
1070
+ Exclude:
1071
+ - 'lib/net/ssh/buffered_io.rb'
1072
+ - 'lib/net/ssh/connection/channel.rb'