Skip to content

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

@mats-erik

Description

@mats-erik

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"]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions