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

Proper weighting of fields in CodingRule query

    XMLWordPrintable

    Details

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

      Description

      Use cases that do not work as expected for now:

      • I type "complex class" and the first result is a rule ("Unused private function should be removed") that has neither "complex" nor "class" in its title or description
        • The first result containing "complexity" is the third one
        • "Avoid too complex class" (from Flex plugin) only comes at position #14 whereas I'd expect it to be one of the first rules
      • I type "performances" and the first result is a rule that only has "performing" in its description
        • Looks like stemming should not be done in rule description
      • I type "System" and some rules that don't have this word in the title (but only in their description) have a better score than those which have it
      • I type "class" and some rules are returned even if they don't deal with classes - but they do have the "class" word in code excerpts located in the description
        • IMO code samples should be ignored during indexation - otherwise the search is fooled when typing language keywords like "class" or "interface"
        • If possible, code sample in "<pre>" blocks only should be ignored, not those in "<code>" blocks

        Attachments

          Activity

            People

            Assignee:
            stephane.gamard St├ęphane Gamard (Inactive)
            Reporter:
            stephane.gamard St├ęphane Gamard (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: