Any tools to get code churn metrics for a Subversion repository? [closed]

安稳与你 提交于 2019-11-29 04:59:32

问题


I'm looking for any tools that can give you code churn metrics (graphs and charts would be even better) for a Subversion repository.

One tool I know of is statsvn - a Java tool that creates some HTML reports and some code churn metrics. Statsvn reports the number of lines modified (churned) by user over time, some descriptive stats on LOC per file and folder/subfolder, etc.

I would like to know code churn in order to get a better idea of the state of the project. Idea behind this inspired by the MS research: Use of Relative Code Churn Measures to Predict System Defect Density

In a nutshell, the more that source code is churning (changing, whether adding new lines, deleting, changing,etc) the higher the probability that defects are being introduced into the system. The MS research paper says that the number of defects produced can be predicted based on a number of relative code churn measures.

I wanted to know if there are any others that are maybe open source, extensible, etc.


回答1:


If you are willing to go the commercial route check out FishEye from Atlassian (also see their demo site ). FishEye also supports adding plugins (though this does not appear to be very well supported at this time).




回答2:


I have written a tool called 'svnplot' (which I admit was inspired by the output of StatSVN). Its written in python and available on Google code. http://code.google.com/p/svnplot. You can see the sample output at http://thinkingcraftsman.in/projects/svnplot/index.htm

The details/output are not as elaborate as 'fisheye'. Basically it converts the Subversion log history into a 'sqlite' database and then queries sqlite database to generate graphs. You can write your own queries using the created sqlite database.

See if it works for you.




回答3:


See svn-churn, a simple Python script to determine file churn and fix count of a Subversion repository.




回答4:


The only one i've ever heard of and used is statsvn, searching google doesnt return many results.




回答5:


You can probably use svn blame to get the date each line was changed and then use sed to pull out only the year and month and then use sort and uniq -c to generate a useful report.




回答6:


The Power Software tool, KEPM, is pretty focused on CHURN these days. JP




回答7:


try programeter which analyses Subversion and many other dev. tools.



来源:https://stackoverflow.com/questions/54318/any-tools-to-get-code-churn-metrics-for-a-subversion-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!