Fixing issues

From the Enterprise edition, you can get AI-suggested fixes for your code issues.

Depending on the issue, you may get fix suggestions in the How can I fix it? tab of the Retrieving issues. You can also open the issues in your IDE as described below.

With the AI CodeFix feature, you can get AI-generated fix suggestions. This feature is available in Early Access in SonarQube Server. Learn more about it in the Fixing issues.

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:

  1. Retrieving issues and open its detail view.

  2. In the Where is the issue? tab, select Open in IDE.

Last updated

Was this helpful?