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

SA1008 for is expressions with parens in c#9 #3230

Closed
webczat opened this issue Nov 5, 2020 · 0 comments · Fixed by #3265
Closed

SA1008 for is expressions with parens in c#9 #3230

webczat opened this issue Nov 5, 2020 · 0 comments · Fixed by #3265

Comments

@webczat
Copy link

webczat commented Nov 5, 2020

I am using the stylecop analyzers 1.1.18, also tried with newest 1.2.0 betas...
I get SA1008 triggered unnecessarily for this:

return b is (>= 0 and <= 31) or 127;

The problem is between the is and left paren of course, it requests me to remove a space that the vs formatter adds. Also I guess space actually should be there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants