Code Churn Metrics in RTC 6061
One answer
There are several widgets available that show this, including those that show these as ageing graphs/tables. They are filterable by timeline too.
Check out the 'File Change Activity' widget which gives you exactly what you asked for, as well as the 'Change Set Activity'
If you want to build your own Report Builder reports, you will need to enable the DCC to collect data from the streams you're interested in. To get the Data Collection Component to gather data on specific streams, open the CCM project area, click Reports... Shared Reports... Source Control... Project Activity. Click the link from the About this report section, and select the streams you want.
It will then be available in the Historical Trends data source.
Comments
"Project Activity" report contains Change set additions, modifications and deletions & File additions, modifications and deletions.
I need 3 metrics: Number of lines added, removed & edited. all excluding empty lines & excluding comments.
Eclipse plugin can generate such a metric from Eclipse Client & SonarCube can also generate such a metric.