aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-04 05:30:16 +0200
committerDaniel Hahler <git@thequod.de>2019-07-04 12:29:54 +0200
commit32361a1245d1584ae074702aa645bc20e353f787 (patch)
tree66043fdb5d8e280f85de2552bbb72cc700e612f0 /src
parent571b2c5e7be105d23ada987a7c7080f8631bfd15 (diff)
downloadrneovim-32361a1245d1584ae074702aa645bc20e353f787.tar.gz
rneovim-32361a1245d1584ae074702aa645bc20e353f787.tar.bz2
rneovim-32361a1245d1584ae074702aa645bc20e353f787.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/nvim/generators/gen_api_ui_events.lua2
-rw-r--r--src/nvim/options.lua2
2 files changed, 1 insertions, 3 deletions
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