Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 541 Bytes

File metadata and controls

11 lines (6 loc) · 541 Bytes

Iec059 - Only use Retaining where possible

Severity: Error Error

Reports if the attribute [Retain] or [GdsRetain] is used apart from fields of classes attributed with [Program] or [FunctionBlock]. The fields must not have the attributes [Input] or [InOut].

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 or meet the attribute's requirements named above.