A variable or parameter is named l, O or I, which read like the digits 1 and 0

tx0/c:confusable-namestrictwarningstyle/namingdepth faststyle

What it finds

int l = 1; or x = O;: in many fonts the letters are hard to tell from 1 and 0, so l + 1 and 11 look alike.

From the rule's source, confusable_name.rs.

Example from the rule's tests
int sum(int n){  int l = 0;tx0 reports: the name l reads like a digit  for (int i = 0; i < n; i++)    l += i;  return l;}
Highlighted lines are the ones tx0 reports, with its message under each; the other lines are left alone.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/c:confusable-name" = "warning"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/c:confusable-name] reason="..."

tx0 explain tx0/c:confusable-name shows the same in the terminal. Found a false positive? Report it.