提交 d6cba47e 编写于 作者: J Justin Collins

Add file names to context output in HTML report

in partial completion of #39
上级 ef9aa303
......@@ -60,6 +60,11 @@ p {
background-color: white;
}
table caption {
background-color: #FFE;
padding: 2px;
}
table.context {
margin-top: 5px;
margin-bottom: 5px;
......
......@@ -528,7 +528,8 @@ class Brakeman::Report
else
CGI.escapeHTML(message)
end <<
"<table id='#{code_id}' class='context' style='display:none'>"
"<table id='#{code_id}' class='context' style='display:none'>" <<
"<caption>#{(warning.file || '').gsub(tracker.options[:app_path], "")}</caption>"
unless context.empty?
if warning.line - 1 == 1 or warning.line + 1 == 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册