Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 620 Bytes

File metadata and controls

15 lines (8 loc) · 620 Bytes

Iec048 - Only use Initialization and Execution where correct

Severity: Error Error

Checks the attributes [Initialization] and [Execution], reports a diagnostic if they are not inside a class attributed with a valid attribute.

[Initialization] is valid in classes with [FunctionBlock] or [Program]. [Execution] is valid in classes with [FunctionBlock], [Function] or [Program].

Solution

You can also use the provided automatic Code Fix to remove the attribute. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)

Remove the attribute.