Uploaded image for project: 'SonarQube Eclipse'
  1. SonarQube Eclipse
  2. SONARCLIPS-251

Distinguish new local violations from already existing in remote Sonar instance

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 3.1
    • Labels:
      None

      Description

      (Started in mailing list: http://old.nabble.com/Eclipse---Easy-way-to-view-local-only-violations-td31817246.html).

      Currently, there's no easy way to be able to see if source code we're about to commit will introduce a new violation in Sonar.
      Running a local analysis can help find new local violations, but then it is not possible to distinguish new and existing violations.

      What could be done IMHO is, after having run a local analysis, to retrieve the remote analysis violations, and highlight/tag differently local-ones.

        Issue Links

          Activity

          Hide
          fabemn OLD - Fabrice Bellingard added a comment -

          To sum up:

          • existing violations are flagged as warning, whereas new ones are flagged as errors
            • This can be customized in Eclipse prefs
          • existing violations are shown with bleu Sonar waves, whereas new ones have red Sonar waves
          • they are not highlighted the same way in the editor

          This should help developers to not miss new incoming violations.

          Show
          fabemn OLD - Fabrice Bellingard added a comment - To sum up: existing violations are flagged as warning, whereas new ones are flagged as errors This can be customized in Eclipse prefs existing violations are shown with bleu Sonar waves, whereas new ones have red Sonar waves they are not highlighted the same way in the editor This should help developers to not miss new incoming violations.
          Hide
          fabemn OLD - Fabrice Bellingard added a comment -

          Nice work Julien!

          As we discussed, if you could just find the way to not highlight the lines of existing violations but only of new ones by default, that'd be perfect to me.

          Show
          fabemn OLD - Fabrice Bellingard added a comment - Nice work Julien! As we discussed, if you could just find the way to not highlight the lines of existing violations but only of new ones by default, that'd be perfect to me.
          Hide
          fabemn OLD - Fabrice Bellingard added a comment -

          Checked Julien, that's perfect!

          Show
          fabemn OLD - Fabrice Bellingard added a comment - Checked Julien, that's perfect!
          Hide
          henryju OLD - Julien HENRY added a comment -

          No need for IT

          Show
          henryju OLD - Julien HENRY added a comment - No need for IT

            People

            • Assignee:
              henryju OLD - Julien HENRY
              Reporter:
              tome Thomas Demande
            • Votes:
              11 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: