Skip to content

fix(linter): fix rulegen tool broken after #18076#18338

Merged
graphite-app[bot] merged 1 commit intomainfrom
fix-rulegen-broken
Jan 21, 2026
Merged

fix(linter): fix rulegen tool broken after #18076#18338
graphite-app[bot] merged 1 commit intomainfrom
fix-rulegen-broken

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Jan 21, 2026

Summary

Test plan

  • cargo test -p rulegen passes
  • cargo run -p rulegen dot-notation now correctly creates eslint/dot-notation instead of failing with vue/dot-notation unsupported error

Closes #18322

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings January 21, 2026 10:46
@github-actions github-actions bot added the C-bug Category - Bug label Jan 21, 2026
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Jan 21, 2026
Copy link
Member Author

Boshen commented Jan 21, 2026

Merge activity

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 fixes the rulegen tool that was broken after #18076 removed the declare_all_lint_rules! macro. The fix addresses two issues: removes obsolete macro handling code and fixes rule name matching to respect the specified plugin.

Changes:

  • Removed obsolete declare_all_lint_rules! macro handling from add_rules_entry function
  • Fixed find_unsupported_rule to use exact plugin prefix matching instead of substring matching
  • Added get_unsupported_rule_prefix helper function to map RuleKind to correct prefixes

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

## Summary

- Remove obsolete `declare_all_lint_rules!` macro handling from `add_rules_entry` - the macro was removed in #18076
- Fix `find_unsupported_rule` to respect the specified plugin instead of matching any plugin's rule with the same name

## Test plan

- [x] `cargo test -p rulegen` passes
- [x] `cargo run -p rulegen dot-notation` now correctly creates `eslint/dot-notation` instead of failing with `vue/dot-notation` unsupported error

Closes #18322

🤖 Generated with [Claude Code](https://claude.ai/claude-code)
@graphite-app graphite-app bot force-pushed the fix-rulegen-broken branch from fa13bf6 to 04a2871 Compare January 21, 2026 10:54
@graphite-app graphite-app bot merged commit 04a2871 into main Jan 21, 2026
19 checks passed
@graphite-app graphite-app bot deleted the fix-rulegen-broken branch January 21, 2026 11:00
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linter: rulegen tool is broken

2 participants