osv-scanner icon indicating copy to clipboard operation
osv-scanner copied to clipboard

Gitignore parsing iterates through all directories unnecessarily

Open another-rex opened this issue 2 years ago • 1 comments

The git ignore parsing logic always iterates down through all directories, even ignored directories.

This causes scans that don't use the -r flag to take a surprisingly long time to complete, and also causes large, directory structures that have been ignored to take a long time to scan, since those directories are walked through to find ignore files.

another-rex avatar May 18 '23 02:05 another-rex

i can take a look at this

robotdana avatar May 26 '23 02:05 robotdana

Can you assign this to me please @another-rex

robramsaynz avatar Jan 23 '24 02:01 robramsaynz