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

Add support for SonarLint quick fixes in the Java analyzer

    XMLWordPrintable

    Details

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

      Description

      This meta-ticket regroups all actions required in order to add the support of Quick fixes on the Java analyzer side.

      Ideally, the creation of quick fixes for simple cases should be trivial. For example, it could be hidden behind helpers: (taken from ESlint):

      • insertTextAfter(nodeOrToken, text) - inserts text after the given node or token
      • insertTextAfterRange(range, text) - inserts text after the given range
      • insertTextBefore(nodeOrToken, text) - inserts text before the given node or token
      • insertTextBeforeRange(range, text) - inserts text before the given range
      • remove(nodeOrToken) - removes the given node or token
      • removeRange(range) - removes text in the given range
      • replaceText(nodeOrToken, text) - replaces the text in the given node or token
      • replaceTextRange(range, text) - replaces the text in the given range

        Attachments

          Activity

            People

            Assignee:
            quentin.jaquier Quentin Jaquier
            Reporter:
            quentin.jaquier Quentin Jaquier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: