def print_undocumented_objects
return if !@undoc_list || @undoc_list.empty?
log.puts
log.puts "Undocumented Objects:"
objects = @undoc_list.sort_by {|o| o.file.to_s }
max = objects.sort_by {|o| o.path.length }.last.path.length
if @compact
objects.each do |object|
log.puts("%-#{max}s (%s)" % [object.path,
[object.file || "-unknown-", object.line].compact.join(":")])
end
else
last_file = nil
objects.each do |object|
if object.file != last_file
log.puts
log.puts "(in file: #{object.file || "-unknown-"})"
end
log.puts object.path
last_file = object.file
end
end
end