Versions Compared

Key

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

...

First Analysis of a VB6 Project

  1. Install SonarQube Server (see Setup and Upgrade for more details)
  2. Install SonarQube Scanner and be sure your can call sonar-scanner from the directory where you have your source code
  3. Install SonarVB6 (see Installing a Plugin for more details)
  4. Log in as a user having Global Permissions "Administer System" and apply the Plugin's License key
  5. Run your analysis with the SonarQube Scanner by executing the following command from the root directory of the project:

    Code Block
    languagebash
    sonar-scanner -Dsonar.projectKey=xxx -Dsonar.sources=.


  6. Follow the link provided at the end of the analysis to browse your project's quality in SonarQube UI

Further Analyses

Assuming steps 1-3 above have already been completed, you'll want to encapsulate your analysis parameters in a sonar-project.properties file at the root of your project (see a sample project on GitHub: https://github.com/SonarSource/sonar-scanning-examples/tree/master/sonarqube-scanner). Then subsequent analyses can simply be run with:

Code Block
languagebash
sonar-scanner

Migration from SonarVB 2.4

(warning) With SonarVB 2.5, it is recommended to remove the deprecated sonar.language=vb property from the sonar-project.properties to continue to scan VB6 .cls files.