lib/brakeman/report/ignore/config.rb in brakeman-min-4.5.0 vs lib/brakeman/report/ignore/config.rb in brakeman-min-4.5.1

- old
+ new

@@ -20,10 +20,11 @@ # Populate ignored_warnings and shown_warnings based on ignore # configuration def filter_ignored @shown_warnings = [] @ignored_warnings = [] + @used_fingerprints = Set.new @new_warnings.each do |w| if ignored? w @ignored_warnings << w else @@ -110,12 +111,10 @@ # Save configuration to file 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 + w = w.to_hash(absolute_paths: false) end w[:note] = @notes[w[:fingerprint]] || "" w end.sort_by { |w| w[:fingerprint] }