# HG changeset patch # User Matthew Wild # Date 1430938267 -3600 # Node ID a0ce52e11122d161f14279bba4b712f48fa1c3f1 # Parent b123fcd65d2e239cba1c24e432fce7781eb8601f util.set: Add luacheck annotation for methods not referencing 'self' diff -r b123fcd65d2e -r a0ce52e11122 util/set.lua --- a/util/set.lua Wed May 06 19:50:40 2015 +0100 +++ b/util/set.lua Wed May 06 19:51:07 2015 +0100 @@ -66,6 +66,9 @@ local items = setmetatable({}, items_mt); local set = { _items = items }; + -- We access the set through an upvalue in these methods, so ignore 'self' being unused + --luacheck: ignore 212/self + function set:add(item) items[item] = true; end