Skip to content

Commit 44089d8

Browse files
authored
Merge pull request #21102 from github/smowton/admin/respect-config-paths-filters-pre-finalize
All languages: account for paths and paths-ignore in XML and other ancillary extraction
2 parents fa0e8cc + 6ed24f2 commit 44089d8

File tree

11 files changed

+20
-0
lines changed

11 files changed

+20
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* When a code-scanning configuration specifies the `paths:` and/or `paths-ignore:` settings, these are now taken into account by the C# extractor's search for `.config`, `.props`, XML and project files.

csharp/tools/pre-finalize.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type NUL && "%CODEQL_DIST%\codeql" database index-files ^
55
--include-extension=.csproj ^
66
--include-extension=.props ^
77
--include-extension=.xml ^
8+
--also-match-lgtm-index-filters ^
89
--size-limit 10m ^
910
--language xml ^
1011
--working-dir=. ^

csharp/tools/pre-finalize.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set -eu
77
--include-extension=.csproj \
88
--include-extension=.props \
99
--include-extension=.xml \
10+
--also-match-lgtm-index-filters \
1011
--size-limit 10m \
1112
--language xml \
1213
--working-dir=. \

go/codeql-tools/pre-finalize.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if NOT "%CODEQL_EXTRACTOR_GO_EXTRACT_HTML%"=="no" (
99
--include-extension=.xhtm ^
1010
--include-extension=.xhtml ^
1111
--include-extension=.vue ^
12+
--also-match-lgtm-index-filters ^
1213
--size-limit 10m ^
1314
--language html ^
1415
-- ^

go/codeql-tools/pre-finalize.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if [ "${CODEQL_EXTRACTOR_GO_EXTRACT_HTML:-yes}" != "no" ]; then
1010
--include-extension=.xhtm \
1111
--include-extension=.xhtml \
1212
--include-extension=.vue \
13+
--also-match-lgtm-index-filters \
1314
--size-limit 10m \
1415
--language html \
1516
-- \
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* When a code-scanning configuration specifies the `paths:` and/or `paths-ignore:` settings, these are now taken into account by the Go extractor's search for `.vue` and HTML files.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* When a code-scanning configuration specifies the `paths:` and/or `paths-ignore:` settings, these are now taken into account by the Python extractor's search for YAML files.

python/tools/pre-finalize.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
type NUL && "%CODEQL_DIST%\codeql" database index-files ^
44
--include-extension=.yaml ^
55
--include-extension=.yml ^
6+
--also-match-lgtm-index-filters ^
67
--size-limit=5m ^
78
--language yaml ^
89
-- ^

python/tools/pre-finalize.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -eu
55
"$CODEQL_DIST/codeql" database index-files \
66
--include-extension=.yaml \
77
--include-extension=.yml \
8+
--also-match-lgtm-index-filters \
89
--size-limit=5m \
910
--language yaml \
1011
-- \

ql/tools/pre-finalize.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
type NUL && "%CODEQL_DIST%\codeql" database index-files ^
44
--include=**/qlpack.yml ^
55
--include-extension=.qlref ^
6+
--also-match-lgtm-index-filters ^
67
--size-limit=5m ^
78
--language yaml ^
89
-- ^

0 commit comments

Comments
 (0)