feat: depends based on→depends on#3660
Open
hippietrail wants to merge 1 commit into
Open
Conversation
elijah-potter
requested changes
Jun 15, 2026
| source: &[char], | ||
| context: Option<(&[Token], &[Token])>, | ||
| ) -> Option<Lint> { | ||
| eprintln!("🚨 {}", format_lint_match(matched_tokens, context, source)); |
Collaborator
There was a problem hiding this comment.
We cannot allow global side effects in this function.
Collaborator
Author
There was a problem hiding this comment.
Sorry I left the debugging in because it's just here for review of what it does, not ready to go in yet. I noticed draft PRs never ever get looked at so I thought I'd try this. Sorry if the Description was too much of a wall of text to read my explanation.
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 heard somebody say "depends based on" in a YouTube video this morning, enunciated in a way that indicated there was no intervening punctuation. I did some Googling and Google's AI insisted this is a known/common mistake though it didn't give me any links discussing it. I was able to find a good few examples on GitHub.
But to me only some of them are clearly fixed by removing the "based". Others might be fixed by adding some kind of punctuation between "depends" and "based on". I asked two AIs and they seemed mostly to think removing "based" is always the fix. I don't trust them.
So I'm putting this PR here, marked for review, with the debugging code still present. Because it's not finished but I am soliciting review and draft PRs never get any feedback.
How Has This Been Tested?
cargo testAI Disclosure
I used some AI for the research but not for the code or examples.
If Your PR Implements or Enhances a Linter
Checklist