Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When using Sonar in Eclipse, 2 modes are available:

Remote

...

Mode

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.

Local

...

Mode

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.

Switch from

...

One Mode to

...

Another

To switch from one mode to another, right-click on the project, then select Sonar = > Analyse... => Remotely or Locally

Image Removed

Note
titleKnown limitation

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:

Image Added

Features below will be tagged as Remote or/and Local depending on their availability.

...