(maint) Fix rubocop offenses

This commit updates VM Pooler to fix any existing rubocop offenses and also
fixes any offenses in the lib/vmpooler.rb file.  This commit also regenerates
the Todo file.
This commit is contained in:
Glenn Sarti 2017-03-02 20:18:11 -08:00
parent 850919f5db
commit c14403682a
4 changed files with 22 additions and 41 deletions

View file

@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2017-02-10 13:29:15 -0800 using RuboCop version 0.47.1.
# on 2017-03-02 20:16:29 -0800 using RuboCop version 0.47.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
@ -51,11 +51,6 @@ Lint/UselessAssignment:
Metrics/BlockNesting:
Max: 5
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 289
# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
@ -68,12 +63,6 @@ Performance/RedundantMatch:
- 'lib/vmpooler/api/v1.rb'
- 'lib/vmpooler/vsphere_helper.rb'
# Offense count: 1
# Cop supports --auto-correct.
Security/YAMLLoad:
Exclude:
- 'lib/vmpooler.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
@ -115,7 +104,7 @@ Style/CaseEquality:
Exclude:
- 'lib/vmpooler/api/helpers.rb'
# Offense count: 12
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentOneStep, IndentationWidth.
# SupportedStyles: case, end
@ -125,14 +114,6 @@ Style/CaseIndentation:
- 'lib/vmpooler/api/v1.rb'
- 'lib/vmpooler/vsphere_helper.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: is_a?, kind_of?
Style/ClassCheck:
Exclude:
- 'lib/vmpooler.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/ClosingParenthesisIndentation:
@ -415,13 +396,12 @@ Style/SpaceAfterNot:
Exclude:
- 'lib/vmpooler/pool_manager.rb'
# Offense count: 9
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceAroundEqualsInParameterDefault:
Exclude:
- 'lib/vmpooler.rb'
- 'lib/vmpooler/api/helpers.rb'
- 'lib/vmpooler/pool_manager.rb'
- 'lib/vmpooler/vsphere_helper.rb'
@ -462,11 +442,10 @@ Style/SpaceInsideParens:
Exclude:
- 'lib/vmpooler/api/v1.rb'
# Offense count: 4
# Offense count: 2
# Cop supports --auto-correct.
Style/SpaceInsidePercentLiteralDelimiters:
Exclude:
- 'lib/vmpooler.rb'
- 'lib/vmpooler/api.rb'
# Offense count: 47