mirror of
https://github.com/neovim/neovim.git
synced 2025-11-12 21:38:50 +00:00
test: luacheck update
We pull luacheck HEAD, so this is a "catch up" commit to fix newly-discovered errors.
This commit is contained in:
@@ -12,5 +12,9 @@ self = false
|
|||||||
-- Rerun tests only if their modification time changed.
|
-- Rerun tests only if their modification time changed.
|
||||||
cache = true
|
cache = true
|
||||||
|
|
||||||
|
ignore = {
|
||||||
|
"631", -- max_line_length
|
||||||
|
}
|
||||||
|
|
||||||
-- Ignore whitespace issues in converted Vim legacy tests.
|
-- Ignore whitespace issues in converted Vim legacy tests.
|
||||||
files["functional/legacy"] = {ignore = { "611", "612", "613", "621" }}
|
files["functional/legacy"] = {ignore = { "611", "612", "613", "621" }}
|
||||||
|
|||||||
@@ -106,7 +106,8 @@ local lua2obj_type_tab = {
|
|||||||
api.xmalloc(len * ffi.sizeof('KeyValuePair'))),
|
api.xmalloc(len * ffi.sizeof('KeyValuePair'))),
|
||||||
}})
|
}})
|
||||||
for i = 1, len do
|
for i = 1, len do
|
||||||
local key, val = table.unpack(kvs[i])
|
local table_unpack = table.unpack or unpack -- luacheck: compat
|
||||||
|
local key, val = table_unpack(kvs[i])
|
||||||
dct.data.dictionary.items[i - 1] = ffi.new(
|
dct.data.dictionary.items[i - 1] = ffi.new(
|
||||||
'KeyValuePair', {key=ffi.gc(lua2obj(key), nil).data.string,
|
'KeyValuePair', {key=ffi.gc(lua2obj(key), nil).data.string,
|
||||||
value=ffi.gc(lua2obj(val), nil)})
|
value=ffi.gc(lua2obj(val), nil)})
|
||||||
|
|||||||
Reference in New Issue
Block a user