Hi @obarbier!
You will need to collect all added and deleted TODO lines inFactHasher using onNext function there. Also, you need to store commit time for each such line.
In function createFacts you will need to calculate time delta between a time of addition and a time of deletion for lines that present both in added and deleted. After that, you should create Fact with code FactCodes.TODO_LIFETIME and mean of calculated time deltas as value, and add it to list of facts.
Is it clear for you? Feel free to ask more questions;)
My TODOs live on average X days
The text was updated successfully, but these errors were encountered: