mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
This commit adds the following exceptions: - Style/EmptyMethod Methods which are empty are typically supposed to not spread over two lines however this is a matter of readability and should not be considered a violation - Metrics/BlockNesting Due to a legacy codebase there are instances where the block depth is quite high. Ignore these violations for the time being.
50 lines
950 B
YAML
50 lines
950 B
YAML
inherit_from: .rubocop_todo.yml
|
|
|
|
AllCops:
|
|
Include:
|
|
- 'lib/**/*.rb'
|
|
- 'vmpooler'
|
|
Exclude:
|
|
- 'lib/public/lib/**/*'
|
|
- 'scripts/**/*'
|
|
- 'spec/**/*'
|
|
- 'vendor/**/*'
|
|
|
|
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
|
|
|
|
|
|
# Either sytnax for regex is ok
|
|
Style/RegexpLiteral:
|
|
Enabled: false
|