The Sonar Visual Basic Plugin doesn’t have any special requirement in addition to the Sonar platform’s requirements.

Read the installation guide to deploy and configure Sonar. Extra steps specific to the Sonar Visual Basic Plugin are :

  • Copy the file sonar-vb-plugin.jar to /extensions/plugins
  • Restart the Sonar server

When the Sonar server is up, login as an admin, select configuration -> settings, click on the Visual Basic tab and enter the activation key provided.

Administration

You can also configure in this screen the memory allocated to the analyzer, the timeout for the analyzer in case there is an issue, the path to the JVM to be used, the number of identical tokens above which two blocks of code will be considered as a duplication and you can choose to ignore literal value when searching for duplications.

You are now ready to run analysis on Visual Basic projects. For each Visual Basic project, a file named pom.xml must be created at the root directory of the project.

Here is a template of what is required. Note that [ ] should be replaced with your own parameters :

If you do not see a snippet above, you download directly the file from here

Execute the following command from the root directory of the Visual Basic project : “mvn sonar:sonar”.

You can browse http://localhost:9000.