From ac83d941419806a546bd2988eac0669269011719 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Thu, 9 Nov 2023 20:05:12 +0100 Subject: chore(ci): add linter for tests and rockspecs --- .luacheckrc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .luacheckrc diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..4dc4ec4 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,32 @@ +unused_args = false +redefined = false +max_line_length = false + +globals = { +-- "ngx", +} + +not_globals = { + -- deprecated Lua 5.0 functions + "string.len", + "table.getn", +} + +include_files = { + "**/*.lua", + "**/*.rockspec", + ".busted", + ".luacheckrc", +} + +files["spec/**/*.lua"] = { + std = "+busted", +} + +exclude_files = { + -- The Github Actions Lua Environment + ".lua", + ".luarocks", + ".install", +} + -- cgit v1.2.3-55-g6feb