sshkit 1.18.0 → 1.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.docker/Dockerfile +6 -0
- data/.docker/ubuntu_setup.sh +22 -0
- data/.github/dependabot.yml +16 -0
- data/.github/release-drafter.yml +25 -0
- data/.github/workflows/ci.yml +98 -0
- data/.github/workflows/push.yml +12 -0
- data/.gitignore +0 -1
- data/.rubocop.yml +63 -0
- data/.rubocop_todo.yml +630 -0
- data/CHANGELOG.md +1 -769
- data/CONTRIBUTING.md +2 -2
- data/Dangerfile +1 -1
- data/EXAMPLES.md +35 -13
- data/Gemfile +0 -12
- data/README.md +35 -17
- data/RELEASING.md +4 -5
- data/Rakefile +3 -10
- data/docker-compose.yml +8 -0
- data/examples/simple_connection.rb +9 -0
- data/lib/sshkit/backends/abstract.rb +9 -6
- data/lib/sshkit/backends/connection_pool/cache.rb +12 -5
- data/lib/sshkit/backends/connection_pool.rb +8 -4
- data/lib/sshkit/backends/netssh/known_hosts.rb +8 -8
- data/lib/sshkit/backends/netssh/scp_transfer.rb +26 -0
- data/lib/sshkit/backends/netssh/sftp_transfer.rb +46 -0
- data/lib/sshkit/backends/netssh.rb +38 -8
- data/lib/sshkit/command.rb +18 -13
- data/lib/sshkit/deprecation_logger.rb +2 -0
- data/lib/sshkit/host.rb +31 -4
- data/lib/sshkit/version.rb +1 -1
- data/sshkit.gemspec +6 -1
- data/test/functional/backends/netssh_transfer_tests.rb +83 -0
- data/test/functional/backends/test_local.rb +18 -0
- data/test/functional/backends/test_netssh.rb +24 -79
- data/test/functional/backends/test_netssh_scp.rb +23 -0
- data/test/functional/backends/test_netssh_sftp.rb +23 -0
- data/test/helper.rb +5 -43
- data/test/support/docker_wrapper.rb +71 -0
- data/test/unit/backends/test_abstract.rb +13 -1
- data/test/unit/backends/test_netssh.rb +55 -0
- data/test/unit/formatters/test_pretty.rb +1 -1
- data/test/unit/test_command.rb +32 -7
- data/test/unit/test_command_map.rb +8 -8
- data/test/unit/test_deprecation_logger.rb +1 -1
- data/test/unit/test_host.rb +44 -0
- metadata +58 -18
- data/.travis.yml +0 -14
- data/Vagrantfile +0 -15
- data/test/boxes.json +0 -17
- data/test/functional/test_ssh_server_comes_up_for_functional_tests.rb +0 -24
- data/test/support/vagrant_wrapper.rb +0 -55
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,630 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2019-05-15 19:11:29 -0500 using RuboCop version 0.49.1.
|
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
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
12
|
+
# Include: **/Gemfile, **/gems.rb
|
13
|
+
Bundler/OrderedGems:
|
14
|
+
Exclude:
|
15
|
+
- 'Gemfile'
|
16
|
+
|
17
|
+
# Offense count: 1
|
18
|
+
# Cop supports --auto-correct.
|
19
|
+
Layout/EmptyLineAfterMagicComment:
|
20
|
+
Exclude:
|
21
|
+
- 'sshkit.gemspec'
|
22
|
+
|
23
|
+
# Offense count: 11
|
24
|
+
# Cop supports --auto-correct.
|
25
|
+
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
26
|
+
Layout/EmptyLineBetweenDefs:
|
27
|
+
Exclude:
|
28
|
+
- 'lib/core_ext/hash.rb'
|
29
|
+
- 'lib/sshkit/backends/abstract.rb'
|
30
|
+
- 'lib/sshkit/host.rb'
|
31
|
+
- 'lib/sshkit/log_message.rb'
|
32
|
+
- 'test/unit/formatters/test_pretty.rb'
|
33
|
+
- 'test/unit/test_mapping_interaction_handler.rb'
|
34
|
+
|
35
|
+
# Offense count: 2
|
36
|
+
# Cop supports --auto-correct.
|
37
|
+
Layout/EmptyLines:
|
38
|
+
Exclude:
|
39
|
+
- 'test/unit/formatters/test_pretty.rb'
|
40
|
+
- 'test/unit/test_mapping_interaction_handler.rb'
|
41
|
+
|
42
|
+
# Offense count: 1
|
43
|
+
# Cop supports --auto-correct.
|
44
|
+
Layout/EmptyLinesAroundAccessModifier:
|
45
|
+
Exclude:
|
46
|
+
- 'lib/sshkit/runners/sequential.rb'
|
47
|
+
|
48
|
+
# Offense count: 4
|
49
|
+
# Cop supports --auto-correct.
|
50
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
51
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
52
|
+
Layout/EmptyLinesAroundBlockBody:
|
53
|
+
Exclude:
|
54
|
+
- 'Rakefile'
|
55
|
+
- 'sshkit.gemspec'
|
56
|
+
- 'test/helper.rb'
|
57
|
+
|
58
|
+
# Offense count: 73
|
59
|
+
# Cop supports --auto-correct.
|
60
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
61
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
62
|
+
Layout/EmptyLinesAroundClassBody:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
# Offense count: 2
|
66
|
+
# Cop supports --auto-correct.
|
67
|
+
Layout/EmptyLinesAroundMethodBody:
|
68
|
+
Exclude:
|
69
|
+
- 'lib/sshkit/host.rb'
|
70
|
+
|
71
|
+
# Offense count: 100
|
72
|
+
# Cop supports --auto-correct.
|
73
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
74
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
75
|
+
Layout/EmptyLinesAroundModuleBody:
|
76
|
+
Enabled: false
|
77
|
+
|
78
|
+
# Offense count: 3
|
79
|
+
# Cop supports --auto-correct.
|
80
|
+
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
81
|
+
Layout/ExtraSpacing:
|
82
|
+
Exclude:
|
83
|
+
- 'test/unit/backends/test_abstract.rb'
|
84
|
+
- 'test/unit/backends/test_netssh.rb'
|
85
|
+
- 'test/unit/test_host.rb'
|
86
|
+
|
87
|
+
# Offense count: 6
|
88
|
+
# Cop supports --auto-correct.
|
89
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
90
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
91
|
+
Layout/IndentArray:
|
92
|
+
Exclude:
|
93
|
+
- 'test/functional/backends/test_netssh.rb'
|
94
|
+
- 'test/unit/backends/test_netssh.rb'
|
95
|
+
- 'test/unit/formatters/test_pretty.rb'
|
96
|
+
|
97
|
+
# Offense count: 11
|
98
|
+
# Cop supports --auto-correct.
|
99
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
100
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
101
|
+
Layout/IndentHash:
|
102
|
+
Exclude:
|
103
|
+
- 'test/functional/backends/test_local.rb'
|
104
|
+
- 'test/functional/backends/test_netssh.rb'
|
105
|
+
- 'test/unit/formatters/test_custom.rb'
|
106
|
+
- 'test/unit/formatters/test_pretty.rb'
|
107
|
+
- 'test/unit/test_mapping_interaction_handler.rb'
|
108
|
+
|
109
|
+
# Offense count: 5
|
110
|
+
# Cop supports --auto-correct.
|
111
|
+
# Configuration parameters: Width, IgnoredPatterns.
|
112
|
+
Layout/IndentationWidth:
|
113
|
+
Exclude:
|
114
|
+
- 'lib/sshkit/exception.rb'
|
115
|
+
- 'test/functional/backends/test_netssh.rb'
|
116
|
+
|
117
|
+
# Offense count: 5
|
118
|
+
# Cop supports --auto-correct.
|
119
|
+
Layout/LeadingCommentSpace:
|
120
|
+
Exclude:
|
121
|
+
- 'lib/sshkit/backends/netssh.rb'
|
122
|
+
- 'lib/sshkit/command.rb'
|
123
|
+
- 'test/helper.rb'
|
124
|
+
|
125
|
+
# Offense count: 4
|
126
|
+
# Cop supports --auto-correct.
|
127
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
128
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
129
|
+
Layout/MultilineMethodCallBraceLayout:
|
130
|
+
Exclude:
|
131
|
+
- 'test/unit/test_command.rb'
|
132
|
+
|
133
|
+
# Offense count: 1
|
134
|
+
# Cop supports --auto-correct.
|
135
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
136
|
+
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
137
|
+
Layout/MultilineMethodCallIndentation:
|
138
|
+
Exclude:
|
139
|
+
- 'lib/sshkit/host.rb'
|
140
|
+
|
141
|
+
# Offense count: 1
|
142
|
+
# Cop supports --auto-correct.
|
143
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
144
|
+
# SupportedStyles: aligned, indented
|
145
|
+
Layout/MultilineOperationIndentation:
|
146
|
+
Exclude:
|
147
|
+
- 'lib/sshkit/backends/netssh.rb'
|
148
|
+
|
149
|
+
# Offense count: 10
|
150
|
+
# Cop supports --auto-correct.
|
151
|
+
Layout/SpaceAfterComma:
|
152
|
+
Exclude:
|
153
|
+
- 'lib/sshkit/command.rb'
|
154
|
+
- 'test/functional/backends/test_netssh.rb'
|
155
|
+
- 'test/unit/backends/test_netssh.rb'
|
156
|
+
- 'test/unit/test_configuration.rb'
|
157
|
+
|
158
|
+
# Offense count: 16
|
159
|
+
# Cop supports --auto-correct.
|
160
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
161
|
+
# SupportedStyles: space, no_space
|
162
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
163
|
+
Exclude:
|
164
|
+
- 'lib/sshkit/backends/abstract.rb'
|
165
|
+
- 'lib/sshkit/backends/local.rb'
|
166
|
+
- 'lib/sshkit/backends/netssh.rb'
|
167
|
+
- 'lib/sshkit/backends/netssh/known_hosts.rb'
|
168
|
+
- 'lib/sshkit/command_map.rb'
|
169
|
+
- 'lib/sshkit/runners/abstract.rb'
|
170
|
+
- 'lib/sshkit/runners/group.rb'
|
171
|
+
- 'lib/sshkit/runners/sequential.rb'
|
172
|
+
- 'test/helper.rb'
|
173
|
+
- 'test/unit/backends/test_netssh.rb'
|
174
|
+
|
175
|
+
# Offense count: 12
|
176
|
+
# Cop supports --auto-correct.
|
177
|
+
# Configuration parameters: AllowForAlignment.
|
178
|
+
Layout/SpaceAroundOperators:
|
179
|
+
Exclude:
|
180
|
+
- 'test/functional/backends/test_netssh.rb'
|
181
|
+
- 'test/unit/backends/test_abstract.rb'
|
182
|
+
- 'test/unit/test_command.rb'
|
183
|
+
- 'test/unit/test_deprecation_logger.rb'
|
184
|
+
|
185
|
+
# Offense count: 4
|
186
|
+
# Cop supports --auto-correct.
|
187
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
188
|
+
# SupportedStyles: space, no_space
|
189
|
+
Layout/SpaceBeforeBlockBraces:
|
190
|
+
Exclude:
|
191
|
+
- 'lib/sshkit/command.rb'
|
192
|
+
- 'lib/sshkit/host.rb'
|
193
|
+
- 'sshkit.gemspec'
|
194
|
+
- 'test/unit/test_command_map.rb'
|
195
|
+
|
196
|
+
# Offense count: 1
|
197
|
+
# Cop supports --auto-correct.
|
198
|
+
# Configuration parameters: AllowForAlignment.
|
199
|
+
Layout/SpaceBeforeFirstArg:
|
200
|
+
Exclude:
|
201
|
+
- 'test/unit/backends/test_netssh.rb'
|
202
|
+
|
203
|
+
# Offense count: 4
|
204
|
+
# Cop supports --auto-correct.
|
205
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
|
206
|
+
# SupportedStyles: space, no_space
|
207
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
208
|
+
Layout/SpaceInsideBlockBraces:
|
209
|
+
Exclude:
|
210
|
+
- 'lib/sshkit/command.rb'
|
211
|
+
- 'lib/sshkit/host.rb'
|
212
|
+
- 'test/functional/backends/test_netssh.rb'
|
213
|
+
- 'test/unit/test_configuration.rb'
|
214
|
+
|
215
|
+
# Offense count: 39
|
216
|
+
# Cop supports --auto-correct.
|
217
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
|
218
|
+
# SupportedStyles: space, no_space, compact
|
219
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
220
|
+
Layout/SpaceInsideHashLiteralBraces:
|
221
|
+
Exclude:
|
222
|
+
- 'lib/sshkit/backends/abstract.rb'
|
223
|
+
- 'lib/sshkit/backends/netssh.rb'
|
224
|
+
- 'test/functional/backends/test_netssh.rb'
|
225
|
+
- 'test/unit/backends/test_abstract.rb'
|
226
|
+
- 'test/unit/formatters/test_dot.rb'
|
227
|
+
- 'test/unit/test_color.rb'
|
228
|
+
- 'test/unit/test_command.rb'
|
229
|
+
- 'test/unit/test_host.rb'
|
230
|
+
- 'test/unit/test_mapping_interaction_handler.rb'
|
231
|
+
|
232
|
+
# Offense count: 2
|
233
|
+
# Cop supports --auto-correct.
|
234
|
+
Layout/SpaceInsidePercentLiteralDelimiters:
|
235
|
+
Exclude:
|
236
|
+
- 'lib/sshkit/formatters/pretty.rb'
|
237
|
+
|
238
|
+
# Offense count: 1
|
239
|
+
# Cop supports --auto-correct.
|
240
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
241
|
+
# SupportedStyles: final_newline, final_blank_line
|
242
|
+
Layout/TrailingBlankLines:
|
243
|
+
Exclude:
|
244
|
+
- 'lib/sshkit/backends/netssh/known_hosts.rb'
|
245
|
+
|
246
|
+
# Offense count: 16
|
247
|
+
# Cop supports --auto-correct.
|
248
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
249
|
+
# SupportedStyles: prefer_alias, prefer_alias_method
|
250
|
+
Style/Alias:
|
251
|
+
Exclude:
|
252
|
+
- 'lib/sshkit/backends/printer.rb'
|
253
|
+
- 'lib/sshkit/backends/skipper.rb'
|
254
|
+
- 'lib/sshkit/command.rb'
|
255
|
+
- 'lib/sshkit/formatters/abstract.rb'
|
256
|
+
- 'lib/sshkit/host.rb'
|
257
|
+
- 'test/unit/formatters/test_custom.rb'
|
258
|
+
|
259
|
+
# Offense count: 2
|
260
|
+
Style/AsciiComments:
|
261
|
+
Exclude:
|
262
|
+
- 'lib/sshkit/command.rb'
|
263
|
+
- 'test/helper.rb'
|
264
|
+
|
265
|
+
# Offense count: 11
|
266
|
+
# Cop supports --auto-correct.
|
267
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
268
|
+
# SupportedStyles: percent_q, bare_percent
|
269
|
+
Style/BarePercentLiterals:
|
270
|
+
Exclude:
|
271
|
+
- 'lib/sshkit/command.rb'
|
272
|
+
- 'test/unit/test_command.rb'
|
273
|
+
|
274
|
+
# Offense count: 10
|
275
|
+
# Cop supports --auto-correct.
|
276
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
277
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
278
|
+
Style/BracesAroundHashParameters:
|
279
|
+
Exclude:
|
280
|
+
- 'lib/sshkit/backends/abstract.rb'
|
281
|
+
- 'test/functional/backends/test_netssh.rb'
|
282
|
+
- 'test/unit/backends/test_abstract.rb'
|
283
|
+
- 'test/unit/formatters/test_dot.rb'
|
284
|
+
- 'test/unit/test_color.rb'
|
285
|
+
- 'test/unit/test_host.rb'
|
286
|
+
- 'test/unit/test_mapping_interaction_handler.rb'
|
287
|
+
|
288
|
+
# Offense count: 1
|
289
|
+
Style/CaseEquality:
|
290
|
+
Exclude:
|
291
|
+
- 'lib/sshkit/mapping_interaction_handler.rb'
|
292
|
+
|
293
|
+
# Offense count: 2
|
294
|
+
# Cop supports --auto-correct.
|
295
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
296
|
+
# SupportedStyles: is_a?, kind_of?
|
297
|
+
Style/ClassCheck:
|
298
|
+
Exclude:
|
299
|
+
- 'lib/sshkit/command.rb'
|
300
|
+
- 'lib/sshkit/formatters/pretty.rb'
|
301
|
+
|
302
|
+
# Offense count: 1
|
303
|
+
# Cop supports --auto-correct.
|
304
|
+
Style/ClassMethods:
|
305
|
+
Exclude:
|
306
|
+
- 'test/unit/backends/test_abstract.rb'
|
307
|
+
|
308
|
+
# Offense count: 3
|
309
|
+
Style/ClassVars:
|
310
|
+
Exclude:
|
311
|
+
- 'lib/sshkit.rb'
|
312
|
+
|
313
|
+
# Offense count: 1
|
314
|
+
# Cop supports --auto-correct.
|
315
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
316
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
317
|
+
Style/ConditionalAssignment:
|
318
|
+
Exclude:
|
319
|
+
- 'lib/sshkit/command_map.rb'
|
320
|
+
|
321
|
+
# Offense count: 1
|
322
|
+
# Cop supports --auto-correct.
|
323
|
+
Style/EachWithObject:
|
324
|
+
Exclude:
|
325
|
+
- 'lib/core_ext/hash.rb'
|
326
|
+
|
327
|
+
# Offense count: 12
|
328
|
+
# Cop supports --auto-correct.
|
329
|
+
Style/EmptyLiteral:
|
330
|
+
Exclude:
|
331
|
+
- 'lib/sshkit/command.rb'
|
332
|
+
- 'test/functional/backends/test_netssh.rb'
|
333
|
+
- 'test/unit/backends/test_printer.rb'
|
334
|
+
- 'test/unit/formatters/test_custom.rb'
|
335
|
+
- 'test/unit/formatters/test_dot.rb'
|
336
|
+
- 'test/unit/formatters/test_pretty.rb'
|
337
|
+
- 'test/unit/formatters/test_simple_text.rb'
|
338
|
+
- 'test/unit/test_coordinator.rb'
|
339
|
+
- 'test/unit/test_deprecation_logger.rb'
|
340
|
+
|
341
|
+
# Offense count: 3
|
342
|
+
# Cop supports --auto-correct.
|
343
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
344
|
+
# SupportedStyles: compact, expanded
|
345
|
+
Style/EmptyMethod:
|
346
|
+
Exclude:
|
347
|
+
- 'lib/sshkit/formatters/dot.rb'
|
348
|
+
- 'lib/sshkit/host.rb'
|
349
|
+
|
350
|
+
# Offense count: 1
|
351
|
+
# Cop supports --auto-correct.
|
352
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
353
|
+
# SupportedStyles: format, sprintf, percent
|
354
|
+
Style/FormatString:
|
355
|
+
Exclude:
|
356
|
+
- 'lib/sshkit/formatters/pretty.rb'
|
357
|
+
|
358
|
+
# Offense count: 6
|
359
|
+
# Configuration parameters: AllowedVariables.
|
360
|
+
Style/GlobalVars:
|
361
|
+
Exclude:
|
362
|
+
- 'test/unit/test_coordinator.rb'
|
363
|
+
|
364
|
+
# Offense count: 7
|
365
|
+
# Configuration parameters: MinBodyLength.
|
366
|
+
Style/GuardClause:
|
367
|
+
Exclude:
|
368
|
+
- 'lib/sshkit/backends/connection_pool.rb'
|
369
|
+
- 'lib/sshkit/backends/netssh.rb'
|
370
|
+
- 'lib/sshkit/command.rb'
|
371
|
+
- 'lib/sshkit/formatters/pretty.rb'
|
372
|
+
- 'lib/sshkit/host.rb'
|
373
|
+
- 'lib/sshkit/runners/sequential.rb'
|
374
|
+
- 'test/helper.rb'
|
375
|
+
|
376
|
+
# Offense count: 33
|
377
|
+
# Cop supports --auto-correct.
|
378
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
379
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
380
|
+
Style/HashSyntax:
|
381
|
+
Exclude:
|
382
|
+
- 'Rakefile'
|
383
|
+
- 'lib/sshkit/color.rb'
|
384
|
+
- 'test/functional/backends/test_netssh.rb'
|
385
|
+
- 'test/unit/backends/test_abstract.rb'
|
386
|
+
- 'test/unit/backends/test_connection_pool.rb'
|
387
|
+
- 'test/unit/formatters/test_custom.rb'
|
388
|
+
- 'test/unit/test_configuration.rb'
|
389
|
+
|
390
|
+
# Offense count: 4
|
391
|
+
# Cop supports --auto-correct.
|
392
|
+
# Configuration parameters: MaxLineLength.
|
393
|
+
Style/IfUnlessModifier:
|
394
|
+
Exclude:
|
395
|
+
- 'lib/sshkit/backends/connection_pool.rb'
|
396
|
+
- 'lib/sshkit/backends/netssh/known_hosts.rb'
|
397
|
+
- 'lib/sshkit/configuration.rb'
|
398
|
+
- 'lib/sshkit/runners/sequential.rb'
|
399
|
+
|
400
|
+
# Offense count: 1
|
401
|
+
# Cop supports --auto-correct.
|
402
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
403
|
+
# SupportedStyles: line_count_dependent, lambda, literal
|
404
|
+
Style/Lambda:
|
405
|
+
Exclude:
|
406
|
+
- 'test/unit/backends/test_abstract.rb'
|
407
|
+
|
408
|
+
# Offense count: 1
|
409
|
+
# Cop supports --auto-correct.
|
410
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
411
|
+
# SupportedStyles: call, braces
|
412
|
+
Style/LambdaCall:
|
413
|
+
Exclude:
|
414
|
+
- 'lib/sshkit/command_map.rb'
|
415
|
+
|
416
|
+
# Offense count: 5
|
417
|
+
# Cop supports --auto-correct.
|
418
|
+
Style/LineEndConcatenation:
|
419
|
+
Exclude:
|
420
|
+
- 'lib/sshkit/backends/netssh.rb'
|
421
|
+
- 'test/unit/test_command.rb'
|
422
|
+
|
423
|
+
# Offense count: 3
|
424
|
+
# Cop supports --auto-correct.
|
425
|
+
Style/MethodCallWithoutArgsParentheses:
|
426
|
+
Exclude:
|
427
|
+
- 'test/unit/test_color.rb'
|
428
|
+
- 'test/unit/test_coordinator.rb'
|
429
|
+
- 'test/unit/test_mapping_interaction_handler.rb'
|
430
|
+
|
431
|
+
# Offense count: 1
|
432
|
+
# Cop supports --auto-correct.
|
433
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
434
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
435
|
+
Style/MethodDefParentheses:
|
436
|
+
Exclude:
|
437
|
+
- 'lib/sshkit/exception.rb'
|
438
|
+
|
439
|
+
# Offense count: 3
|
440
|
+
# Configuration parameters: SupportedStyles.
|
441
|
+
# SupportedStyles: snake_case, camelCase
|
442
|
+
Style/MethodName:
|
443
|
+
EnforcedStyle: snake_case
|
444
|
+
Exclude:
|
445
|
+
- 'test/unit/test_color.rb'
|
446
|
+
|
447
|
+
# Offense count: 1
|
448
|
+
# Cop supports --auto-correct.
|
449
|
+
# Configuration parameters: Strict.
|
450
|
+
Style/NumericLiterals:
|
451
|
+
MinDigits: 6
|
452
|
+
|
453
|
+
# Offense count: 1
|
454
|
+
# Cop supports --auto-correct.
|
455
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
456
|
+
# SupportedStyles: predicate, comparison
|
457
|
+
Style/NumericPredicate:
|
458
|
+
Exclude:
|
459
|
+
- 'spec/**/*'
|
460
|
+
- 'lib/sshkit/command.rb'
|
461
|
+
|
462
|
+
# Offense count: 1
|
463
|
+
Style/OpMethod:
|
464
|
+
Exclude:
|
465
|
+
- 'lib/sshkit/host.rb'
|
466
|
+
|
467
|
+
# Offense count: 6
|
468
|
+
# Cop supports --auto-correct.
|
469
|
+
Style/ParallelAssignment:
|
470
|
+
Exclude:
|
471
|
+
- 'lib/sshkit/backends/netssh/known_hosts.rb'
|
472
|
+
- 'lib/sshkit/color.rb'
|
473
|
+
- 'lib/sshkit/command.rb'
|
474
|
+
- 'lib/sshkit/log_message.rb'
|
475
|
+
- 'test/helper.rb'
|
476
|
+
|
477
|
+
# Offense count: 1
|
478
|
+
# Cop supports --auto-correct.
|
479
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
480
|
+
# SupportedStyles: lower_case_q, upper_case_q
|
481
|
+
Style/PercentQLiterals:
|
482
|
+
Exclude:
|
483
|
+
- 'test/unit/test_command.rb'
|
484
|
+
|
485
|
+
# Offense count: 4
|
486
|
+
# Cop supports --auto-correct.
|
487
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
488
|
+
# SupportedStyles: short, verbose
|
489
|
+
Style/PreferredHashMethods:
|
490
|
+
Exclude:
|
491
|
+
- 'test/unit/test_host.rb'
|
492
|
+
|
493
|
+
# Offense count: 2
|
494
|
+
# Cop supports --auto-correct.
|
495
|
+
Style/RedundantBegin:
|
496
|
+
Exclude:
|
497
|
+
- 'test/unit/test_coordinator.rb'
|
498
|
+
|
499
|
+
# Offense count: 1
|
500
|
+
# Cop supports --auto-correct.
|
501
|
+
Style/RedundantParentheses:
|
502
|
+
Exclude:
|
503
|
+
- 'test/functional/backends/test_netssh.rb'
|
504
|
+
|
505
|
+
# Offense count: 2
|
506
|
+
# Cop supports --auto-correct.
|
507
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
508
|
+
Style/RedundantReturn:
|
509
|
+
Exclude:
|
510
|
+
- 'lib/sshkit/command.rb'
|
511
|
+
|
512
|
+
# Offense count: 4
|
513
|
+
# Cop supports --auto-correct.
|
514
|
+
Style/RedundantSelf:
|
515
|
+
Exclude:
|
516
|
+
- 'lib/core_ext/hash.rb'
|
517
|
+
- 'lib/sshkit/command.rb'
|
518
|
+
- 'lib/sshkit/host.rb'
|
519
|
+
|
520
|
+
# Offense count: 1
|
521
|
+
# Cop supports --auto-correct.
|
522
|
+
Style/RescueModifier:
|
523
|
+
Exclude:
|
524
|
+
- 'lib/core_ext/hash.rb'
|
525
|
+
|
526
|
+
# Offense count: 2
|
527
|
+
# Cop supports --auto-correct.
|
528
|
+
# Configuration parameters: AllowAsExpressionSeparator.
|
529
|
+
Style/Semicolon:
|
530
|
+
Exclude:
|
531
|
+
- 'test/unit/backends/test_connection_pool.rb'
|
532
|
+
- 'test/unit/test_command_map.rb'
|
533
|
+
|
534
|
+
# Offense count: 2
|
535
|
+
# Cop supports --auto-correct.
|
536
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
537
|
+
# SupportedStyles: only_raise, only_fail, semantic
|
538
|
+
Style/SignalException:
|
539
|
+
Exclude:
|
540
|
+
- 'lib/sshkit/configuration.rb'
|
541
|
+
- 'lib/sshkit/host.rb'
|
542
|
+
|
543
|
+
# Offense count: 3
|
544
|
+
# Cop supports --auto-correct.
|
545
|
+
# Configuration parameters: AllowIfMethodIsEmpty.
|
546
|
+
Style/SingleLineMethods:
|
547
|
+
Exclude:
|
548
|
+
- 'lib/sshkit/backends/abstract.rb'
|
549
|
+
|
550
|
+
# Offense count: 476
|
551
|
+
# Cop supports --auto-correct.
|
552
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
553
|
+
# SupportedStyles: single_quotes, double_quotes
|
554
|
+
Style/StringLiterals:
|
555
|
+
Enabled: false
|
556
|
+
|
557
|
+
# Offense count: 3
|
558
|
+
# Cop supports --auto-correct.
|
559
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
560
|
+
# SupportedStyles: single_quotes, double_quotes
|
561
|
+
Style/StringLiteralsInInterpolation:
|
562
|
+
Exclude:
|
563
|
+
- 'lib/sshkit/command.rb'
|
564
|
+
- 'lib/sshkit/runners/parallel.rb'
|
565
|
+
- 'lib/sshkit/runners/sequential.rb'
|
566
|
+
|
567
|
+
# Offense count: 5
|
568
|
+
# Cop supports --auto-correct.
|
569
|
+
# Configuration parameters: MinSize, SupportedStyles.
|
570
|
+
# SupportedStyles: percent, brackets
|
571
|
+
Style/SymbolArray:
|
572
|
+
EnforcedStyle: brackets
|
573
|
+
|
574
|
+
# Offense count: 3
|
575
|
+
# Cop supports --auto-correct.
|
576
|
+
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
|
577
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
578
|
+
Style/TrailingCommaInLiteral:
|
579
|
+
Exclude:
|
580
|
+
- 'lib/sshkit/host.rb'
|
581
|
+
- 'test/unit/backends/test_netssh.rb'
|
582
|
+
- 'test/unit/test_configuration.rb'
|
583
|
+
|
584
|
+
# Offense count: 1
|
585
|
+
# Cop supports --auto-correct.
|
586
|
+
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
|
587
|
+
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
|
588
|
+
Style/TrivialAccessors:
|
589
|
+
Exclude:
|
590
|
+
- 'lib/sshkit/host.rb'
|
591
|
+
|
592
|
+
# Offense count: 1
|
593
|
+
# Cop supports --auto-correct.
|
594
|
+
Style/UnlessElse:
|
595
|
+
Exclude:
|
596
|
+
- 'lib/sshkit/backends/netssh.rb'
|
597
|
+
|
598
|
+
# Offense count: 1
|
599
|
+
# Cop supports --auto-correct.
|
600
|
+
Style/UnneededCapitalW:
|
601
|
+
Exclude:
|
602
|
+
- 'test/functional/backends/test_netssh.rb'
|
603
|
+
|
604
|
+
# Offense count: 3
|
605
|
+
# Cop supports --auto-correct.
|
606
|
+
Style/UnneededPercentQ:
|
607
|
+
Exclude:
|
608
|
+
- 'sshkit.gemspec'
|
609
|
+
- 'test/unit/test_command.rb'
|
610
|
+
|
611
|
+
# Offense count: 1
|
612
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
613
|
+
# SupportedStyles: snake_case, normalcase, non_integer
|
614
|
+
Style/VariableNumber:
|
615
|
+
Exclude:
|
616
|
+
- 'test/unit/backends/test_connection_pool.rb'
|
617
|
+
|
618
|
+
# Offense count: 2
|
619
|
+
# Cop supports --auto-correct.
|
620
|
+
Style/WhileUntilDo:
|
621
|
+
Exclude:
|
622
|
+
- 'lib/sshkit/backends/local.rb'
|
623
|
+
|
624
|
+
# Offense count: 1
|
625
|
+
# Cop supports --auto-correct.
|
626
|
+
# Configuration parameters: SupportedStyles, WordRegex.
|
627
|
+
# SupportedStyles: percent, brackets
|
628
|
+
Style/WordArray:
|
629
|
+
EnforcedStyle: percent
|
630
|
+
MinSize: 3
|