Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create linter for non-idiomatic "back in the days" #707

Merged
merged 6 commits into from
Feb 18, 2025

Conversation

elijah-potter
Copy link
Collaborator

Should resolve #702.

Two things happened here.

  1. I modified the PatternLinter trait to allow cancelling a lint in the match_lint phase by returning Option::None.
  2. I wrote a linter to implement feat: Flag "back in the days" instead of "back in the day" #702.

Also the unit tests from my version of this lint I was working on yesterday.
@hippietrail
Copy link
Contributor

Should resolve #702.

Two things happened here.

  1. I modified the PatternLinter trait to allow cancelling a lint in the match_lint phase by returning Option::None.
  2. I wrote a linter to implement feat: Flag "back in the days" instead of "back in the day" #702.

I was working on a linter for this one yesterday too and got stuck. I can see that new functionality was indeed needed.

I also found another false positive with "Back in the days when ...". I submitted a PR with that change plus all my unit tests to this branch: #712

feat: another exception for "back in the days before"
@elijah-potter elijah-potter merged commit 9029c56 into master Feb 18, 2025
17 checks passed
@elijah-potter elijah-potter deleted the back-in-the-days branch February 18, 2025 20:06
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.

feat: Flag "back in the days" instead of "back in the day"
2 participants