Version 6.4 (build 25310)
C# Sonar Way profile
Have a code like this:
public static void doSomething(string buzz)
{
using (new LogFun(buzz))
{
var store = new typeImplementingIDisposable("My", StoreLocation.LocalMachine);
try
{
store = new typeImplementingIDisposable("My", StoreLocation.LocalMachine);
store.Open(OpenFlags.ReadWrite);
//do something
}
finally
{
//store.Close();
}
}
}
Was wondering if there is a rule that would catch that I need to dispose the object and if it is why it didn’t catch it.
Thanks!