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