Project

General

Profile

Revision fb471374

Added by Michael Moll about 4 years ago

Update to Rails 5.1

  • Fixes #21814 - Add Rails 5 migrations
  • Refs #22045 - update TargetRailsVersion for rubocop
  • Refs #22045 - use ApplicationRecord
  • Refs #22045 - stop using HttpPositionalArguments
  • Fixes #22046 - use rubocop 0.52

View differences:

.rubocop_todo.yml
1 1
# This configuration was generated by
2
# `rubocop --auto-gen-config`
3
# on 2017-12-10 18:09:07 +0100 using RuboCop version 0.51.0.
2
# `rubocop --auto-gen-config --exclude-limit 0`
3
# on 2017-12-20 21:47:32 +0100 using RuboCop version 0.52.0.
4 4
# The point is for the user to remove these configuration records
5 5
# one by one as the offenses are removed from the code base.
6 6
# Note that changes in the inspected code, or installation of new
......
11 11
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
12 12
# Include: **/*.gemspec
13 13
Gemspec/OrderedDependencies:
14
  Exclude:
15
    - 'foreman_docker.gemspec'
14
  Enabled: false
16 15

  
17 16
# Offense count: 8
18 17
# Cop supports --auto-correct.
19
# Configuration parameters: EnforcedHashRocketStyle, SupportedHashRocketStyles, EnforcedColonStyle, SupportedColonStyles, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
18
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
20 19
# SupportedHashRocketStyles: key, separator, table
21 20
# SupportedColonStyles: key, separator, table
22 21
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
23 22
Layout/AlignHash:
24
  Exclude:
25
    - 'app/models/docker_container_wizard_states/dns.rb'
26
    - 'app/models/docker_container_wizard_states/exposed_port.rb'
27
    - 'app/models/docker_registry.rb'
28
    - 'app/models/exposed_port.rb'
29
    - 'app/models/foreman_docker/dns.rb'
30
    - 'test/functionals/containers_steps_controller_test.rb'
23
  Enabled: false
31 24

  
32 25
# Offense count: 16
33 26
# Cop supports --auto-correct.
34
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
27
# Configuration parameters: EnforcedStyle, IndentationWidth.
35 28
# SupportedStyles: with_first_parameter, with_fixed_indentation
36 29
Layout/AlignParameters:
37
  Exclude:
38
    - 'test/functionals/containers_controller_test.rb'
39
    - 'test/functionals/image_search_controller_test.rb'
40
    - 'test/units/container_remover_test.rb'
30
  Enabled: false
41 31

  
42 32
# Offense count: 1
43 33
# Cop supports --auto-correct.
44 34
Layout/CommentIndentation:
45
  Exclude:
46
    - 'db/migrate/20160605134652_move_parameters_to_docker_parameters.rb'
35
  Enabled: false
47 36

  
48 37
# Offense count: 13
49 38
# Cop supports --auto-correct.
50
# Configuration parameters: EnforcedStyle, SupportedStyles.
39
# Configuration parameters: EnforcedStyle.
51 40
# SupportedStyles: leading, trailing
52 41
Layout/DotPosition:
53
  Exclude:
54
    - 'app/models/service/containers.rb'
55
    - 'app/services/foreman_docker/container_remover.rb'
56
    - 'test/functionals/api/v2/containers_controller_test.rb'
57
    - 'test/functionals/containers_controller_test.rb'
58
    - 'test/units/container_remover_test.rb'
42
  Enabled: false
59 43

  
60 44
# Offense count: 1
61 45
# Cop supports --auto-correct.
62
# Configuration parameters: EnforcedStyle, SupportedStyles.
46
# Configuration parameters: EnforcedStyle.
63 47
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
64 48
Layout/EmptyLinesAroundClassBody:
65
  Exclude:
66
    - 'app/models/docker_container_wizard_states/environment.rb'
49
  Enabled: false
67 50

  
68 51
# Offense count: 3
69 52
# Cop supports --auto-correct.
70 53
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
71 54
Layout/ExtraSpacing:
72
  Exclude:
73
    - 'app/models/concerns/foreman_docker/parameter_validators.rb'
74
    - 'app/models/docker_container_wizard_states/exposed_port.rb'
75
    - 'db/migrate/20160605133025_create_docker_parameters.rb'
55
  Enabled: false
76 56

  
77 57
# Offense count: 4
78 58
# Cop supports --auto-correct.
79
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
59
# Configuration parameters: EnforcedStyle, IndentationWidth.
80 60
# SupportedStyles: special_inside_parentheses, consistent, align_braces
81 61
Layout/IndentHash:
82
  Exclude:
83
    - 'test/functionals/containers_steps_controller_test.rb'
62
  Enabled: false
84 63

  
85 64
# Offense count: 1
86 65
# Cop supports --auto-correct.
87 66
# Configuration parameters: Width, IgnoredPatterns.
88 67
Layout/IndentationWidth:
89
  Exclude:
90
    - 'db/migrate/20160605134652_move_parameters_to_docker_parameters.rb'
68
  Enabled: false
91 69

  
92 70
# Offense count: 2
93 71
# Cop supports --auto-correct.
94
# Configuration parameters: EnforcedStyle, SupportedStyles.
72
# Configuration parameters: EnforcedStyle.
95 73
# SupportedStyles: symmetrical, new_line, same_line
96 74
Layout/MultilineArrayBraceLayout:
97
  Exclude:
98
    - 'app/controllers/containers/steps_controller.rb'
99
    - 'lib/foreman_docker/engine.rb'
75
  Enabled: false
100 76

  
101 77
# Offense count: 7
102 78
# Cop supports --auto-correct.
103
# Configuration parameters: EnforcedStyle, SupportedStyles.
79
# Configuration parameters: EnforcedStyle.
104 80
# SupportedStyles: symmetrical, new_line, same_line
105 81
Layout/MultilineHashBraceLayout:
106
  Exclude:
107
    - 'app/controllers/api/v2/containers_controller.rb'
108
    - 'app/models/docker_container_wizard_state.rb'
109
    - 'app/models/docker_container_wizard_states/dns.rb'
110
    - 'app/models/foreman_docker/dns.rb'
111
    - 'test/functionals/containers_steps_controller_test.rb'
112
    - 'test/functionals/image_search_controller_test.rb'
82
  Enabled: false
113 83

  
114 84
# Offense count: 17
115 85
# Cop supports --auto-correct.
116
# Configuration parameters: EnforcedStyle, SupportedStyles.
86
# Configuration parameters: EnforcedStyle.
117 87
# SupportedStyles: symmetrical, new_line, same_line
118 88
Layout/MultilineMethodCallBraceLayout:
119
  Exclude:
120
    - 'app/controllers/api/v2/containers_controller.rb'
121
    - 'app/controllers/concerns/foreman/controller/parameters/docker_registry.rb'
122
    - 'app/controllers/containers/steps_controller.rb'
123
    - 'app/controllers/containers_controller.rb'
124
    - 'app/helpers/containers_helper.rb'
125
    - 'app/models/docker_container_wizard_states/preliminary.rb'
126
    - 'app/models/docker_registry.rb'
127
    - 'app/models/service/containers.rb'
128
    - 'test/functionals/containers_controller_test.rb'
129
    - 'test/units/container_remover_test.rb'
130
    - 'test/units/containers_service_test.rb'
89
  Enabled: false
131 90

  
132 91
# Offense count: 41
133 92
# Cop supports --auto-correct.
134
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
93
# Configuration parameters: EnforcedStyle, IndentationWidth.
135 94
# SupportedStyles: aligned, indented, indented_relative_to_receiver
136 95
Layout/MultilineMethodCallIndentation:
137
  Exclude:
138
    - 'app/controllers/api/v2/containers_controller.rb'
139
    - 'app/controllers/api/v2/registries_controller.rb'
140
    - 'app/controllers/concerns/foreman_docker/find_container.rb'
141
    - 'app/controllers/image_search_controller.rb'
142
    - 'app/controllers/registries_controller.rb'
143
    - 'app/helpers/container_steps_helper.rb'
144
    - 'app/helpers/containers_helper.rb'
145
    - 'app/models/service/containers.rb'
146
    - 'test/functionals/api/v2/containers_controller_test.rb'
147
    - 'test/functionals/containers_controller_test.rb'
148
    - 'test/functionals/containers_steps_controller_test.rb'
149
    - 'test/functionals/image_search_controller_test.rb'
150
    - 'test/units/containers_service_test.rb'
151
    - 'test/units/docker_registry_test.rb'
152
    - 'test/units/image_search_service_test.rb'
96
  Enabled: false
153 97

  
154 98
# Offense count: 4
155 99
# Cop supports --auto-correct.
156
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
100
# Configuration parameters: EnforcedStyle, IndentationWidth.
157 101
# SupportedStyles: aligned, indented
158 102
Layout/MultilineOperationIndentation:
159
  Exclude:
160
    - 'app/controllers/api/v2/containers_controller.rb'
161
    - 'app/controllers/containers_controller.rb'
103
  Enabled: false
162 104

  
163 105
# Offense count: 2
164 106
# Cop supports --auto-correct.
165 107
# Configuration parameters: AllowForAlignment.
166 108
Layout/SpaceAroundOperators:
167
  Exclude:
168
    - 'app/controllers/containers_controller.rb'
169
    - 'app/models/concerns/foreman_docker/parameter_validators.rb'
109
  Enabled: false
170 110

  
171 111
# Offense count: 1
172 112
# Cop supports --auto-correct.
173
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
113
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
174 114
# SupportedStyles: space, no_space
175 115
# SupportedStylesForEmptyBraces: space, no_space
176 116
Layout/SpaceInsideBlockBraces:
177
  Exclude:
178
    - 'test/functionals/image_search_controller_test.rb'
117
  Enabled: false
179 118

  
180 119
# Offense count: 12
181 120
# Cop supports --auto-correct.
182
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
121
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
183 122
# SupportedStyles: space, no_space, compact
184 123
# SupportedStylesForEmptyBraces: space, no_space
185 124
Layout/SpaceInsideHashLiteralBraces:
186
  Exclude:
187
    - 'app/models/service/registry_api.rb'
188
    - 'test/functionals/api/v2/containers_controller_test.rb'
189
    - 'test/functionals/containers_steps_controller_test.rb'
190
    - 'test/functionals/image_search_controller_test.rb'
191
    - 'test/test_plugin_helper.rb'
192
    - 'test/units/image_search_service_test.rb'
125
  Enabled: false
193 126

  
194 127
# Offense count: 2
195 128
# Cop supports --auto-correct.
196
# Configuration parameters: EnforcedStyle, SupportedStyles.
129
# Configuration parameters: EnforcedStyle.
197 130
# SupportedStyles: final_newline, final_blank_line
198 131
Layout/TrailingBlankLines:
199
  Exclude:
200
    - 'app/services/foreman_docker/image_search.rb'
201
    - 'app/views/api/v2/registries/main.json.rabl'
132
  Enabled: false
202 133

  
203 134
# Offense count: 1
204 135
# Cop supports --auto-correct.
205 136
Layout/TrailingWhitespace:
206
  Exclude:
207
    - 'app/controllers/containers/steps_controller.rb'
137
  Enabled: false
208 138

  
209 139
# Offense count: 1
210 140
Lint/AmbiguousRegexpLiteral:
211
  Exclude:
212
    - 'test/functionals/api/v2/containers_controller_test.rb'
213

  
214
# Offense count: 12
215
Lint/RescueWithoutErrorClass:
216
  Exclude:
217
    - 'Rakefile'
218
    - 'app/controllers/containers_controller.rb'
219
    - 'app/models/docker_registry.rb'
220
    - 'app/models/foreman_docker/docker.rb'
221
    - 'app/models/service/registry_api.rb'
222
    - 'app/services/foreman_docker/container_remover.rb'
223
    - 'lib/tasks/test.rake'
141
  Enabled: false
224 142

  
225 143
# Offense count: 1
226
# Cop supports --auto-correct.
227
Lint/UnifiedInteger:
228
  Exclude:
229
    - 'app/controllers/api/v2/containers_controller.rb'
144
# Configuration parameters: MaximumRangeSize.
145
Lint/MissingCopEnableDirective:
146
  Enabled: false
230 147

  
231 148
# Offense count: 1
232 149
# Cop supports --auto-correct.
233
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
234
Lint/UnusedMethodArgument:
235
  Exclude:
236
    - 'app/models/foreman_docker/docker.rb'
150
Lint/UnifiedInteger:
151
  Enabled: false
237 152

  
238 153
# Offense count: 1
239 154
# Cop supports --auto-correct.
240 155
Lint/UriRegexp:
241
  Exclude:
242
    - 'app/models/foreman_docker/docker.rb'
156
  Enabled: false
243 157

  
244
# Offense count: 15
158
# Offense count: 16
245 159
Metrics/AbcSize:
246 160
  Max: 30
247 161

  
......
253 167
# Offense count: 3
254 168
# Configuration parameters: CountComments.
255 169
Metrics/ClassLength:
256
  Max: 172
170
  Max: 170
257 171

  
258
# Offense count: 205
172
# Offense count: 220
259 173
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
260 174
# URISchemes: http, https
261 175
Metrics/LineLength:
262
  Max: 181
176
  Max: 200
263 177

  
264 178
# Offense count: 19
265 179
# Configuration parameters: CountComments.
......
270 184
# Cop supports --auto-correct.
271 185
# Configuration parameters: AutoCorrect.
272 186
Performance/HashEachMethods:
273
  Exclude:
274
    - 'app/services/foreman_docker/image_search.rb'
275

  
276
# Offense count: 10
277
# Cop supports --auto-correct.
278
Rails/ApplicationRecord:
279
  Exclude:
280
    - 'app/models/container.rb'
281
    - 'app/models/docker_container_wizard_state.rb'
282
    - 'app/models/docker_container_wizard_states/configuration.rb'
283
    - 'app/models/docker_container_wizard_states/environment.rb'
284
    - 'app/models/docker_container_wizard_states/image.rb'
285
    - 'app/models/docker_container_wizard_states/preliminary.rb'
286
    - 'app/models/docker_parameter.rb'
287
    - 'app/models/docker_registry.rb'
288
    - 'db/migrate/20160605134652_move_parameters_to_docker_parameters.rb'
187
  Enabled: false
289 188

  
290 189
# Offense count: 2
291 190
# Cop supports --auto-correct.
292 191
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
293 192
Rails/Blank:
294
  Exclude:
295
    - 'app/models/service/containers.rb'
296
    - 'app/services/foreman_docker/utility.rb'
193
  Enabled: false
297 194

  
298 195
# Offense count: 3
299 196
# Cop supports --auto-correct.
300 197
# Configuration parameters: Whitelist.
301 198
# Whitelist: find_by_sql
302 199
Rails/DynamicFindBy:
303
  Exclude:
304
    - 'app/controllers/containers_controller.rb'
305
    - 'app/helpers/containers_helper.rb'
200
  Enabled: false
306 201

  
307
# Offense count: 34
308
# Cop supports --auto-correct.
202
# Offense count: 5
309 203
# Configuration parameters: Include.
310
# Include: spec/**/*, test/**/*
311
Rails/HttpPositionalArguments:
312
  Exclude:
313
    - 'test/functionals/api/v2/containers_controller_test.rb'
314
    - 'test/functionals/api/v2/registries_controller_test.rb'
315
    - 'test/functionals/containers_controller_test.rb'
316
    - 'test/functionals/containers_steps_controller_test.rb'
204
# Include: app/models/**/*.rb
205
Rails/InverseOf:
206
  Enabled: false
207

  
208
# Offense count: 1
209
# Cop supports --auto-correct.
210
Rails/Presence:
211
  Enabled: false
317 212

  
318 213
# Offense count: 1
319 214
# Cop supports --auto-correct.
320 215
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
321 216
Rails/Present:
322
  Exclude:
323
    - 'app/models/docker_parameter.rb'
217
  Enabled: false
324 218

  
325 219
# Offense count: 2
326 220
# Configuration parameters: Blacklist.
327 221
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
328 222
Rails/SkipsModelValidations:
329
  Exclude:
330
    - 'db/migrate/20141209182008_remove_docker_tables.rb'
223
  Enabled: false
331 224

  
332 225
# Offense count: 8
333 226
# Cop supports --auto-correct.
334
# Configuration parameters: EnforcedStyle, SupportedStyles.
227
# Configuration parameters: EnforcedStyle.
335 228
# SupportedStyles: braces, no_braces, context_dependent
336 229
Style/BracesAroundHashParameters:
337
  Exclude:
338
    - 'app/models/service/registry_api.rb'
339
    - 'test/functionals/containers_steps_controller_test.rb'
340
    - 'test/functionals/image_search_controller_test.rb'
341
    - 'test/test_plugin_helper.rb'
342
    - 'test/units/image_search_service_test.rb'
230
  Enabled: false
343 231

  
344 232
# Offense count: 1
345
# Configuration parameters: EnforcedStyle, SupportedStyles.
233
# Configuration parameters: EnforcedStyle.
346 234
# SupportedStyles: nested, compact
347 235
Style/ClassAndModuleChildren:
348
  Exclude:
349
    - 'app/controllers/concerns/foreman/controller/parameters/docker_registry.rb'
236
  Enabled: false
350 237

  
351 238
# Offense count: 1
352 239
Style/ClassVars:
353
  Exclude:
354
    - 'app/models/service/registry_api.rb'
240
  Enabled: false
355 241

  
356 242
# Offense count: 1
357 243
# Cop supports --auto-correct.
358 244
Style/EmptyLiteral:
359
  Exclude:
360
    - 'test/units/image_search_service_test.rb'
245
  Enabled: false
361 246

  
362 247
# Offense count: 4
363 248
# Cop supports --auto-correct.
364
# Configuration parameters: EnforcedStyle, SupportedStyles.
249
# Configuration parameters: EnforcedStyle.
365 250
# SupportedStyles: compact, expanded
366 251
Style/EmptyMethod:
367
  Exclude:
368
    - 'app/controllers/api/v2/containers_controller.rb'
369
    - 'app/controllers/api/v2/registries_controller.rb'
370
    - 'app/controllers/containers_controller.rb'
371
    - 'app/controllers/registries_controller.rb'
252
  Enabled: false
372 253

  
373 254
# Offense count: 8
374 255
# Cop supports --auto-correct.
375
# Configuration parameters: EnforcedStyle, SupportedStyles.
256
# Configuration parameters: EnforcedStyle.
376 257
# SupportedStyles: format, sprintf, percent
377 258
Style/FormatString:
378
  Exclude:
379
    - 'app/controllers/containers_controller.rb'
380
    - 'app/helpers/containers_helper.rb'
381
    - 'app/models/concerns/fog_extensions/fogdocker/server.rb'
382
    - 'app/models/docker_container_wizard_states/image.rb'
383

  
384
# Offense count: 15
385
# Configuration parameters: SupportedStyles.
386
# SupportedStyles: annotated, template
259
  Enabled: false
260

  
261
# Offense count: 21
262
# Configuration parameters: EnforcedStyle.
263
# SupportedStyles: annotated, template, unannotated
387 264
Style/FormatStringToken:
388
  EnforcedStyle: template
265
  Enabled: false
389 266

  
390
# Offense count: 1
267
# Offense count: 4
391 268
# Cop supports --auto-correct.
392
# Configuration parameters: MaxLineLength.
393 269
Style/IfUnlessModifier:
394
  Exclude:
395
    - 'app/models/service/containers.rb'
270
  Enabled: false
396 271

  
397 272
# Offense count: 4
398 273
# Cop supports --auto-correct.
399 274
Style/LineEndConcatenation:
400
  Exclude:
401
    - 'app/controllers/api/v2/containers_controller.rb'
275
  Enabled: false
402 276

  
403 277
# Offense count: 1
404 278
Style/MultilineBlockChain:
405
  Exclude:
406
    - 'app/models/service/registry_api.rb'
279
  Enabled: false
407 280

  
408 281
# Offense count: 2
409 282
# Cop supports --auto-correct.
410 283
Style/MutableConstant:
411
  Exclude:
412
    - 'app/models/service/registry_api.rb'
413
    - 'lib/foreman_docker/version.rb'
284
  Enabled: false
414 285

  
415 286
# Offense count: 2
416 287
# Cop supports --auto-correct.
417
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
288
# Configuration parameters: AutoCorrect, EnforcedStyle.
418 289
# SupportedStyles: predicate, comparison
419 290
Style/NumericPredicate:
420
  Exclude:
421
    - 'spec/**/*'
422
    - 'app/helpers/container_steps_helper.rb'
423
    - 'test/functionals/containers_steps_controller_test.rb'
291
  Enabled: false
424 292

  
425 293
# Offense count: 7
426 294
# Cop supports --auto-correct.
427 295
# Configuration parameters: PreferredDelimiters.
428 296
Style/PercentLiteralDelimiters:
429
  Exclude:
430
    - 'app/controllers/api/v2/containers_controller.rb'
431
    - 'app/controllers/api/v2/registries_controller.rb'
432
    - 'app/models/docker_container_wizard_states/exposed_port.rb'
433
    - 'app/models/exposed_port.rb'
434
    - 'app/models/foreman_docker/taxonomy_extensions.rb'
435
    - 'test/functionals/api/v2/containers_controller_test.rb'
436
    - 'test/functionals/api/v2/registries_controller_test.rb'
297
  Enabled: false
437 298

  
438 299
# Offense count: 2
439 300
# Cop supports --auto-correct.
440 301
Style/RedundantParentheses:
441
  Exclude:
442
    - 'test/units/docker_registry_test.rb'
302
  Enabled: false
443 303

  
444 304
# Offense count: 3
445 305
# Cop supports --auto-correct.
446 306
Style/RedundantSelf:
447
  Exclude:
448
    - 'app/models/concerns/foreman_docker/parameter_validators.rb'
449
    - 'app/models/docker_parameter.rb'
450
    - 'app/services/foreman_docker/image_search.rb'
307
  Enabled: false
308

  
309
# Offense count: 12
310
# Cop supports --auto-correct.
311
# Configuration parameters: EnforcedStyle.
312
# SupportedStyles: implicit, explicit
313
Style/RescueStandardError:
314
  Enabled: false
451 315

  
452 316
# Offense count: 3
453 317
# Cop supports --auto-correct.
454
# Configuration parameters: EnforcedStyle, SupportedStyles.
318
# Configuration parameters: EnforcedStyle.
455 319
# SupportedStyles: only_raise, only_fail, semantic
456 320
Style/SignalException:
457
  Exclude:
458
    - 'app/models/service/containers.rb'
459
    - 'app/services/foreman_docker/utility.rb'
460
    - 'db/migrate/20141209182008_remove_docker_tables.rb'
321
  Enabled: false
461 322

  
462 323
# Offense count: 29
463 324
# Cop supports --auto-correct.
464
# Configuration parameters: MinSize, SupportedStyles.
325
# Configuration parameters: MinSize.
465 326
# SupportedStyles: percent, brackets
466 327
Style/SymbolArray:
467 328
  EnforcedStyle: brackets
468 329

  
469 330
# Offense count: 2
470 331
# Cop supports --auto-correct.
471
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
332
# Configuration parameters: EnforcedStyleForMultiline.
472 333
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
473 334
Style/TrailingCommaInLiteral:
474
  Exclude:
475
    - 'app/models/docker_container_wizard_states/image.rb'
476
    - 'test/functionals/containers_steps_controller_test.rb'
335
  Enabled: false
477 336

  
478 337
# Offense count: 1
479 338
# Cop supports --auto-correct.
480 339
Style/UnlessElse:
481
  Exclude:
482
    - 'app/services/foreman_docker/image_search.rb'
340
  Enabled: false
483 341

  
484 342
# Offense count: 4
485 343
# Cop supports --auto-correct.
486 344
Style/UnneededInterpolation:
487
  Exclude:
488
    - 'app/models/container.rb'
489
    - 'app/models/docker_container_wizard_states/image.rb'
490
    - 'app/models/service/registry_api.rb'
491
    - 'release/changelog'
345
  Enabled: false
492 346

  
493 347
# Offense count: 6
494 348
# Cop supports --auto-correct.
495
# Configuration parameters: SupportedStyles, WordRegex.
349
# Configuration parameters: WordRegex.
496 350
# SupportedStyles: percent, brackets
497 351
Style/WordArray:
498 352
  EnforcedStyle: percent
......
501 355
# Offense count: 2
502 356
# Cop supports --auto-correct.
503 357
Style/ZeroLengthPredicate:
504
  Exclude:
505
    - 'app/helpers/container_steps_helper.rb'
506
    - 'test/functionals/containers_steps_controller_test.rb'
358
  Enabled: false

Also available in: Unified diff