Skip to content

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

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

Fix license scan exclusion regex to match ignore patterns at any depth#54039
mthalman merged 1 commit intodotnet: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
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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.

@mthalman mthalman merged commit 01d0ec8 into dotnet:release/9.0.1xx Apr 22, 2026
35 of 39 checks passed
@mthalman mthalman deleted the port-license-scanning-infra branch April 22, 2026 16:05
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