inspec/.rubocop.yml

98 lines
1.8 KiB
YAML
Raw Normal View History

2015-09-04 08:00:02 +00:00
---
AllCops:
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/**/*'
- 'www/tutorial/**/*'
2015-09-04 08:00:02 +00:00
AlignParameters:
Enabled: true
BlockDelimiters:
Enabled: false
Documentation:
Enabled: false
EmptyLinesAroundBlockBody:
Enabled: false
FrozenStringLiteralComment:
Enabled: false
2015-09-04 08:00:02 +00:00
HashSyntax:
Enabled: true
LineLength:
Enabled: false
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
Metrics/AbcSize:
Max: 33
Metrics/BlockLength:
Max: 50
2015-09-04 08:00:02 +00:00
Metrics/CyclomaticComplexity:
Max: 10
Metrics/PerceivedComplexity:
Max: 11
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
Style/SymbolArray:
2015-09-04 08:00:02 +00:00
Enabled: false
2016-01-15 02:59:00 +00:00
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
2015-09-05 14:03:57 +00:00
Style/UnlessElse:
Enabled: false