mirror of
https://github.com/puppetlabs/vmpooler-dns-gcp.git
synced 2026-01-26 02:58:42 -05:00
Add rakefile and rubocop config from other provider gems
This commit is contained in:
parent
5787a82a0b
commit
405b52b2e1
4 changed files with 85 additions and 12 deletions
54
.rubocop.yml
54
.rubocop.yml
|
|
@ -1,13 +1,53 @@
|
|||
AllCops:
|
||||
TargetRubyVersion: 2.6
|
||||
Include:
|
||||
- 'lib/**/*.rb'
|
||||
Exclude:
|
||||
- 'scripts/**/*'
|
||||
- 'spec/**/*'
|
||||
- 'vendor/**/*'
|
||||
- Gemfile
|
||||
- Rakefile
|
||||
|
||||
Style/StringLiterals:
|
||||
# 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
|
||||
EnforcedStyle: double_quotes
|
||||
|
||||
Style/StringLiteralsInInterpolation:
|
||||
Lint/EmptyBlock: # (new in 1.1)
|
||||
Enabled: true
|
||||
EnforcedStyle: double_quotes
|
||||
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:
|
||||
Enabled: false
|
||||
Metrics/ClassLength:
|
||||
Enabled: false
|
||||
Metrics/CyclomaticComplexity:
|
||||
Enabled: false
|
||||
Metrics/MethodLength:
|
||||
Enabled: false
|
||||
Metrics/PerceivedComplexity:
|
||||
Enabled: false
|
||||
Metrics/ParameterLists:
|
||||
Enabled: false
|
||||
Layout/LineLength:
|
||||
Max: 120
|
||||
Enabled: false
|
||||
Metrics/BlockLength:
|
||||
Enabled: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue