Roslyn-analyzers: Port FxCop rule CA2202: DoNotDisposeObjectsMultipleTimes

Created on 21 Nov 2015  路  6Comments  路  Source: dotnet/roslyn-analyzers

Title: Do not dispose objects multiple times

Description:

A method implementation contains code paths that could cause multiple calls to System.IDisposable.Dispose or a Dispose equivalent (such as a Close() method on some types) on the same object.

Dependency: Dataflow

Notes:

DataFlow FxCop-Port Resolution-Won't Fix

Most helpful comment

@LMLB You'll be happy know we've cut this!

All 6 comments

Thank you @LMLB. We will take a look.

@LMLB You'll be happy know we've cut this!

Thank you!

We are going to implement this.

Lets put this rule port on hold given the negative feedback on the rule above and the fact that implementing it needs path sensitive flow analysis (which is not yet implemented in the features/dataflow branch). We will reconsider this if we get customer requests.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SixFive7 picture SixFive7  路  4Comments

paulomorgado picture paulomorgado  路  3Comments

KrisVandermotten picture KrisVandermotten  路  3Comments

paulomorgado picture paulomorgado  路  3Comments

paulomorgado picture paulomorgado  路  3Comments