mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Rubocop 0.80 updates to rubocop configs
Arbitrary annoying name changes to cops and new cops that I don't think we would care about: https://rubocop.readthedocs.io/en/latest/cops_style/#stylehasheachmethods https://rubocop.readthedocs.io/en/latest/cops_style/#stylehashtransformkeys https://rubocop.readthedocs.io/en/latest/cops_style/#stylehashtransformvalues
This commit is contained in:
parent
cec7183fdc
commit
9201a0befb
2 changed files with 15 additions and 24 deletions
13
.rubocop.yml
13
.rubocop.yml
|
|
@ -17,7 +17,7 @@ Style/Documentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Line length is not useful
|
# Line length is not useful
|
||||||
Metrics/LineLength:
|
Layout/LineLength:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Empty method definitions over more than one line is ok
|
# Empty method definitions over more than one line is ok
|
||||||
|
|
@ -69,3 +69,14 @@ Style/GuardClause:
|
||||||
Layout/EndOfLine:
|
Layout/EndOfLine:
|
||||||
EnforcedStyle: lf
|
EnforcedStyle: lf
|
||||||
|
|
||||||
|
# Added in 0.80, don't really care about the change
|
||||||
|
Style/HashEachMethods:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
# Added in 0.80, don't really care about the change
|
||||||
|
Style/HashTransformKeys:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
# Added in 0.80, don't really care about the change
|
||||||
|
Style/HashTransformValues:
|
||||||
|
Enabled: false
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
||||||
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
||||||
Layout/AlignParameters:
|
Layout/ParameterAlignment:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/vmpooler/api/v1.rb'
|
- 'lib/vmpooler/api/v1.rb'
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ Layout/EmptyLinesAroundModuleBody:
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
||||||
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
||||||
Layout/IndentFirstHashElement:
|
Layout/FirstHashElementIndentation:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/vmpooler/api/helpers.rb'
|
- 'lib/vmpooler/api/helpers.rb'
|
||||||
- 'lib/vmpooler/api/v1.rb'
|
- 'lib/vmpooler/api/v1.rb'
|
||||||
|
|
@ -96,12 +96,6 @@ Layout/SpaceAroundOperators:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/vmpooler/api/v1.rb'
|
- 'lib/vmpooler/api/v1.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Layout/SpaceInsideBrackets:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/vmpooler/api/v1.rb'
|
|
||||||
|
|
||||||
# Offense count: 8
|
# Offense count: 8
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
|
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
|
||||||
|
|
@ -125,7 +119,7 @@ Lint/AssignmentInCondition:
|
||||||
- 'lib/vmpooler/api/v1.rb'
|
- 'lib/vmpooler/api/v1.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
# Offense count: 2
|
||||||
Lint/HandleExceptions:
|
Lint/SuppressedException:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/vmpooler/api/dashboard.rb'
|
- 'lib/vmpooler/api/dashboard.rb'
|
||||||
|
|
||||||
|
|
@ -147,12 +141,6 @@ Lint/UselessAssignment:
|
||||||
- 'lib/vmpooler/api/dashboard.rb'
|
- 'lib/vmpooler/api/dashboard.rb'
|
||||||
- 'lib/vmpooler/api/helpers.rb'
|
- 'lib/vmpooler/api/helpers.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Performance/RedundantMatch:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/vmpooler/api/v1.rb'
|
|
||||||
|
|
||||||
# Offense count: 6
|
# Offense count: 6
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||||
|
|
@ -162,14 +150,6 @@ Style/AndOr:
|
||||||
- 'lib/vmpooler/api/helpers.rb'
|
- 'lib/vmpooler/api/helpers.rb'
|
||||||
- 'lib/vmpooler/api/v1.rb'
|
- 'lib/vmpooler/api/v1.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
||||||
# SupportedStyles: braces, no_braces, context_dependent
|
|
||||||
Style/BracesAroundHashParameters:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/vmpooler/api/v1.rb'
|
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
Style/CaseEquality:
|
Style/CaseEquality:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue