The plugin can be configured to use Connected mode. In this case, rules will be synchronized from your SonarQube server. Follow instructions bellow to get your VSCode connected to your CachéQuality server.
1. Obtain your SonarQube token
You will need a token to setup the extension with your CachéQuality server.
To generate a token in SonarQube, go to User > My Account > Security. Your existing tokens are listed here, each with a Revoke button.
The form at the bottom of the page allows you to generate new tokens. Once you click the Generate button, you will see the token value. Copy it immediately; once you dismiss the notification you will not be able to retrieve it.
2. Obtain your projectKey
The projectKey is the name of your project in the SonarQube server.
3. Configure connected mode server
3.1 On VSCode select File > Preferences > Settings
3.2 Check instructions and click on Edit in settings.json at the Sonarlint > Connected Mode: Sonarqube section
3.3 At the sonarlint.connectedMode.servers section , define your serverURL and token variables
4. Configure connected mode project
4.1 On VSCode select File > Preferences > Settings
4.2 Check instructions and click on Edit in settings.json at the Sonarlint > Connected Mode: Project section
4.3 On the WORKSPACE SETTINGS tab, define your projectKey variable
5. Update the server binding
5.1. Open View > Command Palette
5.2 Type "Update all project bindings to SonarQube/SonarCloud" and press Enter
6. Warnings and errors
Module 'testProject' is associated to quality profile 'AWjbRqGAshBie8HiqNeU' that is not in the storage
Your server binding is not updated. Review the settings.json file and update your server binding.