Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a 'sonar-project.propeties' file and place it in the same folder as the Solution file (".sln").
    Here is the simplest 'sonar-project.properties' file that you can write to be able to run a Sonar analysis on your project:

    Code Block
    titlesonar-project.properties
    languagehtml/xml
    # Project identification
    sonar.projectKey=com.mycompany:myCSharpApplication
    sonar.projectVersion=1.0-SNAPSHOT
    sonar.projectName=My C# Application
    
    # Info required for Sonar
    sonar.sources=.
    sonar.language=cs
    



  2. Run the following command from your Solution folder:

    Code Block
    languagenone
    sonar-runner

...