Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to find number of lines delivered to a stream in RTC?

 Hi Team,


I'm trying to get a matrix out of the number of lines of code delivered to RTC in a given duration (Let's say 1 month).

Any body have any idea, how I can accomplish it?

I thought, there will be some REST APIs already available to get this data. It seems like it's not available.

Any help on this, is greatly appreciated.

Thanks,

Anil

0 votes



2 answers

Permanent link

Please see: https://www.google.com/search?q=lines+of+code+site%3Ajazz.net

0 votes


Permanent link

I had a similar requirement (see https://jazz.net/forum/questions/226204/rtc-report-displaying-total-lines-of-code), and, as I figured out that there were no out-of-the-box RTC features that calculated LOC, I developed a custom solution using RTC Plain Java API.

Basically, you must retrieve a stream's history, cycle over the delivered change sets, and, for each change set, retrieve its changes (i.e. the modified or added files).
For each change, extract its contents locally in a temporary file and then count its lines.
If you want to count just the added or modified lines as compared to the previous version, retrieve the file history and extract both the current and the previous version, then compare them.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,028
× 1,700

Question asked: May 27 '18, 1:18 p.m.

Question was seen: 2,914 times

Last updated: May 28 '18, 3:32 a.m.

Related questions
Confirmation Cancel Confirm