From 43b814a83bc1e20d15d3cd38ddcf108d8e3ca356 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 28 Feb 2018 20:06:26 +0100 Subject: vairious: Add annotation when an empty environment is set [luacheck] --- net/adns.lua | 1 + net/connlisteners.lua | 1 + net/dns.lua | 1 + net/http.lua | 1 + net/httpserver.lua | 1 + net/server_epoll.lua | 1 + 6 files changed, 6 insertions(+) (limited to 'net') 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; -- cgit v1.2.3