C#-MaxOneStmtPerLine

Do not put more than one statement in a line

Required inputs: CSharpAST

To keep the code readable, put each statement on its own line.
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

ignore_stmts

ignore_stmts : set[str] = {'BlockSyntax'}

Statements to be ignored when counting statements.