Skip to content

Emit informational messages when NoWarn and Diagnostics enabled#148

Open
stan-sz wants to merge 1 commit intodfederm:mainfrom
stan-sz:silent-telemetry
Open

Emit informational messages when NoWarn and Diagnostics enabled#148
stan-sz wants to merge 1 commit intodfederm:mainfrom
stan-sz:silent-telemetry

Conversation

@stan-sz
Copy link
Copy Markdown
Contributor

@stan-sz stan-sz commented May 6, 2026

When EnableReferenceTrimmerDiagnostics NoWarn="RT000x" will still emit Informational reports about unused dependencies. The purpose is to allow gradual enforcement of ReferenceTrimmer on a mono-repo and still collect silent telemetry about not-yet-enforced projects.

When EnableReferenceTrimmerDiagnostics NoWarn="RT000x" will still emit Informational reports about unused dependencies. The purpose is to allow gradual enforcement of ReferenceTrimmer on a mono-repo and still collect silent telemetry about not-yet-enforced projects.
if (currentNoWarn.Trim().Equals(warningIdSpan, StringComparison.OrdinalIgnoreCase))
{
return true;
return IsReferenceTrimmerDiagnosticsEnabled() ? ReferenceTrimmerSeverity.Info : ReferenceTrimmerSeverity.Hidden;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the crux of the change. Other changes are plumbing.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant