Skip to content

Commit e62989e

Browse files
committed
Fix key names and formatting
1 parent bb3489a commit e62989e

File tree

1 file changed

+37
-24
lines changed

1 file changed

+37
-24
lines changed

.rubocop.yml

+37-24
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#inherit_from:
22
# - .rubocop_todo.yml
33

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
94
Metrics:
105
Enabled: false
6+
Layout/LineLength:
7+
AutoCorrect: true
8+
Max: 100
119
Style/Semicolon:
1210
AllowAsExpressionSeparator: true
1311
Style/Documentation:
@@ -16,53 +14,53 @@ Style/ClassVars:
1614
Enabled: false
1715
Style/HashSyntax:
1816
EnforcedStyle: hash_rockets
19-
Style/SpaceInsideHashLiteralBraces:
17+
Layout/SpaceInsideHashLiteralBraces:
2018
EnforcedStyle: no_space
21-
Style/SpaceInsideBlockBraces:
19+
Layout/SpaceInsideBlockBraces:
2220
SpaceBeforeBlockParameters: false
23-
Style/MultilineMethodCallIndentation:
24-
EnforcedStyle: indented
2521
Style/NumericPredicate: # ruby 1.8/1.9 do not have positive?/negative?
2622
EnforcedStyle: comparison
27-
Style/MultilineMethodCallIndentation:
23+
Layout/MultilineMethodCallIndentation:
2824
EnforcedStyle: indented
29-
Style/DotPosition:
25+
Layout/DotPosition:
3026
EnforcedStyle: trailing
3127
Style/FormatString:
3228
EnforcedStyle: percent
33-
Style/IndentArray:
29+
Layout/FirstArrayElementIndentation:
3430
EnforcedStyle: consistent
35-
Style/IndentHash:
31+
Layout/FirstHashElementIndentation:
3632
EnforcedStyle: consistent
3733

3834
# Disable these until we know what to do with them
3935
Style/SafeNavigation:
4036
Enabled: false # not supported in 1.8...2.1
4137
Style/GuardClause: # does not provide much value
4238
Enabled: false
43-
Style/VariableNumber:
39+
Naming/VariableNumber:
40+
Enabled: false
41+
Naming/AccessorMethodName: # this creates breaking changes in the API
4442
Enabled: false
45-
Style/AccessorMethodName: # this creates breaking changes in the API
43+
Naming/PredicateName: # this creates breaking changes in the API
4644
Enabled: false
47-
Style/PredicateName: # this creates breaking changes in the API
45+
Style/MethodMissingSuper: # this doesn't exist in 1.8/1.9
4846
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
5048
Enabled: false
5149
Style/Lambda: # not supported in 1.8
5250
Enabled: false
5351
Style/EachWithObject: # not supported in 1.8
5452
Enabled: false
55-
Style/AlignParameters: # does not work correctly with subsequent block
53+
Layout/ParameterAlignment: # does not work correctly with subsequent block
5654
Enabled: false
57-
Style/AlignArray: # does not support indentation
55+
Layout/ArrayAlignment: # does not support indentation
5856
Enabled: false
59-
Style/AlignHash: # does not support indentation
57+
Layout/HashAlignment: # does not support indentation
6058
Enabled: false
6159
Style/MultilineTernaryOperator:
6260
Enabled: false
6361
Style/ClassAndModuleChildren:
6462
Enabled: false
65-
Style/EmptyLineBetweenDefs:
63+
Layout/EmptyLineBetweenDefs:
6664
AllowAdjacentOneLineDefs: true
6765
Style/SingleLineMethods:
6866
Enabled: false
@@ -91,9 +89,24 @@ Style/GlobalVars:
9189
Exclude:
9290
- benchmarks/**/*.rb
9391
- spec/**/*.rb
94-
Lint/UnneededSplatExpansion:
92+
Lint/RedundantSplatExpansion:
9593
Enabled: false
96-
Lint/Eval:
94+
Security/Eval:
9795
Exclude:
9896
- 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

Comments
 (0)