forked from dev-sec/chef-os-hardening
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
42 lines (42 loc) · 819 Bytes
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
AllCops:
DisplayCopNames: true
Exclude:
- vendor/**/*
- test/**/*
TargetRubyVersion: 2.1 # we need this because of chef 12.5.1 support
Metrics/AbcSize:
Max: 29
Metrics/LineLength:
Max: 100
Include:
- spec/**/*.rb
Metrics/MethodLength:
Max: 40
Style/Documentation:
Enabled: false
Layout/DotPosition:
EnforcedStyle: trailing
Enabled: true
Style/Encoding:
EnforcedStyle: always
Enabled: true
Layout/ExtraSpacing:
Exclude:
- attributes/default.rb
Style/HashSyntax:
Enabled: true
Style/NumericLiteralPrefix:
Enabled: false
Style/NumericLiterals:
MinDigits: 10
Style/RegexpLiteral:
AllowInnerSlashes: true
Layout/SpaceAroundOperators:
Exclude:
- attributes/default.rb
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
Style/FrozenStringLiteralComment:
Enabled: false