server_event: Add luacheck annotations
authorKim Alvefur <zash@zash.se>
Fri, 25 Sep 2015 15:25:46 +0000 (17:25 +0200)
committerKim Alvefur <zash@zash.se>
Fri, 25 Sep 2015 15:25:46 +0000 (17:25 +0200)
net/server_event.lua

index 517072e4b0dc163d7a9062b813f3f78d22ae9357..934501ab6183222163a65941226f7684276a4353 100644 (file)
@@ -11,6 +11,7 @@
                        -- when using luasec, there are 4 cases of timeout errors: wantread or wantwrite during reading or writing
 
 --]]
+-- luacheck: ignore 212/self 431/err 211/ret
 
 local SCRIPT_NAME           = "server_event.lua"
 local SCRIPT_VERSION        = "0.05"
@@ -365,7 +366,7 @@ function interface_mt:set_mode(pattern)
        return self._pattern;
 end
 
-function interface_mt:set_send(new_send)
+function interface_mt:set_send(new_send) -- luacheck: ignore 212
        -- No-op, we always use the underlying connection's send
 end