1
1
# inherit_from:
2
2
# - .rubocop_todo.yml
3
3
4
- AllCops :
5
- TargetRubyVersion : 2.4
6
- Exclude :
7
- - ' vendor/**/*' # need to reset this apparently
8
- - ' lib/yard/parser/ruby/legacy/ruby_lex.rb' # old file, don't touch
9
4
Metrics :
10
5
Enabled : false
6
+ Layout/LineLength :
7
+ AutoCorrect : true
8
+ Max : 100
11
9
Style/Semicolon :
12
10
AllowAsExpressionSeparator : true
13
11
Style/Documentation :
@@ -16,53 +14,53 @@ Style/ClassVars:
16
14
Enabled : false
17
15
Style/HashSyntax :
18
16
EnforcedStyle : hash_rockets
19
- Style /SpaceInsideHashLiteralBraces :
17
+ Layout /SpaceInsideHashLiteralBraces :
20
18
EnforcedStyle : no_space
21
- Style /SpaceInsideBlockBraces :
19
+ Layout /SpaceInsideBlockBraces :
22
20
SpaceBeforeBlockParameters : false
23
- Style/MultilineMethodCallIndentation :
24
- EnforcedStyle : indented
25
21
Style/NumericPredicate : # ruby 1.8/1.9 do not have positive?/negative?
26
22
EnforcedStyle : comparison
27
- Style /MultilineMethodCallIndentation :
23
+ Layout /MultilineMethodCallIndentation :
28
24
EnforcedStyle : indented
29
- Style /DotPosition :
25
+ Layout /DotPosition :
30
26
EnforcedStyle : trailing
31
27
Style/FormatString :
32
28
EnforcedStyle : percent
33
- Style/IndentArray :
29
+ Layout/FirstArrayElementIndentation :
34
30
EnforcedStyle : consistent
35
- Style/IndentHash :
31
+ Layout/FirstHashElementIndentation :
36
32
EnforcedStyle : consistent
37
33
38
34
# Disable these until we know what to do with them
39
35
Style/SafeNavigation :
40
36
Enabled : false # not supported in 1.8...2.1
41
37
Style/GuardClause : # does not provide much value
42
38
Enabled : false
43
- Style/VariableNumber :
39
+ Naming/VariableNumber :
40
+ Enabled : false
41
+ Naming/AccessorMethodName : # this creates breaking changes in the API
44
42
Enabled : false
45
- Style/AccessorMethodName : # this creates breaking changes in the API
43
+ Naming/PredicateName : # this creates breaking changes in the API
46
44
Enabled : false
47
- Style/PredicateName : # this creates breaking changes in the API
45
+ Style/MethodMissingSuper : # this doesn't exist in 1.8/1.9
48
46
Enabled : false
49
- Style/MethodMissing : # this doesn't exist in 1.8/1.9
47
+ Style/MissingRespondToMissing : # this doesn't exist in 1.8/1.9
50
48
Enabled : false
51
49
Style/Lambda : # not supported in 1.8
52
50
Enabled : false
53
51
Style/EachWithObject : # not supported in 1.8
54
52
Enabled : false
55
- Style/AlignParameters : # does not work correctly with subsequent block
53
+ Layout/ParameterAlignment : # does not work correctly with subsequent block
56
54
Enabled : false
57
- Style/AlignArray : # does not support indentation
55
+ Layout/ArrayAlignment : # does not support indentation
58
56
Enabled : false
59
- Style/AlignHash : # does not support indentation
57
+ Layout/HashAlignment : # does not support indentation
60
58
Enabled : false
61
59
Style/MultilineTernaryOperator :
62
60
Enabled : false
63
61
Style/ClassAndModuleChildren :
64
62
Enabled : false
65
- Style /EmptyLineBetweenDefs :
63
+ Layout /EmptyLineBetweenDefs :
66
64
AllowAdjacentOneLineDefs : true
67
65
Style/SingleLineMethods :
68
66
Enabled : false
@@ -91,9 +89,24 @@ Style/GlobalVars:
91
89
Exclude :
92
90
- benchmarks/**/*.rb
93
91
- spec/**/*.rb
94
- Lint/UnneededSplatExpansion :
92
+ Lint/RedundantSplatExpansion :
95
93
Enabled : false
96
- Lint /Eval :
94
+ Security /Eval :
97
95
Exclude :
98
96
- benchmarks/**/*.rb
99
- - spec/**/*.rb
97
+ - spec/**/*.rb
98
+
99
+ Layout/SpaceAroundMethodCallOperator :
100
+ Enabled : false
101
+ Lint/RaiseException :
102
+ Enabled : false
103
+ Lint/StructNewOverride :
104
+ Enabled : false
105
+ Style/ExponentialNotation :
106
+ Enabled : false
107
+ Style/HashEachMethods :
108
+ Enabled : false
109
+ Style/HashTransformKeys :
110
+ Enabled : false
111
+ Style/HashTransformValues :
112
+ Enabled : false
0 commit comments