69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# File 'lib/rubocop/config_loader.rb', line 69
def base_configs(path, inherit_from)
configs = Array(inherit_from).compact.map do |f|
if f =~ /\A#{URI.regexp(%w(http https))}\z/
f = RemoteConfig.new(f, File.dirname(path)).file
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)
end
configs.compact
end
|