PlatformCop

The PlatformCop detects code that is technically broken, dangerous, or silently ignored at the AL platform level. It flags constructs where the runtime behaves differently from what the developer likely intended. Unlike the ApplicationCop, which focuses on Business Central application conventions, PlatformCop targets AL platform and runtime correctness regardless of the application context.

Rules

IDTitleSeverityEnabledCode Fix
PC0001FlowFields should not be editableWarning
PC0002AutoIncrement in temporary tableWarning
PC0003SetRange with filter operatorsWarning
PC0004List objects are one-basedWarning
PC0005Extensible property explicitly setInfo
PC0006Access property explicitly setInfo
PC0007AutoCalcFields only on FlowFieldsWarning
PC0008Operator and placeholder in filter expressionWarning
PC0010EventSubscriber var keywordWarning
PC0011EventPublisher IsHandled by varWarning
PC0012FlowFilter field assignmentWarning
PC0013Record.Get procedure argumentsWarning
PC0014JsonToken JPath uses double quotesWarning
PC0015Guid empty string comparisonWarning
PC0016Clear codeunit SingleInstanceWarning
PC0017Page record argument mismatchWarning
PC0018Page record method requires SourceTableWarning
PC0019Filter string single quote escapingWarning
PC0020TransferFields type mismatchWarning
PC0021TransferFields name mismatchInfo
PC0022Possible overflow assigningWarning
PC0023IsHandled parameter assignmentWarning
PC0024ApplicationArea on API pageWarning
PC0025ODataKeyFields should use SystemIdInfo
PC0026Mandatory field missing on API pageWarning
PC0027Temporary record trigger invocationWarning
PC0028TableRelation field lengthWarning