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
This commit is contained in:
Chris Smowton
2026-01-09 16:23:26 +00:00
committed by GitHub
11 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* 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.

View File

@@ -5,6 +5,7 @@ type NUL && "%CODEQL_DIST%\codeql" database index-files ^
--include-extension=.csproj ^
--include-extension=.props ^
--include-extension=.xml ^
--also-match-lgtm-index-filters ^
--size-limit 10m ^
--language xml ^
--working-dir=. ^

View File

@@ -7,6 +7,7 @@ set -eu
--include-extension=.csproj \
--include-extension=.props \
--include-extension=.xml \
--also-match-lgtm-index-filters \
--size-limit 10m \
--language xml \
--working-dir=. \

View File

@@ -9,6 +9,7 @@ if NOT "%CODEQL_EXTRACTOR_GO_EXTRACT_HTML%"=="no" (
--include-extension=.xhtm ^
--include-extension=.xhtml ^
--include-extension=.vue ^
--also-match-lgtm-index-filters ^
--size-limit 10m ^
--language html ^
-- ^

View File

@@ -10,6 +10,7 @@ if [ "${CODEQL_EXTRACTOR_GO_EXTRACT_HTML:-yes}" != "no" ]; then
--include-extension=.xhtm \
--include-extension=.xhtml \
--include-extension=.vue \
--also-match-lgtm-index-filters \
--size-limit 10m \
--language html \
-- \

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* 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.

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* 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.

View File

@@ -3,6 +3,7 @@
type NUL && "%CODEQL_DIST%\codeql" database index-files ^
--include-extension=.yaml ^
--include-extension=.yml ^
--also-match-lgtm-index-filters ^
--size-limit=5m ^
--language yaml ^
-- ^

View File

@@ -5,6 +5,7 @@ set -eu
"$CODEQL_DIST/codeql" database index-files \
--include-extension=.yaml \
--include-extension=.yml \
--also-match-lgtm-index-filters \
--size-limit=5m \
--language yaml \
-- \

View File

@@ -3,6 +3,7 @@
type NUL && "%CODEQL_DIST%\codeql" database index-files ^
--include=**/qlpack.yml ^
--include-extension=.qlref ^
--also-match-lgtm-index-filters ^
--size-limit=5m ^
--language yaml ^
-- ^

View File

@@ -5,6 +5,7 @@ set -eu
"$CODEQL_DIST/codeql" database index-files \
"--include=**/qlpack.yml" \
--include-extension=.qlref \
--also-match-lgtm-index-filters \
--size-limit=5m \
--language yaml \
-- \