# File lib/brakeman/report/ignore/config.rb, line 112 def save_to_file warnings, file = @file warnings = warnings.map do |w| if w.is_a? Warning w_hash = w.to_hash w_hash[:file] = w.relative_path w = w_hash end w[:note] = @notes[w[:fingerprint]] || "" w end.sort_by { |w| w[:fingerprint] } output = { :ignored_warnings => warnings, :updated => Time.now.to_s, :brakeman_version => Brakeman::Version } File.open file, "w" do |f| f.puts JSON.pretty_generate(output) end end