# HG changeset patch # User Matthew Wild # Date 1537194533 -3600 # Node ID c9c4b8bc53b17af932f3a55a6e9c37c9143ae165 # Parent 982f8ae61de219dc42f0c0f9e086d9f9322a4348 util.json tests: Add [luacheck] annotation to mark intentionally-empty if branch diff -r 982f8ae61de2 -r c9c4b8bc53b1 .luacheckrc --- a/.luacheckrc Mon Sep 17 15:27:01 2018 +0100 +++ b/.luacheckrc Mon Sep 17 15:28:53 2018 +0100 @@ -151,7 +151,6 @@ "spec/util_events_spec.lua"; "spec/util_http_spec.lua"; "spec/util_ip_spec.lua"; - "spec/util_json_spec.lua"; "spec/util_multitable_spec.lua"; "spec/util_rfc6724_spec.lua"; "spec/util_throttle_spec.lua"; diff -r 982f8ae61de2 -r c9c4b8bc53b1 spec/util_json_spec.lua --- a/spec/util_json_spec.lua Mon Sep 17 15:27:01 2018 +0100 +++ b/spec/util_json_spec.lua Mon Sep 17 15:28:53 2018 +0100 @@ -42,7 +42,7 @@ local f = assert(io.open(path.."/"..name)); local content = assert(f:read("*a")); assert(f:close()); - if skip:find(name) then + if skip:find(name) then --luacheck: ignore 542 -- Skip elseif name:match("^pass") then valid_data[name] = content;