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

Add FL0019 and FL0020. #89

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

StephenCleary
Copy link
Contributor

Error on event subscriptions using lambda expressions.

Warn on event subscriptions using non-static local functions, unless the event is subscribed earlier in the function and unsubscribed later in the function. This isn't a perfect solution, but should prevent most false positives while catching most problematic code.

@StephenCleary StephenCleary merged commit 46a652f into Faithlife:master Feb 23, 2024
3 checks passed
@StephenCleary StephenCleary deleted the leaky-event-handlers branch February 23, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants