When going through the source code, Sonar in Eclipse will highlight the existing violations. The idea is that once you have read the code and understood it, the cost of fixing a violation is low.
Go through the Violations view that displays the list of violations of the selected resource (project, file, etc.):
A double-click on a violation opens the source code editor and highlights the violation:
Once a violation has been fixed, you can simply delete it by clicking on the violation icon and then by selecting the Delete violation item. Deleting a violation also removes it from the Violations view:
If, for any reason you are not going to fix a violation right away but you think it should be resolved, you can create a review on it.
It is possible to create custom queries to display reviews in the Task List view:
From there, double-clicking on a review open the detail of that review:
All operations on reviews available through the Sonar web interface are also available in Mylyn, so a review can be commented, fixed, reassigned, flagged as false-positive and reopened. Moreover a review can be created directly from the Eclipse source code editor on an existing violation.
This Mylyn extension has currently the following limitations:
Note that this feature requires Sonar Eclipse 3.1+ and Sonar 3.5+
Sonar in Eclipse provides the ability to show the quality of changed/modified code prior to pushing it to the SCM.
After running a local analysis, if new violations have been introduced (comparison made against the last analysis on the Sonar server), Eclipse will clearly highlight them: the Sonar icon is red and the line is highlighted. Morevoer, every new violation is considered by default as an error. This means that you won't miss them as Eclipse Package/Resource explorer will clearly show that your project has problems: