Code usage map
AssigneeWalmart Apollo, LLC
InventorAbhishek Kumar Singh
Life of this patent
Estimating the term…
Abstract
A method for dynamically enforcing a code usage policy including mapping machine code compiled from source code to identify construct interactions in the machine code, determining whether the construct interactions identified by the mapping conform to one or more construct interaction maps in a construct interaction registry associated with a code usage policy, and generating instructions to render one or more error messages within a graphical user interface of a development environment in response to a determination that one or more of the construct interactions in the machine code fails to comply with at least one of the construct interaction maps in the construct interaction registry.
Claims23
A method for dynamically enforcing a code usage policy comprising:
- generating a construct interaction registry associated with the code usage policy, the construct interaction registry including a plurality of policy construct interaction maps;
- determining whether the plurality of policy construct interaction maps conflict with each other;
- continuously compiling source code to transform the source code to machine code, as the source code is being input;
- mapping machine code compiled from source code to generate compiled construct interaction maps identifying construct interactions in the machine code;
- determining whether the construct interactions identified by the mapping conform to one or more construct interaction maps in the construct interaction registry associated with the code usage policy;
- generating instructions to render one or more error messages within a graphical user interface of a development environment in a location of the source code responsible for one or more detected errors corresponding to the one or more error messages in response to a determination that one or more of the construct interactions in the machine code fails to comply with at least one of the construct interaction maps in the construct interaction registry;
- instructing a graphical user interface of a registry creation environment to interactively display a list of construct interaction registry templates, each of the construct interaction registry templates including at least one template construct interaction map;
- receiving, via the graphical user interface of the registry creation environment, a selected construct interaction registry template;
- and
- incorporating the at least one template construct interaction map of the selected construct interaction registry template into the construct interaction registry,
- wherein each construct interaction registry template corresponds to a tier in a tiered structure and inherits rules associated with tiers higher than the tier corresponding to each respective construct interaction registry template.
A system for dynamically enforcing a code usage policy comprising:
- a memory;
- and
- a processor configured to execute instructions stored in the memory, causing the system to:
- generate a construct interaction registry associated with the code usage policy, the construct interaction registry including a plurality of policy construct interaction maps;
- determine whether the plurality of policy construct interaction maps conflict with each other;
- continuously compile source code to transform the source code to machine code, as the source code is being input;
- map machine code compiled from source code to generate compiled construct interaction maps identifying construct interactions in the machine code,
- determine whether the construct interactions identified by the mapping conform to one or more construct interaction maps in the construct interaction registry associated with the code usage policy, and
- generate instructions to render one or more error messages within a graphical user interface of the development environment in a location of the source code responsible for one or more detected errors corresponding to the one or more error messages, in response to a determination that one or more of the construct interactions in the machine code fails to comply with at least one of the construct interaction maps in the construct interaction registry;
- a display configured to interactively display a graphical user interface of a registry creation environment including a list of construct interaction registry templates, each of the construct interaction registry templates including at least one template construct interaction map, the processor further configured to;
- receive, via the interactive display, a selected construct interaction registry template, and
- incorporate the at least one template construct interaction map of the selected construct interaction registry template into the construct interaction registry,
- wherein each construct interaction registry template corresponds to a tier in a tiered structure and inherits rules associated with tiers higher than the tier corresponding to each respective construct interaction registry template.
A non-transitory computer readable medium comprising instructions that when executed cause a computational device to:
- generate a construct interaction registry associated with the code usage policy, the construct interaction registry including a plurality of policy construct interaction maps;
- determine whether the plurality of policy construct interaction maps conflict with each other;
- continuously compile source code to transform the source code to machine code, as the source code is being input;
- map machine code compiled from source code to generate compiled construct interaction maps identify identifying construct interactions in the machine code;
- determine whether the construct interactions identified by the mapping conform to one or more construct interaction maps in the construct interaction registry associated with the code usage policy;
- and
- generate instructions to render one or more error messages within a graphical user interface of the development environment in a location of the source code responsible for one or more detected errors corresponding to the one or more error messages, in response to a determination that one or more of the construct interactions in the machine code fails to comply with at least one of the construct interaction maps in the construct interaction registry;
- instruct a graphical user interface of a registry creation environment to interactively display a list of construct interaction registry templates, each of the construct interaction registry templates including at least one template construct interaction map;
- receive, via the graphical user interface of the registry creation environment, a selected construct interaction registry template;
- and
- incorporate the at least one template construct interaction map of the selected construct interaction registry template into the construct interaction registry,
- wherein each construct interaction registry template corresponds to a tier in a tiered structure and inherits rules associated with tiers higher than the tier corresponding to each respective construct interaction registry template.
Dependencies are inferred from the claim text.