-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
62 lines (47 loc) · 974 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
AllCops:
Exclude:
- 'Gemfile'
- 'vendor/**/*'
# Not that big of a problem
Metrics/LineLength:
Enabled: false
# $? rule didn't work
Style/SpecialGlobalVars:
Enabled: false
Metrics/ModuleLength:
Max: 200
# Parsing is a hairy business
Exclude:
- 'util/parser/option.rb'
Metrics/ClassLength:
Max: 200
Metrics/MethodLength:
Max: 30
# 15 seems a bit too noobish
Metrics/AbcSize:
Max: 35
# 6 seems a bit low
Metrics/CyclomaticComplexity:
Max: 8
# kind of pointless here
Style/Documentation:
Enabled: false
Style/FormatStringToken:
Enabled: false
# if this is really high, fine but 5 is too small
Metrics/ParameterLists:
Max: 8
Lint/UnifiedInteger:
Enabled: false
Metrics/BlockLength:
Exclude:
- '**/*_spec.rb'
- 'spec/**/*'
- Rakefile
Style/MethodMissingSuper:
Enabled: false
Style/MissingRespondToMissing:
Enabled: false
Layout/EmptyLineAfterMagicComment:
Exclude:
- 'lib/ansible/ruby/modules/all.rb'