diff options
author | Marek Vavruša <mvavrusa@cloudflare.com> | 2017-11-23 10:02:15 +0100 |
---|---|---|
committer | Marek Vavruša <mvavrusa@cloudflare.com> | 2017-11-24 08:33:25 +0100 |
commit | 3162da830b5ee95b52441685fcaf30b277476303 (patch) | |
tree | a870fe93b738c9a197e145b69d41284af500bb6c /.luacheckrc | |
parent | added basic config test for consts, depend on knot >= 2.4, cleanup (diff) | |
download | knot-resolver-3162da830b5ee95b52441685fcaf30b277476303.tar.xz knot-resolver-3162da830b5ee95b52441685fcaf30b277476303.zip |
daemon/lua: fixed unused variables, whitespace, cleanup
Also fixed improper promotion of `ffi` to global variable.
```
$ luacheck --codes daemon/lua/
Checking daemon/lua/config.lua OK
Checking daemon/lua/kres-gen.lua OK
Checking daemon/lua/kres.lua OK
Checking daemon/lua/sandbox.lua OK
Checking daemon/lua/trust_anchors.lua OK
Checking daemon/lua/zonefile.lua OK
Total: 0 warnings / 0 errors in 6 files
```
Diffstat (limited to '.luacheckrc')
-rw-r--r-- | .luacheckrc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.luacheckrc b/.luacheckrc index 72f12770..c514ccb5 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -71,6 +71,7 @@ ignore = { -- Sandbox can set global variables files['daemon/lua'].ignore = {'111', '121', '122'} +files['daemon/lua/kres-gen.lua'].ignore = {'631'} -- Allow overly long lines -- Tests and scripts can use global variables files['scripts'].ignore = {'111', '112', '113'} files['tests'].ignore = {'111', '112', '113'} |