]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
Added luacheck for linting Lua files and static analysis
authorMarek Vavruša <mvavrusa@cloudflare.com>
Thu, 23 Nov 2017 02:57:39 +0000 (18:57 -0800)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Thu, 23 Nov 2017 03:17:46 +0000 (19:17 -0800)
commit0e2ffb5d7d3e623c7084c5fdeb35599b634d6291
tree0ad1486d67847fe75848e572b3c5ecb8ce6df568
parentd6c55c8a6f11c2cc84e4642e2b07029453bf3149
Added luacheck for linting Lua files and static analysis

This is super useful for checking things like misusing undefined
variables or modifying globals, especially in modules when it's
not immediately visible which variables are in the global
namespace and which are not.

I added several exceptions for files in daemon/lua and tests,
as for example sandbox module needs to legitimately modify
global namespace.

There's a lot of things failing, so I didn't make it part of the
standard `make check`, but we should eventually enable it to
improve code quality and spot problems with CI.
.luacheckrc [new file with mode: 0644]
Makefile
doc/build.rst