# HG changeset patch # User Kim Alvefur # Date 1474734676 -7200 # Node ID 8027eecc750f5d2f4ca88cc157c5a1d285701466 # Parent 177d569307fd4923cc505ffbd421370100d56b18 util.datamanager: Add annotations to ignore name clashes [luacheck] diff -r 177d569307fd -r 8027eecc750f util/datamanager.lua --- a/util/datamanager.lua Sat Sep 24 18:31:00 2016 +0200 +++ b/util/datamanager.lua Sat Sep 24 18:31:16 2016 +0200 @@ -321,7 +321,7 @@ list = "list"; } -local function users(host, store, typ) +local function users(host, store, typ) -- luacheck: ignore 431/store typ = type_map[typ or "keyval"]; local store_dir = format("%s/%s/%s", data_path, encode(host), store); @@ -329,8 +329,8 @@ if not mode then return function() log("debug", "%s", err or (store_dir .. " does not exist")) end end - local next, state = lfs.dir(store_dir); - return function(state) + local next, state = lfs.dir(store_dir); -- luacheck: ignore 431/next 431/state + return function(state) -- luacheck: ignore 431/state for node in next, state do local file, ext = node:match("^(.*)%.([dalist]+)$"); if file and ext == typ then @@ -348,8 +348,8 @@ if not mode then return function() log("debug", err or (store_dir .. " does not exist")) end end - local next, state = lfs.dir(store_dir); - return function(state) + local next, state = lfs.dir(store_dir); -- luacheck: ignore 431/next 431/state + return function(state) -- luacheck: ignore 431/state for node in next, state do if not node:match"^%." then if username == true then