mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-10 02:31:48 +00:00
9083ee74ca
Fix crash when using append_inplace without batteries:export(). If you don't export batteries into the global namespace to stomp table, then append_inplace would access a nil function because it's using table instead of tablex. We still use table inside init, but that's after we export to global namespace.
37 lines
1.2 KiB
Lua
37 lines
1.2 KiB
Lua
return {
|
|
std = "lua51+love",
|
|
ignore = {
|
|
"211", -- Unused local variable.
|
|
"212", -- Unused argument.
|
|
"212/self", -- Unused argument self.
|
|
"213", -- Unused loop variable.
|
|
"231", -- Local variable is set but never accessed.
|
|
"311", -- Value assigned to a local variable is unused.
|
|
"631", -- Line is too long.
|
|
},
|
|
files = {
|
|
["tests.lua"] = {
|
|
ignore = {
|
|
"211", -- Unused local variable. (testy will find these local functions)
|
|
},
|
|
},
|
|
["assert.lua"] = {
|
|
ignore = {
|
|
"121", -- Setting a read-only global variable. (we clobber assert)
|
|
},
|
|
},
|
|
["init.lua"] = {
|
|
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"] = {
|
|
ignore = {
|
|
"142", -- Setting an undefined field of a global variable. (inside export)
|
|
},
|
|
},
|
|
}
|
|
}
|