SonarQube Eclipse
  1. SonarQube Eclipse
  2. SONARIDE-251

Distinguish new local violations from already existing in remote Sonar instance

    Details

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

      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
          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
          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
          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
          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
          Fabrice Bellingard added a comment -

          Checked Julien, that's perfect!

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

          No need for IT

          Show
          Julien HENRY added a comment - No need for IT

            People

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

              Dates

              • Created:
                Updated:
                Resolved: