-
Notifications
You must be signed in to change notification settings - Fork 15
Authentication and configuration
Extension settings are available via Sonar menu in visual studio.
It opens the VSSonarQube Options dialog
This contains all configurations for the extension and for the plugins. The controls on the bottom, 1, 2, 3 and 4, are used to save or cancel the changes made.
3, Reset all changes is used to bring the extension to the default state. So all saved settings for all projects will be forgotten.
Please fill in details about server before using the extension (1) and (2). Once a new authentication a re-synch with the server will be made and analysis can be started. Tokens can be used, in that case leave password field empty and put token under the username field.
When connect at start is enabled, visual studio will connect to server automatically. Test connection will validate (3) and connect to server (4) will establish a connection.
dont forget to save after changing settings
On the main window the connection can also be established after the authentication is done.
- Turns off editor integration
- In standalone mode, the external editor is used to open logs.
- enable debug mode for the extension, when selected all exceptions found during will be logged in the Visual Studio Output window (VSSonarQubeOutput)
Ensure you have powershell 4.0 before running the configuration
- Press download, this will install chocolatey and some additional code analysers like cppcheck.
If you are behind a proxy can download the wrapper from https://github.com/jmecsoftware/sonar-cxx-msbuild-tasks and then set manually those paths in the Wrapper Path. If you are behind proxy you might want to check also the same page for more details about the analysis tools.
Plugins are installed via the plugin manager.
- Add or remove plugins. This works on the fly, does not require visual studio restart.
- List of available plugins
- Plugin information
- Plugin specific configuration. If a pluign provides additional settings they will show also in the extension properties.
- Press the + sign.
- Locate the plugin you want to install and press open
- Restart visual studio to ensure everything is working properly
- First uninstall the previous version of the plugin using the uninstall button and restart visual studio.
- Verify that the plugin no longer exists in the plugin manager.
- Follow the previous section to install the new.
When available licenses can be configured here. Trial licenses might not be available
- Displays available licenses
- Generate user token to enable a license in server
- Refreshs available licenses
This displays the locally available roslyn diagnostics and its rules. More can be configured using the controls.