Child:
[fb10d8]
(diff)
Download this file
CommitterChurn.rsc
17 lines (13 with data), 574 Bytes
module CommitterChurn
import org::ossmeter::metricprovider::Manager;
import org::ossmeter::metricprovider::ProjectDelta;
@metric{churnPerCommitter}
@doc{Count churn per committer}
@friendlyName{Counts number of lines added and deleted per committer}
map[str author, int churn] churnPerCommitter(ProjectDelta delta, map[str, loc] workingCopyFolders, map[str, loc] scratchFolders)
= (co.author : churn(co) | /VcsCommit co := delta)
;
int churn(VcsCommit item)
= (0 | it + count | /linesAdded(count) := item)
+ (0 | it + count | /linesDeleted(count) := item)
;