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

Optimize queries of InputFiles by extensions or filename

    Details

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

      Description

      Since the set of indexed files might be now very large thanks to SONAR-8623, we should offer to the sensors an optimized way to do the most frequent queries for InputFiles:

      • Queries by file name (e.g. replace query by pattern **/pom.xml)
      • Queries by file extension (e.g replace query by pattern */.xml)

      To do this, we will need to index the input files using a data structure that allows fast queries using those 2 criteria. New FilePredicates should be created to perform the optimized queries.

      Bonus: we could try to automatically convert:

      • queryByPattern("**/pom.xml") to queryByFilename("pom.xml")
      • queryByPattern("*/.xml") to queryByExtension("xml")

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                duarte.meneses Duarte Meneses
                Reporter:
                duarte.meneses Duarte Meneses
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: