Empty Method

Identifies empty module member blocks.

Reasoning

Methods containing no executable statements are misleading as they appear to be doing something which they actually don't. This might be the result of delaying the actual implementation for a later stage of development, and then forgetting all about that.

Default severity

Warning

Inspection type

CodeQualityIssues

Examples

This example should trigger a result

MyModule (StandardModule)
Sub Foo() ' ... End Sub

This example should NOT trigger a result

MyModule (StandardModule)
Sub Foo() MsgBox "?" End Sub

Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyMethodInspection.cs (Prerelease-v2.5.9.6289)