[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Luacheck 0.19.0
- From: Francisco Olarte <folarte@...>
- Date: Fri, 3 Mar 2017 19:07:06 +0100
On Fri, Mar 3, 2017 at 7:01 PM, Peter Aronoff <firstname.lastname@example.org> wrote:
> A quick question, and I apologize because I don’t recall if this was an
> issue before or it’s new. Like a lot of people, I now use this in modules
> that require unpack:
> local unpack = unpack or table.unpack
> That, however, yields this warning from luacheck:
> src/tapered.lua:9:16: accessing undefined variable unpack
> I get what’s happening here, and I can simply choose to ignore this
> warning, but I wonder if people have any thoughts about how else to handle
> a cross-lua module that uses unpack.
luacheck --std max or --read-globals unpack ?