Merge pull request #17322 from Homebrew/rmtree_comment

extend/pathname/rmtree: improve comment.
This commit is contained in:
Mike McQuaid 2024-05-17 14:32:57 +09:00 committed by GitHub
commit ae914f6255
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,10 @@ class Pathname
# #
# @api public # @api public
def rmtree(noop: nil, verbose: nil, secure: nil) def rmtree(noop: nil, verbose: nil, secure: nil)
# Ideally we'd odeprecate this but probably can't given gems so let's
# create a RuboCop autocorrect instead soon.
# This is why monkeypatching is non-ideal (but right solution to get
# Ruby 3.3 over the line).
# odeprecated "rmtree", "FileUtils#rm_r" # odeprecated "rmtree", "FileUtils#rm_r"
FileUtils.rm_r(@path, noop:, verbose:, secure:) FileUtils.rm_r(@path, noop:, verbose:, secure:)
nil nil