US 11,835,987 B2
Methods and apparatus for finding long methods in code
Aditya T. Kadam, Pune (IN)
Assigned to DevFactory Innovations FZ-LLC, Dubai (AE)
Filed by DevFactory Innovations FZ-LLC, Dubai (AE)
Filed on Sep. 1, 2022, as Appl. No. 17/901,820.
Application 17/901,820 is a continuation of application No. 16/886,957, filed on May 29, 2020, granted, now 11,467,829.
Application 16/886,957 is a continuation of application No. 15/701,730, filed on Sep. 12, 2017, granted, now 10,705,837, issued on Jul. 7, 2020.
Prior Publication US 2023/0020646 A1, Jan. 19, 2023
This patent is subject to a terminal disclaimer.
Int. Cl. G06F 8/41 (2018.01); G06F 9/44 (2018.01); G06F 8/71 (2018.01); G06F 11/34 (2006.01); G06F 9/455 (2018.01); G06F 8/77 (2018.01); G06F 8/72 (2018.01); G06F 8/75 (2018.01)
CPC G06F 8/77 (2013.01) [G06F 8/443 (2013.01); G06F 8/72 (2013.01); G06F 8/75 (2013.01)] 25 Claims
OG exemplary drawing
 
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.