发明名称 ARTIFACT NORMALIZATION
摘要 Methods, systems, and apparatus, including computer programs encoded on computer storage media, for generating normalized analysis artifacts for a source code base. One of the methods includes receiving a request to perform an analysis of a collection of source code files in a particular file system, wherein each source code file in the particular file system has a respective associated original file path. One or more normalized analysis artifacts are generated for the collection of source code files, including applying a file path transformation function to the original file path of each source code file referenced by the analysis artifacts to generate a normalized file path for the source code file, wherein each reference in the normalized analysis artifacts to a particular source code file uses the normalized file path for the particular source code file instead of the original file path for the particular source code file.
申请公布号 US2017123791(A1) 申请公布日期 2017.05.04
申请号 US201615336383 申请日期 2016.10.27
申请人 SEMMLE LIMITED 发明人 Tibble Julian;Avgustinov Pavel
分类号 G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项 1. A computer-implemented method comprising: receiving a request to perform an analysis of a collection of source code files, wherein each source code file in the collection of source code files has a respective associated original file path; determining that a first original file path of a first source code file of the collection of source code files includes one or more symbolic links; evaluating each of the one or more symbolic links in the first original file path according to one or more resolution criteria, wherein the one or more resolution criteria specify when to resolve a symbolic link in an original file path, including: determining whether each symbolic link of the one or more symbolic links in the first original file path satisfies the one or more resolution criteria, andwhenever the symbolic link in the first original file path satisfies the one or more resolution criteria, resolving the symbolic link and updating a resolved file path for the first source code file; and applying a file path transformation function to the resolved file path for the first source code file to generate a normalized file path for the first source code file; and generating one or more normalized analysis artifacts for the first source code file, wherein each reference, in the one or more normalized analysis artifacts, to the first source code file, uses the normalized file path for the first source code file instead of the original file path for the first source code file.
地址 Oxford GB