When using Sonar in Eclipse, 2 modes are available:
This is the default mode. Information showed in the remote mode is coming from a remote Sonar server. This means that those information have been computed during the latest analysis on that server.
- You will not see violations introduced in the code that you just added.
- Metrics (number of lines for example) will display values that will not match what you see in Eclipse if you added some code.
When switching to the local mode, information displayed is coming from the latest local analysis.
- You can see violations introduced in the code that you just added.
- Metrics (number of lines for example) will display values that will match what you see in Eclipse if you added some code.
One Mode to
To switch from one mode to another, right-click on the project, then select Sonar = > Analyse... => Remotely or Locally
SONARIDE-302: When switching from one mode to another, open files are not redecorated. As a workaround, you should close and reopen those open files to get the proper information.
Mode > Remote or Local:
Features below will be tagged as Remote or/and Local depending on their availability.