diff options
author | Kim Alvefur <zash@zash.se> | 2018-02-28 20:06:26 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-02-28 20:06:26 +0100 |
commit | 146acdbd338c1e2c2523b720cd1b93a7db1476eb (patch) | |
tree | 0f24fe5bf868191f9e33931f28c9db16e098d2bb /net | |
parent | 5a20cd359acf20247d9c2e4168bbe65253dbcce9 (diff) | |
download | prosody-146acdbd338c1e2c2523b720cd1b93a7db1476eb.tar.gz prosody-146acdbd338c1e2c2523b720cd1b93a7db1476eb.zip |
vairious: Add annotation when an empty environment is set [luacheck]
Diffstat (limited to 'net')
-rw-r--r-- | net/adns.lua | 1 | ||||
-rw-r--r-- | net/connlisteners.lua | 1 | ||||
-rw-r--r-- | net/dns.lua | 1 | ||||
-rw-r--r-- | net/http.lua | 1 | ||||
-rw-r--r-- | net/httpserver.lua | 1 | ||||
-rw-r--r-- | net/server_epoll.lua | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/net/adns.lua b/net/adns.lua index a19cbd59..560e4b53 100644 --- a/net/adns.lua +++ b/net/adns.lua @@ -17,6 +17,7 @@ local setmetatable = setmetatable; local function dummy_send(sock, data, i, j) return (j-i)+1; end local _ENV = nil; +-- luacheck: std none local async_resolver_methods = {}; local async_resolver_mt = { __index = async_resolver_methods }; diff --git a/net/connlisteners.lua b/net/connlisteners.lua index 38cf8f08..259b80ee 100644 --- a/net/connlisteners.lua +++ b/net/connlisteners.lua @@ -3,6 +3,7 @@ local log = require "util.logger".init("net.connlisteners"); local traceback = debug.traceback; local _ENV = nil; +-- luacheck: std none local function fail() log("error", "Attempt to use legacy connlisteners API. For more info see https://prosody.im/doc/developers/network"); diff --git a/net/dns.lua b/net/dns.lua index e6749025..08f5b121 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -73,6 +73,7 @@ local default_timeout = 15; -------------------------------------------------- module dns local _ENV = nil; +-- luacheck: std none local dns = {}; diff --git a/net/http.lua b/net/http.lua index 8a669321..c17d734c 100644 --- a/net/http.lua +++ b/net/http.lua @@ -27,6 +27,7 @@ local error = error local log = require "util.logger".init("http"); local _ENV = nil; +-- luacheck: std none local requests = {}; -- Open requests diff --git a/net/httpserver.lua b/net/httpserver.lua index 56561306..f77b3dac 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -3,6 +3,7 @@ local log = require "util.logger".init("net.httpserver"); local traceback = debug.traceback; local _ENV = nil; +-- luacheck: std none function fail() log("error", "Attempt to use legacy HTTP API. For more info see https://prosody.im/doc/developers/legacy_http"); diff --git a/net/server_epoll.lua b/net/server_epoll.lua index 3ce1be5a..b62bad83 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -28,6 +28,7 @@ local _SOCKETINVALID = socket._SOCKETINVALID or -1; assert(socket.tcp6 and socket.tcp4, "Incompatible LuaSocket version"); local _ENV = nil; +-- luacheck: std none local default_config = { __index = { read_timeout = 900; |