Peter Melnichenko

Results 117 comments of Peter Melnichenko

Yes, it would be useful to be able to specify a parent config to use as base in some way. It should be possible to do that in config itself,...

Do you mean checking types of passed arguments? I would like to avoid having to slowly add parts of type inference to existing luacheck codebase. If there will be type...

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.

The idea of the warning is that when a table is created, then something is added to it, but it's not used in any way, something is wrong (the whole...

What I mean is that the whole table is useless if the warning is issued, even though some assignments to fields allow further assignments to "deeper" fields, the table as...

I see, so as I understand it, this is an example of the issue: ```lua local function gen_accessors(t) local wrappers = {} -- Luacheck warning: variable wrappers is mutated but...

Ok, I'll need to check how Lua counts locals and upvalues and if there are differences between various versions of Lua and LuaJIT, then this should be simple to implement....

That's a lot! It seems that the warning filtering stage tries to avoid mutating tables too hard, by creating a lot of fresh objects, and these commits increased amount of...

After some improvements on master branch peak RSS went down from ~92MB to ~68MB (running `luacheck .` with Lua 5.1 and `--cache` enabled and fully hit). I'll keep working on...

0.22.1 released, peak RSS down to ~55MB. I'll keep working on this, some optimizations require slightly changing behavior in some corner cases so they'll go into 0.23.0.