We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current implementation of the rule raises violation of S4070 for the following code:
[Flags] public enum Foo { N1 = 1, N2 = 2, N3 = N1 | N2, N4 = 4, N5 = N4 | N1 }
If you remove N5, the violation goes away.
The text was updated successfully, but these errors were encountered:
Thanks for report and sample code @Chelaris182. I was able to reproduce the problem, we'll fix that.
Sorry, something went wrong.
Looking at the rule code I also came up with a false negative case:
[Flags] public enum Options { N1 = 1, N2 = 2, N3 = N1 | N2, N5 = 5 }
Good catch @Chelaris182!
michalb-sonar
No branches or pull requests
The current implementation of the rule raises violation of S4070 for the following code:
If you remove N5, the violation goes away.
The text was updated successfully, but these errors were encountered: