Skip to content

Feature request: allow to limit results by path length in UI #3660

Closed as not planned
@p-

Description

@p-

Is your feature request related to a problem? Please describe.

When using MRVA with a query (custom or default) that yields a lot of results it is often hard to figure out which of the results are the most promising ones. See also: Feature request: Display length of shortest path in UI.
Currently there's no (simple) feature in CodeQL to limit query results by max path lengths, so this has to be done in the result viewer or by filtering the Sarif files.
It would be nice to filter out all results that have paths that are longer than a certain number. This number should be freely selectable as sensible values depend on the query and the language (e.g. Java is known as a more verbose language and has often longer code paths).

Describe the solution you'd like

It would be nice if there was a filter option (e.g. called "max path length") to filter out results with a path length that is over a certain value (For MRVA and maybe also for local queries).

I've hacked this together in my experimental branch and it's already useful - see commit p-@7f6f9c9

Image

Additional context

See also: Feature request: Display length of shortest path in UI

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions