-
Notifications
You must be signed in to change notification settings - Fork 0
Refactoring Detection Logic
Shiblu edited this page Mar 24, 2021
·
2 revisions
To detect move files first we need to see if they contain similar code.
Refactoring miner map potential moved classes by checking if the attributes and methods of the class match with a removed class. It checks only the top-level ones. Since in JS class, there might be no functions at all, we have decided to check for functions up to 3 levels for JS.
So the Class or Container Matcher for exact moves will be doing mapping if both containers contain same-named and argument functions in the same depths.
For the relaxed move, we can ignore the depth and check if all the function is contained.