Guide / Every rule
A step reads a variable nothing sets
The check code/variable-unknown, in the group Diagrams and code.
Why it matters
A name no step of the diagram or the code sets, and that the process is not declared to start with under variables.inputs, is null unless something outside starts the process with it.
How to fix it
Set the variable in an earlier step, declare it under variables.inputs in penstock.yaml, or correct the name.
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
| Id | code/variable-unknown |
| Group | Diagrams and code |
| Level | Advice: it works, and reads or runs better without it |
Read more: Code links. All rules: Every rule.