-
Notifications
You must be signed in to change notification settings - Fork 239
Fix S2857 FP: Rule is not checking SQL keywords in const interepolated string #8966
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
Conversation
|
|
|
|
||
| string s24 = $"{{{nonConstOne}}}"; // Noncompliant FP | ||
| // Noncompliant@-1 FP | ||
| string s24 = $"{{{nonConstOne}}}"; // Compliant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these do not contain SQL keywords, so now they are correctly compliant.
analyzers/tests/SonarAnalyzer.Test/TestCases/SqlKeywordsDelimitedBySpace.cs
Show resolved
Hide resolved
costin-zaharia-sonarsource
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!




Fixes #6633