multiple-statements-on-one-line-semicolon
What it does
Section titled “What it does”Reports statements joined by ; on one line.
Why it matters
Section titled “Why it matters”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.
Example
Section titled “Example”... a = 1; b = 2;...
...Configuration
Section titled “Configuration”python: lint: rules: multiple-statements-on-one-line-semicolon: warn # off (default), warn, errorSuppress one line with sudsy-disable-next-line multiple-statements-on-one-line-semicolon in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| ruff | E702 |
full |