net-ssh 5.0.0.beta1 → 5.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.rubocop_todo.yml +98 -258
  5. data/CHANGES.txt +8 -0
  6. data/Gemfile +1 -3
  7. data/Rakefile +37 -39
  8. data/lib/net/ssh.rb +26 -25
  9. data/lib/net/ssh/authentication/agent.rb +228 -225
  10. data/lib/net/ssh/authentication/certificate.rb +166 -164
  11. data/lib/net/ssh/authentication/constants.rb +17 -14
  12. data/lib/net/ssh/authentication/ed25519.rb +107 -104
  13. data/lib/net/ssh/authentication/ed25519_loader.rb +32 -28
  14. data/lib/net/ssh/authentication/key_manager.rb +5 -3
  15. data/lib/net/ssh/authentication/methods/abstract.rb +53 -47
  16. data/lib/net/ssh/authentication/methods/hostbased.rb +32 -33
  17. data/lib/net/ssh/authentication/methods/keyboard_interactive.rb +2 -4
  18. data/lib/net/ssh/authentication/methods/none.rb +10 -10
  19. data/lib/net/ssh/authentication/methods/password.rb +13 -13
  20. data/lib/net/ssh/authentication/methods/publickey.rb +54 -55
  21. data/lib/net/ssh/authentication/pageant.rb +468 -465
  22. data/lib/net/ssh/authentication/pub_key_fingerprint.rb +44 -0
  23. data/lib/net/ssh/authentication/session.rb +127 -123
  24. data/lib/net/ssh/buffer.rb +305 -303
  25. data/lib/net/ssh/buffered_io.rb +163 -162
  26. data/lib/net/ssh/config.rb +230 -227
  27. data/lib/net/ssh/connection/channel.rb +659 -654
  28. data/lib/net/ssh/connection/constants.rb +30 -26
  29. data/lib/net/ssh/connection/event_loop.rb +108 -104
  30. data/lib/net/ssh/connection/keepalive.rb +54 -50
  31. data/lib/net/ssh/connection/session.rb +677 -678
  32. data/lib/net/ssh/connection/term.rb +180 -176
  33. data/lib/net/ssh/errors.rb +101 -99
  34. data/lib/net/ssh/key_factory.rb +108 -108
  35. data/lib/net/ssh/known_hosts.rb +148 -154
  36. data/lib/net/ssh/loggable.rb +56 -54
  37. data/lib/net/ssh/packet.rb +82 -78
  38. data/lib/net/ssh/prompt.rb +55 -53
  39. data/lib/net/ssh/proxy/command.rb +103 -102
  40. data/lib/net/ssh/proxy/errors.rb +12 -8
  41. data/lib/net/ssh/proxy/http.rb +92 -91
  42. data/lib/net/ssh/proxy/https.rb +42 -39
  43. data/lib/net/ssh/proxy/jump.rb +50 -47
  44. data/lib/net/ssh/proxy/socks4.rb +0 -2
  45. data/lib/net/ssh/proxy/socks5.rb +11 -11
  46. data/lib/net/ssh/ruby_compat.rb +1 -0
  47. data/lib/net/ssh/service/forward.rb +364 -362
  48. data/lib/net/ssh/test.rb +85 -83
  49. data/lib/net/ssh/test/channel.rb +146 -142
  50. data/lib/net/ssh/test/extensions.rb +148 -146
  51. data/lib/net/ssh/test/kex.rb +35 -31
  52. data/lib/net/ssh/test/local_packet.rb +48 -44
  53. data/lib/net/ssh/test/packet.rb +87 -84
  54. data/lib/net/ssh/test/remote_packet.rb +35 -31
  55. data/lib/net/ssh/test/script.rb +173 -171
  56. data/lib/net/ssh/test/socket.rb +59 -55
  57. data/lib/net/ssh/transport/algorithms.rb +413 -412
  58. data/lib/net/ssh/transport/cipher_factory.rb +108 -105
  59. data/lib/net/ssh/transport/constants.rb +35 -31
  60. data/lib/net/ssh/transport/ctr.rb +1 -1
  61. data/lib/net/ssh/transport/hmac.rb +1 -1
  62. data/lib/net/ssh/transport/hmac/abstract.rb +67 -64
  63. data/lib/net/ssh/transport/hmac/sha2_256_96.rb +1 -1
  64. data/lib/net/ssh/transport/hmac/sha2_512_96.rb +1 -1
  65. data/lib/net/ssh/transport/identity_cipher.rb +55 -51
  66. data/lib/net/ssh/transport/kex.rb +2 -4
  67. data/lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb +47 -40
  68. data/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb +201 -197
  69. data/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb +53 -56
  70. data/lib/net/ssh/transport/kex/ecdh_sha2_nistp256.rb +94 -87
  71. data/lib/net/ssh/transport/kex/ecdh_sha2_nistp384.rb +17 -10
  72. data/lib/net/ssh/transport/kex/ecdh_sha2_nistp521.rb +17 -10
  73. data/lib/net/ssh/transport/key_expander.rb +29 -25
  74. data/lib/net/ssh/transport/openssl.rb +17 -30
  75. data/lib/net/ssh/transport/packet_stream.rb +193 -192
  76. data/lib/net/ssh/transport/server_version.rb +64 -66
  77. data/lib/net/ssh/transport/session.rb +286 -284
  78. data/lib/net/ssh/transport/state.rb +198 -196
  79. data/lib/net/ssh/verifiers/lenient.rb +29 -25
  80. data/lib/net/ssh/verifiers/null.rb +13 -9
  81. data/lib/net/ssh/verifiers/secure.rb +45 -45
  82. data/lib/net/ssh/verifiers/strict.rb +20 -16
  83. data/lib/net/ssh/version.rb +55 -53
  84. data/net-ssh.gemspec +4 -4
  85. data/support/ssh_tunnel_bug.rb +2 -2
  86. metadata +25 -24
  87. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb60ae0c4c1ea03a94da3dcb5b35842280c1b0ab5454cebb8d456ff7a3160fde
4
- data.tar.gz: 2bd1168668f3e93b472560d3b8fae9482ce91a10f1a7dd4b7235f6b7db67e6b6
3
+ metadata.gz: 48a24c2c82458981b13750a8f0320e9d9390c433476d4412486a1b0f8da8b58b
4
+ data.tar.gz: 0a1b588333716df66a2424d84e8b2474a76b4095199a424f873bacba9bf1577d
5
5
  SHA512:
6
- metadata.gz: cdc3a433ce7ba44494eb5e52f9231359004afc9be010fdf60a62e9e846aa23230a556f38c549cc4d58f7b1ba98c72e53eb526b8a0f52313661cdf571d1c17a53
7
- data.tar.gz: 0fc94c9dbc7f9e3ea106d53de363faf8cf2b3473857857c387512040b427dbf336ff4cf73d4eb696864ceac61a365571a756ef6b449552d7417b5db34fe19e95
6
+ metadata.gz: 561a83217e1bc4fc30f720d72c15b38080a19177383cfcb884c638448f8e366979f8763dd9ef644a43f877b14352b773da5813ce6b24d337e40651dc08544248
7
+ data.tar.gz: fbf8ff877139f7d936544d65dfe741f875cb25062572dd693553dcb564ab5b03a73af3949e004e3109cecf2fec76876a5f6d31e28fc471d458fe3a6b321c47e0
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -15,31 +15,98 @@ Lint/AssignmentInCondition:
15
15
  - 'lib/net/ssh/proxy/command.rb'
16
16
 
17
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:
18
+ Lint/EmptyWhen:
22
19
  Exclude:
23
- - 'test/integration/test_proxy.rb'
20
+ - 'lib/net/ssh/config.rb'
21
+
22
+ # Layout/EndAlignment:
23
+ # Enabled: false
24
+
25
+ # Offense count: 23
26
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
27
+ # AllowedNames: io, id, to
28
+ Naming/UncommunicativeMethodParamName:
29
+ Exclude:
30
+ - 'lib/net/ssh/authentication/certificate.rb'
31
+ - 'lib/net/ssh/authentication/ed25519.rb'
32
+ - 'lib/net/ssh/authentication/key_manager.rb'
33
+ - 'lib/net/ssh/authentication/pageant.rb'
34
+ - 'lib/net/ssh/buffer.rb'
35
+ - 'lib/net/ssh/buffered_io.rb'
36
+ - 'lib/net/ssh/ruby_compat.rb'
37
+ - 'lib/net/ssh/test/socket.rb'
38
+ - 'lib/net/ssh/transport/ctr.rb'
39
+ - 'lib/net/ssh/transport/hmac/abstract.rb'
40
+ - 'lib/net/ssh/transport/identity_cipher.rb'
41
+ - 'test/connection/test_session.rb'
42
+
43
+ # Offense count: 2
44
+ Naming/BinaryOperatorParameterName:
45
+ Exclude:
46
+ - 'lib/net/ssh/buffer.rb'
47
+ - 'lib/net/ssh/version.rb'
48
+
49
+ # Offense count: 4
50
+ Naming/MemoizedInstanceVariableName:
51
+ Exclude:
52
+ - 'lib/net/ssh/transport/openssl.rb'
53
+ - 'test/authentication/test_key_manager.rb'
24
54
 
25
55
  # Offense count: 1
26
- # Cop supports --auto-correct.
27
- Lint/DeprecatedClassMethods:
56
+ Lint/LiteralAsCondition:
28
57
  Exclude:
29
- - 'Rakefile'
58
+ - 'lib/net/ssh/authentication/pageant.rb'
59
+
60
+ # Offense count: 3
61
+ Style/MultipleComparison:
62
+ Exclude:
63
+ - 'lib/net/ssh/authentication/pageant.rb'
64
+ - 'lib/net/ssh/known_hosts.rb'
30
65
 
31
66
  # Offense count: 1
32
- Lint/EmptyWhen:
67
+ # Configuration parameters: EnforcedStyle.
68
+ # SupportedStyles: annotated, template, unannotated
69
+ Style/FormatStringToken:
33
70
  Exclude:
34
- - 'lib/net/ssh/config.rb'
71
+ - 'lib/net/ssh/loggable.rb'
35
72
 
36
- # Offense count: 223
73
+ # Offense count: 7
74
+ # Configuration parameters: Blacklist.
75
+ # Blacklist: END, (?-mix:EO[A-Z]{1})
76
+ Naming/HeredocDelimiterNaming:
77
+ Enabled: false
78
+
79
+ # Offense count: 3
80
+ # Configuration parameters: MaximumRangeSize.
81
+ Lint/MissingCopEnableDirective:
82
+ Exclude:
83
+ - 'test/authentication/test_agent.rb'
84
+ - 'test/authentication/test_certificate.rb'
85
+ - 'test/integration/test_agent.rb'
86
+
87
+
88
+ # Offense count: 7
37
89
  # Cop supports --auto-correct.
38
- # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
39
- # SupportedStyles: keyword, variable, start_of_line
40
- Lint/EndAlignment:
90
+ # Configuration parameters: EnforcedStyle.
91
+ # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
92
+ Layout/IndentHeredoc:
41
93
  Enabled: false
42
94
 
95
+ # Offense count: 2
96
+ # Cop supports --auto-correct.
97
+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
98
+ # SupportedStylesAlignWith: start_of_line, def
99
+ Layout/DefEndAlignment:
100
+ Exclude:
101
+ - 'test/transport/hmac/test_sha2_256.rb'
102
+ - 'test/transport/hmac/test_sha2_512.rb'
103
+
104
+ # Offense count: 3
105
+ Style/CommentedKeyword:
106
+ Exclude:
107
+ - 'test/connection/test_session.rb'
108
+ - 'test/integration/test_forward.rb'
109
+
43
110
  # Offense count: 8
44
111
  Lint/HandleExceptions:
45
112
  Exclude:
@@ -57,11 +124,6 @@ Lint/ImplicitStringConcatenation:
57
124
  - 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
58
125
  - 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
59
126
 
60
- # Offense count: 1
61
- Lint/LiteralInCondition:
62
- Exclude:
63
- - 'lib/net/ssh/authentication/pageant.rb'
64
-
65
127
  # Offense count: 2
66
128
  Lint/Loop:
67
129
  Exclude:
@@ -201,7 +263,7 @@ Performance/RedundantMatch:
201
263
  - 'lib/net/ssh/transport/server_version.rb'
202
264
 
203
265
  # Offense count: 13
204
- Style/AccessorMethodName:
266
+ Naming/AccessorMethodName:
205
267
  Exclude:
206
268
  - 'lib/net/ssh/authentication/methods/password.rb'
207
269
  - 'lib/net/ssh/authentication/pageant.rb'
@@ -220,32 +282,11 @@ Style/Alias:
220
282
  - 'lib/net/ssh/connection/session.rb'
221
283
  - 'lib/net/ssh/service/forward.rb'
222
284
 
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
285
  # Offense count: 72
245
286
  # Cop supports --auto-correct.
246
287
  # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
247
288
  # SupportedStyles: with_first_parameter, with_fixed_indentation
248
- Style/AlignParameters:
289
+ Layout/AlignParameters:
249
290
  Enabled: false
250
291
 
251
292
  # Offense count: 33
@@ -313,22 +354,6 @@ Style/CaseEquality:
313
354
  - 'lib/net/ssh/buffer.rb'
314
355
  - 'lib/net/ssh/connection/session.rb'
315
356
 
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
357
  # Offense count: 1
333
358
  # Cop supports --auto-correct.
334
359
  Style/CharacterLiteral:
@@ -336,7 +361,7 @@ Style/CharacterLiteral:
336
361
  - 'test/test_buffer.rb'
337
362
 
338
363
  # Offense count: 12
339
- Style/ClassAndModuleCamelCase:
364
+ Naming/ClassAndModuleCamelCase:
340
365
  Exclude:
341
366
  - 'lib/net/ssh/transport/hmac/md5_96.rb'
342
367
  - 'lib/net/ssh/transport/hmac/sha1_96.rb'
@@ -390,13 +415,6 @@ Style/CommentAnnotation:
390
415
  - 'lib/net/ssh/buffer.rb'
391
416
  - 'lib/net/ssh/config.rb'
392
417
 
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
418
  # Offense count: 4
401
419
  # Cop supports --auto-correct.
402
420
  # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
@@ -412,7 +430,7 @@ Style/ConditionalAssignment:
412
430
  - 'lib/net/ssh/test/script.rb'
413
431
 
414
432
  # Offense count: 5
415
- Style/ConstantName:
433
+ Naming/ConstantName:
416
434
  Exclude:
417
435
  - 'lib/net/ssh/authentication/pageant.rb'
418
436
  - 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
@@ -443,80 +461,11 @@ Style/Documentation:
443
461
  - 'lib/net/ssh/transport/key_expander.rb'
444
462
  - 'lib/net/ssh/transport/openssl.rb'
445
463
 
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
464
  # Offense count: 209
516
465
  # Cop supports --auto-correct.
517
466
  # Configuration parameters: EnforcedStyle, SupportedStyles.
518
467
  # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
519
- Style/EmptyLinesAroundModuleBody:
468
+ Layout/EmptyLinesAroundModuleBody:
520
469
  Enabled: false
521
470
 
522
471
  # Offense count: 2
@@ -532,23 +481,6 @@ Style/EvenOdd:
532
481
  Exclude:
533
482
  - 'lib/net/ssh/buffer.rb'
534
483
 
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
484
  # Offense count: 2
553
485
  # Configuration parameters: EnforcedStyle, SupportedStyles.
554
486
  # SupportedStyles: format, sprintf, percent
@@ -585,33 +517,20 @@ Style/IfUnlessModifier:
585
517
  # Cop supports --auto-correct.
586
518
  # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
587
519
  # SupportedStyles: special_inside_parentheses, consistent, align_brackets
588
- Style/IndentArray:
520
+ Layout/IndentArray:
589
521
  Exclude:
590
522
  - 'lib/net/ssh/transport/openssl.rb'
591
523
 
592
524
  # Offense count: 4
593
525
  # Cop supports --auto-correct.
594
526
  # Configuration parameters: IndentationWidth.
595
- Style/IndentAssignment:
527
+ Layout/IndentAssignment:
596
528
  Exclude:
597
529
  - 'test/transport/kex/test_diffie_hellman_group1_sha1.rb'
598
530
  - 'test/transport/kex/test_ecdh_sha2_nistp256.rb'
599
531
  - 'test/transport/kex/test_ecdh_sha2_nistp384.rb'
600
532
  - 'test/transport/kex/test_ecdh_sha2_nistp521.rb'
601
533
 
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
534
  # Offense count: 1
616
535
  # Cop supports --auto-correct.
617
536
  Style/InfiniteLoop:
@@ -620,7 +539,7 @@ Style/InfiniteLoop:
620
539
 
621
540
  # Offense count: 17
622
541
  # Cop supports --auto-correct.
623
- Style/LeadingCommentSpace:
542
+ Layout/LeadingCommentSpace:
624
543
  Exclude:
625
544
  - 'test/integration/test_ed25519_pkeys.rb'
626
545
  - 'test/integration/test_forward.rb'
@@ -663,7 +582,7 @@ Style/MethodMissing:
663
582
  # Offense count: 24
664
583
  # Configuration parameters: EnforcedStyle, SupportedStyles.
665
584
  # SupportedStyles: snake_case, camelCase
666
- Style/MethodName:
585
+ Naming/MethodName:
667
586
  Exclude:
668
587
  - 'lib/net/ssh/authentication/ed25519_loader.rb'
669
588
  - 'test/authentication/test_agent.rb'
@@ -684,7 +603,7 @@ Style/MultilineIfThen:
684
603
  # Cop supports --auto-correct.
685
604
  # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
686
605
  # SupportedStyles: aligned, indented
687
- Style/MultilineOperationIndentation:
606
+ Layout/MultilineOperationIndentation:
688
607
  Exclude:
689
608
  - 'lib/net/ssh/authentication/pageant.rb'
690
609
  - 'lib/net/ssh/known_hosts.rb'
@@ -764,12 +683,6 @@ Style/NumericPredicate:
764
683
  - 'test/transport/test_packet_stream.rb'
765
684
  - 'test_connection_close_shall_close_cannels.rb'
766
685
 
767
- # Offense count: 2
768
- Style/OpMethod:
769
- Exclude:
770
- - 'lib/net/ssh/buffer.rb'
771
- - 'lib/net/ssh/version.rb'
772
-
773
686
  # Offense count: 15
774
687
  # Cop supports --auto-correct.
775
688
  Style/ParallelAssignment:
@@ -908,7 +821,7 @@ Style/SingleLineMethods:
908
821
 
909
822
  # Offense count: 16
910
823
  # Cop supports --auto-correct.
911
- Style/SpaceAfterColon:
824
+ Layout/SpaceAfterColon:
912
825
  Exclude:
913
826
  - 'lib/net/ssh/authentication/ed25519.rb'
914
827
  - 'test/integration/test_ed25519_pkeys.rb'
@@ -916,44 +829,20 @@ Style/SpaceAfterColon:
916
829
 
917
830
  # Offense count: 254
918
831
  # Cop supports --auto-correct.
919
- Style/SpaceAfterComma:
832
+ Layout/SpaceAfterComma:
920
833
  Enabled: false
921
834
 
922
835
  # Offense count: 132
923
836
  # Cop supports --auto-correct.
924
837
  # Configuration parameters: EnforcedStyle, SupportedStyles.
925
838
  # 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:
839
+ Layout/SpaceAroundEqualsInParameterDefault:
933
840
  Enabled: false
934
841
 
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
842
  # Offense count: 3
954
843
  # Cop supports --auto-correct.
955
844
  # Configuration parameters: AllowForAlignment.
956
- Style/SpaceBeforeFirstArg:
845
+ Layout/SpaceBeforeFirstArg:
957
846
  Exclude:
958
847
  - 'lib/net/ssh/transport/hmac/sha2_256_96.rb'
959
848
  - 'lib/net/ssh/transport/hmac/sha2_512_96.rb'
@@ -963,7 +852,7 @@ Style/SpaceBeforeFirstArg:
963
852
  # Cop supports --auto-correct.
964
853
  # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
965
854
  # SupportedStyles: space, no_space
966
- Style/SpaceInsideBlockBraces:
855
+ Layout/SpaceInsideBlockBraces:
967
856
  Exclude:
968
857
  - 'lib/net/ssh/authentication/session.rb'
969
858
  - 'lib/net/ssh/transport/ctr.rb'
@@ -972,37 +861,6 @@ Style/SpaceInsideBlockBraces:
972
861
  - 'test/authentication/test_key_manager.rb'
973
862
  - 'test/start/test_user_nil.rb'
974
863
 
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
864
  # Offense count: 22
1007
865
  # Cop supports --auto-correct.
1008
866
  # Configuration parameters: EnforcedStyle, SupportedStyles.
@@ -1040,34 +898,16 @@ Style/SymbolProc:
1040
898
  - 'test/integration/test_forward.rb'
1041
899
  - 'test/test/test_test.rb'
1042
900
 
1043
- # Offense count: 1
1044
- # Cop supports --auto-correct.
1045
- Style/Tab:
1046
- Exclude:
1047
- - 'lib/net/ssh/config.rb'
1048
-
1049
901
  # Offense count: 39
1050
902
  # Cop supports --auto-correct.
1051
903
  # Configuration parameters: EnforcedStyle, SupportedStyles.
1052
904
  # SupportedStyles: final_newline, final_blank_line
1053
- Style/TrailingBlankLines:
905
+ Layout/TrailingBlankLines:
1054
906
  Enabled: false
1055
907
 
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
908
  # Offense count: 66
1069
909
  # Cop supports --auto-correct.
1070
- Style/TrailingWhitespace:
910
+ Layout/TrailingWhitespace:
1071
911
  Enabled: false
1072
912
 
1073
913
  # Offense count: 1