Patent ID: 9639351
Date: 2017-05-02
CPC Classifications: G06F

Claim:
1. A computer-implemented method comprising: receiving an existing violation that represents a coding defect occurring in a most recent snapshot of a code base having a plurality of snapshots; obtaining a plurality of transitively matched violations in the code base, wherein each transitively matched violation is data that represents a sequence of matching violations, the sequence representing two or more occurrences of a same coding defect occurring in a sequence of respective snapshots of a revision graph of the code base, wherein each transitively matched violation identifies a respective first violation representing a first-observed occurrence of a coding defect in a first snapshot of the code base and identifies a respective second violation representing a last-observed occurrence of the coding defect in a second snapshot of the code base; obtaining, from the plurality of transitively matched violations, a first transitively matched violation that includes the existing violation representing the coding defect occurring in the most recent snapshot, wherein the first transitively matched violation also identifies an ancestor violation representing a first occurrence of the coding defect in an ancestor snapshot of the code base; and computing a length of time that the coding defect existed in the code base, the length of time being based on an elapsed time since the ancestor snapshot was committed.