Skip to content

Commit 75aa33b

Browse files
committed
bundle update
1 parent f364c69 commit 75aa33b

File tree

2 files changed

+34
-75
lines changed

2 files changed

+34
-75
lines changed

‎.rubocop.yml

+34-74
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ require:
44

55
AllCops:
66
TargetRubyVersion: 2.5
7+
DisabledByDefault: true
78
Exclude:
89
- bin/**/*
910
- tests/**/*
@@ -15,44 +16,8 @@ AllCops:
1516
- spec/dummy/db/schema.rb
1617
- spec/dummy/bin/**/*
1718

18-
Rails:
19-
Enabled: true
20-
21-
Layout/LineLength:
22-
Enabled: false
23-
24-
Metrics/AbcSize:
25-
Max: 30
26-
27-
Metrics/MethodLength:
28-
Max: 100
29-
30-
Metrics/BlockLength:
31-
Max: 60
32-
33-
Metrics/ClassLength:
34-
Enabled: false
35-
36-
Metrics/ParameterLists:
37-
Enabled: false
38-
39-
Style/IfUnlessModifier:
40-
Enabled: false
41-
42-
Style/GuardClause:
43-
Enabled: false
44-
45-
Style/Documentation:
46-
Enabled: false
47-
48-
Style/ClassAndModuleChildren:
49-
Enabled: false
50-
51-
Naming/AccessorMethodName:
52-
Enabled: false
53-
54-
Naming/MemoizedInstanceVariableName:
55-
Enabled: false
19+
#Metrics/AbcSize:
20+
# Max: 30
5621

5722
# Prefer assert_not over assert !
5823
Rails/AssertNot:
@@ -64,25 +29,23 @@ Rails/RefuteMethods:
6429
Include:
6530
- 'test/**/*'
6631

67-
# Prefer &&/|| over and/or.
68-
Style/AndOr:
32+
Rails/IndexBy:
6933
Enabled: true
7034

71-
# Do not use braces for hash literals when they are the last argument of a
72-
# method call.
73-
Style/HashEachMethods:
35+
Rails/IndexWith:
7436
Enabled: true
7537

76-
Style/HashTransformKeys:
77-
Enabled: true
78-
79-
Style/HashTransformValues:
38+
# Prefer &&/|| over and/or.
39+
Style/AndOr:
8040
Enabled: true
8141

8242
# Align `when` with `case`.
8343
Layout/CaseIndentation:
8444
Enabled: true
8545

46+
Layout/ClosingHeredocIndentation:
47+
Enabled: true
48+
8649
# Align comments with method definitions.
8750
Layout/CommentIndentation:
8851
Enabled: true
@@ -100,10 +63,10 @@ Layout/EndAlignment:
10063
Layout/EmptyLineAfterMagicComment:
10164
Enabled: true
10265

103-
Layout/EmptyLinesAroundBlockBody:
66+
Layout/EmptyLinesAroundAccessModifier:
10467
Enabled: true
10568

106-
Layout/EmptyLinesAroundAttributeAccessor:
69+
Layout/EmptyLinesAroundBlockBody:
10770
Enabled: true
10871

10972
# In a regular class definition, no empty lines around the body.
@@ -118,13 +81,13 @@ Layout/EmptyLinesAroundMethodBody:
11881
Layout/EmptyLinesAroundModuleBody:
11982
Enabled: true
12083

121-
Layout/FirstArgumentIndentation:
122-
Enabled: true
123-
12484
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
12585
Style/HashSyntax:
12686
Enabled: true
12787

88+
Layout/FirstArgumentIndentation:
89+
Enabled: true
90+
12891
# Method definitions after `private` or `protected` isolated calls need one
12992
# extra level of indentation.
13093
Layout/IndentationConsistency:
@@ -153,10 +116,10 @@ Layout/SpaceAroundEqualsInParameterDefault:
153116
Layout/SpaceAroundKeyword:
154117
Enabled: true
155118

156-
Layout/SpaceAroundOperators:
119+
Layout/SpaceBeforeComma:
157120
Enabled: true
158121

159-
Layout/SpaceBeforeComma:
122+
Layout/SpaceBeforeComment:
160123
Enabled: true
161124

162125
Layout/SpaceBeforeFirstArg:
@@ -176,9 +139,6 @@ Style/FrozenStringLiteralComment:
176139
Style/RedundantFreeze:
177140
Enabled: true
178141

179-
Style/AccessModifierDeclarations:
180-
Enabled: false
181-
182142
# Use `foo {}` not `foo{}`.
183143
Layout/SpaceBeforeBlockBraces:
184144
Enabled: true
@@ -204,24 +164,18 @@ Style/StringLiterals:
204164
Layout/IndentationStyle:
205165
Enabled: true
206166

207-
# Blank lines should not have any spaces.
167+
# Empty lines should not have any spaces.
208168
Layout/TrailingEmptyLines:
209169
Enabled: true
210170

211171
# No trailing whitespace.
212172
Layout/TrailingWhitespace:
213173
Enabled: true
214174

215-
Layout/SpaceAroundMethodCallOperator:
216-
Enabled: true
217-
218175
# Use quotes for string literals when they are enough.
219176
Style/RedundantPercentQ:
220177
Enabled: true
221178

222-
Lint/DeprecatedOpenSSLConstant:
223-
Enabled: true
224-
225179
Lint/AmbiguousOperator:
226180
Enabled: true
227181

@@ -250,19 +204,16 @@ Lint/UselessAssignment:
250204
Lint/DeprecatedClassMethods:
251205
Enabled: true
252206

253-
Lint/AssignmentInCondition:
254-
Enabled: false
255-
256-
Lint/RaiseException:
207+
Lint/DeprecatedOpenSSLConstant:
257208
Enabled: true
258209

259-
Lint/StructNewOverride:
210+
Style/ParenthesesAroundCondition:
260211
Enabled: true
261212

262-
Style/ExponentialNotation:
213+
Style/HashTransformKeys:
263214
Enabled: true
264215

265-
Style/ParenthesesAroundCondition:
216+
Style/HashTransformValues:
266217
Enabled: true
267218

268219
Style/RedundantBegin:
@@ -276,16 +227,19 @@ Style/Semicolon:
276227
Enabled: true
277228
AllowAsExpressionSeparator: true
278229

279-
Style/SlicingWithRange:
280-
Enabled: true
281-
282230
# Prefer Foo.method over Foo::method
283231
Style/ColonMethodCall:
284232
Enabled: true
285233

286234
Style/TrivialAccessors:
287235
Enabled: true
288236

237+
Style/SlicingWithRange:
238+
Enabled: true
239+
240+
Style/RedundantRegexpEscape:
241+
Enabled: true
242+
289243
Performance/FlatMap:
290244
Enabled: true
291245

@@ -306,3 +260,9 @@ Performance/ReverseEach:
306260

307261
Performance/UnfreezeString:
308262
Enabled: true
263+
264+
Performance/DeletePrefix:
265+
Enabled: true
266+
267+
Performance/DeleteSuffix:
268+
Enabled: true

‎spec/dummy/app/lib/script_engine.rb

-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def run_precompiled(
8787
instruction_quota_start: instruction_quota_start,
8888
memory_quota: memory_quota,
8989
timeout: timeout
90-
9190
end
9291
end
9392
end

0 commit comments

Comments
 (0)