net-ssh 6.3.0.beta1 → 7.0.0.beta1

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