如何使用Sonar重新分析项目的完整历史记录?

Rom*_*nka 14 svn statistics version-control history sonarqube

我想将整个项目历史记录加载到Sonar中.

我基本上想要执行这样的代码:

0) checkout version 1 from Subversion
1) checkout next version from Subversion
2) if the commit date is from the same day as the previous one - goto 1
3) run mvn sonar:sonar, overriding the build time with the time of the commit
4) if not on last commit - goto 1

有没有这样做的工具?有没有办法说服Sonar使用与当前日期不同的日期?

oer*_*ers 13

这来自邮件列表:

实际上,要导入历史数据,必须使用"sonar.projectDate"属性(格式为yyyy-MM-dd,例如2010-12-25)[1]并在每个标记/分支上启动声纳分析喜欢看你的项目历史.

http://sonarqube.15.x6.nabble.com/re-ordering-historical-data-td3191565.html

还有一个Blogpost可以进一步解释这一点.