C#-MaxOneStmtPerLine¶
Do not put more than one statement in a line
Required inputs: CSharpAST
Example
// BAD:
a = 1; b = 2;
// GOOD:
a = 1;
b = 2;
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
multiple_statements_per_line |
Multiple statements per line. |
None |
False |
Options¶
This rule shares the following common options: excludes, includes, justification_checker, post_processing, provider, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
ignore_stmts¶
ignore_stmts : set[str] = {'BlockSyntax'}