Project

General

Profile

Download (16.7 KB) Statistics
| Branch: | Tag: | Revision:

foreman-docker / .rubocop_todo.yml @ ab3290b1

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.
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: **/*.gemspec
13
Gemspec/OrderedDependencies:
14
  Exclude:
15
    - 'foreman_docker.gemspec'
16

    
17
# Offense count: 8
18
# Cop supports --auto-correct.
19
# Configuration parameters: EnforcedHashRocketStyle, SupportedHashRocketStyles, EnforcedColonStyle, SupportedColonStyles, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
20
# SupportedHashRocketStyles: key, separator, table
21
# SupportedColonStyles: key, separator, table
22
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
23
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'
31

    
32
# Offense count: 16
33
# Cop supports --auto-correct.
34
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
35
# SupportedStyles: with_first_parameter, with_fixed_indentation
36
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'
41

    
42
# Offense count: 1
43
# Cop supports --auto-correct.
44
Layout/CommentIndentation:
45
  Exclude:
46
    - 'db/migrate/20160605134652_move_parameters_to_docker_parameters.rb'
47

    
48
# Offense count: 13
49
# Cop supports --auto-correct.
50
# Configuration parameters: EnforcedStyle, SupportedStyles.
51
# SupportedStyles: leading, trailing
52
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'
59

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

    
68
# Offense count: 3
69
# Cop supports --auto-correct.
70
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
71
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'
76

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

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

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

    
101
# Offense count: 7
102
# Cop supports --auto-correct.
103
# Configuration parameters: EnforcedStyle, SupportedStyles.
104
# SupportedStyles: symmetrical, new_line, same_line
105
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'
113

    
114
# Offense count: 17
115
# Cop supports --auto-correct.
116
# Configuration parameters: EnforcedStyle, SupportedStyles.
117
# SupportedStyles: symmetrical, new_line, same_line
118
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'
131

    
132
# Offense count: 41
133
# Cop supports --auto-correct.
134
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
135
# SupportedStyles: aligned, indented, indented_relative_to_receiver
136
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'
153

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

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

    
171
# Offense count: 1
172
# Cop supports --auto-correct.
173
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
174
# SupportedStyles: space, no_space
175
# SupportedStylesForEmptyBraces: space, no_space
176
Layout/SpaceInsideBlockBraces:
177
  Exclude:
178
    - 'test/functionals/image_search_controller_test.rb'
179

    
180
# Offense count: 12
181
# Cop supports --auto-correct.
182
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
183
# SupportedStyles: space, no_space, compact
184
# SupportedStylesForEmptyBraces: space, no_space
185
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'
193

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

    
203
# Offense count: 1
204
# Cop supports --auto-correct.
205
Layout/TrailingWhitespace:
206
  Exclude:
207
    - 'app/controllers/containers/steps_controller.rb'
208

    
209
# Offense count: 1
210
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'
224

    
225
# Offense count: 1
226
# Cop supports --auto-correct.
227
Lint/UnifiedInteger:
228
  Exclude:
229
    - 'app/controllers/api/v2/containers_controller.rb'
230

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

    
238
# Offense count: 1
239
# Cop supports --auto-correct.
240
Lint/UriRegexp:
241
  Exclude:
242
    - 'app/models/foreman_docker/docker.rb'
243

    
244
# Offense count: 15
245
Metrics/AbcSize:
246
  Max: 30
247

    
248
# Offense count: 19
249
# Configuration parameters: CountComments, ExcludedMethods.
250
Metrics/BlockLength:
251
  Max: 130
252

    
253
# Offense count: 3
254
# Configuration parameters: CountComments.
255
Metrics/ClassLength:
256
  Max: 172
257

    
258
# Offense count: 205
259
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
260
# URISchemes: http, https
261
Metrics/LineLength:
262
  Max: 181
263

    
264
# Offense count: 19
265
# Configuration parameters: CountComments.
266
Metrics/MethodLength:
267
  Max: 23
268

    
269
# Offense count: 1
270
# Cop supports --auto-correct.
271
# Configuration parameters: AutoCorrect.
272
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'
289

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

    
298
# Offense count: 3
299
# Cop supports --auto-correct.
300
# Configuration parameters: Whitelist.
301
# Whitelist: find_by_sql
302
Rails/DynamicFindBy:
303
  Exclude:
304
    - 'app/controllers/containers_controller.rb'
305
    - 'app/helpers/containers_helper.rb'
306

    
307
# Offense count: 34
308
# Cop supports --auto-correct.
309
# 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'
317

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

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

    
332
# Offense count: 8
333
# Cop supports --auto-correct.
334
# Configuration parameters: EnforcedStyle, SupportedStyles.
335
# SupportedStyles: braces, no_braces, context_dependent
336
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'
343

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

    
351
# Offense count: 1
352
Style/ClassVars:
353
  Exclude:
354
    - 'app/models/service/registry_api.rb'
355

    
356
# Offense count: 1
357
# Cop supports --auto-correct.
358
Style/EmptyLiteral:
359
  Exclude:
360
    - 'test/units/image_search_service_test.rb'
361

    
362
# Offense count: 4
363
# Cop supports --auto-correct.
364
# Configuration parameters: EnforcedStyle, SupportedStyles.
365
# SupportedStyles: compact, expanded
366
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'
372

    
373
# Offense count: 8
374
# Cop supports --auto-correct.
375
# Configuration parameters: EnforcedStyle, SupportedStyles.
376
# SupportedStyles: format, sprintf, percent
377
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
387
Style/FormatStringToken:
388
  EnforcedStyle: template
389

    
390
# Offense count: 1
391
# Cop supports --auto-correct.
392
# Configuration parameters: MaxLineLength.
393
Style/IfUnlessModifier:
394
  Exclude:
395
    - 'app/models/service/containers.rb'
396

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

    
403
# Offense count: 1
404
Style/MultilineBlockChain:
405
  Exclude:
406
    - 'app/models/service/registry_api.rb'
407

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

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

    
425
# Offense count: 7
426
# Cop supports --auto-correct.
427
# Configuration parameters: PreferredDelimiters.
428
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'
437

    
438
# Offense count: 2
439
# Cop supports --auto-correct.
440
Style/RedundantParentheses:
441
  Exclude:
442
    - 'test/units/docker_registry_test.rb'
443

    
444
# Offense count: 3
445
# Cop supports --auto-correct.
446
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'
451

    
452
# Offense count: 3
453
# Cop supports --auto-correct.
454
# Configuration parameters: EnforcedStyle, SupportedStyles.
455
# SupportedStyles: only_raise, only_fail, semantic
456
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'
461

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

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

    
478
# Offense count: 1
479
# Cop supports --auto-correct.
480
Style/UnlessElse:
481
  Exclude:
482
    - 'app/services/foreman_docker/image_search.rb'
483

    
484
# Offense count: 4
485
# Cop supports --auto-correct.
486
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'
492

    
493
# Offense count: 6
494
# Cop supports --auto-correct.
495
# Configuration parameters: SupportedStyles, WordRegex.
496
# SupportedStyles: percent, brackets
497
Style/WordArray:
498
  EnforcedStyle: percent
499
  MinSize: 3
500

    
501
# Offense count: 2
502
# Cop supports --auto-correct.
503
Style/ZeroLengthPredicate:
504
  Exclude:
505
    - 'app/helpers/container_steps_helper.rb'
506
    - 'test/functionals/containers_steps_controller_test.rb'