Skip to content

Commit 86be0ce

Browse files
committed
Upgrade rubocop
1 parent ac0b823 commit 86be0ce

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

.rubocop.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ Lint/ConstantDefinitionInBlock:
6868
Exclude:
6969
- "spec/**/*_spec.rb"
7070

71+
Lint/DeprecatedConstants:
72+
Enabled: true
73+
7174
Lint/DeprecatedOpenSSLConstant:
7275
Description: Don't use algorithm constants for `OpenSSL::Cipher` and `OpenSSL::Digest`.
7376
Enabled: true
@@ -96,6 +99,9 @@ Lint/EmptyConditionalBody:
9699
Lint/FloatComparison:
97100
Enabled: true
98101

102+
Lint/LambdaWithoutLiteralBlock:
103+
Enabled: true
104+
99105
Lint/MissingSuper:
100106
Enabled: true
101107

@@ -106,26 +112,41 @@ Lint/MixedRegexpCaptureTypes:
106112
Lint/NoReturnInBeginEndBlocks:
107113
Enabled: true
108114

115+
Lint/NumberedParameterAssignment:
116+
Enabled: true
117+
118+
Lint/OrAssignmentToConstant:
119+
Enabled: true
120+
109121
Lint/OutOfRangeRegexpRef:
110122
Enabled: true
111123

112124
Lint/RaiseException:
113125
Description: Checks for `raise` or `fail` statements which are raising `Exception` class.
114126
Enabled: true
115127

128+
Lint/RedundantDirGlobSort:
129+
Enabled: true
130+
116131
Lint/SelfAssignment:
117132
Enabled: true
118133

119134
Lint/StructNewOverride:
120135
Description: Disallow overriding the `Struct` built-in methods via `Struct.new`.
121136
Enabled: true
122137

138+
Lint/SymbolConversion:
139+
Enabled: true
140+
123141
Lint/ToEnumArguments:
124142
Enabled: true
125143

126144
Lint/TopLevelReturnWithArgument:
127145
Enabled: true
128146

147+
Lint/TripleQuotes:
148+
Enabled: true
149+
129150
Lint/UnexpectedBlockArity:
130151
Enabled: true
131152

@@ -212,6 +233,9 @@ Style/DoubleNegation:
212233
Style/DocumentDynamicEvalDefinition:
213234
Enabled: true
214235

236+
Style/EndlessMethod:
237+
Enabled: true
238+
215239
Style/ExplicitBlockArgument:
216240
# capturing as a proc has a performance hit, so is a case by case choice
217241
Enabled: false
@@ -261,6 +285,9 @@ Style/HashSyntax:
261285
Description: Checks hash literal syntax.
262286
EnforcedStyle: ruby19
263287

288+
Style/IfWithBooleanLiteralBranches:
289+
Enabled: true
290+
264291
Style/NegatedIfElseCondition:
265292
Enabled: true
266293

Gemfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ GEM
2727
ffi (~> 1.9)
2828
rspec-expectations (~> 3.4)
2929
thor (~> 1.0)
30-
ast (2.4.1)
30+
ast (2.4.2)
3131
benchmark-ips (2.8.2)
3232
builder (3.2.4)
3333
capybara (3.34.0)
@@ -121,16 +121,16 @@ GEM
121121
diff-lcs (>= 1.2.0, < 2.0)
122122
rspec-support (~> 3.10.0)
123123
rspec-support (3.10.1)
124-
rubocop (1.7.0)
124+
rubocop (1.9.1)
125125
parallel (~> 1.10)
126-
parser (>= 2.7.1.5)
126+
parser (>= 3.0.0.0)
127127
rainbow (>= 2.2.2, < 4.0)
128128
regexp_parser (>= 1.8, < 3.0)
129129
rexml
130130
rubocop-ast (>= 1.2.0, < 2.0)
131131
ruby-progressbar (~> 1.7)
132-
unicode-display_width (>= 1.4.0, < 2.0)
133-
rubocop-ast (1.4.0)
132+
unicode-display_width (>= 1.4.0, < 3.0)
133+
rubocop-ast (1.4.1)
134134
parser (>= 2.7.1.5)
135135
ruby-progressbar (1.11.0)
136136
simplecov-html (0.12.3)
@@ -144,7 +144,7 @@ GEM
144144
thread_safe (0.3.6-java)
145145
tzinfo (1.2.8)
146146
thread_safe (~> 0.1)
147-
unicode-display_width (1.7.0)
147+
unicode-display_width (2.0.0)
148148
webrick (1.7.0)
149149
websocket-driver (0.7.3)
150150
websocket-extensions (>= 0.1.0)

0 commit comments

Comments
 (0)