refactor(linter/plugins): add hasSuggestions to RuleDetails#18962
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
3dd8ddd to
0f5851d
Compare
2cabda5 to
4a553e1
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds infrastructure support for rule suggestions by introducing the hasSuggestions field to RuleDetails. This is preparatory work for full suggestions support, storing and validating the rule.meta.hasSuggestions metadata property.
Changes:
- Added
hasSuggestionsboolean field to theRuleDetailsBaseinterface - Implemented validation logic for
rule.meta.hasSuggestionsthat ensures it's eithertrue,false, ornull/undefined - Initialized and assigned the
hasSuggestionsvalue during rule registration
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0f5851d to
86047f9
Compare
4a553e1 to
ba0aeda
Compare
ba0aeda to
274d089
Compare
Merge activity
|
Store and validate `rule.meta.hasSuggestions`. This is a pre-condition for supporting suggestions.
274d089 to
df6817e
Compare

Store and validate
rule.meta.hasSuggestions. This is a pre-condition for supporting suggestions.