Skip to content

NET-1773 Fix S3966 FN: Support Close() method #7349

Closed
@mary-georgiou-sonarsource

Description

S3966

Sometimes Close is disposing of resources (like in the case of streams) and sometimes not (like in the case of DBConnection).

Detect Close only for a well-known list of types where we know that the behavior is equivalent to Dispose - like streams - and raise an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    False NegativeRule is NOT triggered when it should be.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions