Project

General

Profile

Revision 72bf89bf

Added by Michael Moll over 4 years ago

Fixes #21921 - Upgrade rubocop to 0.51

View differences:

.rubocop_todo.yml
1 1
# This configuration was generated by
2 2
# `rubocop --auto-gen-config`
3
# on 2017-06-08 13:13:45 +0200 using RuboCop version 0.49.1.
3
# on 2017-12-10 18:09:07 +0100 using RuboCop version 0.51.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
7 7
# versions of RuboCop, may require this file to be generated again.
8 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

  
9 17
# Offense count: 8
10 18
# Cop supports --auto-correct.
11 19
# Configuration parameters: EnforcedHashRocketStyle, SupportedHashRocketStyles, EnforcedColonStyle, SupportedColonStyles, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
......
21 29
    - 'app/models/foreman_docker/dns.rb'
22 30
    - 'test/functionals/containers_steps_controller_test.rb'
23 31

  
24
# Offense count: 20
32
# Offense count: 16
25 33
# Cop supports --auto-correct.
26 34
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
27 35
# SupportedStyles: with_first_parameter, with_fixed_indentation
......
57 65
  Exclude:
58 66
    - 'app/models/docker_container_wizard_states/environment.rb'
59 67

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

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

  
79 85
# Offense count: 1
......
123 129
    - 'test/units/container_remover_test.rb'
124 130
    - 'test/units/containers_service_test.rb'
125 131

  
126
# Offense count: 44
132
# Offense count: 41
127 133
# Cop supports --auto-correct.
128 134
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
129 135
# SupportedStyles: aligned, indented, indented_relative_to_receiver
......
171 177
  Exclude:
172 178
    - 'test/functionals/image_search_controller_test.rb'
173 179

  
174
# Offense count: 11
180
# Offense count: 12
175 181
# Cop supports --auto-correct.
176 182
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
177 183
# SupportedStyles: space, no_space, compact
......
205 211
  Exclude:
206 212
    - 'test/functionals/api/v2/containers_controller_test.rb'
207 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

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

  
214
# Offense count: 16
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
215 245
Metrics/AbcSize:
216 246
  Max: 30
217 247

  
218
# Offense count: 14
248
# Offense count: 19
219 249
# Configuration parameters: CountComments, ExcludedMethods.
220 250
Metrics/BlockLength:
221 251
  Max: 130
......
225 255
Metrics/ClassLength:
226 256
  Max: 172
227 257

  
228
# Offense count: 198
258
# Offense count: 205
229 259
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
230 260
# URISchemes: http, https
231 261
Metrics/LineLength:
232 262
  Max: 181
233 263

  
234
# Offense count: 21
264
# Offense count: 19
235 265
# Configuration parameters: CountComments.
236 266
Metrics/MethodLength:
237 267
  Max: 23
238 268

  
239
# Offense count: 7
269
# Offense count: 1
240 270
# Cop supports --auto-correct.
241
# Configuration parameters: EnforcedStyle, SupportedStyles, Include.
242
# SupportedStyles: action, filter
243
# Include: app/controllers/**/*.rb
244
Rails/ActionFilter:
271
# Configuration parameters: AutoCorrect.
272
Performance/HashEachMethods:
245 273
  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'
274
    - 'app/services/foreman_docker/image_search.rb'
251 275

  
252 276
# Offense count: 10
253 277
# Cop supports --auto-correct.
......
291 315
    - 'test/functionals/containers_controller_test.rb'
292 316
    - 'test/functionals/containers_steps_controller_test.rb'
293 317

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

  
302 325
# Offense count: 2
303 326
# Configuration parameters: Blacklist.
......
306 329
  Exclude:
307 330
    - 'db/migrate/20141209182008_remove_docker_tables.rb'
308 331

  
309
# Offense count: 9
332
# Offense count: 8
310 333
# Cop supports --auto-correct.
311 334
# Configuration parameters: EnforcedStyle, SupportedStyles.
312 335
# SupportedStyles: braces, no_braces, context_dependent
313 336
Style/BracesAroundHashParameters:
314 337
  Exclude:
315
    - 'app/controllers/image_search_controller.rb'
316 338
    - 'app/models/service/registry_api.rb'
317 339
    - 'test/functionals/containers_steps_controller_test.rb'
318 340
    - 'test/functionals/image_search_controller_test.rb'
......
400 422
    - 'app/helpers/container_steps_helper.rb'
401 423
    - 'test/functionals/containers_steps_controller_test.rb'
402 424

  
403
# Offense count: 8
425
# Offense count: 7
404 426
# Cop supports --auto-correct.
405 427
# Configuration parameters: PreferredDelimiters.
406 428
Style/PercentLiteralDelimiters:
......
410 432
    - 'app/models/docker_container_wizard_states/exposed_port.rb'
411 433
    - 'app/models/exposed_port.rb'
412 434
    - 'app/models/foreman_docker/taxonomy_extensions.rb'
413
    - 'lib/foreman_docker/engine.rb'
414 435
    - 'test/functionals/api/v2/containers_controller_test.rb'
415 436
    - 'test/functionals/api/v2/registries_controller_test.rb'
416 437

  
......
469 490
    - 'app/models/service/registry_api.rb'
470 491
    - 'release/changelog'
471 492

  
472
# Offense count: 7
493
# Offense count: 6
473 494
# Cop supports --auto-correct.
474 495
# Configuration parameters: SupportedStyles, WordRegex.
475 496
# SupportedStyles: percent, brackets

Also available in: Unified diff