Ferrous API Reference

All Types / Ferrous.Pedantic

class ResourceLeakAnalyzer

public sealed class ResourceLeakAnalyzer : DiagnosticAnalyzer

CFG-based Roslyn analyzer (FE0419) detecting un-disposed ScopeGuard or locally created IDisposable handles that leak on normal exit or early-return paths.

Constants

public const string ResourceLeakDiagnosticId = "FE0419"

Diagnostic ID for a locally created ScopeGuard or IDisposable that leaks on exit or early return.

Properties

public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics

Methods

public override void Initialize(AnalysisContext context)