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

Make it possible to search for rules without exact words

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M3, 6.6
    • Component/s: ElasticSearch, Rules
    • Labels:

      Description

      When trying to find Rules matching the name : "Correctness - Method calls deprecated SecureRandom method", SQ is able to find it

      When looking for "Correctness - Method calls deprecated SecureRandom met", SQ is returning nothing

      But when I search for "Correctness - Method calls deprecated SecureRandom", I got the Rule found.

      SQ must be able to return the Rule while searching using one of these 3 search criteria :

      • "Correctness - Method calls deprecated SecureRandom method"
      • "Correctness - Method calls deprecated SecureRandom met"
      • "Correctness - Method calls deprecated SecureRandom"

      Solution for the rule name:

      • We allow partial matches of names (anywhere), but do no intelligent "english language" transformation anymore.
      • We do not allow special Elasticsearch syntax anymore

      Solution for the rule description:

      • We keep the intelligent "english language" mechanisms, so that searching for "lazily" will find rules with "lazy" in the description.
      • We do not allow special Elasticsearch syntax anymore

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                daniel.schwarz Daniel Schwarz (Inactive)
                Reporter:
                alexandre.gigleux Alexandre Gigleux
              • Votes:
                3 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: