-
Notifications
You must be signed in to change notification settings - Fork 231
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 S6605 and S6617 FP: Should not be applied to expressions used by EntityFramework #7286
Labels
Milestone
Comments
sebastien-marichal
added a commit
that referenced
this issue
Jun 1, 2023
Hello @KuraiAndras, Thank you for your feedback. This is confirmed as a false positive. |
sebastien-marichal
added a commit
that referenced
this issue
Jun 2, 2023
gregory-paidis-sonarsource
pushed a commit
that referenced
this issue
Jun 2, 2023
andrei-epure-sonarsource
pushed a commit
that referenced
this issue
Jun 2, 2023
Nice work guys 🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
The S6605 analyzer flags code inside expressions which will cause EF queries to be uncompilable.
I understand that checking for usage specifically related to EF might be problematic from the analyzer's side, but it is a very common use case and manually suppressing the issue is problematic. The analyzer itself is very useful in all other settings so turning it off by default is not the best solution.
Repro steps
Expected behavior
Not all collection-specific methods should be used inside expressions used by EntityFramework
Actual behavior
Warning is displayed
Known workarounds
IEnumerable<T>
orICollection<T>
insteadRelated information
Sonar analyzer version
9.1.0.70676
This case might also apply to other collection-specific warnings
The text was updated successfully, but these errors were encountered: