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

Positive filter doesn't seem to work correctly #2

Open
chapuilo opened this issue Apr 25, 2022 · 0 comments
Open

Positive filter doesn't seem to work correctly #2

chapuilo opened this issue Apr 25, 2022 · 0 comments

Comments

@chapuilo
Copy link

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 ?

@chapuilo chapuilo changed the title Positive filter seems to does not work correctly Positive filter doesn't seem to work correctly Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant