fix: add InstructionName, LibVersion, LibName to allowed VAR attributes

SCL005 false positive triggered on:
  timers{InstructionName := 'IEC_TIMER'; LibVersion := '1.0'}
These are valid TIA Portal attributes for IEC timer variables.
This commit is contained in:
2026-07-22 16:55:32 +02:00
parent 8d5bf9f99f
commit dae99fb33e
+3
View File
@@ -109,6 +109,9 @@ function M.validate_diagnostics(content, workspace_types, root_dir)
EXTERNALWRITABLE = true, -- all-caps VCI export variant
EXTERNALVISIBLE = true, -- all-caps VCI export variant
EXTERNALACCESSIBLE = true,-- all-caps VCI export variant
InstructionName = true,
LibVersion = true,
LibName = true,
S7_SetPoint = true,
S7_Optimized_Access = true,
}