From 32361a1245d1584ae074702aa645bc20e353f787 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 4 Jul 2019 05:30:16 +0200 Subject: Improve luacheck setup [skip appveyor] - Move .luacheckrc to root, add read_globals=vim - Simplify lualint target, run it on all lua files - Lint preload.lua, but ignore W211 - Remove testlint target, included in lualint (and lint) - Clean up .luacheckrc --- src/nvim/generators/gen_api_ui_events.lua | 2 -- src/nvim/options.lua | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/generators/gen_api_ui_events.lua b/src/nvim/generators/gen_api_ui_events.lua index e9f30b84f0..3cb117d8b5 100644 --- a/src/nvim/generators/gen_api_ui_events.lua +++ b/src/nvim/generators/gen_api_ui_events.lua @@ -75,7 +75,6 @@ for i = 1, #events do end if not ev.bridge_impl and not ev.noexport then - local send, argv, recv, recv_argv, recv_cleanup = '', '', '', '', '' local argc = 1 for j = 1, #ev.parameters do @@ -161,7 +160,6 @@ for i = 1, #events do call_output:write(";\n") call_output:write("}\n\n") end - end proto_output:close() diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 30409807aa..27f72f6441 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -40,7 +40,7 @@ local imacros=function(s) return '(intptr_t)' .. s end end -local N_=function(s) -- luacheck: ignore 211 +local N_=function(s) -- luacheck: ignore 211 (currently unused) return function() return 'N_(' .. cstr(s) .. ')' end -- cgit