Skip to content

refactor(linter/plugins): add hasSuggestions to RuleDetails#18962

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/02-04-refactor_linter_plugins_add_hassuggestions_to_ruledetails_
Feb 5, 2026
Merged

refactor(linter/plugins): add hasSuggestions to RuleDetails#18962
graphite-app[bot] merged 1 commit intomainfrom
om/02-04-refactor_linter_plugins_add_hassuggestions_to_ruledetails_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 5, 2026

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

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Feb 5, 2026
Copy link
Member Author

overlookmotel commented Feb 5, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@overlookmotel overlookmotel force-pushed the om/02-04-test_linter_plugins_add_ability_to_fix_suggestions_in_js_plugins_tests branch from 3dd8ddd to 0f5851d Compare February 5, 2026 02:05
@overlookmotel overlookmotel force-pushed the om/02-04-refactor_linter_plugins_add_hassuggestions_to_ruledetails_ branch from 2cabda5 to 4a553e1 Compare February 5, 2026 02:05
@overlookmotel overlookmotel marked this pull request as ready for review February 5, 2026 02:07
Copilot AI review requested due to automatic review settings February 5, 2026 02:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 hasSuggestions boolean field to the RuleDetailsBase interface
  • Implemented validation logic for rule.meta.hasSuggestions that ensures it's either true, false, or null/undefined
  • Initialized and assigned the hasSuggestions value during rule registration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@graphite-app graphite-app bot changed the base branch from om/02-04-test_linter_plugins_add_ability_to_fix_suggestions_in_js_plugins_tests to graphite-base/18962 February 5, 2026 02:26
@overlookmotel overlookmotel force-pushed the om/02-04-refactor_linter_plugins_add_hassuggestions_to_ruledetails_ branch from 4a553e1 to ba0aeda Compare February 5, 2026 02:27
@overlookmotel overlookmotel changed the base branch from graphite-base/18962 to om/02-04-test_linter_plugins_add_ability_to_fix_suggestions_in_js_plugins_tests February 5, 2026 02:27
@graphite-app graphite-app bot changed the base branch from om/02-04-test_linter_plugins_add_ability_to_fix_suggestions_in_js_plugins_tests to main February 5, 2026 02:32
@overlookmotel overlookmotel force-pushed the om/02-04-refactor_linter_plugins_add_hassuggestions_to_ruledetails_ branch from ba0aeda to 274d089 Compare February 5, 2026 09:53
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Feb 5, 2026
Copy link
Contributor

camc314 commented Feb 5, 2026

Merge activity

Store and validate `rule.meta.hasSuggestions`. This is a pre-condition for supporting suggestions.
@graphite-app graphite-app bot force-pushed the om/02-04-refactor_linter_plugins_add_hassuggestions_to_ruledetails_ branch from 274d089 to df6817e Compare February 5, 2026 10:47
@graphite-app graphite-app bot merged commit df6817e into main Feb 5, 2026
20 checks passed
@graphite-app graphite-app bot deleted the om/02-04-refactor_linter_plugins_add_hassuggestions_to_ruledetails_ branch February 5, 2026 10:54
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants