Python: replace src_archive exclusion patterns with *.testproj ones

The `**/src_archive/**` exclusion patterns seem to have to do with
trying to exclude archived source files from being picked up for the
extractor while running the test itself. However it seems that directory
is not being used any more by `codeql` (which uses a `src` directory
instead).

A `*.testproj` exclusion pattern will work in a more robust way, by
excluding any file inside the database being built.
This commit is contained in:
Paolo Tranquilli
2024-09-16 14:30:55 +02:00
parent d72f8b2e46
commit 8953ad6b76
9 changed files with 9 additions and 10 deletions

View File

@@ -1,2 +1 @@
semmle-extractor-options: -R . -p . --filter exclude:**/src_archive/**
semmle-extractor-options: -R . -p . --filter exclude:**/*.testproj/**

View File

@@ -1 +1 @@
semmle-extractor-options: --path path1 -p path2 -R . --filter exclude:**/src_archive/**
semmle-extractor-options: --path path1 -p path2 -R . --filter exclude:**/*.testproj/**

View File

@@ -1 +1 @@
semmle-extractor-options: -v --filter include:**/*.py --filter exclude:**/*test.py -R . --filter exclude:**/foo/exclude_this.py --filter include:**/include*.py --filter exclude:**/src_archive/**
semmle-extractor-options: -v --filter include:**/*.py --filter exclude:**/*test.py -R . --filter exclude:**/foo/exclude_this.py --filter include:**/include*.py --filter exclude:**/*.testproj/**

View File

@@ -1 +1 @@
semmle-extractor-options: -R . --path no-such-path --filter exclude:**/src_archive/** --respect-init=False --max-context-cost=11 --dont-split-graph
semmle-extractor-options: -R . --path no-such-path --filter exclude:**/*.testproj/** --respect-init=False --max-context-cost=11 --dont-split-graph

View File

@@ -1 +1 @@
semmle-extractor-options: -R . --path no-such-path --filter exclude:**/src_archive/**
semmle-extractor-options: -R . --path no-such-path --filter exclude:**/*.testproj/**

View File

@@ -1 +1 @@
semmle-extractor-options: -R . -p non-such --filter exclude:**/src_archive/**
semmle-extractor-options: -R . -p non-such --filter exclude:**/*.testproj/**

View File

@@ -1 +1 @@
semmle-extractor-options: -R . --filter=include:**/*.thrift --filter exclude:**/src_archive/**
semmle-extractor-options: -R . --filter=include:**/*.thrift --filter exclude:**/*.testproj/**

View File

@@ -1 +1 @@
semmle-extractor-options: -R . --filter exclude:**/src_archive/**
semmle-extractor-options: -R . --filter exclude:**/*.testproj/**

View File

@@ -1 +1 @@
semmle-extractor-options: -R . --filter=include:**/*.thrift --filter exclude:**/src_archive/**
semmle-extractor-options: -R . --filter=include:**/*.thrift --filter exclude:**/*.testproj/**