-
Notifications
You must be signed in to change notification settings - Fork 22
SA1117
TypeName |
ParametersMustBeOnSameLineOrSeparateLines |
CheckId |
SA1117 |
Category |
Readability Rules |
The parameters to a C# method or indexer call or declaration are not all on the same line or each on a separate line.
A violation of this rule occurs when the parameters to a method or indexer are not all on the same line or each on its own line. For example:
public string JoinName(string first, string middle,
string last)
{
}
The parameters can all be placed on the same line:
public string JoinName(string first, string middle, string last)
{
}
public string JoinName(
string first, string middle, string last)
{
}
Alternatively, each parameter can be placed on its own line:
public string JoinName(
string first,
string middle,
string last)
{
}
To fix a violation of this rule, place all parameters on the same line, or place each parameter on its own line.
[SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1117:ParametersMustBeOnSameLineOrSeparateLines", 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