-
-
Notifications
You must be signed in to change notification settings - Fork 398
/
.rubocop.yml
112 lines (109 loc) · 2.75 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
100
101
102
103
104
105
106
107
108
109
110
111
112
#inherit_from:
# - .rubocop_todo.yml
Metrics:
Enabled: false
Layout/LineLength:
AutoCorrect: true
Max: 100
Style/Semicolon:
AllowAsExpressionSeparator: true
Style/Documentation:
Enabled: false
Style/ClassVars:
Enabled: false
Style/HashSyntax:
EnforcedStyle: hash_rockets
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Layout/SpaceInsideBlockBraces:
SpaceBeforeBlockParameters: false
Style/NumericPredicate: # ruby 1.8/1.9 do not have positive?/negative?
EnforcedStyle: comparison
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/DotPosition:
EnforcedStyle: trailing
Style/FormatString:
EnforcedStyle: percent
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
# Disable these until we know what to do with them
Style/SafeNavigation:
Enabled: false # not supported in 1.8...2.1
Style/GuardClause: # does not provide much value
Enabled: false
Naming/VariableNumber:
Enabled: false
Naming/AccessorMethodName: # this creates breaking changes in the API
Enabled: false
Naming/PredicateName: # this creates breaking changes in the API
Enabled: false
Style/MethodMissingSuper: # this doesn't exist in 1.8/1.9
Enabled: false
Style/MissingRespondToMissing: # this doesn't exist in 1.8/1.9
Enabled: false
Style/Lambda: # not supported in 1.8
Enabled: false
Style/EachWithObject: # not supported in 1.8
Enabled: false
Layout/ParameterAlignment: # does not work correctly with subsequent block
Enabled: false
Layout/ArrayAlignment: # does not support indentation
Enabled: false
Layout/HashAlignment: # does not support indentation
Enabled: false
Style/MultilineTernaryOperator:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Layout/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
Style/SingleLineMethods:
Enabled: false
Style/SingleLineBlockParams:
Enabled: false
Style/NestedTernaryOperator:
Enabled: false
Style/MutableConstant:
Enabled: false
Style/WhenThen:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/StringLiteralsInInterpolation:
Enabled: false
Style/PerlBackrefs:
Enabled: false
Style/BlockComments:
Exclude:
- benchmarks/*.rb
Style/CaseEquality:
Enabled: false
Style/WordArray:
Enabled: false
Style/GlobalVars:
Exclude:
- benchmarks/**/*.rb
- spec/**/*.rb
Lint/RedundantSplatExpansion:
Enabled: false
Security/Eval:
Exclude:
- benchmarks/**/*.rb
- spec/**/*.rb
Layout/SpaceAroundMethodCallOperator:
Enabled: false
Lint/RaiseException:
Enabled: false
Lint/StructNewOverride:
Enabled: false
Style/ExponentialNotation:
Enabled: false
Style/HashEachMethods:
Enabled: false
Style/HashTransformKeys:
Enabled: false
Style/HashTransformValues:
Enabled: false