Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Positive filter doesn't seem to work correctly #2

@chapuilo

Description

@chapuilo

Let's assume that we have a sarif file example.txt where we have two results. One with id java/random-used-once and one with id java/path-injection.

Now let's assume that we are running:
filter_sarif.py --input example.txt --output out.txt -- +**/*.java*:java/path-injection

I am expecting that after running this command, only the result with id java/path-injection is shown.
But the outcome of this command is out.txt which is the same as example.txt.

I think that result should be initialized to False if there is at least one positive filter:

result = True

What do you think about it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions