Skip to content

Commit

Permalink
Add examples for Lint/DeprecatedClassMethods
Browse files Browse the repository at this point in the history
Follow #9732.
  • Loading branch information
koic committed May 10, 2021
1 parent 8ed41bb commit 3fb1ca3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rubocop/cop/lint/deprecated_class_methods.rb
Expand Up @@ -12,6 +12,8 @@ module Lint
# File.exists?(some_path)
# Dir.exists?(some_path)
# iterator?
# Socket.gethostbyname(host)
# Socket.gethostbyaddr(host)
#
# @example
#
Expand All @@ -20,6 +22,8 @@ module Lint
# File.exist?(some_path)
# Dir.exist?(some_path)
# block_given?
# Addrinfo.getaddrinfo(nodename, service)
# Addrinfo.tcp(host, port).getnameinfo
class DeprecatedClassMethods < Base
extend AutoCorrector

Expand Down

0 comments on commit 3fb1ca3

Please sign in to comment.