From 113bc79d77777edaa5e7d4860a5de4eb9eb28f40 Mon Sep 17 00:00:00 2001 From: Florian Brinker Date: Thu, 24 Oct 2019 18:06:39 +0200 Subject: [PATCH] Update luacheck rules --- .drone.yml | 3 ++- .luacheckrc | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .luacheckrc diff --git a/.drone.yml b/.drone.yml index 1bfbca7..fe9e1e5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,7 +19,8 @@ steps: - apk add --no-cache build-base curl unzip - apk add --no-cache lua5.1 lua5.1-dev luarocks5.1 - luarocks-5.1 install luacheck - - luacheck sources/*.lua --compat --allow-defined --no-unused-args --no-max-line-length + - cd sources + - luacheck ./*.lua - name: build image: alpine diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..bc8502d --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,12 @@ +allow_defined = true +max_line_length = false + +std = { + read_globals = { + "LINK_STYLE_BRACKET", + "EVENT_MANAGER", + "CHAT_SYSTEM", + "ZO_SavedVars", + "LibStub" + } +} \ No newline at end of file