Penstock

Guide / Every rule

A step reads a variable nothing sets

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

AdvicePro

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

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

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