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

False positive hardcoded-sql-expression (S608) #12710

Closed
mats-erik opened this issue Aug 6, 2024 · 0 comments · Fixed by #12720
Closed

False positive hardcoded-sql-expression (S608) #12710

mats-erik opened this issue Aug 6, 2024 · 0 comments · Fixed by #12720
Assignees
Labels
bug Something isn't working

Comments

@mats-erik
Copy link

Ruff (0.5.6) gives false positives for list concatenation if the added list contains sql, even if there is no string formatting done.
Other bug reports for false positives don't concern lists.

class B(A): sqls = A.sqls + ["select colB from tableB"]

["select colA from tableA"] + ["select colB from tableB"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants