2015-09-04 08:00:02 +00:00
|
|
|
---
|
|
|
|
AllCops:
|
2018-11-26 05:45:04 +00:00
|
|
|
DisplayCopNames: true
|
2017-11-16 16:26:19 +00:00
|
|
|
TargetRubyVersion: 2.3
|
2015-09-04 08:00:02 +00:00
|
|
|
Exclude:
|
|
|
|
- Gemfile
|
|
|
|
- Rakefile
|
|
|
|
- 'test/**/*'
|
2018-09-25 14:29:18 +00:00
|
|
|
- 'lib/plugins/*/test/**/*'
|
2018-11-26 05:45:04 +00:00
|
|
|
- 'lib/plugins/inspec-init/templates/**/*'
|
2018-09-27 20:57:18 +00:00
|
|
|
# This is delicate; we want to include examples/plugins/*/lib
|
|
|
|
# but not anything else.
|
|
|
|
- 'examples/*profile*/**/*'
|
|
|
|
- 'examples/kitchen*/**/*'
|
|
|
|
- 'examples/inheritance/**/*'
|
|
|
|
- 'examples/custom-resource/**/*'
|
|
|
|
- 'examples/plugins/*/test/**/*'
|
2015-10-05 10:38:26 +00:00
|
|
|
- 'vendor/**/*'
|
2016-02-14 20:28:11 +00:00
|
|
|
- 'lib/bundles/inspec-init/templates/**/*'
|
2018-02-20 00:57:19 +00:00
|
|
|
- 'www/demo/**/*'
|
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
|
2017-12-07 19:22:55 +00:00
|
|
|
Metrics/ClassLength:
|
|
|
|
Enabled: false
|
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
|
2017-12-07 19:22:55 +00:00
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|
2017-11-21 07:49:41 +00:00
|
|
|
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
|