You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Dir.exists?` and `File.exists? were removed by ruby/ruby#5352.
It will be the following error in Ruby 3.2.
```console
% ruby -ve 'File.exists?("foo.rb")'
ruby 3.2.0dev (2021-12-28T15:22:18Z master 39b3aa4fb3) [x86_64-darwin19]
-e:1:in `<main>': undefined method `exists?' for File:Class (NoMethodError)
File.exists?("foo.rb")
^^^^^^^^
Did you mean? exist?
```
And this PR enables `Lint/DeprecatedClassMethods` cop to detect these deprecated methods.
0 commit comments