Non Returning Function
Warns about 'Function' and 'Property Get' procedures whose return value is not assigned.
NEW! This inspection is only available in pre-release builds.
Reasoning
Both 'Function' and 'Property Get' accessors should always return something. Omitting the return assignment is likely a bug.
Default severity
Error
Inspection type
CodeQualityIssues
Examples
This example should trigger a result
This example should NOT trigger a result
Rubberduck.CodeAnalysis.Inspections.Concrete.NonReturningFunctionInspection.cs (Prerelease-v2.5.2.6174)