Multiline Parameter

Flags parameters declared across multiple physical lines of code.

Reasoning

When splitting a long list of parameters across multiple lines, care should be taken to avoid splitting a parameter declaration in two.

Default severity

Suggestion

Inspection type

NamingAndConventionsIssues

Examples

This example should trigger a result

MyModule (StandardModule)
Public Sub DoSomething(ByVal foo As Long, ByVal _ bar As Long) ' ... End Sub

This example should NOT trigger a result

MyModule (StandardModule)
Public Sub DoSomething(ByVal foo As Long, _ ByVal bar As Long) ' ... End Sub

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