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

Fix summary showing warnings above threshold

which looked strange when no warnings were reported but the summary said
there were.
上级 734eb186
......@@ -464,10 +464,13 @@ class Brakeman::Report
checks.template_warnings].each do |warnings|
warnings.each do |warning|
summary[warning.warning_type.to_s] += 1
unless warning.confidence > tracker.options[:min_confidence]
if warning.confidence == 0
high_confidence_warnings += 1
summary[warning.warning_type.to_s] += 1
if warning.confidence == 0
high_confidence_warnings += 1
end
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册