inspec/.rubocop.yml

100 lines
1.8 KiB
YAML
Raw Normal View History

2016-12-15 08:53:01 +00:00
---
AllCops:
TargetRubyVersion: 2.3
2016-12-15 08:53:01 +00:00
Exclude:
- Gemfile
- Rakefile
- 'test/**/*'
2016-12-15 08:53:01 +00:00
- 'examples/**/*'
- 'vendor/**/*'
- 'lib/bundles/inspec-init/templates/**/*'
- 'www/tutorial/**/*'
2016-12-15 08:53:01 +00:00
AlignParameters:
Enabled: true
BlockDelimiters:
Enabled: false
Documentation:
Enabled: false
EmptyLinesAroundBlockBody:
Enabled: false
FrozenStringLiteralComment:
Enabled: false
2016-12-15 08:53:01 +00:00
HashSyntax:
Enabled: true
LineLength:
Enabled: false
Layout/AlignHash:
Enabled: false
Layout/EmptyLineAfterMagicComment:
Enabled: false
Layout/EndOfLine:
Enabled: true
EnforcedStyle: lf
Layout/SpaceAroundOperators:
2016-12-15 08:53:01 +00:00
Enabled: false
MethodLength:
Max: 40
Metrics/AbcSize:
Max: 33
Metrics/BlockLength:
Max: 50
2016-12-15 08:53:01 +00:00
Metrics/CyclomaticComplexity:
Max: 10
Metrics/PerceivedComplexity:
Max: 11
Naming/FileName:
Enabled: false
Naming/HeredocDelimiterNaming:
2016-12-15 08:53:01 +00:00
Enabled: false
Naming/PredicateName:
Enabled: false
NumericLiterals:
MinDigits: 10
Security/YAMLLoad:
Enabled: false
Style/AndOr:
Enabled: false
Style/BracesAroundHashParameters:
2016-12-15 08:53:01 +00:00
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Style/EmptyMethod:
2016-12-15 08:53:01 +00:00
Enabled: false
Style/Encoding:
2016-12-15 08:53:01 +00:00
Enabled: false
Style/IfUnlessModifier:
2016-12-15 08:53:01 +00:00
Enabled: false
Style/MethodMissing:
Enabled: false
Style/MultilineIfModifier:
2016-12-15 08:53:01 +00:00
Enabled: false
Style/NegatedIf:
Enabled: false
Style/Not:
2016-12-15 08:53:01 +00:00
Enabled: false
Style/NumericLiteralPrefix:
2016-12-15 08:53:01 +00:00
Enabled: false
Style/NumericPredicate:
2016-12-15 08:53:01 +00:00
Enabled: false
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%': '{}'
'%i': ()
'%q': '{}'
'%Q': ()
'%r': '{}'
'%s': ()
'%w': '{}'
'%W': ()
'%x': ()
Style/SymbolArray:
Enabled: false
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
Style/UnlessElse:
2016-12-15 08:53:01 +00:00
Enabled: false