fog-digitalocean 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_todo.yml +403 -508
  3. data/.travis.yml +2 -2
  4. data/README.md +1 -1
  5. data/fog-digitalocean.gemspec +9 -9
  6. data/lib/fog/{digitalocean/compute.rb → compute/digitalocean.rb} +4 -4
  7. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/flavor.rb +0 -0
  8. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/flavors.rb +0 -0
  9. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/image.rb +0 -0
  10. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/images.rb +1 -1
  11. data/lib/fog/{digitalocean → compute/digitalocean}/models/paging_collection.rb +0 -0
  12. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/region.rb +0 -0
  13. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/regions.rb +0 -0
  14. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/server.rb +0 -0
  15. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/servers.rb +2 -2
  16. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/ssh_key.rb +0 -0
  17. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/ssh_keys.rb +1 -1
  18. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/volume.rb +0 -0
  19. data/lib/fog/{digitalocean/models/compute → compute/digitalocean/models}/volumes.rb +1 -1
  20. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/attach_volume.rb +0 -0
  21. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/change_kernel.rb +0 -0
  22. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/convert_to_snapshot.rb +0 -0
  23. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/create_server.rb +0 -0
  24. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/create_ssh_key.rb +0 -0
  25. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/create_volume.rb +0 -0
  26. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/delete_ssh_key.rb +0 -0
  27. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/destroy_server.rb +0 -0
  28. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/destroy_volume.rb +0 -0
  29. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/detach_volume.rb +0 -0
  30. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/disable_backups.rb +0 -0
  31. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/enable_ipv6.rb +0 -0
  32. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/enable_private_networking.rb +0 -0
  33. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/get_droplet_action.rb +0 -0
  34. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/get_image_details.rb +0 -0
  35. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/get_server_details.rb +0 -0
  36. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/get_ssh_key.rb +0 -0
  37. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/get_volume_details.rb +0 -0
  38. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/list_droplet_actions.rb +0 -0
  39. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/list_flavors.rb +0 -0
  40. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/list_images.rb +0 -0
  41. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/list_regions.rb +0 -0
  42. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/list_servers.rb +0 -0
  43. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/list_ssh_keys.rb +0 -0
  44. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/list_volume_actions.rb +0 -0
  45. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/list_volumes.rb +0 -0
  46. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/password_reset.rb +0 -0
  47. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/power_cycle.rb +0 -0
  48. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/power_off.rb +0 -0
  49. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/power_on.rb +0 -0
  50. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/reboot_server.rb +0 -0
  51. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/rebuild.rb +0 -0
  52. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/rename.rb +0 -0
  53. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/resize.rb +0 -0
  54. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/resize_volume.rb +0 -0
  55. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/restore.rb +0 -0
  56. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/shutdown.rb +0 -0
  57. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/snapshot.rb +0 -0
  58. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/transfer_image.rb +0 -0
  59. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/update_ssh_key.rb +0 -0
  60. data/lib/fog/{digitalocean/requests/compute → compute/digitalocean/requests}/upgrade.rb +0 -0
  61. data/lib/fog/{digitalocean → compute}/examples/getting_started.md +0 -0
  62. data/lib/fog/digitalocean.rb +15 -1
  63. data/lib/fog/digitalocean/CHANGELOG.md +1 -1
  64. data/lib/fog/digitalocean/version.rb +1 -1
  65. metadata +87 -88
  66. data/lib/fog/digitalocean/core.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 963a92d0264581f90db0dde01e2993275d87f62c
4
- data.tar.gz: 0b829c4fe8e3e33dc0b9f3e4985b552f3013d6cf
3
+ metadata.gz: e65c46b5cc9aff7e6efe96ccd7b23aaed81592d6
4
+ data.tar.gz: 78c70effd2d0ea6828586a915c555ccb93dbc241
5
5
  SHA512:
6
- metadata.gz: 1e13717d588275a66606e21fe4f4bfceac858a2d956c72fac43e461f380ad196fa11c1c56968196dae5f26854618876bc9c900eab38955f3fe0f01d9e7aa01bb
7
- data.tar.gz: 3aa26606dd654a3b677a6da21f489ede3129617b46ee5738bc75df687fc05705b624a3b866067fb494b9f7d77ff278785965f17e05bc2f3908aa5caa8fc9db9a
6
+ metadata.gz: 2d2aa6e1d436083bca7700fb95c0693d890863f7d2ec8c6753c2baf2c68270ace9445ec7f21010d24db58bc61bbaed3e8726c48623a405d7543e1017542f1317
7
+ data.tar.gz: 35003d1fbcdb1846b6b34a52cbbef442f759f6e5216a055cfa398e89dacbdf409614ac4a27fe37f223d30ba62f4cecd234f806ead3aa809ff4203d6c49d03757
@@ -1,606 +1,501 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2014-05-26 15:23:01 +0100 using RuboCop version 0.22.0.
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config --no-offense-counts`
3
+ # on 2018-08-06 11:49:19 -0700 using RuboCop version 0.58.2.
3
4
  # The point is for the user to remove these configuration records
4
5
  # one by one as the offenses are removed from the code base.
5
6
  # Note that changes in the inspected code, or installation of new
6
7
  # versions of RuboCop, may require this file to be generated again.
7
8
 
8
- # Offense count: 85
9
- AccessorMethodName:
10
- Enabled: false
11
-
12
- # Offense count: 139
13
9
  # Cop supports --auto-correct.
14
- AlignArray:
15
- Enabled: false
10
+ # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
11
+ # Include: **/*.gemspec
12
+ Gemspec/OrderedDependencies:
13
+ Exclude:
14
+ - 'fog-digitalocean.gemspec'
16
15
 
17
- # Offense count: 449
18
16
  # Cop supports --auto-correct.
19
- # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
20
- AlignHash:
21
- Enabled: false
22
-
23
- # Offense count: 104
17
+ # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
18
+ # SupportedHashRocketStyles: key, separator, table
19
+ # SupportedColonStyles: key, separator, table
20
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
21
+ Layout/AlignHash:
22
+ Exclude:
23
+ - 'lib/fog/compute/digitalocean/requests/get_image_details.rb'
24
+
24
25
  # Cop supports --auto-correct.
25
- # Configuration parameters: EnforcedStyle, SupportedStyles.
26
- AlignParameters:
27
- Enabled: false
28
-
29
- # Offense count: 3
30
- AmbiguousOperator:
31
- Enabled: false
32
-
33
- # Offense count: 4
34
- AmbiguousRegexpLiteral:
35
- Enabled: false
26
+ # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
27
+ # SupportedStyles: case, end
28
+ Layout/CaseIndentation:
29
+ Exclude:
30
+ - 'lib/fog/bin/digitalocean.rb'
31
+ - 'lib/fog/compute/digitalocean.rb'
32
+
33
+ # Cop supports --auto-correct.
34
+ Layout/CommentIndentation:
35
+ Exclude:
36
+ - 'lib/fog/compute/digitalocean/requests/list_flavors.rb'
36
37
 
37
- # Offense count: 221
38
38
  # Cop supports --auto-correct.
39
- AndOr:
40
- Enabled: false
41
-
42
- # Offense count: 1
43
- ArrayJoin:
44
- Enabled: false
45
-
46
- # Offense count: 9
47
- AsciiComments:
48
- Enabled: false
49
-
50
- # Offense count: 594
51
- # Configuration parameters: AllowSafeAssignment.
52
- AssignmentInCondition:
53
- Enabled: false
39
+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
40
+ # SupportedStylesAlignWith: start_of_line, def
41
+ Layout/DefEndAlignment:
42
+ Exclude:
43
+ - 'lib/fog/compute/digitalocean/requests/detach_volume.rb'
54
44
 
55
- # Offense count: 3
56
45
  # Cop supports --auto-correct.
57
- Attr:
58
- Enabled: false
59
-
60
- # Offense count: 35
61
- BlockAlignment:
62
- Enabled: false
46
+ Layout/EmptyLineAfterMagicComment:
47
+ Exclude:
48
+ - 'fog-digitalocean.gemspec'
63
49
 
64
- # Offense count: 56
65
- BlockNesting:
66
- Max: 7
67
-
68
- # Offense count: 230
69
50
  # Cop supports --auto-correct.
70
- Blocks:
71
- Enabled: false
51
+ # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
52
+ Layout/EmptyLineBetweenDefs:
53
+ Exclude:
54
+ - 'lib/fog/compute/digitalocean/requests/attach_volume.rb'
55
+ - 'lib/fog/compute/digitalocean/requests/destroy_server.rb'
56
+ - 'lib/fog/compute/digitalocean/requests/detach_volume.rb'
72
57
 
73
- # Offense count: 1366
74
58
  # Cop supports --auto-correct.
75
- # Configuration parameters: EnforcedStyle, SupportedStyles.
76
- BracesAroundHashParameters:
77
- Enabled: false
78
-
79
- # Offense count: 9
80
- CaseEquality:
81
- Enabled: false
82
-
83
- # Offense count: 291
84
- # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
85
- CaseIndentation:
86
- Enabled: false
59
+ Layout/EmptyLines:
60
+ Exclude:
61
+ - 'lib/fog/compute/digitalocean.rb'
87
62
 
88
- # Offense count: 2
89
- # Configuration parameters: EnforcedStyle, SupportedStyles.
90
- ClassAndModuleChildren:
91
- Enabled: false
92
-
93
- # Offense count: 99
94
- # Configuration parameters: CountComments.
95
- ClassLength:
96
- Max: 1131
97
-
98
- # Offense count: 46
99
- ClassVars:
100
- Enabled: false
101
-
102
- # Offense count: 41
103
63
  # Cop supports --auto-correct.
104
- ColonMethodCall:
105
- Enabled: false
64
+ # Configuration parameters: EnforcedStyle.
65
+ # SupportedStyles: empty_lines, no_empty_lines
66
+ Layout/EmptyLinesAroundBlockBody:
67
+ Exclude:
68
+ - 'tests/digitalocean/requests/compute/server_tests.rb'
106
69
 
107
- # Offense count: 33
108
- # Configuration parameters: Keywords.
109
- CommentAnnotation:
110
- Enabled: false
111
-
112
- # Offense count: 82
113
70
  # Cop supports --auto-correct.
114
- CommentIndentation:
115
- Enabled: false
71
+ # Configuration parameters: EnforcedStyle.
72
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
73
+ Layout/EmptyLinesAroundClassBody:
74
+ Exclude:
75
+ - 'lib/fog/compute/digitalocean/models/images.rb'
76
+ - 'lib/fog/compute/digitalocean/models/paging_collection.rb'
77
+ - 'lib/fog/compute/digitalocean/models/ssh_key.rb'
78
+ - 'lib/fog/compute/digitalocean/models/volumes.rb'
79
+ - 'lib/fog/compute/digitalocean/requests/create_server.rb'
80
+ - 'lib/fog/compute/digitalocean/requests/create_ssh_key.rb'
81
+ - 'lib/fog/compute/digitalocean/requests/create_volume.rb'
82
+ - 'lib/fog/compute/digitalocean/requests/update_ssh_key.rb'
83
+ - 'lib/fog/digitalocean/service.rb'
116
84
 
117
- # Offense count: 1
118
- ConstantName:
119
- Enabled: false
120
-
121
- # Offense count: 450
122
- CyclomaticComplexity:
123
- Max: 46
124
-
125
- # Offense count: 29
126
85
  # Cop supports --auto-correct.
127
- DefWithParentheses:
128
- Enabled: false
86
+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
87
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
88
+ Layout/EndAlignment:
89
+ Exclude:
90
+ - 'lib/fog/bin/digitalocean.rb'
91
+ - 'lib/fog/compute/digitalocean/requests/detach_volume.rb'
129
92
 
130
- # Offense count: 6310
131
- Documentation:
132
- Enabled: false
133
-
134
- # Offense count: 42
135
- # Configuration parameters: EnforcedStyle, SupportedStyles.
136
- DotPosition:
137
- Enabled: false
138
-
139
- # Offense count: 34
140
- DoubleNegation:
141
- Enabled: false
142
-
143
- # Offense count: 16
144
- EachWithObject:
145
- Enabled: false
146
-
147
- # Offense count: 2
148
- ElseLayout:
149
- Enabled: false
150
-
151
- # Offense count: 13
152
93
  # Cop supports --auto-correct.
153
- EmptyLines:
154
- Enabled: false
94
+ # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
95
+ Layout/ExtraSpacing:
96
+ Exclude:
97
+ - 'lib/fog/compute/digitalocean/models/server.rb'
98
+ - 'lib/fog/compute/digitalocean/requests/detach_volume.rb'
99
+ - 'lib/fog/compute/digitalocean/requests/get_image_details.rb'
100
+ - 'lib/fog/compute/digitalocean/requests/list_volumes.rb'
101
+ - 'lib/fog/compute/digitalocean/requests/resize_volume.rb'
155
102
 
156
- # Offense count: 64
157
- EmptyLinesAroundAccessModifier:
158
- Enabled: false
159
-
160
- # Offense count: 4
161
103
  # Cop supports --auto-correct.
162
- EmptyLinesAroundBody:
163
- Enabled: false
104
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
105
+ # SupportedStyles: special_inside_parentheses, consistent, align_brackets
106
+ Layout/IndentArray:
107
+ Exclude:
108
+ - 'lib/fog/compute/digitalocean/requests/attach_volume.rb'
109
+ - 'lib/fog/compute/digitalocean/requests/detach_volume.rb'
110
+ - 'lib/fog/compute/digitalocean/requests/get_image_details.rb'
111
+ - 'lib/fog/compute/digitalocean/requests/list_volumes.rb'
164
112
 
165
- # Offense count: 40
166
113
  # Cop supports --auto-correct.
167
- EmptyLiteral:
168
- Enabled: false
169
-
170
- # Offense count: 101
171
- # Configuration parameters: AlignWith, SupportedStyles.
172
- EndAlignment:
173
- Enabled: false
174
-
175
- # Offense count: 8
176
- Eval:
177
- Enabled: false
178
-
179
- # Offense count: 1
180
- EvenOdd:
181
- Enabled: false
182
-
183
- # Offense count: 7
184
- # Configuration parameters: Exclude.
185
- FileName:
186
- Enabled: false
187
-
188
- # Offense count: 175
189
- # Configuration parameters: EnforcedStyle, SupportedStyles.
190
- For:
191
- Enabled: false
192
-
193
- # Offense count: 16
194
- # Configuration parameters: EnforcedStyle, SupportedStyles.
195
- FormatString:
196
- Enabled: false
197
-
198
- # Offense count: 143
199
- # Configuration parameters: MinBodyLength.
200
- GuardClause:
201
- Enabled: false
202
-
203
- # Offense count: 27
204
- HandleExceptions:
205
- Enabled: false
206
-
207
- # Offense count: 21
208
- # Cop supports --auto-correct.
209
- # Configuration parameters: EnforcedStyle, SupportedStyles.
210
- HashSyntax:
211
- Enabled: false
212
-
213
- # Offense count: 486
214
- # Configuration parameters: MaxLineLength.
215
- IfUnlessModifier:
216
- Enabled: false
217
-
218
- # Offense count: 54
219
- # Cop supports --auto-correct.
220
- IndentArray:
221
- Enabled: false
222
-
223
- # Offense count: 990
224
- # Cop supports --auto-correct.
225
- # Configuration parameters: EnforcedStyle, SupportedStyles.
226
- IndentHash:
227
- Enabled: false
228
-
229
- # Offense count: 285
230
- # Cop supports --auto-correct.
231
- IndentationConsistency:
232
- Enabled: false
233
-
234
- # Offense count: 310
235
- # Cop supports --auto-correct.
236
- IndentationWidth:
237
- Enabled: false
238
-
239
- # Offense count: 7
240
- Lambda:
241
- Enabled: false
242
-
243
- # Offense count: 655
244
- # Cop supports --auto-correct.
245
- LeadingCommentSpace:
246
- Enabled: false
247
-
248
- # Offense count: 10
249
- # Cop supports --auto-correct.
250
- LineEndConcatenation:
251
- Enabled: false
252
-
253
- # Offense count: 6
254
- Loop:
255
- Enabled: false
256
-
257
- # Offense count: 66
258
- # Cop supports --auto-correct.
259
- MethodCallParentheses:
260
- Enabled: false
261
-
262
- # Offense count: 87
263
- # Cop supports --auto-correct.
264
- # Configuration parameters: EnforcedStyle, SupportedStyles.
265
- MethodDefParentheses:
266
- Enabled: false
267
-
268
- # Offense count: 2036
269
- # Configuration parameters: CountComments.
270
- MethodLength:
271
- Max: 1129
272
-
273
- # Offense count: 13
274
- # Configuration parameters: EnforcedStyle, SupportedStyles.
275
- MethodName:
276
- Enabled: false
114
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
115
+ # SupportedStyles: special_inside_parentheses, consistent, align_braces
116
+ Layout/IndentHash:
117
+ Exclude:
118
+ - '.irbrc'
119
+ - 'lib/fog/compute/digitalocean/requests/attach_volume.rb'
120
+ - 'lib/fog/compute/digitalocean/requests/detach_volume.rb'
121
+ - 'lib/fog/compute/digitalocean/requests/get_image_details.rb'
122
+ - 'lib/fog/compute/digitalocean/requests/list_servers.rb'
123
+ - 'lib/fog/compute/digitalocean/requests/list_volumes.rb'
124
+ - 'tests/helpers/mock_helper.rb'
125
+
126
+ # Cop supports --auto-correct.
127
+ # Configuration parameters: EnforcedStyle.
128
+ # SupportedStyles: normal, rails
129
+ Layout/IndentationConsistency:
130
+ Exclude:
131
+ - 'lib/fog/compute/digitalocean/requests/attach_volume.rb'
132
+ - 'lib/fog/compute/digitalocean/requests/detach_volume.rb'
133
+ - 'lib/fog/compute/digitalocean/requests/list_volumes.rb'
134
+ - 'lib/fog/compute/digitalocean/requests/resize_volume.rb'
135
+
136
+ # Cop supports --auto-correct.
137
+ # Configuration parameters: Width, IgnoredPatterns.
138
+ Layout/IndentationWidth:
139
+ Exclude:
140
+ - 'lib/fog/compute/digitalocean/requests/attach_volume.rb'
141
+ - 'lib/fog/compute/digitalocean/requests/resize_volume.rb'
142
+
143
+ # Cop supports --auto-correct.
144
+ Layout/LeadingBlankLines:
145
+ Exclude:
146
+ - 'tests/digitalocean/helper.rb'
147
+
148
+ # Cop supports --auto-correct.
149
+ Layout/LeadingCommentSpace:
150
+ Exclude:
151
+ - 'fog-digitalocean.gemspec'
152
+
153
+ # Cop supports --auto-correct.
154
+ # Configuration parameters: EnforcedStyle.
155
+ # SupportedStyles: symmetrical, new_line, same_line
156
+ Layout/MultilineHashBraceLayout:
157
+ Exclude:
158
+ - 'lib/fog/digitalocean/service.rb'
159
+
160
+ # Cop supports --auto-correct.
161
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
162
+ # SupportedStyles: aligned, indented
163
+ Layout/MultilineOperationIndentation:
164
+ Exclude:
165
+ - 'lib/fog/compute/digitalocean/requests/list_ssh_keys.rb'
166
+ - 'lib/fog/digitalocean/service.rb'
167
+
168
+ # Cop supports --auto-correct.
169
+ Layout/SpaceAfterComma:
170
+ Exclude:
171
+ - 'lib/fog/compute/digitalocean/requests/convert_to_snapshot.rb'
172
+
173
+ # Cop supports --auto-correct.
174
+ # Configuration parameters: EnforcedStyle.
175
+ # SupportedStyles: space, no_space
176
+ Layout/SpaceAroundEqualsInParameterDefault:
177
+ Exclude:
178
+ - 'lib/fog/compute/digitalocean.rb'
179
+ - 'lib/fog/compute/digitalocean/requests/create_volume.rb'
180
+ - 'lib/fog/digitalocean/service.rb'
181
+
182
+ # Cop supports --auto-correct.
183
+ # Configuration parameters: AllowForAlignment.
184
+ Layout/SpaceAroundOperators:
185
+ Exclude:
186
+ - 'lib/fog/compute/digitalocean/requests/create_server.rb'
187
+ - 'lib/fog/compute/digitalocean/requests/create_ssh_key.rb'
188
+ - 'lib/fog/compute/digitalocean/requests/create_volume.rb'
189
+ - 'lib/fog/compute/digitalocean/requests/detach_volume.rb'
190
+ - 'lib/fog/compute/digitalocean/requests/get_image_details.rb'
191
+ - 'lib/fog/compute/digitalocean/requests/get_server_details.rb'
192
+ - 'lib/fog/compute/digitalocean/requests/list_images.rb'
193
+ - 'lib/fog/compute/digitalocean/requests/list_servers.rb'
194
+ - 'lib/fog/compute/digitalocean/requests/list_volumes.rb'
195
+ - 'lib/fog/compute/digitalocean/requests/resize_volume.rb'
196
+ - 'lib/fog/compute/digitalocean/requests/update_ssh_key.rb'
197
+ - 'tests/digitalocean/requests/compute/server_tests.rb'
198
+
199
+ # Cop supports --auto-correct.
200
+ Layout/SpaceBeforeComma:
201
+ Exclude:
202
+ - '.irbrc'
203
+
204
+ # Cop supports --auto-correct.
205
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
206
+ # SupportedStyles: space, no_space, compact
207
+ # SupportedStylesForEmptyBrackets: space, no_space
208
+ Layout/SpaceInsideArrayLiteralBrackets:
209
+ Exclude:
210
+ - 'lib/fog/compute/digitalocean/requests/get_volume_details.rb'
211
+
212
+ # Cop supports --auto-correct.
213
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
214
+ # SupportedStyles: space, no_space
215
+ # SupportedStylesForEmptyBraces: space, no_space
216
+ Layout/SpaceInsideBlockBraces:
217
+ Exclude:
218
+ - 'tests/helpers/format_helper.rb'
219
+
220
+ # Cop supports --auto-correct.
221
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
222
+ # SupportedStyles: space, no_space, compact
223
+ # SupportedStylesForEmptyBraces: space, no_space
224
+ Layout/SpaceInsideHashLiteralBraces:
225
+ Exclude:
226
+ - 'lib/fog/compute/digitalocean/requests/attach_volume.rb'
227
+ - 'lib/fog/compute/digitalocean/requests/convert_to_snapshot.rb'
228
+ - 'lib/fog/compute/digitalocean/requests/detach_volume.rb'
229
+ - 'lib/fog/compute/digitalocean/requests/list_flavors.rb'
230
+ - 'lib/fog/compute/digitalocean/requests/list_regions.rb'
231
+ - 'lib/fog/compute/digitalocean/requests/resize_volume.rb'
232
+ - 'lib/fog/digitalocean/service.rb'
233
+ - 'tests/helpers/format_helper.rb'
234
+
235
+ # Cop supports --auto-correct.
236
+ # Configuration parameters: EnforcedStyle.
237
+ # SupportedStyles: space, no_space
238
+ Layout/SpaceInsideParens:
239
+ Exclude:
240
+ - 'tests/watchr.rb'
241
+
242
+ # Cop supports --auto-correct.
243
+ # Configuration parameters: IndentationWidth.
244
+ Layout/Tab:
245
+ Exclude:
246
+ - 'lib/fog/compute/digitalocean/requests/attach_volume.rb'
247
+ - 'lib/fog/compute/digitalocean/requests/detach_volume.rb'
248
+ - 'lib/fog/compute/digitalocean/requests/list_volumes.rb'
249
+ - 'lib/fog/compute/digitalocean/requests/resize_volume.rb'
250
+
251
+ # Cop supports --auto-correct.
252
+ # Configuration parameters: EnforcedStyle.
253
+ # SupportedStyles: final_newline, final_blank_line
254
+ Layout/TrailingBlankLines:
255
+ Exclude:
256
+ - 'lib/fog/bin/digitalocean.rb'
257
+ - 'lib/fog/compute/digitalocean/models/flavor.rb'
258
+ - 'lib/fog/compute/digitalocean/models/image.rb'
259
+ - 'lib/fog/compute/digitalocean/models/region.rb'
260
+ - 'lib/fog/compute/digitalocean/models/regions.rb'
261
+ - 'lib/fog/compute/digitalocean/requests/disable_backups.rb'
262
+ - 'lib/fog/digitalocean/service.rb'
263
+ - 'tests/digitalocean/requests/compute/list_flavors_tests.rb'
264
+ - 'tests/digitalocean/requests/compute/list_regions_tests.rb'
265
+
266
+ # Cop supports --auto-correct.
267
+ # Configuration parameters: AllowInHeredoc.
268
+ Layout/TrailingWhitespace:
269
+ Exclude:
270
+ - 'lib/fog/compute/digitalocean/models/images.rb'
271
+ - 'lib/fog/compute/digitalocean/models/servers.rb'
272
+ - 'lib/fog/compute/digitalocean/models/volumes.rb'
273
+ - 'lib/fog/compute/digitalocean/requests/create_volume.rb'
277
274
 
278
- # Offense count: 21
279
- MultilineBlockChain:
280
- Enabled: false
281
-
282
- # Offense count: 66
283
- MultilineIfThen:
284
- Enabled: false
285
-
286
- # Offense count: 13
287
- MultilineTernaryOperator:
288
- Enabled: false
289
-
290
- # Offense count: 85
291
- # Cop supports --auto-correct.
292
- NegatedIf:
293
- Enabled: false
294
-
295
- # Offense count: 2
296
- # Cop supports --auto-correct.
297
- NegatedWhile:
298
- Enabled: false
299
-
300
- # Offense count: 121
301
- # Configuration parameters: EnforcedStyle, SupportedStyles.
302
- Next:
303
- Enabled: false
304
-
305
- # Offense count: 28
306
- # Cop supports --auto-correct.
307
- NilComparison:
308
- Enabled: false
309
-
310
- # Offense count: 89
311
- # Cop supports --auto-correct.
312
- # Configuration parameters: IncludeSemanticChanges.
313
- NonNilCheck:
314
- Enabled: false
315
-
316
- # Offense count: 56
317
- # Cop supports --auto-correct.
318
- Not:
319
- Enabled: false
320
-
321
- # Offense count: 220
322
- # Cop supports --auto-correct.
323
- NumericLiterals:
324
- MinDigits: 14
325
-
326
- # Offense count: 3
327
- OneLineConditional:
328
- Enabled: false
329
-
330
- # Offense count: 33
331
- # Configuration parameters: CountKeywordArgs.
332
- ParameterLists:
333
- Max: 9
334
-
335
- # Offense count: 63
336
- # Cop supports --auto-correct.
337
275
  # Configuration parameters: AllowSafeAssignment.
338
- ParenthesesAroundCondition:
339
- Enabled: false
340
-
341
- # Offense count: 17
342
- ParenthesesAsGroupedExpression:
343
- Enabled: false
276
+ Lint/AssignmentInCondition:
277
+ Exclude:
278
+ - 'lib/fog/compute/digitalocean/models/paging_collection.rb'
344
279
 
345
- # Offense count: 189
346
- # Cop supports --auto-correct.
347
- # Configuration parameters: PreferredDelimiters.
348
- PercentLiteralDelimiters:
349
- Enabled: false
280
+ Lint/HandleExceptions:
281
+ Exclude:
282
+ - '.irbrc'
350
283
 
351
- # Offense count: 24
352
284
  # Cop supports --auto-correct.
353
- PerlBackrefs:
354
- Enabled: false
355
-
356
- # Offense count: 8
357
- # Configuration parameters: NamePrefixBlacklist.
358
- PredicateName:
359
- Enabled: false
285
+ Lint/StringConversionInInterpolation:
286
+ Exclude:
287
+ - 'tests/digitalocean/requests/compute/server_tests.rb'
360
288
 
361
- # Offense count: 7
362
289
  # Cop supports --auto-correct.
363
- Proc:
290
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
291
+ Lint/UnusedMethodArgument:
364
292
  Enabled: false
365
293
 
366
- # Offense count: 640
367
- # Configuration parameters: EnforcedStyle, SupportedStyles.
368
- RaiseArgs:
369
- Enabled: false
294
+ Lint/UselessAssignment:
295
+ Exclude:
296
+ - 'tests/watchr.rb'
370
297
 
371
- # Offense count: 25
372
- # Cop supports --auto-correct.
373
- RedundantBegin:
374
- Enabled: false
298
+ Metrics/AbcSize:
299
+ Max: 23
375
300
 
376
- # Offense count: 4
377
- RedundantException:
378
- Enabled: false
301
+ # Configuration parameters: CountComments, ExcludedMethods.
302
+ # ExcludedMethods: refine
303
+ Metrics/BlockLength:
304
+ Max: 64
379
305
 
380
- # Offense count: 32
381
- # Cop supports --auto-correct.
382
- # Configuration parameters: AllowMultipleReturnValues.
383
- RedundantReturn:
384
- Enabled: false
385
-
386
- # Offense count: 1939
387
- # Cop supports --auto-correct.
388
- RedundantSelf:
389
- Enabled: false
306
+ # Configuration parameters: CountComments.
307
+ Metrics/ClassLength:
308
+ Max: 126
390
309
 
391
- # Offense count: 66
392
- # Configuration parameters: MaxSlashes.
393
- RegexpLiteral:
394
- Enabled: false
310
+ # Configuration parameters: CountComments.
311
+ Metrics/MethodLength:
312
+ Max: 108
395
313
 
396
- # Offense count: 1
397
- RequireParentheses:
398
- Enabled: false
314
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
315
+ # AllowedNames: io, id, to, by, on, in, at, ip
316
+ Naming/UncommunicativeMethodParamName:
317
+ Exclude:
318
+ - 'lib/fog/compute/digitalocean/requests/destroy_server.rb'
319
+ - 'lib/fog/compute/digitalocean/requests/get_server_details.rb'
320
+ - 'lib/fog/compute/digitalocean/requests/get_ssh_key.rb'
321
+ - 'lib/fog/compute/digitalocean/requests/get_volume_details.rb'
399
322
 
400
- # Offense count: 5
401
323
  # Cop supports --auto-correct.
402
- RescueException:
403
- Enabled: false
404
-
405
- # Offense count: 52
406
- RescueModifier:
407
- Enabled: false
408
-
409
- # Offense count: 29
410
- SelfAssignment:
411
- Enabled: false
324
+ # Configuration parameters: MaxKeyValuePairs.
325
+ Performance/RedundantMerge:
326
+ Exclude:
327
+ - '.irbrc'
412
328
 
413
- # Offense count: 62
414
329
  # Cop supports --auto-correct.
415
- # Configuration parameters: AllowAsExpressionSeparator.
416
- Semicolon:
417
- Enabled: false
330
+ # Configuration parameters: EnforcedStyle.
331
+ # SupportedStyles: braces, no_braces, context_dependent
332
+ Style/BracesAroundHashParameters:
333
+ Exclude:
334
+ - '.irbrc'
335
+ - 'lib/fog/digitalocean/service.rb'
336
+ - 'tests/digitalocean/requests/compute/create_volume_tests.rb'
418
337
 
419
- # Offense count: 78
420
- ShadowingOuterLocalVariable:
421
- Enabled: false
338
+ Style/ClassVars:
339
+ Exclude:
340
+ - 'lib/fog/bin/digitalocean.rb'
422
341
 
423
- # Offense count: 2
424
342
  # Cop supports --auto-correct.
425
- # Configuration parameters: EnforcedStyle, SupportedStyles.
426
- SignalException:
427
- Enabled: false
343
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
344
+ # SupportedStyles: assign_to_condition, assign_inside_condition
345
+ Style/ConditionalAssignment:
346
+ Exclude:
347
+ - 'tests/helpers/format_helper.rb'
428
348
 
429
- # Offense count: 10
430
- # Configuration parameters: Methods.
431
- SingleLineBlockParams:
349
+ Style/Documentation:
432
350
  Enabled: false
433
351
 
434
- # Offense count: 9
435
- # Cop supports --auto-correct.
436
- # Configuration parameters: AllowIfMethodIsEmpty.
437
- SingleLineMethods:
438
- Enabled: false
352
+ Style/DoubleNegation:
353
+ Exclude:
354
+ - 'lib/fog/compute/digitalocean/requests/create_server.rb'
355
+ - 'tests/helpers/succeeds_helper.rb'
439
356
 
440
- # Offense count: 909
441
357
  # Cop supports --auto-correct.
442
- SingleSpaceBeforeFirstArg:
443
- Enabled: false
358
+ Style/EmptyLiteral:
359
+ Exclude:
360
+ - '.irbrc'
444
361
 
445
- # Offense count: 4
446
362
  # Cop supports --auto-correct.
447
- SpaceAfterColon:
448
- Enabled: false
363
+ Style/ExpandPathArguments:
364
+ Exclude:
365
+ - 'fog-digitalocean.gemspec'
366
+ - 'lib/fog/compute/digitalocean.rb'
367
+ - 'lib/fog/digitalocean.rb'
368
+ - 'tests/helper.rb'
449
369
 
450
- # Offense count: 581
451
- # Cop supports --auto-correct.
452
- SpaceAfterComma:
453
- Enabled: false
370
+ # Configuration parameters: AllowedVariables.
371
+ Style/GlobalVars:
372
+ Exclude:
373
+ - '.irbrc'
454
374
 
455
- # Offense count: 15
456
- # Cop supports --auto-correct.
457
- SpaceAfterControlKeyword:
458
- Enabled: false
375
+ # Configuration parameters: MinBodyLength.
376
+ Style/GuardClause:
377
+ Exclude:
378
+ - 'lib/fog/compute/digitalocean/models/paging_collection.rb'
379
+ - 'lib/fog/compute/digitalocean/models/server.rb'
459
380
 
460
- # Offense count: 1
461
381
  # Cop supports --auto-correct.
462
- SpaceAfterMethodName:
463
- Enabled: false
382
+ # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
383
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
384
+ Style/HashSyntax:
385
+ Exclude:
386
+ - 'Gemfile'
387
+ - 'lib/fog/compute/digitalocean.rb'
388
+ - 'lib/fog/compute/digitalocean/models/paging_collection.rb'
389
+ - 'lib/fog/compute/digitalocean/requests/attach_volume.rb'
390
+ - 'lib/fog/compute/digitalocean/requests/detach_volume.rb'
391
+ - 'lib/fog/compute/digitalocean/requests/resize_volume.rb'
392
+ - 'tests/digitalocean/requests/compute/create_volume_tests.rb'
464
393
 
465
- # Offense count: 19
466
394
  # Cop supports --auto-correct.
467
- SpaceAfterNot:
468
- Enabled: false
395
+ Style/IfUnlessModifier:
396
+ Exclude:
397
+ - 'lib/fog/compute/digitalocean.rb'
398
+ - 'lib/fog/compute/digitalocean/models/paging_collection.rb'
399
+ - 'tests/helpers/mock_helper.rb'
469
400
 
470
- # Offense count: 1332
471
401
  # Cop supports --auto-correct.
472
- # Configuration parameters: EnforcedStyle, SupportedStyles.
473
- SpaceAroundEqualsInParameterDefault:
474
- Enabled: false
402
+ # Configuration parameters: InverseMethods, InverseBlocks.
403
+ Style/InverseMethods:
404
+ Exclude:
405
+ - 'lib/fog/compute/digitalocean/requests/delete_ssh_key.rb'
406
+ - 'lib/fog/compute/digitalocean/requests/destroy_volume.rb'
475
407
 
476
- # Offense count: 4362
477
408
  # Cop supports --auto-correct.
478
- SpaceAroundOperators:
479
- Enabled: false
409
+ Style/MutableConstant:
410
+ Exclude:
411
+ - 'lib/fog/digitalocean/version.rb'
480
412
 
481
- # Offense count: 441
482
413
  # Cop supports --auto-correct.
483
- # Configuration parameters: EnforcedStyle, SupportedStyles.
484
- SpaceBeforeBlockBraces:
485
- Enabled: false
414
+ # Configuration parameters: Strict.
415
+ Style/NumericLiterals:
416
+ MinDigits: 9
486
417
 
487
- # Offense count: 11
488
418
  # Cop supports --auto-correct.
489
- SpaceBeforeComment:
490
- Enabled: false
491
-
492
- # Offense count: 19
493
- SpaceBeforeFirstArg:
494
- Enabled: false
419
+ # Configuration parameters: PreferredDelimiters.
420
+ Style/PercentLiteralDelimiters:
421
+ Exclude:
422
+ - 'fog-digitalocean.gemspec'
423
+ - 'lib/fog/compute/digitalocean/requests/create_server.rb'
424
+ - 'lib/fog/compute/digitalocean/requests/get_server_details.rb'
425
+ - 'lib/fog/compute/digitalocean/requests/list_flavors.rb'
426
+ - 'lib/fog/compute/digitalocean/requests/list_images.rb'
427
+ - 'lib/fog/compute/digitalocean/requests/list_regions.rb'
495
428
 
496
- # Offense count: 1946
497
429
  # Cop supports --auto-correct.
498
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
499
- SpaceInsideBlockBraces:
500
- Enabled: false
430
+ # Configuration parameters: EnforcedStyle.
431
+ # SupportedStyles: compact, exploded
432
+ Style/RaiseArgs:
433
+ Exclude:
434
+ - 'lib/fog/compute/digitalocean/models/server.rb'
435
+ - 'lib/fog/compute/digitalocean/requests/get_image_details.rb'
501
436
 
502
- # Offense count: 146
503
437
  # Cop supports --auto-correct.
504
- SpaceInsideBrackets:
505
- Enabled: false
438
+ Style/RedundantSelf:
439
+ Exclude:
440
+ - 'lib/fog/compute/digitalocean/requests/delete_ssh_key.rb'
441
+ - 'lib/fog/compute/digitalocean/requests/destroy_volume.rb'
442
+ - 'lib/fog/compute/digitalocean/requests/list_servers.rb'
506
443
 
507
- # Offense count: 6159
508
444
  # Cop supports --auto-correct.
509
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
510
- SpaceInsideHashLiteralBraces:
511
- Enabled: false
445
+ Style/RescueModifier:
446
+ Exclude:
447
+ - 'tests/digitalocean/helper.rb'
512
448
 
513
- # Offense count: 720
514
449
  # Cop supports --auto-correct.
515
- SpaceInsideParens:
516
- Enabled: false
450
+ # Configuration parameters: EnforcedStyle.
451
+ # SupportedStyles: implicit, explicit
452
+ Style/RescueStandardError:
453
+ Exclude:
454
+ - '.irbrc'
517
455
 
518
- # Offense count: 3
519
456
  # Cop supports --auto-correct.
520
- SpecialGlobalVars:
521
- Enabled: false
457
+ # Configuration parameters: AllowAsExpressionSeparator.
458
+ Style/Semicolon:
459
+ Exclude:
460
+ - 'tests/digitalocean/helper.rb'
522
461
 
523
- # Offense count: 91
524
462
  # Cop supports --auto-correct.
525
- StringConversionInInterpolation:
463
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
464
+ # SupportedStyles: single_quotes, double_quotes
465
+ Style/StringLiterals:
526
466
  Enabled: false
527
467
 
528
- # Offense count: 45608
529
468
  # Cop supports --auto-correct.
530
- # Configuration parameters: EnforcedStyle, SupportedStyles.
531
- StringLiterals:
532
- Enabled: false
533
-
534
- # Offense count: 197
535
- Tab:
536
- Enabled: false
469
+ # Configuration parameters: MinSize.
470
+ # SupportedStyles: percent, brackets
471
+ Style/SymbolArray:
472
+ EnforcedStyle: brackets
537
473
 
538
- # Offense count: 592
539
- # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
540
- TrailingComma:
541
- Enabled: false
542
-
543
- # Offense count: 125
544
474
  # Cop supports --auto-correct.
545
- # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist.
546
- TrivialAccessors:
547
- Enabled: false
548
-
549
- # Offense count: 94
550
- UnderscorePrefixedVariableName:
551
- Enabled: false
552
-
553
- # Offense count: 42
554
- UnlessElse:
475
+ # Configuration parameters: EnforcedStyleForMultiline.
476
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
477
+ Style/TrailingCommaInArguments:
555
478
  Enabled: false
556
479
 
557
- # Offense count: 278
558
480
  # Cop supports --auto-correct.
559
- UnusedBlockArgument:
481
+ # Configuration parameters: EnforcedStyleForMultiline.
482
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
483
+ Style/TrailingCommaInHashLiteral:
560
484
  Enabled: false
561
485
 
562
- # Offense count: 1010
563
486
  # Cop supports --auto-correct.
564
- UnusedMethodArgument:
565
- Enabled: false
487
+ Style/UnneededInterpolation:
488
+ Exclude:
489
+ - 'lib/fog/digitalocean/service.rb'
566
490
 
567
- # Offense count: 6
568
- UselessAccessModifier:
569
- Enabled: false
570
-
571
- # Offense count: 405
572
- UselessAssignment:
573
- Enabled: false
574
-
575
- # Offense count: 3
576
- UselessSetterCall:
577
- Enabled: false
578
-
579
- # Offense count: 13
580
491
  # Cop supports --auto-correct.
581
- VariableInterpolation:
582
- Enabled: false
583
-
584
- # Offense count: 29
585
- # Configuration parameters: EnforcedStyle, SupportedStyles.
586
- VariableName:
587
- Enabled: false
588
-
589
- # Offense count: 23
590
- Void:
591
- Enabled: false
592
-
593
- # Offense count: 6
594
- # Cop supports --auto-correct.
595
- WhileUntilDo:
596
- Enabled: false
597
-
598
- # Offense count: 1
599
- # Configuration parameters: MaxLineLength.
600
- WhileUntilModifier:
601
- Enabled: false
492
+ Style/UnneededPercentQ:
493
+ Exclude:
494
+ - 'fog-digitalocean.gemspec'
602
495
 
603
- # Offense count: 521
604
496
  # Cop supports --auto-correct.
605
- WordArray:
606
- MinSize: 29
497
+ # Configuration parameters: WordRegex.
498
+ # SupportedStyles: percent, brackets
499
+ Style/WordArray:
500
+ EnforcedStyle: percent
501
+ MinSize: 10