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=. \