Skip to content

Fix license scan exclusion regex to match ignore patterns at any depth - #54039

Merged
mthalman merged 1 commit into
dotnet:release/9.0.1xxfrom
mthalman:port-license-scanning-infra
Apr 22, 2026
Merged

mthalman merged 1 commit into
dotnet:release/9.0.1xxfrom
mthalman:port-license-scanning-infra

Conversation

@mthalman

Copy link
Copy Markdown
Member

Backport of dotnet/dotnet#6172

Copilot AI review requested due to automatic review settings April 22, 2026 14:11
@mthalman
mthalman requested review from a team as code owners April 22, 2026 14:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the license-scan exclusion filtering in SourceBuild smoke tests so ignore patterns are respected regardless of directory depth, preventing exclusions from being incorrectly considered “unused” when scanning subsets of the repo.

Changes:

  • Adjust negative lookahead construction in the exclusion regex to match ignored prefixes at any depth under the scan root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants