2015-09-04 08:00:02 +00:00
|
|
|
---
|
|
|
|
AllCops:
|
2017-11-16 16:26:19 +00:00
|
|
|
TargetRubyVersion: 2.3
|
2015-09-04 08:00:02 +00:00
|
|
|
Exclude:
|
|
|
|
- Gemfile
|
|
|
|
- Rakefile
|
|
|
|
- 'test/**/*'
|
|
|
|
- 'examples/**/*'
|
2015-10-05 10:38:26 +00:00
|
|
|
- 'vendor/**/*'
|
2016-02-14 20:28:11 +00:00
|
|
|
- 'lib/bundles/inspec-init/templates/**/*'
|
2017-11-21 07:49:41 +00:00
|
|
|
- 'www/tutorial/**/*'
|
2015-09-04 08:00:02 +00:00
|
|
|
AlignParameters:
|
|
|
|
Enabled: true
|
2017-11-21 07:49:41 +00:00
|
|
|
BlockDelimiters:
|
|
|
|
Enabled: false
|
|
|
|
Documentation:
|
|
|
|
Enabled: false
|
|
|
|
EmptyLinesAroundBlockBody:
|
|
|
|
Enabled: false
|
2017-11-16 16:26:19 +00:00
|
|
|
FrozenStringLiteralComment:
|
|
|
|
Enabled: false
|
2015-09-04 08:00:02 +00:00
|
|
|
HashSyntax:
|
|
|
|
Enabled: true
|
|
|
|
LineLength:
|
|
|
|
Enabled: false
|
2017-11-21 07:49:41 +00:00
|
|
|
Layout/AlignHash:
|
|
|
|
Enabled: false
|
|
|
|
Layout/EmptyLineAfterMagicComment:
|
|
|
|
Enabled: false
|
|
|
|
Layout/EndOfLine:
|
|
|
|
Enabled: true
|
|
|
|
EnforcedStyle: lf
|
|
|
|
Layout/SpaceAroundOperators:
|
2015-09-04 08:00:02 +00:00
|
|
|
Enabled: false
|
|
|
|
MethodLength:
|
|
|
|
Max: 40
|
2017-11-21 07:49:41 +00:00
|
|
|
Metrics/AbcSize:
|
|
|
|
Max: 33
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Max: 50
|
2015-09-04 08:00:02 +00:00
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
Max: 10
|
|
|
|
Metrics/PerceivedComplexity:
|
2016-04-21 08:31:56 +00:00
|
|
|
Max: 11
|
2017-11-21 07:49:41 +00:00
|
|
|
NumericLiterals:
|
|
|
|
MinDigits: 10
|
|
|
|
Security/YAMLLoad:
|
|
|
|
Enabled: false
|
|
|
|
Style/AndOr:
|
|
|
|
Enabled: false
|
|
|
|
Style/BracesAroundHashParameters:
|
|
|
|
Enabled: false
|
|
|
|
Style/ClassAndModuleChildren:
|
|
|
|
Enabled: false
|
|
|
|
Style/ConditionalAssignment:
|
|
|
|
Enabled: false
|
|
|
|
Style/EmptyMethod:
|
|
|
|
Enabled: false
|
|
|
|
Style/Encoding:
|
|
|
|
Enabled: false
|
|
|
|
Style/FileName:
|
|
|
|
Enabled: false
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Enabled: false
|
|
|
|
Style/MethodMissing:
|
|
|
|
Enabled: false
|
|
|
|
Style/MultilineIfModifier:
|
|
|
|
Enabled: false
|
|
|
|
Style/NegatedIf:
|
|
|
|
Enabled: false
|
|
|
|
Style/Not:
|
|
|
|
Enabled: false
|
|
|
|
Style/NumericLiteralPrefix:
|
|
|
|
Enabled: false
|
|
|
|
Style/NumericPredicate:
|
|
|
|
Enabled: false
|
2015-09-05 14:03:57 +00:00
|
|
|
Style/PercentLiteralDelimiters:
|
|
|
|
PreferredDelimiters:
|
|
|
|
'%': '{}'
|
|
|
|
'%i': ()
|
|
|
|
'%q': '{}'
|
|
|
|
'%Q': ()
|
|
|
|
'%r': '{}'
|
|
|
|
'%s': ()
|
|
|
|
'%w': '{}'
|
|
|
|
'%W': ()
|
|
|
|
'%x': ()
|
2015-09-04 08:00:02 +00:00
|
|
|
Style/PredicateName:
|
2015-09-05 14:03:57 +00:00
|
|
|
Enabled: false
|
2017-11-21 07:49:41 +00:00
|
|
|
Style/SymbolArray:
|
2015-09-04 08:00:02 +00:00
|
|
|
Enabled: false
|
2016-01-15 02:59:00 +00:00
|
|
|
Style/TrailingCommaInArguments:
|
2015-09-09 07:39:03 +00:00
|
|
|
EnforcedStyleForMultiline: comma
|
2017-11-21 07:49:41 +00:00
|
|
|
Style/TrailingCommaInLiteral:
|
|
|
|
EnforcedStyleForMultiline: comma
|
2015-09-05 14:03:57 +00:00
|
|
|
Style/UnlessElse:
|
|
|
|
Enabled: false
|