From 3619ff6fc98689d41426fc6804f3424f8264a04a Mon Sep 17 00:00:00 2001 From: gaofengduan <782277855@qq.com> Date: Wed, 22 May 2019 17:39:04 +0800 Subject: [PATCH] add luacheck config --- .luacheckrc | 263 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 263 insertions(+), 0 deletions(-) create mode 100644 .luacheckrc diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..71e8923 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,263 @@ +std = "max" +globals = { + "SendPipelining", + "AdvEventType", + "class", + "os", + "globalCsv", + "debug", + "assert", + "tonumber", + "echo_", + "isCrossDay", + "cancel_agent_timer", + "isnan", + "isset", + "diffTime", + "crossDay", + "echo", + "coroutine", + "ItemType", + "echoInfo", + "dump", + "R_DAILY", + "SERVICE_NAME", + "crossWeekFromOpen", + "string", + "crossWeek", + "rpcUnion", + "print", + "table", + "getActionCode", + "AttsEnumEx", + "rpcOtherUnion", + "R_HEROS", + "import", + "mcast_util", + "collectgarbage", + "tobool", + "notifyClients", + "rpcRole", + "MsgPack", + "getNextTradeId", + "totable", + "math", + "pcall", + "isCrossWeek", + "type", + "R_HERO", + "printf", + "echoError", + "toUnixtime", + "R_INCR", + "loadfile", + "withTimeHead", + "AdvBackEventType", + "format", + "redisproxy", + "ItemStartId", + "actionCodes", + "rawlen", + "AdvScoreType", + "io", + "deleteNotify", + "echoLog", + "echof_", + "lowerBoundSeach", + "dayLater", + "actionHandlers", + "getSecond", + "specTime", + "getPackageName", + "MAX_ROLE_NUM", + "SERVICE_PATH", + "xpcall", + "package", + "_VERSION", + "crossDayFromOpen", + "ignoreHeartbeat", + "csvdb", + "isToday", + "redisd", + "require", + "handlerObject", + "SendPacket", + "urlencode", + "setmetatable", + "cutTimeHead", + "tostring", + "rpcResponseBegin", + "R_DINER", + "specMonday", + "echof", + "monthLater", + "clone", + "rpcParter", + "httpGetFormatData", + "isCrossMonth", + "getmetatable", + "RESET_TIME", + "notifyClient", + "export", + "utf8", + "isSpecTime", + "pairs", + "rawset", + "toint", + "handler", + "start_agent_timer", + "getRandomName", + "AttsEnum", + "datacenter", + "load", + "skynet", + "vardump", + "ItemId", + "getNextRoleId", + "_G", + "XXTEA_KEY", + "dump2file", + "select", + "ipairs", + "AdvSpecialStage", + "rawget", + "tonum", + "rpcAgent", + "json", + "dofile", + "next", + "rawequal", + "error", + "null", + "SendPipelining", + "AdvEventType", + "class", + "os", + "globalCsv", + "debug", + "assert", + "tonumber", + "echo_", + "isCrossDay", + "cancel_agent_timer", + "isnan", + "isset", + "diffTime", + "crossDay", + "echo", + "coroutine", + "ItemType", + "echoInfo", + "dump", + "R_DAILY", + "SERVICE_NAME", + "crossWeekFromOpen", + "string", + "crossWeek", + "rpcUnion", + "print", + "table", + "getActionCode", + "AttsEnumEx", + "rpcOtherUnion", + "R_HEROS", + "import", + "mcast_util", + "collectgarbage", + "tobool", + "notifyClients", + "rpcRole", + "MsgPack", + "getNextTradeId", + "totable", + "math", + "pcall", + "isCrossWeek", + "type", + "R_HERO", + "printf", + "echoError", + "toUnixtime", + "R_INCR", + "loadfile", + "withTimeHead", + "AdvBackEventType", + "format", + "redisproxy", + "ItemStartId", + "actionCodes", + "rawlen", + "AdvScoreType", + "io", + "deleteNotify", + "echoLog", + "echof_", + "lowerBoundSeach", + "dayLater", + "actionHandlers", + "getSecond", + "specTime", + "getPackageName", + "MAX_ROLE_NUM", + "SERVICE_PATH", + "xpcall", + "package", + "_VERSION", + "crossDayFromOpen", + "tostring", + "ignoreHeartbeat", + "csvdb", + "isToday", + "redisd", + "require", + "handlerObject", + "SendPacket", + "urlencode", + "setmetatable", + "cutTimeHead", + "SERV_OPEN", + "rpcResponseBegin", + "R_DINER", + "specMonday", + "echof", + "monthLater", + "clone", + "rpcParter", + "httpGetFormatData", + "isCrossMonth", + "getmetatable", + "RESET_TIME", + "notifyClient", + "export", + "utf8", + "isSpecTime", + "pairs", + "rawset", + "toint", + "handler", + "start_agent_timer", + "getRandomName", + "AttsEnum", + "datacenter", + "load", + "skynet", + "vardump", + "ItemId", + "getNextRoleId", + "_G", + "XXTEA_KEY", + "dump2file", + "select", + "ipairs", + "AdvSpecialStage", + "rawget", + "tonum", + "rpcAgent", + "json", + "dofile", + "next", + "rawequal", + "error", +} +-- Ignore some pedantic checks +ignore = {'6','143','142','212'} \ No newline at end of file -- libgit2 0.21.2