Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Nov 30, 2025

Store messageId in DiagnosticReport objects. It's not required for sending to Rust, but it is needed for rule tester (#16206).

I think it's fine to add a little code that's redundant in the main runtime, because it only has an overhead when a rule produces diagnostics, which should be an uncommon path.

@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 Nov 30, 2025
Copy link
Member Author

overlookmotel commented Nov 30, 2025


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 self-assigned this Nov 30, 2025
@overlookmotel overlookmotel changed the base branch from main to graphite-base/16296 November 30, 2025 19:00
@overlookmotel overlookmotel force-pushed the 11-30-refactor_linter_plugins_store_messageid_in_diagnostics branch from 65cd570 to c56d44d Compare November 30, 2025 19:00
@overlookmotel overlookmotel changed the base branch from graphite-base/16296 to 11-30-refactor_linter_plugins_move_placeholder_replacement_into_own_function November 30, 2025 19:00
@overlookmotel overlookmotel force-pushed the 11-30-refactor_linter_plugins_move_placeholder_replacement_into_own_function branch from f0114a9 to 25da8e1 Compare November 30, 2025 23:16
@overlookmotel overlookmotel force-pushed the 11-30-refactor_linter_plugins_store_messageid_in_diagnostics branch from c56d44d to 72b48e7 Compare November 30, 2025 23:16
@overlookmotel overlookmotel marked this pull request as ready for review November 30, 2025 23:18
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Nov 30, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 30, 2025

Merge activity

Store `messageId` in `DiagnosticReport` objects. It's not required for sending to Rust, but it is needed for rule tester (#16206).

I think it's fine to add a little code that's redundant in the main runtime, because it only has an overhead when a rule produces diagnostics, which should be an uncommon path.
@graphite-app graphite-app bot force-pushed the 11-30-refactor_linter_plugins_move_placeholder_replacement_into_own_function branch from 25da8e1 to 9de386d Compare November 30, 2025 23:51
@graphite-app graphite-app bot force-pushed the 11-30-refactor_linter_plugins_store_messageid_in_diagnostics branch from 72b48e7 to 1af1091 Compare November 30, 2025 23:51
Base automatically changed from 11-30-refactor_linter_plugins_move_placeholder_replacement_into_own_function to main November 30, 2025 23:56
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 30, 2025
@graphite-app graphite-app bot merged commit 1af1091 into main Nov 30, 2025
19 checks passed
@graphite-app graphite-app bot deleted the 11-30-refactor_linter_plugins_store_messageid_in_diagnostics branch November 30, 2025 23:57
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.

2 participants