Skip to content

Add diagnostic severity configuration and suppression-aware assertions - #42

Merged
danielmarbach merged 1 commit into
mainfrom
diagnostics
Aug 28, 2026
Merged

Add diagnostic severity configuration and suppression-aware assertions#42
danielmarbach merged 1 commit into
mainfrom
diagnostics

Conversation

@danielmarbach

Copy link
Copy Markdown
Contributor

No description provided.

WithDiagnosticSeverity(id, severity[, filename]) and WithGlobalDiagnosticSeverity
configure severity through a SyntaxTreeOptionsProvider with file > all-source >
global precedence, mirroring Roslyn. AssertSuppressedDiagnostics distinguishes
'reported but severity none' from 'not reported' via a neutral-provider re-run.
Filename matching is normalized (separators, case).
@danielmarbach
danielmarbach marked this pull request as ready for review August 28, 2026 10:37

@DavidBoike DavidBoike left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@danielmarbach
danielmarbach merged commit 9657ecc into main Aug 28, 2026
4 checks passed
@danielmarbach
danielmarbach deleted the diagnostics branch August 28, 2026 15:09
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.

2 participants