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

Fix/rcs1208 incorrect recursive behaviour #1119

Merged

Conversation

jamesHargreaves12
Copy link
Contributor

The recursive logic of the fix for RCS1208 is incorrect due to not considering the overlap of local variables when deciding if it can recurse. Please look over the new test for a reproduction of this bug (currently it will also invert the second if causing a compilation error).

The recursive behaviour is also not consistent with other fixes. When you select to fix an issue you should fix just that issue rather than all instances of that analyzer underneath the user.

@jamesHargreaves12 jamesHargreaves12 changed the title Fix/rcs1208 remove recursive Fix/rcs1208 incorrect recursive behaviour Jul 20, 2023
@josefpihrt josefpihrt merged commit c6e5678 into dotnet:main Jul 25, 2023
13 checks passed
Haarmees pushed a commit to Haarmees/Roslynator that referenced this pull request Oct 30, 2023
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.

2 participants