lib/rubocop/config_loader.rb in rubocop-0.39.0 vs lib/rubocop/config_loader.rb in rubocop-0.40.0
- old
+ new
@@ -71,11 +71,10 @@
else
f = File.expand_path(f, File.dirname(path))
if auto_gen_config?
next if f.include?(AUTO_GENERATED_FILE)
- old_auto_config_file_warning if f.include?('rubocop-todo.yml')
end
print 'Inheriting ' if debug?
end
load_file(f)
@@ -190,15 +189,9 @@
break if dir_pathname.to_s == @root_level
dirs_to_search << dir_pathname.to_s
end
dirs_to_search << Dir.home if ENV.key? 'HOME'
dirs_to_search
- end
-
- def old_auto_config_file_warning
- raise RuboCop::Error,
- 'rubocop-todo.yml is obsolete; it must be called' \
- " #{AUTO_GENERATED_FILE} instead"
end
end
end
end