diff --git a/.luacheckrc b/.luacheckrc index 295dcf2..c1fd21a 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,7 +1,6 @@ return { std = "lua51+love", ignore = { - "143", -- Accessing an undefined field of a global variable. "211", -- Unused local variable. "212", -- Unused argument. "212/self", -- Unused argument self. @@ -25,6 +24,7 @@ return { ignore = { "111", -- Setting an undefined global variable. (batteries and ripairs) "121", -- Setting a read-only global variable. (we clobber assert) + "143", -- Accessing an undefined field of a global variable. (we use tablex as table) }, }, ["sort.lua"] = { diff --git a/tablex.lua b/tablex.lua index 8d6d118..372faf0 100644 --- a/tablex.lua +++ b/tablex.lua @@ -282,7 +282,7 @@ function tablex.append_inplace(t1, t2, ...) table.insert(t1, v) end if ... then - return table.append_inplace(t1, ...) + return tablex.append_inplace(t1, ...) end return t1 end