Uploaded image for project: 'SonarLint Core Library'
  1. SonarLint Core Library
  2. SLCORE-245

Improve the prefix matching algorithm

    XMLWordPrintable

    Details

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

      Description

      On big multi-module projects, some files are frequently repeated in multiple modules (pom.xml, build.properties, ...). The current scoring strategy to compute path prefix is only based on the number of file matches, so those repeated files could affect the matching too much.

      We are proposing 2 changes:

      1) files having a deeper path should be considered as more likely to be the correct match

      2) files that are matched multiple times should be considered with a lower priority

        Attachments

          Activity

            People

            Assignee:
            julien.henry Julien Henry
            Reporter:
            julien.henry Julien Henry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: