Skip to content

Conversation

@hippietrail
Copy link
Collaborator

Issues

#2044

Description

A basic skeleton started on the immigrate vs emigrate linter I started a month ago and put aside.
I'm turning this into a draft PR so that @Inhishonor can work on it.

I was still researching whether there were context where you could use either with both "to" and "from" like there are with "come" and "go".
Normally we "come from" one place and "go to" another. But we can also "go from one place to another".
I suspected similar things would work especially for "emigrate" and didn't want to make a too literal/too simplistic linter that just blindly replaced any verb+preposition pair without regard to context.

It also matches arbitrary prepositions after either verb to be able to spot things like "immigrate into" or people using the wrong preposition, which is a perennial common mistake.

(I'm not sure if this is the proper way to share or hand over a branch in git/GitHub so let me know!)

How Has This Been Tested?

Not yet at the testing stage.

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes

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