Skip to content
Arthur van de Vondervoort edited this page Feb 17, 2025 · 2 revisions

LC0001 - FlowFields should be set to Editable = false

Any Flowfield should be set to Editable = false. If the property is not present or set to True a warning will occur.

field(1; MyField; Integer) // FlowFields should not be editable. [LC0001]
{
    FieldClass = FlowField;
}
field(1; MyField; Integer)
{
    Editable = false;
    FieldClass = FlowField;
}

Exception

Use a pragma directive to suppress the diagnostic, where it's best pratice to add a comment justifying this deviant behavior.

#pragma warning disable LC0001 // FlowField needs to be editable because ...
field(1; MyField; Integer)
{
    FieldClass = FlowField;
}
#pragma warning restore LC0001
Clone this wiki locally