Skip to content

multiple-statements-on-one-line-semicolon

Pythonstyleno fixdefault: off

Reports statements joined by ; on one line.

Each statement on its own line is one statement per diff line, per breakpoint and per coverage mark, and a reader of the code does not need to look for a second statement at the end of the line.

To fix, put each statement on its own line.

Reported
...
a = 1; b = 2;
...
...
python:
lint:
rules:
multiple-statements-on-one-line-semicolon: warn # off (default), warn, error

Suppress one line with sudsy-disable-next-line multiple-statements-on-one-line-semicolon in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
ruff E702 full