Skip to content

FURB171: Potentially unsafe fix #15268

@fedyakov

Description

@fedyakov

FURB171 auto-fixes

s in " "

into

s == " "

But the Initial expression is equivalent to s == "" or s == " ", not s == " ".
It's a valid warning and safe fix for explicit collections like lists or sets, but probably should be disabled or at least moved to unsafe for strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedContributions especially welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions