forked from theforeman/ldap_fluff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
75 lines (52 loc) · 1.3 KB
/
.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
63
64
65
66
67
68
69
70
71
72
73
74
75
inherit_from: .rubocop_todo.yml
inherit_gem:
theforeman-rubocop:
- rules/base.yml
- rules/ruby_target.yml
- rules/style.yml
- rules/performance.yml
AllCops:
TargetRubyVersion: 2.4
Exclude:
- 'vendor/bundle/**/*'
Metrics/BlockNesting:
Enabled: false # remove me
Metrics/MethodLength:
Max: 30
Metrics/ParameterLists:
Max: 5
Layout/LineLength:
Max: 190
Layout/LeadingCommentSpace:
Enabled: false
Layout/ParameterAlignment:
Enabled: false # don't care if parameters are not aligned
Layout/ParenthesesAroundCondition:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Enabled: false # allow spaces (eg { :a => 1 })
Style/CollectionMethods:
# remove this once we pick either map or collect, inject or reduce, etc
PreferredMethods: {}
Style/StringLiterals:
Enabled: false
Style/Encoding:
Enabled: false # remove me?
Style/Documentation:
Enabled: false # remove me
Style/HashSyntax:
Enabled: false # don't force 1.9 hash syntax
Style/IfUnlessModifier:
Enabled: false
Style/RescueModifier:
Enabled: false
Style/AssignmentInCondition:
Enabled: false
Style/WhileUntilModifier:
Enabled: false
Style/DotPosition:
Enabled: false
Style/Lambda:
Enabled: false # don't require -> for single line lambdas
Style/FrozenStringLiteralComment:
Enabled: false