-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
99 lines (70 loc) · 1.49 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
AllCops:
Exclude:
- 'build/**/*'
Metrics/AbcSize:
Max: 70
Metrics/BlockNesting:
Max: 6
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Max: 15
Metrics/LineLength:
Max: 156
Metrics/MethodLength:
Enabled: false
Metrics/ParameterLists:
Max: 8
Metrics/PerceivedComplexity:
Max: 15
Metrics/ModuleLength:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/Documentation:
Enabled: false
Style/FormatString:
EnforcedStyle: sprintf
Style/GlobalVars: # for $options
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/MultilineIfThen:
Enabled: false
Style/NegatedIf:
Enabled: false
Style/NegatedWhile:
Enabled: false
Style/NumericLiterals:
Enabled: false
Lint/NonLocalExitFromIterator:
Enabled: false
Style/PerlBackrefs:
Enabled: false
Style/RegexpLiteral:
Enabled: false
Style/RescueModifier:
Enabled: false
Style/StringLiterals: # This is just so we don't have to correct a zillion lines
Enabled: false
### XXX ruby 1.8 compatibility
# Ruby 1.8 does't have each_with_object()
Style/EachWithObject:
Enabled: false
# Ruby 1.8 requirement
Style/DotPosition:
EnforcedStyle: trailing
# Ruby 1.8 requirement
Style/Lambda:
Enabled: false
# Ruby 1.8 requirement
Style/HashSyntax:
EnforcedStyle: hash_rockets
# in ruby1.8, proc {} is a synonym for lambda {}
# in ruby1.9, proc {} is a synonym for Proc.new {}
Style/Proc:
Enabled: false
# flat_map not present in ruby1.8
Performance/FlatMap:
Enabled: false