提交 43b49fc0 编写于 作者: O oreoshake

More sorting for consistency

上级 0a975725
......@@ -609,7 +609,7 @@ class Brakeman::Report
require 'json'
errors = tracker.errors.map{|e| { :error => e[:error], :location => e[:backtrace][0] }}
warnings = all_warnings.map { |w| w.to_hash }
warnings = all_warnings.map { |w| w.to_hash }.sort_by{|w| w[:file]}
scan_info = {
:app_path => File.expand_path(tracker.options[:app_path]),
:rails_version => rails_version,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册