From d7af8707026968887ea4ee3a4e6fa51fd4372033 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Thu, 24 Sep 2026 13:30:07 +0100 Subject: fix(lua): enable nil-safety diagnostics in runtime code Enable EmmyLua's need-check-nil diagnostic and resolve nullable values through more precise types, explicit invariants, and guards for missing runtime state. Keep analyzer-specific workarounds local and update the affected API documentation. Exclude the bundled re.lua from analysis so its nil-check warnings do not fail CI. AI-assisted --- runtime/lua/editorconfig.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/editorconfig.lua') diff --git a/runtime/lua/editorconfig.lua b/runtime/lua/editorconfig.lua index 90baf784dc..c91f9ed04d 100644 --- a/runtime/lua/editorconfig.lua +++ b/runtime/lua/editorconfig.lua @@ -59,7 +59,7 @@ local nvim_on = require('vim._core.util').nvim_on ---- @type table +--- @type table local properties = {} --- Modified version of the builtin assert that does not include error position information -- cgit