Skip to content

Conversation

@peksin
Copy link

@peksin peksin commented Jan 28, 2023

Hi,

This changes the reading of a directory for SARIF files to use promises, which allows us to read it asynchronously.

This also coincidentally fixes a bug where running the binary in Windows while using the option --sarif-directory ".\" caused the program to log "SARIF files detected: []" regardless of what it actually found (the program seems to work correctly despite it logging erroneously). I suspect it has something to do with the way something else in the program parses ".\" but I didn't investigate further since it went away after exchanging fs.readdirSync() for fs.promises.readdir().

Your fork seems to be more actively maintained than the base repository from Peter Murray, so that's why I built on top of your work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant