Verified Commit 08427d19 authored by Tomas Krizek's avatar Tomas Krizek Committed by Petr Špaček

ci: fix luacheck

parent 9db8ffbf
......@@ -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'}
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment