LC0001 - StefanMaron/BusinessCentral.LinterCop GitHub Wiki
Editable = false
LC0001 - FlowFields should be set to 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