Sonar History AnalyseR Project - is a Project to analyse a software's history with Sonar.
Sharp get each revision stored on the project's Version Control System and analyses it with Sonar-Runner.
- Install SVN on your machine
- Download Sonar-Runner (https://github.com/SonarSource/sonar-runner) and config it to Sonar's database.
- Create a Sharp properties file to describe the project
- Run Sharp with -f (created on 3)
It should be as the one's below, used to analyse Sharp's early project on GoogleCode:
# ------------------- Sharp properties #-Dir=0 #-Dfr=HEAD -Dsvn.home=D:\svn-win32-1.6.6 -Dproject.url=https://sonar-history-analyses-project.googlecode.com/svn/trunk/ -Dsonar.runner=E:\teste-sonar-iduff\sonar-runner-2.0 #-Dproperties.file=E:\DanCastellani\Documents\My Dropbox\Projetos\Sonar Hystory Analysis Project\publico-core-sonar-project.properties #If login and password are not set, Shap will try anonymous access. #-Dsvn.username= #-Dsvn.password= -Dshap.use.vcs.version=true #---------------------- sonar-project-properties # check file definition on http://docs.codehaus.org/display/SONAR/Analyzing+with+Sonar+Runner # required metadata -Dsonar.projectKey=br.com.danielcastellani.Sonar-History-Analysis-Project -Dsonar.projectName=Sonar History Analysis Project # #-Dsonar.projectVersion=x # optional description #-Dsonar.projectDescription= -Dsonar.sources=src/main/java # # path to test source directories (optional) -Dsonar.tests=src/test/java # # The value of the property must be the key of the language. -Dsonar.language=java
Codeship: https://www.codeship.io/projects/4498
Send me and email! =D