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

Prevent false positives in ModifierReused due to early returns #317

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

mrmans0n
Copy link
Owner

@mrmans0n mrmans0n commented Aug 7, 2024

It was easy to trick ModifierReused for a false positive when using an early return. With these changes, that's harder now. I also had the chance to rewrite this part of the code to make it simpler to understand, and more robust -- so win/win I guess?

Added some unit tests as the cherry on top.

@mrmans0n mrmans0n merged commit 5972232 into main Aug 7, 2024
2 checks passed
@mrmans0n mrmans0n deleted the nacho/modifier-reused-early-return branch August 7, 2024 14:13
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.

None yet

1 participant