From d6cba47e7cdb42b7ee7e906207430a30839ed715 Mon Sep 17 00:00:00 2001 From: Justin Collins Date: Mon, 6 Feb 2012 15:29:08 -0800 Subject: [PATCH] Add file names to context output in HTML report in partial completion of #39 --- lib/brakeman/format/style.css | 5 +++++ lib/brakeman/report.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/brakeman/format/style.css b/lib/brakeman/format/style.css index bfbd5489..08d6474b 100644 --- a/lib/brakeman/format/style.css +++ b/lib/brakeman/format/style.css @@ -60,6 +60,11 @@ p { background-color: white; } + table caption { + background-color: #FFE; + padding: 2px; + } + table.context { margin-top: 5px; margin-bottom: 5px; diff --git a/lib/brakeman/report.rb b/lib/brakeman/report.rb index c29e4d89..4957b98c 100644 --- a/lib/brakeman/report.rb +++ b/lib/brakeman/report.rb @@ -528,7 +528,8 @@ class Brakeman::Report else CGI.escapeHTML(message) end << - "" + "" << + "" unless context.empty? if warning.line - 1 == 1 or warning.line + 1 == 1 -- GitLab