]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci: fix luacheck
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 19 Mar 2019 16:16:03 +0000 (17:16 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Thu, 4 Apr 2019 12:18:58 +0000 (14:18 +0200)
.luacheckrc
daemon/lua/trust_anchors.lua.in
daemon/lua/trust_anchors.test/ta.test.lua

index 7a5d3e1a48dae6b402a8f89f5c903141f6474a87..885fa82205c52ec64a809f275423d5d325387a32 100644 (file)
@@ -71,10 +71,10 @@ 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
+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'}
-files['modules/**/*.test.lua'].ignore = {'111', '112', '113', '121', '122'}
-files['daemon/**/*.test.lua'].ignore = {'111', '112', '113', '121', '122'}
+files['**/modules/**/*.test.lua'].ignore = {'111', '112', '113', '121', '122'}
+files['**/daemon/**/*.test.lua'].ignore = {'111', '112', '113', '121', '122'}
index f235a9707deb8cda48d66deacddf98a743a6056d..cc1e8b3c92e7ad30cee2cd08cc6e916f3eb1cefd 100644 (file)
@@ -11,7 +11,7 @@ local key_state = {
        Missing = 'Missing', Revoked = 'Revoked', Removed = 'Removed'
 }
 
-local function upgrade_required(field)
+local function upgrade_required()
        panic('Configuration upgrade required! Please refer to ' ..
                'https://knot-resolver.readthedocs.io/en/stable/upgrading.html')
 end
index ca68c701d1245dd313107e070b9e0c867c05db70..2071152d50ba7cf4cf6a0f5f855d55d2eb017e70 100644 (file)
@@ -44,7 +44,7 @@ local function test_remove()
        trust_anchors.remove('.')
 
        same(trust_anchors.keysets['\0'], nil, 'Lua interface does not have the removed key')
-       local root_ta = ffi.C.kr_ta_get(ta_c, '\0')
+       root_ta = ffi.C.kr_ta_get(ta_c, '\0')
        same(root_ta == nil, true, 'C interface does not have the removed key')
 end