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 ownerJuly 3, 2026 09:41
@taiscrummastertaiscrummaster changed the title "Relax DotNetTasks diagnostic ID log level patterns to reduce false negativesRelax DotNetTasks diagnostic ID log level patterns to reduce false negativesJul 3, 2026

@ITaluoneITaluone 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.

Thanks for your contribution.

Just a small question to consider.

Comment threadsrc/Fallout.Common/Tools/DotNet/DotNetTasks.cs
@ChrisonSimtianChrisonSimtian added the Can Merge These PRs are just waiting to be merged, nothing more to do and maintainer has approved label Jul 4, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugSomething isn't workingCan MergeThese 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

@taiscrummaster@dennisdoomen@ChrisonSimtian@ITaluone