发明名称 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 snapshot S of a code base of source code and a different snapshot T of the code base. Data representing first violations in the snapshot S and second violations in the snapshot T is received. Pairs of matching violations are determined using performing two or more matching processes, including performing a first matching process, the first matching process determining first pairs of matching violations according to a first matching algorithm and performing a second matching process, the second matching process determining second pairs of matching violations according to a second matching algorithm from violations not matched by the first matching process. The first pairs of matching violations and the second pairs of matching violations are included in the determined pairs of matching violations.
申请公布号 US9262157(B2) 申请公布日期 2016.02.16
申请号 US201514696185 申请日期 2015.04.24
申请人 Semmle Limited 发明人 Henriksen Anders Starcke;Baars Arthur;Avgustinov Pavel;Tibble Julian;Schaefer Max;de Moor Oege
分类号 G06F9/44 主分类号 G06F9/44
代理机构 Fish & Richardson P.C. 代理人 Fish & Richardson P.C.
主权项 1. A computer-implemented method to distinguish new violations from old violations in snapshots of a code base, the method comprising: receiving data representing one or more parent snapshots S of a code base and a child snapshot T of the code base, wherein each of the one or more parent snapshots S is a parent of the child snapshot T in a revision graph of the code base, wherein each snapshot includes the source code of files of the code base as the files existed at a particular point in time; receiving data representing parent violations in the one or more parent snapshots S and child violations in the child snapshot T, each violation having a respective location in its snapshot, a respective violation snippet, and a respective violation type, the violation snippet being source code that violates a respective coding standard; identifying, by one or more computers, as unmatched child violations those child violations that do not have a matching parent violation in any of the parent snapshots S; and attributing to the child snapshot T a violation introduction for each unmatched child violation.
地址 Oxford GB