Inspection Details

EmptyMethod


Summary
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.
The following code example(s) would trigger this inspection:

Sub Foo()
    ' ...
End Sub

The following code example(s) would not trigger this inspection:

Sub Foo()
    MsgBox "?"
End Sub


Back to List