Skip to content

Make diagnostic hold rule identity - #1015

Merged
vinistock merged 1 commit into
mainfrom
vs_make_diagnostics_hold_rule
Aug 19, 2026
Merged

Make diagnostic hold rule identity#1015
vinistock merged 1 commit into
mainfrom
vs_make_diagnostics_hold_rule

Conversation

@vinistock

Copy link
Copy Markdown
Member

Another step for #1000

Now that we have unified the concept of a rule identity under Rule, we should revert the previous decision and store the Rule singleton in diagnostics. This allows us to make the modelling consistent with the Rust side and easily move the severity resolution after the collection (this will be relevant because we now have diagnostics that are collected differently, but we want to apply configuration to all of them in an uniform way).

This PR changes diagnostics to hold a Rule singleton instead of just the name, so that we have access to the default severity and the name.

@vinistock vinistock self-assigned this Aug 18, 2026
@vinistock
vinistock requested a review from a team as a code owner August 18, 2026 19:38
@vinistock
vinistock merged commit 591ce54 into main Aug 19, 2026
36 checks passed
@vinistock
vinistock deleted the vs_make_diagnostics_hold_rule branch August 19, 2026 13:46
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.

3 participants