SA1114 - Visual-Stylecop/Visual-StyleCop GitHub Wiki

<title>SA1114: ParameterListMustFollowDeclaration</title> <script src="script/helpstudio.js" type="text/javascript"></script> <script src="script/StandardText.js" type="text/jscript"></script>
<script type="text/jscript"> WritePageTop(document.title);</script>

TypeName

ParameterListMustFollowDeclaration

CheckId

SA1114

Category

Readability Rules

Cause

The start of the parameter list for a method or indexer call or declaration does not begin on the same line as the opening bracket, or on the line after the opening bracket.

Rule Description

A violation of this rule occurs when there are one or more blank lines between the opening bracket and the start of the parameter list. For example:

public string JoinName(

string first, string last)

{

}

The parameter list must begin on the same line as the opening bracket, or on the next line. For example:

public string JoinName(string first, string last)

{

}

public string JoinName(

string first, string last)

{

}

How to Fix Violations

To fix a violation of this rule, ensure that the parameter list begins on the same line as the opening bracket, or on the next line.

How to Suppress Violations

[SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1114:ParameterListMustFollowDeclaration", Justification = "Reviewed.")]
⚠️ **GitHub.com Fallback** ⚠️