CPC G06F 8/77 (2013.01) [G06F 8/443 (2013.01); G06F 8/72 (2013.01); G06F 8/75 (2013.01)] | 25 Claims |
1. A method performed by a device having a processor and memory for enhancing operable functionality of a software program, comprising:
receiving, by the device, a plurality of input source code segments from the software program submitted by a developer:
evaluating, by the device, each of the plurality of input source code segments for a plurality of predetermined code metric values;
identifying, by the device, one or more candidate source code segments from the plurality of input source code segments by removing one or more code segments that meet a first code metric value;
assessing, by the device, each of the one or more candidate source code segments against a second code metric value to identify a first set of candidate source code segments that contain the second code metric value and a second set of candidate code segments that do not contain the second predetermined code metric value;
assessing the first set of candidate source code segments against a first tailored set of code length thresholds to identify any overlong source code segment in the first set of candidate source code segments having a code length which meets or exceeds at least two of the first tailored set of code length thresholds; and
assessing the second set of candidate source code segments against a second tailored set of code length thresholds which is different from the first tailored set of code length thresholds to identify any overlong source code segment in the second set of candidate source code segments having a code length which meets or exceeds at least two of the second tailored set of code length thresholds.
|