Function Return Value Discarded
Warns when a user function's return value is not used at a call site.
Reasoning
A 'Function' procedure normally means its return value to be captured and consumed by the calling code.
Default severity
Warning
Inspection type
CodeQualityIssues
Examples
This example should trigger a result
This example should NOT trigger a result
Rubberduck.CodeAnalysis.Inspections.Concrete.FunctionReturnValueDiscardedInspection.cs (Prerelease-v2.5.9.6289)