METHOD AND APPARATUS FOR FINDING LONG METHODS IN CODE

    公开(公告)号:WO2019055378A1

    公开(公告)日:2019-03-21

    申请号:PCT/US2018/050359

    申请日:2018-09-11

    Inventor: KADAM, Aditya T.

    CPC classification number: G06F8/77 G06F8/443 G06F8/72 G06F8/75

    Abstract: A method and apparatus are disclosed for finding overlong source code segments (e.g., methods) by evaluating input source code segments for a plurality of predetermined code metric values in order to identify candidate source code segments (e.g., non-autogenerated methods) which do not meet a first code metric value and to assess each candidate source code segment against a second code metric value to identify different sets of candidate source code segments (e.g., test methods and normal methods) so that each set of candidate source code segments may be assessed against a tailored set of code length thresholds to identify any overlong source code segment having a code length which meets or exceeds at least two of the tailored set of code length thresholds.

Patent Agency Ranking