lib/brakeman/report/report_json.rb in brakeman-2.6.1 vs lib/brakeman/report/report_json.rb in brakeman-2.6.2

- old
+ new

@@ -2,17 +2,16 @@ require 'brakeman/report/initializers/multi_json' class Brakeman::Report::JSON < Brakeman::Report::Base def generate_report errors = tracker.errors.map{|e| { :error => e[:error], :location => e[:backtrace][0] }} - app_path = tracker.options[:app_path] warnings = convert_to_hashes all_warnings ignored = convert_to_hashes ignored_warnings scan_info = { - :app_path => File.expand_path(tracker.options[:app_path]), + :app_path => tracker.app_path, :rails_version => rails_version, :security_warnings => all_warnings.length, :start_time => tracker.start_time.to_s, :end_time => tracker.end_time.to_s, :duration => tracker.duration,