require 'cgi'
class Brakeman::Report::HTML < Brakeman::Report::Base
HTML_CONFIDENCE = [ "High",
"Medium",
"Weak" ]
def initialize *args
super
@element_id = 0 #Used for HTML ids
end
def generate_report
out = html_header <<
generate_overview <<
generate_warning_overview.to_s
# Return early if only summarizing
return out if tracker.options[:summary_only]
out << generate_controllers.to_s if tracker.options[:report_routes] or tracker.options[:debug]
out << generate_templates.to_s if tracker.options[:debug]
out << generate_errors.to_s
out << generate_warnings.to_s
out << generate_controller_warnings.to_s
out << generate_model_warnings.to_s
out << generate_template_warnings.to_s
out << generate_ignored_warnings.to_s
out << "