Skip to content

Fix S3966 FN: Support Close() method #7349

Open
@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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Area: CFG/SECFG and SE related issues.Type: 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