Skip to content

✨ feat(mq-lint): add auto-fix support to 9 lint rules and --fix/quick-fix#1973

Merged
harehare merged 1 commit into
mainfrom
feat/mq-lint-autofix
Jul 5, 2026
Merged

✨ feat(mq-lint): add auto-fix support to 9 lint rules and --fix/quick-fix#1973
harehare merged 1 commit into
mainfrom
feat/mq-lint-autofix

Conversation

@harehare

@harehare harehare commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

Introduces mq_lint::Fix (single/composed literal-or-verbatim replacements resolved lazily against source text) and wires it through mq-lint's new --fix CLI flag and mq-lsp's code action quick fixes. Makes boolean_comparison, redundant_try, unnecessary_interpolation, prefer_let_over_var, redundant_boolean_literal, unused_variable, unused_parameter, constant_string_concat, and prefer_coalesce auto-fixable.

Also fixes unused_variable/unused_parameter false positives (and would-be unsafe fixes) on names only referenced via ${x} string interpolation.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • 📝 Documentation
  • ⚡ Performance
  • ✅ Test
  • 📦 Build / dependencies
  • 👷 CI

Checklist

  • I ran cargo fmt and cargo clippy and addressed any warnings
  • I ran just test-all and all tests pass
  • I added or updated tests covering this change
  • I updated relevant documentation (/docs, crate README.md) if needed
  • I added a changelog entry if this is a user-facing change

Additional Context

…-fix

Introduces mq_lint::Fix (single/composed literal-or-verbatim replacements
resolved lazily against source text) and wires it through mq-lint's new
--fix CLI flag and mq-lsp's code action quick fixes. Makes boolean_comparison,
redundant_try, unnecessary_interpolation, prefer_let_over_var,
redundant_boolean_literal, unused_variable, unused_parameter,
constant_string_concat, and prefer_coalesce auto-fixable.

Also fixes unused_variable/unused_parameter false positives (and would-be
unsafe fixes) on names only referenced via `${x}` string interpolation.
@harehare harehare merged commit 562725c into main Jul 5, 2026
9 checks passed
@harehare harehare deleted the feat/mq-lint-autofix branch July 5, 2026 01:40
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.

1 participant