-
Notifications
You must be signed in to change notification settings - Fork 23
SA1114
TypeName |
ParameterListMustFollowDeclaration |
CheckId |
SA1114 |
Category |
Readability Rules |
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.
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)
{
}
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.
[SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1114:ParameterListMustFollowDeclaration", Justification = "Reviewed.")]
- - SA0102 - Clean Install
- - Download
- - Documentation Rules - Layout Rules - Maintainability Rules - Naming Rules - Ordering Rules - Readability Rules - Spacing Rules - Suppressions
- - Adding a custom StyleCop settings page - Adding custom rule settings - Authoring a custom styleCop rule - Authoring rules metadata - Custom CSharp Language Service - Custom MSBuild Integration - Hosting StyleCop in a Custom Environment - Installing a Custom Rule - Integrating StyleCop Into Build Environments - Integrating StyleCop into MSBuild - Writing Custom Rules for StyleCop