How can I analyze my simple project using sonar?

How to re-analyze complete history of a project using Sonar?

  • I would like to load the entire project history since its inception into Sonar. I would basically want to execute code like this: 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 Is there a tool that does this already? Is there a way of convincing Sonar to use a different date than the current one?

  • Answer:

    This is from the Mailing Lists: Indeed, to import historical data you must use the "sonar.projectDate" property (Format is yyyy-MM-dd, for example 2010-12-25) [1] and launch a Sonar analysis on each tag/branch that you'd like to see in your project history. http://old.nabble.com/re-ordering-historical-data-td31049175.html

Roman Zenka at Stack Overflow Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.