Skip to content

S604 shows warning for any type, not just True #8310

@adamhl8

Description

@adamhl8

Say you have something like this:

def do_stuff(shell):
    pass

Calling this function with any argument for shell will show S604, not just True as the warning/documentation implies.

do_stuff(shell="bash")
# S604 Function call with `shell=True` parameter identified, security issue
do_stuff(shell=123)
# S604 Function call with `shell=True` parameter identified, security issue

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions