From: Marek VavruĊĦa Date: Sun, 26 Nov 2017 04:15:35 +0000 (-0800) Subject: fixed issues with newer luacheck X-Git-Tag: v1.5.1~12^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c0b98682faef752761b3d2f2ab432742960488d;p=thirdparty%2Fknot-resolver.git fixed issues with newer luacheck --- diff --git a/.luacheckrc b/.luacheckrc index d17076c7a..29e59a28e 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -76,4 +76,4 @@ 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'} \ No newline at end of file +files['modules/*/*_test.lua'].ignore = {'111', '112', '113', '122'} \ No newline at end of file diff --git a/modules/hints/hints_test.lua b/modules/hints/hints_test.lua index 5e24ff33b..2b8a1a736 100644 --- a/modules/hints/hints_test.lua +++ b/modules/hints/hints_test.lua @@ -8,7 +8,7 @@ local function test_default() -- get loaded root hints and change names to lowercase hints_data = utils.table_keys_to_lower(hints.root()) - -- root hints loaded from default location + -- root hints loaded from default location -- check correct ip address of a.root-server.net utils.contains(hints_data['a.root-servers.net.'], '198.41.0.4', 'has IP address for a.root-servers.net.') end @@ -24,8 +24,10 @@ local function test_custom() isnt(hints_data['a.root-servers.net.'], nil, 'can retrieve root hints') -- check loaded ip address of a.root-server.net - utils.not_contains(hints_data['a.root-servers.net.'], '198.41.0.4', 'real IP address for a.root-servers.net. is replaced') - utils.contains(hints_data['a.root-servers.net.'], '10.0.0.1', 'real IP address for a.root-servers.net. is correct') + utils.not_contains(hints_data['a.root-servers.net.'], '198.41.0.4', + 'real IP address for a.root-servers.net. is replaced') + utils.contains(hints_data['a.root-servers.net.'], '10.0.0.1', + 'real IP address for a.root-servers.net. is correct') end return {