From 91bf73b8c9a44d3c53bbac6e858d4f0b47ec07c7 Mon Sep 17 00:00:00 2001 From: Vlad Protsenko Date: Wed, 15 May 2024 10:05:56 +0200 Subject: [PATCH] Disable nitpicks --- script/core/diagnostics/luacheck.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/core/diagnostics/luacheck.lua b/script/core/diagnostics/luacheck.lua index 42c03f5cd..c1b462c65 100644 --- a/script/core/diagnostics/luacheck.lua +++ b/script/core/diagnostics/luacheck.lua @@ -43,6 +43,13 @@ return function (uri, callback) options = { stds = {}, files = {}, + ignore = { + "212", -- unused args + "611", -- line contains only whitespace + "612", -- line contains trailing whitespace + "614", -- trailing whitespace in a comment + "631" -- line is too long + }, globals = lspconfig.get(workspace.rootUri, 'Lua.diagnostics.globals') or {}, } }