Project

General

Profile

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

foreman_docker / .rubocop_todo.yml @ 27a7d2c4

1
# This configuration was generated by
2
# `rubocop --auto-gen-config`
3
# on 2017-06-08 13:13:45 +0200 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: 8
10
# Cop supports --auto-correct.
11
# Configuration parameters: EnforcedHashRocketStyle, SupportedHashRocketStyles, EnforcedColonStyle, SupportedColonStyles, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
12
# SupportedHashRocketStyles: key, separator, table
13
# SupportedColonStyles: key, separator, table
14
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
15
Layout/AlignHash:
16
  Exclude:
17
    - 'app/models/docker_container_wizard_states/dns.rb'
18
    - 'app/models/docker_container_wizard_states/exposed_port.rb'
19
    - 'app/models/docker_registry.rb'
20
    - 'app/models/exposed_port.rb'
21
    - 'app/models/foreman_docker/dns.rb'
22
    - 'test/functionals/containers_steps_controller_test.rb'
23

    
24
# Offense count: 20
25
# Cop supports --auto-correct.
26
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
27
# SupportedStyles: with_first_parameter, with_fixed_indentation
28
Layout/AlignParameters:
29
  Exclude:
30
    - 'test/functionals/containers_controller_test.rb'
31
    - 'test/functionals/image_search_controller_test.rb'
32
    - 'test/units/container_remover_test.rb'
33

    
34
# Offense count: 1
35
# Cop supports --auto-correct.
36
Layout/CommentIndentation:
37
  Exclude:
38
    - 'db/migrate/20160605134652_move_parameters_to_docker_parameters.rb'
39

    
40
# Offense count: 13
41
# Cop supports --auto-correct.
42
# Configuration parameters: EnforcedStyle, SupportedStyles.
43
# SupportedStyles: leading, trailing
44
Layout/DotPosition:
45
  Exclude:
46
    - 'app/models/service/containers.rb'
47
    - 'app/services/foreman_docker/container_remover.rb'
48
    - 'test/functionals/api/v2/containers_controller_test.rb'
49
    - 'test/functionals/containers_controller_test.rb'
50
    - 'test/units/container_remover_test.rb'
51

    
52
# Offense count: 1
53
# Cop supports --auto-correct.
54
# Configuration parameters: EnforcedStyle, SupportedStyles.
55
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
56
Layout/EmptyLinesAroundClassBody:
57
  Exclude:
58
    - 'app/models/docker_container_wizard_states/environment.rb'
59

    
60
# Offense count: 5
61
# Cop supports --auto-correct.
62
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
63
Layout/ExtraSpacing:
64
  Exclude:
65
    - 'app/models/concerns/foreman_docker/parameter_validators.rb'
66
    - 'app/models/docker_container_wizard_states/exposed_port.rb'
67
    - 'db/migrate/20160605133025_create_docker_parameters.rb'
68
    - 'test/functionals/image_search_controller_test.rb'
69

    
70
# Offense count: 8
71
# Cop supports --auto-correct.
72
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
73
# SupportedStyles: special_inside_parentheses, consistent, align_braces
74
Layout/IndentHash:
75
  Exclude:
76
    - 'app/controllers/image_search_controller.rb'
77
    - 'test/functionals/containers_steps_controller_test.rb'
78

    
79
# Offense count: 1
80
# Cop supports --auto-correct.
81
# Configuration parameters: Width, IgnoredPatterns.
82
Layout/IndentationWidth:
83
  Exclude:
84
    - 'db/migrate/20160605134652_move_parameters_to_docker_parameters.rb'
85

    
86
# Offense count: 2
87
# Cop supports --auto-correct.
88
# Configuration parameters: EnforcedStyle, SupportedStyles.
89
# SupportedStyles: symmetrical, new_line, same_line
90
Layout/MultilineArrayBraceLayout:
91
  Exclude:
92
    - 'app/controllers/containers/steps_controller.rb'
93
    - 'lib/foreman_docker/engine.rb'
94

    
95
# Offense count: 7
96
# Cop supports --auto-correct.
97
# Configuration parameters: EnforcedStyle, SupportedStyles.
98
# SupportedStyles: symmetrical, new_line, same_line
99
Layout/MultilineHashBraceLayout:
100
  Exclude:
101
    - 'app/controllers/api/v2/containers_controller.rb'
102
    - 'app/models/docker_container_wizard_state.rb'
103
    - 'app/models/docker_container_wizard_states/dns.rb'
104
    - 'app/models/foreman_docker/dns.rb'
105
    - 'test/functionals/containers_steps_controller_test.rb'
106
    - 'test/functionals/image_search_controller_test.rb'
107

    
108
# Offense count: 17
109
# Cop supports --auto-correct.
110
# Configuration parameters: EnforcedStyle, SupportedStyles.
111
# SupportedStyles: symmetrical, new_line, same_line
112
Layout/MultilineMethodCallBraceLayout:
113
  Exclude:
114
    - 'app/controllers/api/v2/containers_controller.rb'
115
    - 'app/controllers/concerns/foreman/controller/parameters/docker_registry.rb'
116
    - 'app/controllers/containers/steps_controller.rb'
117
    - 'app/controllers/containers_controller.rb'
118
    - 'app/helpers/containers_helper.rb'
119
    - 'app/models/docker_container_wizard_states/preliminary.rb'
120
    - 'app/models/docker_registry.rb'
121
    - 'app/models/service/containers.rb'
122
    - 'test/functionals/containers_controller_test.rb'
123
    - 'test/units/container_remover_test.rb'
124
    - 'test/units/containers_service_test.rb'
125

    
126
# Offense count: 44
127
# Cop supports --auto-correct.
128
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
129
# SupportedStyles: aligned, indented, indented_relative_to_receiver
130
Layout/MultilineMethodCallIndentation:
131
  Exclude:
132
    - 'app/controllers/api/v2/containers_controller.rb'
133
    - 'app/controllers/api/v2/registries_controller.rb'
134
    - 'app/controllers/concerns/foreman_docker/find_container.rb'
135
    - 'app/controllers/image_search_controller.rb'
136
    - 'app/controllers/registries_controller.rb'
137
    - 'app/helpers/container_steps_helper.rb'
138
    - 'app/helpers/containers_helper.rb'
139
    - 'app/models/service/containers.rb'
140
    - 'test/functionals/api/v2/containers_controller_test.rb'
141
    - 'test/functionals/containers_controller_test.rb'
142
    - 'test/functionals/containers_steps_controller_test.rb'
143
    - 'test/functionals/image_search_controller_test.rb'
144
    - 'test/units/containers_service_test.rb'
145
    - 'test/units/docker_registry_test.rb'
146
    - 'test/units/image_search_service_test.rb'
147

    
148
# Offense count: 4
149
# Cop supports --auto-correct.
150
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
151
# SupportedStyles: aligned, indented
152
Layout/MultilineOperationIndentation:
153
  Exclude:
154
    - 'app/controllers/api/v2/containers_controller.rb'
155
    - 'app/controllers/containers_controller.rb'
156

    
157
# Offense count: 2
158
# Cop supports --auto-correct.
159
# Configuration parameters: AllowForAlignment.
160
Layout/SpaceAroundOperators:
161
  Exclude:
162
    - 'app/controllers/containers_controller.rb'
163
    - 'app/models/concerns/foreman_docker/parameter_validators.rb'
164

    
165
# Offense count: 1
166
# Cop supports --auto-correct.
167
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
168
# SupportedStyles: space, no_space
169
# SupportedStylesForEmptyBraces: space, no_space
170
Layout/SpaceInsideBlockBraces:
171
  Exclude:
172
    - 'test/functionals/image_search_controller_test.rb'
173

    
174
# Offense count: 11
175
# Cop supports --auto-correct.
176
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
177
# SupportedStyles: space, no_space, compact
178
# SupportedStylesForEmptyBraces: space, no_space
179
Layout/SpaceInsideHashLiteralBraces:
180
  Exclude:
181
    - 'app/models/service/registry_api.rb'
182
    - 'test/functionals/api/v2/containers_controller_test.rb'
183
    - 'test/functionals/containers_steps_controller_test.rb'
184
    - 'test/functionals/image_search_controller_test.rb'
185
    - 'test/test_plugin_helper.rb'
186
    - 'test/units/image_search_service_test.rb'
187

    
188
# Offense count: 2
189
# Cop supports --auto-correct.
190
# Configuration parameters: EnforcedStyle, SupportedStyles.
191
# SupportedStyles: final_newline, final_blank_line
192
Layout/TrailingBlankLines:
193
  Exclude:
194
    - 'app/services/foreman_docker/image_search.rb'
195
    - 'app/views/api/v2/registries/main.json.rabl'
196

    
197
# Offense count: 1
198
# Cop supports --auto-correct.
199
Layout/TrailingWhitespace:
200
  Exclude:
201
    - 'app/controllers/containers/steps_controller.rb'
202

    
203
# Offense count: 1
204
Lint/AmbiguousRegexpLiteral:
205
  Exclude:
206
    - 'test/functionals/api/v2/containers_controller_test.rb'
207

    
208
# Offense count: 1
209
# Cop supports --auto-correct.
210
Lint/UnifiedInteger:
211
  Exclude:
212
    - 'app/controllers/api/v2/containers_controller.rb'
213

    
214
# Offense count: 16
215
Metrics/AbcSize:
216
  Max: 30
217

    
218
# Offense count: 14
219
# Configuration parameters: CountComments, ExcludedMethods.
220
Metrics/BlockLength:
221
  Max: 130
222

    
223
# Offense count: 3
224
# Configuration parameters: CountComments.
225
Metrics/ClassLength:
226
  Max: 172
227

    
228
# Offense count: 198
229
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
230
# URISchemes: http, https
231
Metrics/LineLength:
232
  Max: 181
233

    
234
# Offense count: 21
235
# Configuration parameters: CountComments.
236
Metrics/MethodLength:
237
  Max: 23
238

    
239
# Offense count: 7
240
# Cop supports --auto-correct.
241
# Configuration parameters: EnforcedStyle, SupportedStyles, Include.
242
# SupportedStyles: action, filter
243
# Include: app/controllers/**/*.rb
244
Rails/ActionFilter:
245
  Exclude:
246
    - 'app/controllers/api/v2/containers_controller.rb'
247
    - 'app/controllers/api/v2/registries_controller.rb'
248
    - 'app/controllers/containers/steps_controller.rb'
249
    - 'app/controllers/containers_controller.rb'
250
    - 'app/controllers/registries_controller.rb'
251

    
252
# Offense count: 10
253
# Cop supports --auto-correct.
254
Rails/ApplicationRecord:
255
  Exclude:
256
    - 'app/models/container.rb'
257
    - 'app/models/docker_container_wizard_state.rb'
258
    - 'app/models/docker_container_wizard_states/configuration.rb'
259
    - 'app/models/docker_container_wizard_states/environment.rb'
260
    - 'app/models/docker_container_wizard_states/image.rb'
261
    - 'app/models/docker_container_wizard_states/preliminary.rb'
262
    - 'app/models/docker_parameter.rb'
263
    - 'app/models/docker_registry.rb'
264
    - 'db/migrate/20160605134652_move_parameters_to_docker_parameters.rb'
265

    
266
# Offense count: 2
267
# Cop supports --auto-correct.
268
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
269
Rails/Blank:
270
  Exclude:
271
    - 'app/models/service/containers.rb'
272
    - 'app/services/foreman_docker/utility.rb'
273

    
274
# Offense count: 3
275
# Cop supports --auto-correct.
276
# Configuration parameters: Whitelist.
277
# Whitelist: find_by_sql
278
Rails/DynamicFindBy:
279
  Exclude:
280
    - 'app/controllers/containers_controller.rb'
281
    - 'app/helpers/containers_helper.rb'
282

    
283
# Offense count: 34
284
# Cop supports --auto-correct.
285
# Configuration parameters: Include.
286
# Include: spec/**/*, test/**/*
287
Rails/HttpPositionalArguments:
288
  Exclude:
289
    - 'test/functionals/api/v2/containers_controller_test.rb'
290
    - 'test/functionals/api/v2/registries_controller_test.rb'
291
    - 'test/functionals/containers_controller_test.rb'
292
    - 'test/functionals/containers_steps_controller_test.rb'
293

    
294
# Offense count: 3
295
# Cop supports --auto-correct.
296
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
297
Rails/Present:
298
  Exclude:
299
    - 'app/models/docker_parameter.rb'
300
    - 'app/models/service/registry_api.rb'
301

    
302
# Offense count: 2
303
# Configuration parameters: Blacklist.
304
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
305
Rails/SkipsModelValidations:
306
  Exclude:
307
    - 'db/migrate/20141209182008_remove_docker_tables.rb'
308

    
309
# Offense count: 9
310
# Cop supports --auto-correct.
311
# Configuration parameters: EnforcedStyle, SupportedStyles.
312
# SupportedStyles: braces, no_braces, context_dependent
313
Style/BracesAroundHashParameters:
314
  Exclude:
315
    - 'app/controllers/image_search_controller.rb'
316
    - 'app/models/service/registry_api.rb'
317
    - 'test/functionals/containers_steps_controller_test.rb'
318
    - 'test/functionals/image_search_controller_test.rb'
319
    - 'test/test_plugin_helper.rb'
320
    - 'test/units/image_search_service_test.rb'
321

    
322
# Offense count: 1
323
# Configuration parameters: EnforcedStyle, SupportedStyles.
324
# SupportedStyles: nested, compact
325
Style/ClassAndModuleChildren:
326
  Exclude:
327
    - 'app/controllers/concerns/foreman/controller/parameters/docker_registry.rb'
328

    
329
# Offense count: 1
330
Style/ClassVars:
331
  Exclude:
332
    - 'app/models/service/registry_api.rb'
333

    
334
# Offense count: 1
335
# Cop supports --auto-correct.
336
Style/EmptyLiteral:
337
  Exclude:
338
    - 'test/units/image_search_service_test.rb'
339

    
340
# Offense count: 4
341
# Cop supports --auto-correct.
342
# Configuration parameters: EnforcedStyle, SupportedStyles.
343
# SupportedStyles: compact, expanded
344
Style/EmptyMethod:
345
  Exclude:
346
    - 'app/controllers/api/v2/containers_controller.rb'
347
    - 'app/controllers/api/v2/registries_controller.rb'
348
    - 'app/controllers/containers_controller.rb'
349
    - 'app/controllers/registries_controller.rb'
350

    
351
# Offense count: 8
352
# Cop supports --auto-correct.
353
# Configuration parameters: EnforcedStyle, SupportedStyles.
354
# SupportedStyles: format, sprintf, percent
355
Style/FormatString:
356
  Exclude:
357
    - 'app/controllers/containers_controller.rb'
358
    - 'app/helpers/containers_helper.rb'
359
    - 'app/models/concerns/fog_extensions/fogdocker/server.rb'
360
    - 'app/models/docker_container_wizard_states/image.rb'
361

    
362
# Offense count: 15
363
# Configuration parameters: SupportedStyles.
364
# SupportedStyles: annotated, template
365
Style/FormatStringToken:
366
  EnforcedStyle: template
367

    
368
# Offense count: 1
369
# Cop supports --auto-correct.
370
# Configuration parameters: MaxLineLength.
371
Style/IfUnlessModifier:
372
  Exclude:
373
    - 'app/models/service/containers.rb'
374

    
375
# Offense count: 4
376
# Cop supports --auto-correct.
377
Style/LineEndConcatenation:
378
  Exclude:
379
    - 'app/controllers/api/v2/containers_controller.rb'
380

    
381
# Offense count: 1
382
Style/MultilineBlockChain:
383
  Exclude:
384
    - 'app/models/service/registry_api.rb'
385

    
386
# Offense count: 2
387
# Cop supports --auto-correct.
388
Style/MutableConstant:
389
  Exclude:
390
    - 'app/models/service/registry_api.rb'
391
    - 'lib/foreman_docker/version.rb'
392

    
393
# Offense count: 2
394
# Cop supports --auto-correct.
395
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
396
# SupportedStyles: predicate, comparison
397
Style/NumericPredicate:
398
  Exclude:
399
    - 'spec/**/*'
400
    - 'app/helpers/container_steps_helper.rb'
401
    - 'test/functionals/containers_steps_controller_test.rb'
402

    
403
# Offense count: 8
404
# Cop supports --auto-correct.
405
# Configuration parameters: PreferredDelimiters.
406
Style/PercentLiteralDelimiters:
407
  Exclude:
408
    - 'app/controllers/api/v2/containers_controller.rb'
409
    - 'app/controllers/api/v2/registries_controller.rb'
410
    - 'app/models/docker_container_wizard_states/exposed_port.rb'
411
    - 'app/models/exposed_port.rb'
412
    - 'app/models/foreman_docker/taxonomy_extensions.rb'
413
    - 'lib/foreman_docker/engine.rb'
414
    - 'test/functionals/api/v2/containers_controller_test.rb'
415
    - 'test/functionals/api/v2/registries_controller_test.rb'
416

    
417
# Offense count: 2
418
# Cop supports --auto-correct.
419
Style/RedundantParentheses:
420
  Exclude:
421
    - 'test/units/docker_registry_test.rb'
422

    
423
# Offense count: 3
424
# Cop supports --auto-correct.
425
Style/RedundantSelf:
426
  Exclude:
427
    - 'app/models/concerns/foreman_docker/parameter_validators.rb'
428
    - 'app/models/docker_parameter.rb'
429
    - 'app/services/foreman_docker/image_search.rb'
430

    
431
# Offense count: 3
432
# Cop supports --auto-correct.
433
# Configuration parameters: EnforcedStyle, SupportedStyles.
434
# SupportedStyles: only_raise, only_fail, semantic
435
Style/SignalException:
436
  Exclude:
437
    - 'app/models/service/containers.rb'
438
    - 'app/services/foreman_docker/utility.rb'
439
    - 'db/migrate/20141209182008_remove_docker_tables.rb'
440

    
441
# Offense count: 29
442
# Cop supports --auto-correct.
443
# Configuration parameters: MinSize, SupportedStyles.
444
# SupportedStyles: percent, brackets
445
Style/SymbolArray:
446
  EnforcedStyle: brackets
447

    
448
# Offense count: 2
449
# Cop supports --auto-correct.
450
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
451
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
452
Style/TrailingCommaInLiteral:
453
  Exclude:
454
    - 'app/models/docker_container_wizard_states/image.rb'
455
    - 'test/functionals/containers_steps_controller_test.rb'
456

    
457
# Offense count: 1
458
# Cop supports --auto-correct.
459
Style/UnlessElse:
460
  Exclude:
461
    - 'app/services/foreman_docker/image_search.rb'
462

    
463
# Offense count: 4
464
# Cop supports --auto-correct.
465
Style/UnneededInterpolation:
466
  Exclude:
467
    - 'app/models/container.rb'
468
    - 'app/models/docker_container_wizard_states/image.rb'
469
    - 'app/models/service/registry_api.rb'
470
    - 'release/changelog'
471

    
472
# Offense count: 7
473
# Cop supports --auto-correct.
474
# Configuration parameters: SupportedStyles, WordRegex.
475
# SupportedStyles: percent, brackets
476
Style/WordArray:
477
  EnforcedStyle: percent
478
  MinSize: 3
479

    
480
# Offense count: 2
481
# Cop supports --auto-correct.
482
Style/ZeroLengthPredicate:
483
  Exclude:
484
    - 'app/helpers/container_steps_helper.rb'
485
    - 'test/functionals/containers_steps_controller_test.rb'