Obsolete Call Statement

Locates explicit 'Call' statements.

 NEW! This inspection is only available in pre-release builds.

Reasoning

The 'Call' keyword is obsolete and redundant, since call statements are legal and generally more consistent without it.

Default severity

Suggestion

Inspection type

LanguageOpportunities

QuickFixes

The following quickfixes are available for this inspection:

Examples

This example should trigger a result

MyModule (StandardModule)
Public Sub Test() Call DoSomething(42) End Sub Private Sub DoSomething(ByVal foo As Long) ' ... End Sub

This example should NOT trigger a result

MyModule (StandardModule)
Public Sub Test() DoSomething 42 End Sub Private Sub DoSomething(ByVal foo As Long) ' ... End Sub

Rubberduck.CodeAnalysis.Inspections.Concrete.ObsoleteCallStatementInspection.cs (Prerelease-v2.5.2.6174)