发明名称 Transitive source code violation matching and attribution
摘要 Methods, systems, and apparatus, including computer programs encoded on computer storage media, for matching and attributing code violations. One of the methods includes receiving a plurality of snapshots of a code base, including data representing a revision graph of the snapshots of the code base and data representing respective violations in each of the plurality of snapshots. A plurality of transitively matched violations in the code base are generated, wherein each transitively matched violation represents a respective sequence of matching violations from a first violation of a first snapshot to a second violation of a second snapshot, wherein each transitively matched violation identifies a respective first violation representing an initial occurrence of a coding defect in the code base and a respective second violation representing a last occurrence of the coding defect in the code base.
申请公布号 US9208056(B1) 申请公布日期 2015.12.08
申请号 US201414577892 申请日期 2014.12.19
申请人 发明人 Henriksen Anders Starcke;Domenecci Ricardo Pescuma
分类号 G06F9/44;G06F11/36 主分类号 G06F9/44
代理机构 Fish & Richardson P.C. 代理人 Fish & Richardson P.C.
主权项 1. A computer-implemented method for determining authors of coding defects in a code base, the method comprising: receiving a plurality of existing violations occurring in a most recent snapshot of a plurality of snapshots of the code base, wherein each violation is data representing a coding defect occurring in the most recent snapshot of the code base; generating a plurality of transitively matched violations in the code base, wherein each transitively matched violation is data that represents a respective sequence of matching violations occurring in a sequence of respective snapshots of a revision graph of the code base, including successively matching violations from respective first violations, each first violation representing a first-observed occurrence of a respective coding defect in the code base in a respective first snapshot, though one or more respective intervening violations, each intervening violation representing occurrences of the respective coding defect in respective intervening snapshots, to respective second violations, each second violation representing a last-observed occurrence of the respective coding defect in the code base in a respective second snapshot; determining, from the plurality of transitively matched violations, a plurality of first transitively matched violations that each identify an existing violation of the plurality of existing violations, wherein the plurality of first transitively matched violations also identify ancestor violations occurring in respective ancestor snapshots, each ancestor violation representing a first-observed occurrence of the respective coding defect in a respective ancestor snapshot; identifying respective responsible entities for each of the ancestor snapshots; and designating the respective responsible entities as authors of the coding defects occurring in the most recent snapshot of the code base.
地址