Class Brakeman::Differ
In: lib/brakeman/differ.rb
Parent: Object

extracting the diff logic to it‘s own class for consistency. Currently handles an array of Brakeman::Warnings or plain hash representations.

Methods

Constants

DEFAULT_HASH = {:new => [], :fixed => []}
OLD_WARNING_KEYS = [:warning_type, :location, :code, :message, :file, :link, :confidence, :user_input]

Attributes

new_warnings  [R] 
old_warnings  [R] 

Public Class methods

Public Instance methods

second pass to cleanup any vulns which have changed in line number only. Given a list of new warnings, delete pairs of new/fixed vulns that differ only by line number. Horrible O(n^2) performance. Keep n small :-/

[Validate]