Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-3572

Findbugs plugin should log a violation only on the primary location of a bug instance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.2
    • Component/s: None
    • Labels:
      None

      Description

      In the Findbugs result XML file, a <BugInstance> can have several <SourceLine> elements: actually, they reference several location for this bug.

      However, only the primary location (primary=true) should be used to create the violation in Sonar whereas the plugin currently creates a violation for each one of the <SourceLine> elements.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              godin OLD - Evgeny Mandrikov
              Reporter:
              fabemn OLD - Fabrice Bellingard
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: