[closed] Calculate Lines of Code from RTC
Hi,
My requirement is to capture the Lines of Code and the number of lines added or removed from the source files in the stream for the tracking purpose. I understand that RTC does not offer any direct facility to do this. I would like to know how this is practiced in other companies. Any suggestions are much appreciated.
Regards,
Pavithra
The question has been closed for the following reason: "Question is answered as well as it can be." by millarde Aug 22 '13, 12:25 p.m.
Comments
Anthony Kesterton
JAZZ DEVELOPER Sep 17 '12, 9:09 a.m.Hi Pavithra - at what point in the development cycle do you want to capture this info? I assume it is when you deliver to the stream - but wanted to check my assumption. Once you capture the info - how do you want to access this info later on? I would also be really interested in how you plan to use this info (if you are able to disclose this)
Pavithra Kasturirangan
Aug 14 '13, 3:27 p.m.I want to do this once the code is delivered.Say, the source code that is considered for a regression build.
Anthony Kesterton
JAZZ DEVELOPER Sep 18 '12, 10:38 a.m.RTC works in terms of change sets - so it must be holding this information somewhere. The trick is to work out how to get at it - and how to make sure you can see it. Let me continue to look around and see if I can find this for you.
Perhaps someone else knows how to do this and can comment.
Pavithra Kasturirangan
Aug 17 '13, 12:52 a.m.Hi Anthony,
Pavithra Kasturirangan
Aug 17 '13, 12:52 a.m.I tried to compare my local changes with the stream.
Tim Mok
JAZZ DEVELOPER Aug 14 '13, 3:32 p.m.You might want to try stack overflow for suggestions as this is beyond the scope of RTC.
http://stackoverflow.com/questions/104756/how-do-you-count-your-lines-of-code
That's one person that has asked the question before. It's ultimately up to you how you want to determine the diff to be a line add/del/mod. You've got the data but you need to process it.
1 vote
sam detweiler
Aug 15 '13, 7:29 a.m.RTC doesn't provide an out of the box mechanism to get this metric. Other tools do,
jenkins, team city and some of the code review tools.
Pavithra Kasturirangan
Aug 16 '13, 4:26 a.m.Thank you, Tim
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Aug 17 '13, 1:02 a.m.Just for interest's sake, what is your purpose for collecting information about the number of lines of code that were changed? It used to be collected primarily because it was an easy thing to measure, and not because it actually provides much value. In particular, it commonly was used to either measure productivity (which is a really bad idea) or code churn (which can be effectively approximated by "number of changes sets" ... the additional detail of "lines of code" does not usually add significant value).
Pavithra Kasturirangan
Aug 22 '13, 8:00 a.m.Thank you, Tim. I had a look at the other options.