Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 710 Bytes

File metadata and controls

16 lines (11 loc) · 710 Bytes

Iec060 - Only use Hidden on fields or user defined data types or POUs

Severity: Error Error

Checks all [Hidden] attributes, reports if not used on:

  • a field
  • or structs attributed with [Array], [Structure] or [String]
  • or enums attributed with [Enumeration]
  • or classes attributed with [Function], [FunctionBlock], [FunctionContainer] or [Program]
  • or methods of classes attributed with [FunctionContainer]

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.