]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
luacheckrc: Add luacheck rules
authorAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 16 May 2025 10:08:12 +0000 (13:08 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Sat, 28 Jun 2025 16:31:56 +0000 (16:31 +0000)
.luacheckrc [new file with mode: 0644]

diff --git a/.luacheckrc b/.luacheckrc
new file mode 100644 (file)
index 0000000..29cec78
--- /dev/null
@@ -0,0 +1,36 @@
+std = "lua53+lua54"
+
+files["src"] = {
+  read_globals = {
+    "dovecot",
+    "cluster",
+    "json",
+    "test_assert",
+  },
+}
+
+files["src/lib-lua/test-io-lua.lua"] = {
+  new_globals = {
+    "test_write_ostream",
+    "test_read_simple_istream",
+    "test_read_many",
+    "test_read_bytes",
+  },
+}
+
+files["src/lib-lua/test-lua-base64.lua"] = {
+  new_globals = {
+    "test_base64",
+  }
+}
+
+files["src/lib-lua/test-lua-http-client.lua"] = {
+  new_globals = {
+    "http_request_post",
+    "script_init",
+    "test_invalid_set_name",
+    "test_invalid_set_value_1",
+    "test_invalid_set_value_2",
+    "test_invalid_set_value_3",
+  },
+}