no-return-disposed-resource
Do not return a resource whose using declaration disposes it before the caller receives it.
Why
Leaving the resource's using scope invokes its disposer before the returned value reaches its consumer, producing an already disposed dependency.
Fix
Keep consumers inside the resource scope, yield it through an awaited fixture use callback, or transfer ownership without a using declaration. Return an independent snapshot when appropriate.
Examples
function client() { using handle = acquire(); return handle;}function client() { using handle = acquire(); return handle.snapshot();}