]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
fixed issues with newer luacheck
authorMarek Vavruša <mvavrusa@cloudflare.com>
Sun, 26 Nov 2017 04:15:35 +0000 (20:15 -0800)
committerPetr Špaček <petr.spacek@nic.cz>
Tue, 28 Nov 2017 10:21:17 +0000 (11:21 +0100)
.luacheckrc
modules/hints/hints_test.lua

index d17076c7a3c4bbbf63275fc10c9142b6ee2924fb..29e59a28e9edbde7acda7cba4852009b0214a69b 100644 (file)
@@ -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
index 5e24ff33b65bbf06cf01cf5840751afa6aa5318c..2b8a1a73609ab70ecbdec0882f0a9254ab5e8a18 100644 (file)
@@ -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 {