提交 1fbcde64 编写于 作者: J Justin Collins

Add Report#to_json

上级 f852b7fb
......@@ -618,4 +618,10 @@ class Brakeman::Report
report
end
def to_json
require 'json'
@checks.all_warnings.map { |w| w.to_hash }.to_json
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册