luacheck icon indicating copy to clipboard operation
luacheck copied to clipboard

detect hitting max upvalue limit

Open bubaflub opened this issue 8 years ago • 1 comments

At work we had some code that triggered the compilation error, "function at line ___ has more than 60 upvalues". While our testing caught it, I think luacheck could also find and flag these issues as well.

60 is the default defined somewhere and I suppose someone could override it and recompile. If we check for this, we should also have a configuration option that specifies this limit.

bubaflub avatar May 19 '16 23:05 bubaflub

Limit is 255 for Lua 5.2 and Lua 5.3. For now I'll set default limit to limit of Lua version used to run luacheck.

mpeterv avatar Jul 03 '16 14:07 mpeterv