Fixing your code issues
Depending on the issue, you may get fix suggestions in the How can I fix it? tab of the issue's detail view.
Opening issues in your IDE
To speed up the time it takes to find and fix the issue, use Connected mode to connect SonarQube Community Build with SonarQube for IDE and use the Open in IDE feature.
If you’ve already fixed the issue in your code, SonarQube for IDE will not be able to find it in the IDE; only matching code will be highlighted. Keep in mind that the revision or branch analyzed by SonarQube Community Build may not be the same as what you have opened in the IDE. When setting up connected mode, SonarQube for IDE considers the branch currently checked out in the IDE and tries to synchronize it with the most appropriate branch from the server (this is called branch matching in SonarQube for IDE).
To open an issue in your IDE, it's easier if you are already running in connected mode:
- Retrieve the issue and open its detail view.
- In the Where is the issue? tab, select Open in IDE.
Getting AI-generated fix suggestions
The AI-CodeFix feature is available in Early Access, in all commercial versions of SonarQube Server. Learn more about it in the SonarQube Server documentation.
Was this page helpful?