mirror of
https://github.com/inspec/inspec
synced 2024-11-30 08:30:39 +00:00
4b9acb4800
* Bump Rubocop to 0.49.1 This change bumps Rubocop to 0.49.1. There have been a lot of changes since 0.39.0 and this PR is hopefully a nice compromise of turning off certain cops and updating our codebase to take advantage of new Ruby 2.3 methods and operators. Signed-off-by: Adam Leff <adam@leff.co> * Set end-of-line format to line-feed only, avoid Windows-related CRLF issues Signed-off-by: Adam Leff <adam@leff.co>
97 lines
1.8 KiB
YAML
97 lines
1.8 KiB
YAML
---
|
|
AllCops:
|
|
TargetRubyVersion: 2.3
|
|
Exclude:
|
|
- Gemfile
|
|
- Rakefile
|
|
- 'test/**/*'
|
|
- 'examples/**/*'
|
|
- 'vendor/**/*'
|
|
- 'lib/bundles/inspec-init/templates/**/*'
|
|
- 'www/tutorial/**/*'
|
|
AlignParameters:
|
|
Enabled: true
|
|
BlockDelimiters:
|
|
Enabled: false
|
|
Documentation:
|
|
Enabled: false
|
|
EmptyLinesAroundBlockBody:
|
|
Enabled: false
|
|
FrozenStringLiteralComment:
|
|
Enabled: false
|
|
HashSyntax:
|
|
Enabled: true
|
|
LineLength:
|
|
Enabled: false
|
|
Layout/AlignHash:
|
|
Enabled: false
|
|
Layout/EmptyLineAfterMagicComment:
|
|
Enabled: false
|
|
Layout/EndOfLine:
|
|
Enabled: true
|
|
EnforcedStyle: lf
|
|
Layout/SpaceAroundOperators:
|
|
Enabled: false
|
|
MethodLength:
|
|
Max: 40
|
|
Metrics/AbcSize:
|
|
Max: 33
|
|
Metrics/BlockLength:
|
|
Max: 50
|
|
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
|
|
Style/PercentLiteralDelimiters:
|
|
PreferredDelimiters:
|
|
'%': '{}'
|
|
'%i': ()
|
|
'%q': '{}'
|
|
'%Q': ()
|
|
'%r': '{}'
|
|
'%s': ()
|
|
'%w': '{}'
|
|
'%W': ()
|
|
'%x': ()
|
|
Style/PredicateName:
|
|
Enabled: false
|
|
Style/SymbolArray:
|
|
Enabled: false
|
|
Style/TrailingCommaInArguments:
|
|
EnforcedStyleForMultiline: comma
|
|
Style/TrailingCommaInLiteral:
|
|
EnforcedStyleForMultiline: comma
|
|
Style/UnlessElse:
|
|
Enabled: false
|