feat: do diligence→due diligence/do due diligence#2810
Merged
elijah-potter merged 1 commit intoAutomattic:masterfrom Feb 27, 2026
Merged
feat: do diligence→due diligence/do due diligence#2810elijah-potter merged 1 commit intoAutomattic:masterfrom
elijah-potter merged 1 commit intoAutomattic:masterfrom
Conversation
elijah-potter
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues
N/A
Description
I noticed that though we have some linting for mixing up "do" and "due", we do not flag "do diligence".
While looking into it I discovered that people write this not only instead of "due diligence" but also instead of "do due diligence".
I couldn't find a wide enough variety of usages to confidently build a proper linter with context to differentiate between the two. So instead made a Weir rule with a
messagethat should hopefully allow the user to choose the right suggestion.I hereby invite anyone to improve this linter with logic that can determine which of the two possible suggestions would be the right one.
How Has This Been Tested?
Two unit tests are included, one for each variant.
Checklist