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