inspec/.rubocop.yml

113 lines
2.2 KiB
YAML
Raw Normal View History

2015-09-04 08:00:02 +00:00
---
AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.4
2015-09-04 08:00:02 +00:00
Exclude:
- Gemfile
- Rakefile
- 'test/**/*'
- 'lib/plugins/*/test/**/*'
- 'lib/plugins/inspec-init/templates/**/*'
# 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/**/*'
- 'www/demo/**/*'
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
Metrics/ClassLength:
Enabled: false
2015-09-04 08:00:02 +00:00
Metrics/CyclomaticComplexity:
Max: 10
Metrics/PerceivedComplexity:
Max: 11
NumericLiterals:
MinDigits: 10
Performance/RegexpMatch:
Enabled: false
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/GuardClause:
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