2015-09-04 10:00:02 +02:00
|
|
|
---
|
|
|
|
AllCops:
|
2018-11-26 00:45:04 -05:00
|
|
|
DisplayCopNames: true
|
2019-04-16 21:19:40 -07:00
|
|
|
TargetRubyVersion: 2.4
|
2015-09-04 10:00:02 +02:00
|
|
|
Exclude:
|
|
|
|
- Gemfile
|
|
|
|
- Rakefile
|
|
|
|
- 'test/**/*'
|
2018-09-25 10:29:18 -04:00
|
|
|
- 'lib/plugins/*/test/**/*'
|
2018-11-26 00:45:04 -05:00
|
|
|
- 'lib/plugins/inspec-init/templates/**/*'
|
2018-09-27 16:57:18 -04: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 12:38:26 +02:00
|
|
|
- 'vendor/**/*'
|
2016-02-14 21:28:11 +01:00
|
|
|
- 'lib/bundles/inspec-init/templates/**/*'
|
2018-02-19 16:57:19 -08:00
|
|
|
- 'www/demo/**/*'
|
2015-09-04 10:00:02 +02:00
|
|
|
AlignParameters:
|
|
|
|
Enabled: true
|
2017-11-21 02:49:41 -05:00
|
|
|
BlockDelimiters:
|
|
|
|
Enabled: false
|
|
|
|
Documentation:
|
|
|
|
Enabled: false
|
|
|
|
EmptyLinesAroundBlockBody:
|
|
|
|
Enabled: false
|
2017-11-16 11:26:19 -05:00
|
|
|
FrozenStringLiteralComment:
|
|
|
|
Enabled: false
|
2015-09-04 10:00:02 +02:00
|
|
|
HashSyntax:
|
|
|
|
Enabled: true
|
|
|
|
LineLength:
|
|
|
|
Enabled: false
|
2017-11-21 02:49:41 -05:00
|
|
|
Layout/AlignHash:
|
|
|
|
Enabled: false
|
|
|
|
Layout/EmptyLineAfterMagicComment:
|
|
|
|
Enabled: false
|
|
|
|
Layout/EndOfLine:
|
|
|
|
Enabled: true
|
|
|
|
EnforcedStyle: lf
|
|
|
|
Layout/SpaceAroundOperators:
|
2015-09-04 10:00:02 +02:00
|
|
|
Enabled: false
|
|
|
|
MethodLength:
|
|
|
|
Max: 40
|
2017-11-21 02:49:41 -05:00
|
|
|
Metrics/AbcSize:
|
|
|
|
Max: 33
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Max: 50
|
2017-12-07 14:22:55 -05:00
|
|
|
Metrics/ClassLength:
|
|
|
|
Enabled: false
|
2015-09-04 10:00:02 +02:00
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
Max: 10
|
|
|
|
Metrics/PerceivedComplexity:
|
2016-04-21 14:01:56 +05:30
|
|
|
Max: 11
|
2017-11-21 02:49:41 -05:00
|
|
|
NumericLiterals:
|
|
|
|
MinDigits: 10
|
2019-04-17 12:40:53 -04:00
|
|
|
Performance/RegexpMatch:
|
|
|
|
Enabled: false
|
2017-11-21 02:49:41 -05:00
|
|
|
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 14:22:55 -05:00
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|
2017-11-21 02:49:41 -05: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 16:03:57 +02:00
|
|
|
Style/PercentLiteralDelimiters:
|
|
|
|
PreferredDelimiters:
|
|
|
|
'%': '{}'
|
|
|
|
'%i': ()
|
|
|
|
'%q': '{}'
|
|
|
|
'%Q': ()
|
|
|
|
'%r': '{}'
|
|
|
|
'%s': ()
|
|
|
|
'%w': '{}'
|
|
|
|
'%W': ()
|
|
|
|
'%x': ()
|
2015-09-04 10:00:02 +02:00
|
|
|
Style/PredicateName:
|
2015-09-05 16:03:57 +02:00
|
|
|
Enabled: false
|
2017-11-21 02:49:41 -05:00
|
|
|
Style/SymbolArray:
|
2015-09-04 10:00:02 +02:00
|
|
|
Enabled: false
|
2016-01-15 03:59:00 +01:00
|
|
|
Style/TrailingCommaInArguments:
|
2015-09-09 09:39:03 +02:00
|
|
|
EnforcedStyleForMultiline: comma
|
2017-11-21 02:49:41 -05:00
|
|
|
Style/TrailingCommaInLiteral:
|
|
|
|
EnforcedStyleForMultiline: comma
|
2015-09-05 16:03:57 +02:00
|
|
|
Style/UnlessElse:
|
|
|
|
Enabled: false
|