Analytic and layer-based augmentation of code reviews
AssigneeInternational Business Machines Corporation
InventorsNicholas E. Bofferding, Andrew Geissler, Michael C. Hollinger
Life of this patent
Estimating the term…
Abstract
A computer system may identify a source code for a program. The source code may include one or more instructions. The computer system may then receive a selection of two or more assessment metrics for evaluating the source code. The computer system may then generate an assessment score for each instruction in the source code based on the two or more assessment metrics. The computer system may then provide an assessment score indicator to for each instruction in the source code.
Claims17
A computer-implemented method, the method comprising:
- identifying, by a processor, source code for a program, the source code including one or more changed instructions;
- receiving, from a user, a selection of two or more assessment metrics for evaluating the source code;
- combining the two or more assessment metrics, thereby creating a custom metric;
- generating an assessment score for the one or more changed instructions in the source code according to the combination of the two or more assessment metrics;
- providing, to the user, an assessment score indicator for at least one changed instruction in the source code;
- identifying a first changed instruction, the first changed instruction being configured to perform a first function;
- identifying, automatically by the processor, a first reference instruction;
- determining, by executing the source code in a sandbox environment to identify the first function of the first changed instruction, that the first reference instruction is configured to perform the same first function as the first changed instruction;
- alerting the user that the first reference instruction corresponds to the first changed instruction;
- and
- replacing the first changed instruction with the first reference instruction.
A system comprising:
- an input device;
- an output device;
- a memory;
- a processor in communication with the memory, the processor being configured to perform a method comprising:
- identifying source code for a program, the source code including one or more changed instructions;
- receiving, from a user, a selection of two or more assessment metrics for evaluating the source code;
- combining the two or more assessment metrics, thereby creating a custom metric;
- generating an assessment score for the one or more changed instructions in the source code according to the combination of the two or more assessment metrics;
- providing, to the user, an assessment score indicator for at least one changed instruction in the source code;
- identifying a first changed instruction, the first changed instruction being configured to perform a first function;
- identifying a first reference instruction;
- determining, by executing the source code in a sandbox environment to identify the first function of the first changed instruction, that the first reference instruction is configured to perform the same first function as the first changed instruction;
- alerting the user that the first reference instruction corresponds to the first changed instruction;
- and
- replacing the first changed instruction with the first reference instruction.
A computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform a method, the method comprising:
- identifying, by a processor, source code for a program, the source code including one or more changed instructions;
- receiving, from a user, a selection of two or more assessment metrics for evaluating the source code;
- combining the two or more assessment metrics, thereby creating a custom metric;
- generating an assessment score for the one or more changed instructions in the source code according to the combination of the two or more assessment metrics;
- providing, to the user, an assessment score indicator for at least one changed instruction in the source code;
- identifying a first changed instruction, the first changed instruction being configured to perform a first function;
- identifying, automatically by the processor, a first reference instruction;
- determining, by executing the source code in a sandbox environment to identify the first function of the first changed instruction, that the first reference instruction is configured to perform the same first function as the first changed instruction;
- alerting the user that the first reference instruction corresponds to the first changed instruction;
- and
- replacing the first changed instruction with the first reference instruction.
Dependencies are inferred from the claim text.