lib/generators/reactive_ruby/test_app/test_app_generator.rb
File.exists?
is deprecated in favor of File.exist?
. Open
Open
return unless File.exists?(test_application_path) && !options[:pretend]
- 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)