mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
This commit fixes the many rubocop offenses. Also modifies the rubocop settings: - Set max method params higher than the default of 5 - Ignore Style/GuardClause. In some cases it's eaiser to read without the guard - Renamed a cop
71 lines
1.4 KiB
YAML
71 lines
1.4 KiB
YAML
inherit_from: .rubocop_todo.yml
|
|
|
|
AllCops:
|
|
Include:
|
|
- 'lib/**/*.rb'
|
|
- 'vmpooler'
|
|
Exclude:
|
|
- 'lib/public/lib/**/*'
|
|
- 'scripts/**/*'
|
|
- 'spec/**/*'
|
|
- 'vendor/**/*'
|
|
- Gemfile
|
|
- Rakefile
|
|
- Vagrantfile
|
|
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
# Line length is not useful
|
|
Metrics/LineLength:
|
|
Enabled: false
|
|
|
|
# Empty method definitions over more than one line is ok
|
|
Style/EmptyMethod:
|
|
Enabled: false
|
|
|
|
# Due to legacy codebase
|
|
# - Globals are used liberally
|
|
Style/GlobalVars:
|
|
Enabled: false
|
|
# - A lot of complexity
|
|
Metrics/AbcSize:
|
|
Enabled: false
|
|
Metrics/PerceivedComplexity:
|
|
Enabled: false
|
|
Metrics/CyclomaticComplexity:
|
|
Enabled: false
|
|
Metrics/BlockNesting:
|
|
Enabled: false
|
|
# - Long Methods, Classes, Blocks, and Modules
|
|
Metrics/MethodLength:
|
|
Enabled: false
|
|
Metrics/ClassLength:
|
|
Enabled: false
|
|
Metrics/BlockLength:
|
|
Enabled: false
|
|
Metrics/ModuleLength:
|
|
Enabled: false
|
|
|
|
# WordArray is crashing rubocop in lib/vmpooler/api/helpers.rb
|
|
Style/WordArray:
|
|
Enabled: false
|
|
|
|
# Either sytnax for regex is ok
|
|
Style/RegexpLiteral:
|
|
Enabled: false
|
|
|
|
# In some cases readability is better without these cops enabled
|
|
Style/ConditionalAssignment:
|
|
Enabled: false
|
|
Next:
|
|
Enabled: false
|
|
Metrics/ParameterLists:
|
|
Max: 10
|
|
Style/GuardClause:
|
|
Enabled: false
|
|
|
|
# Enforce LF line endings, even when on Windows
|
|
Layout/EndOfLine:
|
|
EnforcedStyle: lf
|
|
|