Penstock

Guide / Every rule

A variable is read, but only a similar one is set

The check code/variable-typo, in the group Diagrams and code.

AdvicePro

Why it matters

A read of a name that is never written, when a name a letter away is, is almost always a typo, and the read gives nothing.

How to fix it

Use the spelling that is set.

Where you see it

The Problems tab lists it under Code. In a terminal, penstock code reports it with the file and line. This check is part of Penstock Pro, and Team in a pipeline.

Rule details

Idcode/variable-typo
GroupDiagrams and code
LevelAdvice: it works, and reads or runs better without it

Read more: Code links. All rules: Every rule.