Skip to content

Commit a7b70c1

Browse files
committed
Follow RuboCop renames
1 parent 70a0e93 commit a7b70c1

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.rubocop.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ Lint/InheritException:
175175
Exclude:
176176
- src/main/ruby/core/exception.rb
177177

178-
Lint/LiteralInCondition:
178+
Lint/LiteralAsCondition:
179179
Description: Checks of literals used in conditions.
180180
Details: >-
181181
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.
183183
Enabled: true
184184

185185
# Supports --auto-correct
@@ -273,7 +273,7 @@ Lint/UnifiedInteger:
273273
Enabled: false
274274

275275
# Supports --auto-correct
276-
Lint/UnneededDisable:
276+
Lint/UnneededCopDisableDirective:
277277
Description: 'Checks for rubocop:disable comments that can be removed. Note: this
278278
cop is not disabled when disabling all cops. It must be explicitly disabled.'
279279
Enabled: true

src/main/ruby/core/array.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ def sample_many(count, rng)
10681068
spin = false
10691069
spin_count = 0
10701070

1071-
while true # rubocop:disable Lint/LiteralInCondition
1071+
while true # rubocop:disable Lint/LiteralAsCondition
10721072
j = 0
10731073
while j < i
10741074
if k == result[j]

src/main/ruby/core/enumerable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def cycle(many=nil)
535535
i += 1
536536
end
537537
else
538-
while true # rubocop:disable Lint/LiteralInCondition
538+
while true # rubocop:disable Lint/LiteralAsCondition
539539
cache.each { |o| yield o }
540540
end
541541
end

src/main/ruby/core/kernel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def loop
377377
return to_enum(:loop) { Float::INFINITY } unless block_given?
378378

379379
begin
380-
while true # rubocop:disable Lint/LiteralInCondition
380+
while true # rubocop:disable Lint/LiteralAsCondition
381381
yield
382382
end
383383
rescue StopIteration => si

src/main/ruby/core/posix.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def self.with_array_of_strings_pointer(strings)
326326
# gets as soon as it gets something.
327327

328328
def self.read_string_at_least_one_byte(io, count)
329-
while true # rubocop:disable Lint/LiteralInCondition
329+
while true # rubocop:disable Lint/LiteralAsCondition
330330
# must call #read_string in order to properly support polyglot STDIO
331331
string, errno = read_string(io, count)
332332
return string if errno == 0

0 commit comments

Comments
 (0)