From 135dc17f8d7edfa6f5f8d4639c731d652f1405cb Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Thu, 17 Nov 2022 15:26:09 +0900 Subject: [PATCH] [Doc] Tweak the doc for `Lint/DeprecatedConstants` Follow up https://github.com/rubocop/rubocop/pull/10209 --- lib/rubocop/cop/lint/deprecated_constants.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/rubocop/cop/lint/deprecated_constants.rb b/lib/rubocop/cop/lint/deprecated_constants.rb index bc9b8e1afa9..5ecec274e7f 100644 --- a/lib/rubocop/cop/lint/deprecated_constants.rb +++ b/lib/rubocop/cop/lint/deprecated_constants.rb @@ -14,7 +14,8 @@ module Lint # Alternative: 'alternative_value' # DeprecatedVersion: 'deprecated_version' # - # By default, `NIL`, `TRUE`, `FALSE` and `Random::DEFAULT` are configured. + # By default, `NIL`, `TRUE`, `FALSE`, `Net::HTTPServerException, and `Random::DEFAULT` + # are configured. # # @example # @@ -22,12 +23,14 @@ module Lint # NIL # TRUE # FALSE + # Net::HTTPServerException # Random::DEFAULT # Return value of Ruby 2 is `Random` instance, Ruby 3.0 is `Random` class. # # # good # nil # true # false + # Net::HTTPClientException # Random.new # `::DEFAULT` has been deprecated in Ruby 3, `.new` is compatible with Ruby 2. # class DeprecatedConstants < Base