From dae99fb33ecf3cd23678b5d3ca147d0585b45b9b Mon Sep 17 00:00:00 2001 From: Lazar Bulovan Date: Wed, 22 Jul 2026 16:55:32 +0200 Subject: [PATCH] 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. --- src/diagnostics.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/diagnostics.lua b/src/diagnostics.lua index 87dbc65..a1b82cf 100644 --- a/src/diagnostics.lua +++ b/src/diagnostics.lua @@ -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, }