Closed jan-gerling closed 4 years ago
@mauricioaniche Fixing this issue is actually quite difficult:
Solution:
Hi, Jan! I'm not sure if I understand it. RMiner identifies the refactoring. The refactoring then goes to the allRefactoringCommits
variable in App:processCommit
. Then, we call processMetrics.collectMetrics
, passing the list of refactorings.
Why can't you collect the metrics for all the refactorings there? I'm having the feeling it's because the name of the files are not matching. Am I right? If so, maybe you will have to do like I did, see getMapWithOldAndNewFiles()
method in RefactoringAnalyzer
.
We definitely know that the class suffered a refactoring, so I suppose all we need to do is to find the diff entry related to it.
Shall we talk in person about it? You walk me through the case, so that I can maybe help you a bit more?
How's this issue going?
The process metrics test for toyrepo 07 (#163 ) showed, that move source refactorings are not tracked by the ProcessMetricsTracker.