mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
add robucop config
This commit is contained in:
parent
36c9de7529
commit
99d4280a22
1 changed files with 46 additions and 0 deletions
46
.rubocop.yml
Normal file
46
.rubocop.yml
Normal file
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
AllCops:
|
||||
Exclude:
|
||||
- Gemfile
|
||||
- Rakefile
|
||||
- 'test/**/*'
|
||||
- 'examples/**/*'
|
||||
Documentation:
|
||||
Enabled: false
|
||||
AlignParameters:
|
||||
Enabled: true
|
||||
Encoding:
|
||||
Enabled: true
|
||||
HashSyntax:
|
||||
Enabled: true
|
||||
LineLength:
|
||||
Enabled: false
|
||||
EmptyLinesAroundBlockBody:
|
||||
Enabled: false
|
||||
MethodLength:
|
||||
Max: 40
|
||||
NumericLiterals:
|
||||
MinDigits: 10
|
||||
Metrics/CyclomaticComplexity:
|
||||
Max: 10
|
||||
Metrics/PerceivedComplexity:
|
||||
Max: 10
|
||||
Metrics/AbcSize:
|
||||
Max: 29
|
||||
Style/DotPosition:
|
||||
EnforcedStyle: trailing
|
||||
Enabled: true
|
||||
Style/AlignHash:
|
||||
Enabled: false
|
||||
Style/PredicateName:
|
||||
NamePrefix:
|
||||
- is_
|
||||
- has_
|
||||
- have_
|
||||
NamePrefixBlacklist:
|
||||
Style/ClassAndModuleChildren:
|
||||
Enabled: false
|
||||
Style/BracesAroundHashParameters:
|
||||
Enabled: false
|
||||
BlockDelimiters:
|
||||
Enabled: false
|
Loading…
Reference in a new issue