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

Provide MethodMatcher API to be used in custom rules

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3
    • Component/s: Java API, Plugin
    • Labels:

      Description

      The org.sonar.java.matcher.MethodMatcher class is extremely useful when targeting very precise method invocation or method declaration. We are using it intensively in SonarJava code, as it reduce considerably the amount of code to write to match methods.

      Exposing it, or rather a revised, cleaner version of it, as part of the API would allow custom plugins implementing custom rules to benefit from it, and simplify implementation of custom rules. As API, it would provide a very valuable feature for our users.

        Attachments

          Activity

            People

            Assignee:
            quentin.jaquier Quentin Jaquier
            Reporter:
            michael.gumowski Michael Gumowski
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: