-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.rubocop.yml
41 lines (41 loc) · 903 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
# TODO: re-enable Metric/AbcSize, Metrics/CyclomaticComplexity, and Metrics/PerceivedComplexity
AllCops:
DisplayCopNames: true
Exclude:
- .bundle/*
- bin/*
- pkg/**/*
- test/**/*
# Disabled useless assignment check due to Puppet type param validation
# e.g.
# validate do |value|
# value = 'foo' if value == ''
# end
Lint/UselessAssignment:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Max: 100
Exclude:
- "**/**/*_spec.rb"
Metrics/ClassLength:
Max: 300
Metrics/LineLength:
Max: 280
Metrics/MethodLength:
Max: 30
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Naming/AccessorMethodName:
Enabled: false
Naming/PredicateName:
Enabled: false
Style/BracesAroundHashParameters:
EnforcedStyle: context_dependent
Style/BlockDelimiters:
Enabled: false
Style/RaiseArgs:
EnforcedStyle: compact