54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/saikuro/result_index_generator.rb', line 54
def write_index(files, filename, title, )
return if files.empty?
File.open(filename,"w") do |f|
f.puts "<html><head><title>#{title}</title></head>"
f.puts "#{HTMLStyleSheet.style_sheet}\n<body>"
f.puts "<h1>#{title}</h1>"
enw = files.find_all { |fn,w,e| (!w.empty? || !e.empty?) }
f.puts summarize_errors_and_warnings(enw, )
f.puts "<hr/>"
f.puts list_analyzed_files(files)
f.puts "</body></html>"
end
end
|