ambiguous-function-name
What it does
Section titled “What it does”Reports a function or method named l, O or I.
Why it matters
Section titled “Why it matters”In many fonts l (lower case L), I (upper case i) and the digit 1 look alike, and so do O and 0. A call such as l(x) or O(x) is easy to misread as an expression with a number.
To fix, give the function a name that says what it does.
Example
Section titled “Example”... pass
def O(): pass
...Configuration
Section titled “Configuration”python: lint: rules: ambiguous-function-name: warn # off (default), warn, errorSuppress one line with sudsy-disable-next-line ambiguous-function-name 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 | E743 |
full |