lib/yapfac/apache.rb
File.exists?
is deprecated in favor of File.exist?
. Open
Open
return nil unless File.exists? file
- Read upRead up
- Exclude checks
This cop checks for uses of the deprecated class method usages.
Example:
# bad
File.exists?(some_path)
Example:
# good
File.exist?(some_path)