Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3860

Map ECJ Warnings to syntax trees

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0
    • Component/s: Plugin
    • Labels:

      Description

      Some rules are now relying on warnings raised by ECJ to raise issues. However, positions between warnings and syntax trees are not aligned, leading to some complexity in the way we raise issues.

      • We had to introduce a new API to report from a warning
      • We often have to check that trees are included in a warning and vice-versa

      Precomputing to which tree a warning is assigned to would simplify the overall process.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.gumowski Michael Gumowski
              Reporter:
              michael.gumowski Michael Gumowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: