Skip to content

Commit

Permalink
Properly render confidence in Markdown report
Browse files Browse the repository at this point in the history
Fixes #1446
  • Loading branch information
presidentbeef committed Jan 10, 2020
1 parent 7f9f120 commit dc72225
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/brakeman/report/report_markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def generate_checks
end

def convert_warning warning, original
warning["Confidence"] = TEXT_CONFIDENCE[warning["Confidence"]]
warning["Message"] = markdown_message original, warning["Message"]
warning["Warning Type"] = "[#{warning['Warning Type']}](#{original.link})" if original.link
warning
Expand Down
3 changes: 3 additions & 0 deletions test/tests/report_generation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def test_markdown_sanity
report = @@report.to_markdown

assert report.is_a? String
assert report.include? "High"
assert report.include? "Medium"
assert report.include? "Weak"
end

def test_markdown_debug_sanity
Expand Down

0 comments on commit dc72225

Please sign in to comment.