Patent ID: 11914993
Assignee: AMAZON TECHNOLOGIES, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 5:
6. A computer-implemented method, comprising:
constructing an aggregate representation of a first collection of code examples, wherein the first collection comprises (a) a positive source code example which conforms to a recommended coding practice and (b) a negative source code example which does not confirm to the recommended coding practice, wherein the aggregate representation includes a plurality of nodes and a plurality of edges, wherein individual ones of the nodes correspond to respective source code elements present in the first collection of code examples, wherein an edge linking a first node of the plurality of nodes to a second node of the plurality of nodes represents a relationship detected between a source code element corresponding to the first node and a source code element corresponding to the second node;
generating, using a recursive analysis of at least a portion of the aggregate representation, a rule to automatically detect whether a target set of source code includes one or more code examples which do not conform to the recommended coding practice, wherein the rule comprises a plurality of predicates associated with respective nodes of the aggregate representation; and
providing, based at least in part on a result of applying the rule to a particular set of source code, an indication via one or more programmatic interfaces that the particular set of source code does not conform to the recommended coding practice.