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