Skip to content

Relax DotNetTasks diagnostic ID log level patterns to reduce false negatives#467

Merged
dennisdoomen merged 1 commit into
Fallout-build:mainfrom
taiscrummaster:bugfix/AnalyzerDiagnosticIdFalseNegatives
Jul 4, 2026
Merged

Relax DotNetTasks diagnostic ID log level patterns to reduce false negatives#467
dennisdoomen merged 1 commit into
Fallout-build:mainfrom
taiscrummaster:bugfix/AnalyzerDiagnosticIdFalseNegatives

Conversation

@taiscrummaster

Copy link
Copy Markdown

Problem

Current Diagnostic ID LogLevelPattern only allows up to 5 letters in the prefix, for example SYSLIB and and VSTHRD diagnostic ids aren't being picked up.

Diagnostic ID guidelines only suggest a<PREFIX><number>format and a 15 character limit.

What was done

DotNetTasks.cs LogLevelPattern was changed from \w{2,5}\d{1,5} to \w{2,}\d+ for both error and warning.
This removes the upper limit of 5 characters for the prefix and the number.

Relevant Issue nuke-build/nuke#1559

@taiscrummaster taiscrummaster requested a review from a team as a code owner July 3, 2026 09:41
@taiscrummaster taiscrummaster changed the title "Relax DotNetTasks diagnostic ID log level patterns to reduce false negatives Relax DotNetTasks diagnostic ID log level patterns to reduce false negatives Jul 3, 2026

@ITaluone ITaluone left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for your contribution.

Just a small question to consider.

Comment thread src/Fallout.Common/Tools/DotNet/DotNetTasks.cs
@ChrisonSimtian ChrisonSimtian added the Can Merge These PRs are just waiting to be merged, nothing more to do and maintainer has approved label Jul 4, 2026
@dennisdoomen dennisdoomen merged commit 8734bdb into Fallout-build:main Jul 4, 2026
1 check passed
@ChrisonSimtian ChrisonSimtian added the bug Something isn't working label Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Can Merge These PRs are just waiting to be merged, nothing more to do and maintainer has approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants