Skip to content

feat: add a new LintKind::Preposition#3445

Open
hippietrail wants to merge 5 commits into
Automattic:masterfrom
hippietrail:wrong-preposition
Open

feat: add a new LintKind::Preposition#3445
hippietrail wants to merge 5 commits into
Automattic:masterfrom
hippietrail:wrong-preposition

Conversation

@hippietrail
Copy link
Copy Markdown
Collaborator

Issues

N/A

Description

I kept making more and more linters to fix wrong prepositions so I finally decided they should be their own LintKind.
I was going to call it WrongPreposition but there are a couple of other preposition-related lints so I ended up choosing Preposition over Prepositions... but maybe you disagree? Let me know!

I changed the LintKind of all the Rust and Weir rules that seemed applicable.

How Has This Been Tested?

cargo test

AI Disclosure

  • I am a human and didn't use any AI.
  • I used LLM features of my editor, but not an agent.
  • I used an AI agent interactively.
  • I am an agent or I got an agent to do the work autonomously.

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes
  • I have considered splitting this into smaller pull requests.

@hippietrail hippietrail added rust Pull requests that update Rust code harper-core linting labels May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

harper-core linting rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant