mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
If someone had used `LGTM_INDEX_FILTERS=exclude:**/*\ninclude:*.rb` before, we would have mistakenly excluded all files :| (LGTM_INDEX_FILTERS is a prioritized list where later matches take priority over earlier ones) This change is needed to support adding `exclude:**/*` as the first filter if `paths` include a glob, which currently causes bad behavior in the Python extractor. However, we can first introduce that change once this PR has been merged. I realize this change can cause more folders and files to be traversed (since they are not just skipped with --exclude). We plan to make a better long term fix which should bring back the previous performance.