mirror of
https://github.com/puppetlabs/vmpooler-provider-gce.git
synced 2026-01-25 19:18:40 -05:00
fix simplecov with jruby, add a .rubocop.yml config file
This commit is contained in:
parent
356dfb3f52
commit
55654387af
4 changed files with 58 additions and 5 deletions
51
.rubocop.yml
Normal file
51
.rubocop.yml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
AllCops:
|
||||
Include:
|
||||
- 'lib/**/*.rb'
|
||||
Exclude:
|
||||
- 'scripts/**/*'
|
||||
- 'spec/**/*'
|
||||
- 'vendor/**/*'
|
||||
- Gemfile
|
||||
- Rakefile
|
||||
|
||||
# These short variable names make sense as exceptions to the rule, but generally I think short variable names do hurt readability
|
||||
Naming/MethodParameterName:
|
||||
AllowedNames:
|
||||
- vm
|
||||
- dc
|
||||
- s
|
||||
- x
|
||||
- f
|
||||
|
||||
#new cops:
|
||||
Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
|
||||
Enabled: true
|
||||
Lint/EmptyBlock: # (new in 1.1)
|
||||
Enabled: true
|
||||
Lint/ToEnumArguments: # (new in 1.1)
|
||||
Enabled: true
|
||||
Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
|
||||
Enabled: true
|
||||
Style/ArgumentsForwarding: # (new in 1.1)
|
||||
Enabled: false
|
||||
Style/DocumentDynamicEvalDefinition: # (new in 1.1)
|
||||
Enabled: true
|
||||
Style/SwapValues: # (new in 1.1)
|
||||
Enabled: false
|
||||
|
||||
#disabled
|
||||
|
||||
Metrics/AbcSize:
|
||||
Max: 77
|
||||
Metrics/ClassLength:
|
||||
Max: 430
|
||||
Metrics/CyclomaticComplexity:
|
||||
Max: 14
|
||||
Metrics/MethodLength:
|
||||
Max: 48
|
||||
Metrics/PerceivedComplexity:
|
||||
Max: 14
|
||||
Metrics/ParameterLists:
|
||||
Max: 6
|
||||
Layout/LineLength:
|
||||
Max: 220
|
||||
Loading…
Add table
Add a link
Reference in a new issue