Find unused Stream.Read return value

Proprietary

Detect calls to Stream.Read or Stream.ReadAsync where the return value is discarded. The return value indicates how many bytes were actually read.

OpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindStreamReadResultNotUsed
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindStreamReadResultNotUsed

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.