Resl1010 Unhandled Resultt Failure Path Warning
title: RESL1010 — Unhandled Result<T> Failure Path [Warning]
Warns when a Result<T> local variable has no failure-aware usage in its enclosing block and is not returned — errors will be silently swallowed.
// ⚠️ RESL1010: 'result' returns Result<T> but the failure path is not handled
void Process(int id)
{
var result = repository.GetById(id); // ← RESL1010 fires here
Console.WriteLine(result.Value); // only success branch — errors are lost
}
// ✅ handled — any of these suppresses RESL1010:
var result = repository.GetById(id);
result.Match(onSuccess: ..., onFailure: ...); // Match
if (result.IsFailure) { /* handle */ } // IsFailure check
return result; // propagated to caller
result.TapOnFailure(e => logger.LogError(...)); // failure side-effect
Suppressed by: IsSuccess, IsFailure, Match, Switch, TapOnFailure, Bind, Map, Ensure, GetValueOr, TryGetValue, Or, OrElse, MapError — any member that acknowledges the failure path.