File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -175,11 +175,11 @@ Lint/InheritException:
175
175
Exclude :
176
176
- src/main/ruby/core/exception.rb
177
177
178
- Lint/LiteralInCondition :
178
+ Lint/LiteralAsCondition :
179
179
Description : Checks of literals used in conditions.
180
180
Details : >-
181
181
Pattern `while true` is allowed, disable the cop with
182
- `while true # rubocop:disable Lint/LiteralInCondition ` in this case.
182
+ `while true # rubocop:disable Lint/LiteralAsCondition ` in this case.
183
183
Enabled : true
184
184
185
185
# Supports --auto-correct
@@ -273,7 +273,7 @@ Lint/UnifiedInteger:
273
273
Enabled : false
274
274
275
275
# Supports --auto-correct
276
- Lint/UnneededDisable :
276
+ Lint/UnneededCopDisableDirective :
277
277
Description : ' Checks for rubocop:disable comments that can be removed. Note: this
278
278
cop is not disabled when disabling all cops. It must be explicitly disabled.'
279
279
Enabled : true
Original file line number Diff line number Diff line change @@ -1068,7 +1068,7 @@ def sample_many(count, rng)
1068
1068
spin = false
1069
1069
spin_count = 0
1070
1070
1071
- while true # rubocop:disable Lint/LiteralInCondition
1071
+ while true # rubocop:disable Lint/LiteralAsCondition
1072
1072
j = 0
1073
1073
while j < i
1074
1074
if k == result [ j ]
Original file line number Diff line number Diff line change @@ -535,7 +535,7 @@ def cycle(many=nil)
535
535
i += 1
536
536
end
537
537
else
538
- while true # rubocop:disable Lint/LiteralInCondition
538
+ while true # rubocop:disable Lint/LiteralAsCondition
539
539
cache . each { |o | yield o }
540
540
end
541
541
end
Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ def loop
377
377
return to_enum ( :loop ) { Float ::INFINITY } unless block_given?
378
378
379
379
begin
380
- while true # rubocop:disable Lint/LiteralInCondition
380
+ while true # rubocop:disable Lint/LiteralAsCondition
381
381
yield
382
382
end
383
383
rescue StopIteration => si
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ def self.with_array_of_strings_pointer(strings)
326
326
# gets as soon as it gets something.
327
327
328
328
def self . read_string_at_least_one_byte ( io , count )
329
- while true # rubocop:disable Lint/LiteralInCondition
329
+ while true # rubocop:disable Lint/LiteralAsCondition
330
330
# must call #read_string in order to properly support polyglot STDIO
331
331
string , errno = read_string ( io , count )
332
332
return string if errno == 0
You can’t perform that action at this time.
0 commit comments